edf3cf9e1ad9ee684e776feea40b4603acd295af.svn-base 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <div id="yigonglitianbaoId">
  3. <el-dialog :title="currentObjectName+'督查填报'" width="60%" :before-close="closeDialog"
  4. :visible.sync="dialogFormVisible">
  5. <el-container>
  6. <el-main id="dxdcListMain" style="padding:5px 20px;">
  7. <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
  8. <el-tab-pane
  9. :label="option.label"
  10. :name="option.label"
  11. v-for="option in options"
  12. :key="option.value">
  13. <component
  14. v-if="currentViewId == option.label"
  15. :is="option.value"
  16. :currentObjectRgstrId="currentObjectRgstrId"
  17. :currentObjectName="currentObjectName"
  18. :currentResCode="currentResCode"
  19. :currentObjectId="currentObjectId"
  20. :activeLabel="activeLabel"
  21. :rowData="rowData"
  22. :name="option.label"
  23. :openType="openType"
  24. @cancelHandler="cancelHandler"
  25. @addxinRenYinSuccess="addyiGongLiSuccess"
  26. ></component>
  27. </el-tab-pane>
  28. </el-tabs>
  29. </el-main>
  30. </el-container>
  31. </el-dialog>
  32. </div>
  33. </template>
  34. <script>
  35. import request from "@util/gw_ajax_request.js";
  36. import {getrgstrIdObject} from "@api/duChaTianBao.js";
  37. import jichuxinxi from "./jichuxinxi.vue";
  38. import problemList from './problemList.vue';
  39. import ztbxmdc from './ztbxmdc.vue';
  40. import signature from './signature.vue';
  41. export default {
  42. components: {
  43. jichuxinxi,
  44. signature,
  45. ztbxmdc,
  46. problemList
  47. },
  48. props: ['rowData', 'currentObjectRgstrId', 'currentResCode', 'currentObjectId', 'currentObjectName','openType'],
  49. data() {
  50. return {
  51. options: [
  52. {
  53. value: "jichuxinxi",
  54. label: '基础信息'
  55. },
  56. {
  57. value: "ztbxmdc",
  58. label: '招投标项目督查'
  59. },
  60. {
  61. value: "signature",
  62. label: '签字确认'
  63. },
  64. {
  65. value: "problemList",
  66. label: '问题清单'
  67. }
  68. ],
  69. value: "",
  70. dialogShow: false,
  71. currentViewId: "基础信息",
  72. dialogFormVisible: true,
  73. activeLabel: ''
  74. };
  75. },
  76. computed: {
  77. persId() {
  78. return localStorage.getItem("userid")
  79. ? localStorage.getItem("userid")
  80. : "1098101939614724096";
  81. }
  82. },
  83. mounted() {
  84. },
  85. watch: {},
  86. methods: {
  87. submitHandler() {
  88. var _self = this;
  89. getrgstrIdObject(this.rowData.code, this.rowData.objId).then(
  90. (res) => {
  91. this.$confirm('请确认所有信息填报完毕?', '提示', {
  92. confirmButtonText: '确定',
  93. cancelButtonText: '取消',
  94. type: 'warning'
  95. }).then(() => {
  96. let formObj = {
  97. "rgstrId": this.currentObjectRgstrId,
  98. "state": "2"
  99. }
  100. request.post('/dc/insp/rsvrRgstr/update', formObj).then((res) => {
  101. if (res.success) {
  102. _self.$emit("addyiGongLiSuccess");
  103. _self.$message.success("提交成功");
  104. } else {
  105. _self.$emit('cancelHandler');
  106. }
  107. });
  108. }).catch(() => {
  109. });
  110. }, (err) => {
  111. });
  112. },
  113. closeHandler() {
  114. this.dialogShow = false
  115. this.$emit("addyiGongLiSuccess");
  116. },
  117. appearDialog(type) {
  118. this.dialogShow = true
  119. // this.problemSmallType = type
  120. },
  121. closePDialog() {
  122. this.dialogShow = false
  123. },
  124. showDialog() {
  125. this.dialogFormVisible = true;
  126. },
  127. cancelHandler() {
  128. this.$emit('cancelHandler');
  129. },
  130. addyiGongLiSuccess() {
  131. this.$emit('addyiGongLiSuccess');
  132. },
  133. closeDialog() {
  134. this.$confirm('确认退出吗?', '提示', {
  135. confirmButtonText: '确定',
  136. cancelButtonText: '取消',
  137. type: 'warning'
  138. }).then(() => {
  139. this.$emit('cancelHandler');
  140. }).catch(() => {
  141. });
  142. },
  143. tabIndexChange(item) {
  144. },
  145. addyiGongLiSuccess() {
  146. this.$emit('addyiGongLiSuccess');
  147. }
  148. }
  149. };
  150. </script>
  151. <style>
  152. #yigonglitianbaoId .el-dialog {
  153. margin-top: 10vh;
  154. }
  155. </style>