ac3a3a1461c6f32e37c17a83eb5fe7dccce174c9.svn-base 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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 reviewQualification from "./reviewQualification.vue";
  39. import scdb from "./scdb.vue";
  40. import fvtcYtgc from "./fvtcYtgc.vue";
  41. import fvtcHnt from "./fvtcHnt.vue";
  42. import problemList from './problemList.vue';
  43. // import problemDialog from './problemDialog.vue';
  44. import signature from './signature.vue';
  45. export default {
  46. components: {
  47. jichuxinxi,
  48. reviewQualification,
  49. scdb,
  50. fvtcYtgc,
  51. fvtcHnt,
  52. signature,
  53. problemList
  54. },
  55. props: ['rowData', 'currentObjectRgstrId', 'currentResCode', 'currentObjectId', 'currentObjectName','openType'],
  56. data() {
  57. return {
  58. options: [
  59. {
  60. value: "jichuxinxi",
  61. label: '基础信息'
  62. },
  63. {
  64. value: "reviewQualification",
  65. label: '资质复核'
  66. },
  67. {
  68. value: "scdb",
  69. label: '检测行为抽查'
  70. },
  71. {
  72. value: "fvtcYtgc",
  73. label: '检测能力岩土工程'
  74. },
  75. {
  76. value: "fvtcHnt",
  77. label: '检测能力混凝土'
  78. },
  79. {
  80. value: "signature",
  81. label: '签字确认'
  82. },
  83. {
  84. value: "problemList",
  85. label: '问题清单'
  86. }
  87. ],
  88. value: "",
  89. dialogShow: false,
  90. currentViewId: "基础信息",
  91. dialogFormVisible: true,
  92. activeLabel: ''
  93. };
  94. },
  95. computed: {
  96. persId() {
  97. return localStorage.getItem("userid")
  98. ? localStorage.getItem("userid")
  99. : "1098101939614724096";
  100. }
  101. },
  102. mounted() {
  103. },
  104. watch: {},
  105. methods: {
  106. submitHandler() {
  107. var _self = this;
  108. getrgstrIdObject(this.rowData.code, this.rowData.objId).then(
  109. (res) => {
  110. this.$confirm('请确认所有信息填报完毕?', '提示', {
  111. confirmButtonText: '确定',
  112. cancelButtonText: '取消',
  113. type: 'warning'
  114. }).then(() => {
  115. let formObj = {
  116. "rgstrId": this.currentObjectRgstrId,
  117. "state": "2"
  118. }
  119. request.post('/dc/insp/rsvrRgstr/update', formObj).then((res) => {
  120. if (res.success) {
  121. _self.$emit("addyiGongLiSuccess");
  122. _self.$message.success("提交成功");
  123. } else {
  124. _self.$emit('cancelHandler');
  125. }
  126. });
  127. }).catch(() => {
  128. });
  129. }, (err) => {
  130. });
  131. },
  132. closeHandler() {
  133. this.dialogShow = false
  134. this.$emit("addyiGongLiSuccess");
  135. },
  136. appearDialog(type) {
  137. this.dialogShow = true
  138. // this.problemSmallType = type
  139. },
  140. closePDialog() {
  141. this.dialogShow = false
  142. },
  143. showDialog() {
  144. this.dialogFormVisible = true;
  145. },
  146. cancelHandler() {
  147. this.$emit('cancelHandler');
  148. },
  149. addyiGongLiSuccess() {
  150. this.$emit('addyiGongLiSuccess');
  151. },
  152. closeDialog() {
  153. this.$confirm('确认退出吗?', '提示', {
  154. confirmButtonText: '确定',
  155. cancelButtonText: '取消',
  156. type: 'warning'
  157. }).then(() => {
  158. this.$emit('cancelHandler');
  159. }).catch(() => {
  160. });
  161. },
  162. tabIndexChange(item) {
  163. },
  164. addyiGongLiSuccess() {
  165. this.$emit('addyiGongLiSuccess');
  166. }
  167. }
  168. };
  169. </script>
  170. <style>
  171. #yigonglitianbaoId .el-dialog {
  172. margin-top: 10vh;
  173. }
  174. </style>