8bf81c6dedc3bc24df3b44a216fe1d3f14f8fb35.svn-base 6.1 KB

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