7b552e3eb7c15f905100aa6a439ef612eec710cb.svn-base 4.7 KB

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