4dbe498c74e2fbc0ffb401e633387ea41a225144.svn-base 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <div id="shuikutianbaoId">
  3. <el-dialog :title="currentObjectName+'督查填报'" width="60%" :before-close="closeDialog"
  4. :visible.sync="dialogFormVisible">
  5. <el-container>
  6. <!-- <el-container> -->
  7. <el-main id="dxdcListMain" style="padding:5px 20px;">
  8. <!-- <el-button type="primary" style="margin-bottom: 10px;position: relative;margin-left: 90%;" @click="appearDialog()">添加问题</el-button>
  9. <problem-dialog v-if="dialogShow" :objType="0" :villType="0" :objId="currentObjectId" :objName="currentObjectName" :problemMiddleType="'小水库'" :problemSmallType="problemSmallType" @closeDialog="closePDialog" :currentObjectRgstrId="currentObjectRgstrId"></problem-dialog> -->
  10. <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
  11. <el-tab-pane
  12. :label="option.label"
  13. :name="option.label"
  14. v-for="option in options"
  15. :key="option.value">
  16. <component
  17. v-if="currentViewId == option.label"
  18. :is="option.value"
  19. :currentObjectRgstrId="currentObjectRgstrId"
  20. :currentObjectName="currentObjectName"
  21. :currentResCode="currentResCode"
  22. :currentObjectId="currentObjectId"
  23. :activeLabel="activeLabel"
  24. :rowData="rowData"
  25. :pType="pType"
  26. :ifView="ifView"
  27. :labelList="signatureLabelList"
  28. :currentRsvrNm="currentRsvrNm"
  29. :currentAdCode="currentAdCode"
  30. @cancelHandler="cancelHandler"
  31. @addShuiKuSuccess="addShuiKuSuccess"
  32. ></component>
  33. </el-tab-pane>
  34. </el-tabs>
  35. </el-main>
  36. <!-- </el-container> -->
  37. </el-container>
  38. <!-- <span slot="footer" class="dialog-footer" style="justify-content: flex-end;display: flex;margin-right: 20px;">
  39. <el-button @click="closeHandler">关 闭</el-button>
  40. <el-button type="primary" @click="submitHandler">提 交</el-button>
  41. </span> -->
  42. <!-- 添加/编辑人员弹窗 -->
  43. </el-dialog>
  44. </div>
  45. </template>
  46. <script>
  47. import request from "@util/gw_ajax_request.js";
  48. import jichuxinxi from "./shuiku/jichuxinxi_xskfc.vue"
  49. import problemList from './rsvrProblemList_xskfc.vue'
  50. import signature from './components/signature.vue'
  51. import {getRsByRgstrId} from "@api/duChaTianBao.js";
  52. import reservoirInspection from "./shuiku/shuiku2021/reservoirInspection_xskfc.vue";
  53. import pblmRectifyReviewSituation from "./shuiku/shuiku2021/pblmRectifyReviewSituation_xskfc.vue";
  54. export default {
  55. components: {
  56. jichuxinxi: jichuxinxi,
  57. problemList: problemList,
  58. signature:signature,
  59. reservoirInspection: reservoirInspection,
  60. pblmRectifyReviewSituation: pblmRectifyReviewSituation
  61. },
  62. props: ['rowData', 'currentObjectRgstrId', 'currentResCode', 'currentObjectId', 'currentObjectName', 'pType', 'currentAdCode', 'currentRsvrNm', 'ifView'],
  63. data() {
  64. return {
  65. options: [
  66. {
  67. value: "jichuxinxi",
  68. label: "基础信息纠错"
  69. },
  70. {
  71. value: "reservoirInspection",
  72. label: '水库检查情况'
  73. },
  74. {
  75. value: "pblmRectifyReviewSituation",
  76. label: '问题整改复查情况'
  77. },
  78. {
  79. value: "problemList",
  80. label: '问题清单'
  81. },
  82. {
  83. value: "signature",
  84. label: '责任人签字'
  85. }
  86. ],
  87. value: "",
  88. dialogShow: false,
  89. currentViewId: "基础信息纠错",
  90. dialogFormVisible: true,
  91. activeLabel: '',
  92. signatureLabelList: ['行政责任人', '技术责任人', '巡查责任人','政府责任人','主管部门责任人','管理单位责任人']
  93. };
  94. },
  95. computed: {
  96. persId() {
  97. return localStorage.getItem("userid")
  98. ? localStorage.getItem("userid")
  99. : "1098101939614724096";
  100. },
  101. currentRlcode() {
  102. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  103. }
  104. },
  105. mounted() {
  106. },
  107. watch: {},
  108. methods: {
  109. submitHandler() {
  110. var _self = this;
  111. getRsByRgstrId(this.currentObjectRgstrId, this.pType).then(
  112. (res) => {
  113. if (res.data.baseStat == '0') {
  114. this.$message({
  115. message: '请填写重点环节落实情况!',
  116. type: 'warning'
  117. });
  118. return
  119. } else if (res.data.presStat == '0') {
  120. this.$message({
  121. message: '请填写责任人状态!',
  122. type: 'warning'
  123. });
  124. return
  125. } else if (res.data.resRunStat == '0') {
  126. this.$message({
  127. message: '请填写水库工程实体和运行管理情况!',
  128. type: 'warning'
  129. });
  130. return
  131. } else if (res.data.viewStat == '0') {
  132. this.$message({
  133. message: '走访用户状态!',
  134. type: 'warning'
  135. });
  136. return
  137. }
  138. this.$confirm('请确认所有信息填报完毕?', '提示', {
  139. confirmButtonText: '确定',
  140. cancelButtonText: '取消',
  141. type: 'warning'
  142. }).then(() => {
  143. let formObj = {
  144. "rgstrId": this.currentObjectRgstrId,
  145. "state": "2"
  146. }
  147. let url = '/dc/insp/rsvrRgstr/update';
  148. if (this.pType == 22) {
  149. url = '/bis/insp/rsml/rgstr';
  150. }
  151. request.post(url, formObj).then((res) => {
  152. if (res.success) {
  153. _self.$emit("addShuiKuSuccess");
  154. _self.$message.success("提交成功");
  155. } else {
  156. _self.$emit('cancelHandler');
  157. }
  158. });
  159. }).catch(() => {
  160. });
  161. }, (err) => {
  162. });
  163. },
  164. closeHandler() {
  165. this.dialogShow = false
  166. this.$emit("addShuiKuSuccess");
  167. },
  168. appearDialog(type) {
  169. this.dialogShow = true
  170. // this.problemSmallType = type
  171. },
  172. closePDialog() {
  173. this.dialogShow = false
  174. },
  175. showDialog() {
  176. this.dialogFormVisible = true;
  177. },
  178. cancelHandler() {
  179. this.$emit('cancelHandler');
  180. },
  181. addShuiKuSuccess() {
  182. this.$emit('addShuiKuSuccess');
  183. },
  184. closeDialog() {
  185. this.$confirm('确认退出吗?', '提示', {
  186. confirmButtonText: '确定',
  187. cancelButtonText: '取消',
  188. type: 'warning'
  189. }).then(() => {
  190. this.$emit('cancelHandler');
  191. }).catch(() => {
  192. });
  193. },
  194. tabIndexChange(item) {
  195. if (item.label == '问题清单') {
  196. this.activeLabel = item.label
  197. } else {
  198. this.activeLabel = ''
  199. }
  200. }
  201. }
  202. };
  203. </script>
  204. <style>
  205. #shuikutianbaoId .el-dialog {
  206. margin-top: 10vh;
  207. }
  208. </style>