b874bd4326d25c96ec144bc14a2b36ffd1ff916d.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 zerenren from "./shuiku/zeRenRenNew.vue";
  49. import aqglsjZeRenRenNew from "./shuiku/aqglsjZeRenRenNew.vue";
  50. import aqglsjZeRenRenNewDsk from "./shuiku/aqglsjZeRenRenNewDsk.vue";
  51. import zerenrenFujian from "./shuiku/zeRenRenNewFujian.vue"
  52. import yunxingguanliFujian from "./shuiku/yunxingguanliFujian.vue"
  53. import jichuxinxiFujian from "./shuiku/jichuxinxiFujian.vue"
  54. import gongchengshitiFujian from "./shuiku/gongchengshitiFujian.vue"
  55. import zerenrenFive from "./shuiku/zeRenRenFive.vue";
  56. import gongchengshiti from "./shuiku/gongchengshiti.vue"
  57. import anquanjianding from "./shuiku/anquanjianding.vue"
  58. import yunxingguanli from "./shuiku/yunxingguanli.vue"
  59. import anquanyunxing from "./shuiku/anquanyunxing.vue"
  60. import jichuxinxi from "./shuiku/jichuxinxiFujian2021.vue"
  61. import zhongdianhuanjie from "../zonghexinxi/zhongdianluoshiNew.vue"
  62. import effection from "./rsvrFill/effection.vue"
  63. import zoufangqingkuang from './shuiku/zeRenRen.1.vue'
  64. import problemList from './rsvrProblemList.vue'
  65. import problemDialog from '../duChaWenTi/problemDialog.vue'
  66. import signature from './components/signature.vue'
  67. import {getRsByRgstrId} from "@api/duChaTianBao.js";
  68. import reservoirInspection from "./shuiku/shuiku2021/reservoirInspectionFujian2021.vue";
  69. import pblmRectifyReviewSituation from "./shuiku/shuiku2021/pblmRectifyReviewSituation.vue";
  70. import pblmMend from "./shuiku/shuiku2021/pblmMend.vue";
  71. import {optionsForNation,optionsForFujian, optionsForFujianDsk} from './shuiku/forDifferentProvince.js'
  72. export default {
  73. components: {
  74. zerenren: zerenren,
  75. zerenrenFujian,
  76. gongchengshitiFujian,
  77. zerenrenFive: zerenrenFive,
  78. gongchengshiti: gongchengshiti,
  79. yunxingguanli: yunxingguanli,
  80. yunxingguanliFujian,
  81. jichuxinxi: jichuxinxi,
  82. jichuxinxiFujian,
  83. zhongdianhuanjie: zhongdianhuanjie,
  84. effection: effection,
  85. zoufangqingkuang: zoufangqingkuang,
  86. problemDialog: problemDialog,
  87. problemList: problemList,
  88. signature,
  89. anquanyunxing,
  90. anquanjianding,
  91. aqglsjZeRenRenNew,
  92. aqglsjZeRenRenNewDsk,
  93. reservoirInspection: reservoirInspection,
  94. pblmRectifyReviewSituation: pblmRectifyReviewSituation,
  95. pblmMend: pblmMend
  96. },
  97. props: ['rowData', 'currentObjectRgstrId', 'currentResCode', 'currentObjectId', 'currentObjectName', 'pType', 'currentAdCode', 'currentRsvrNm', 'ifView'],
  98. data() {
  99. return {
  100. options: [
  101. {
  102. value: "jichuxinxi",
  103. label: "基础信息纠错"
  104. },
  105. {
  106. value: "problemList",
  107. label: '问题清单'
  108. },
  109. // {
  110. // value: "reservoirInspection",
  111. // label: '水库检查情况'
  112. // },
  113. // {
  114. // value: "pblmRectifyReviewSituation",
  115. // label: '问题整改复查情况'
  116. // },
  117. {
  118. value: "signature",
  119. label: '责任人签字'
  120. }
  121. ],
  122. options_sc: [
  123. {
  124. value: "jichuxinxi",
  125. label: "基础信息纠错"
  126. },
  127. {
  128. value: "problemList",
  129. label: '问题清单'
  130. },
  131. {
  132. value: "pblmMend",
  133. label: '问题整改复查(四川)'
  134. },
  135. {
  136. value: "signature",
  137. label: '责任人签字'
  138. }
  139. ],
  140. value: "",
  141. dialogShow: false,
  142. currentViewId: "基础信息纠错",
  143. dialogFormVisible: true,
  144. activeLabel: '',
  145. signatureLabelList: ['行政责任人', '技术责任人', '巡查责任人','政府责任人','主管部门责任人','管理单位责任人']
  146. };
  147. },
  148. computed: {
  149. persId() {
  150. return localStorage.getItem("userid")
  151. ? localStorage.getItem("userid")
  152. : "1098101939614724096";
  153. },
  154. currentRlcode() {
  155. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  156. }
  157. },
  158. mounted() {
  159. if(window.location.href.indexOf("101.207.130.194")>-1){
  160. this.options = this.options_sc
  161. }
  162. // if (this.pType == 22 || this.pType == 36) {
  163. // this.options = optionsForFujianDsk;
  164. // } else {
  165. // this.options = optionsForFujian;
  166. // }
  167. // if(this.currentRlcode.indexOf('36') == '0'){ //江西省
  168. // this.options = optionsForFujian;
  169. // }else if(this.currentRlcode.indexOf('35') == '0' && this.pType==1){
  170. // this.options = optionsForFujian;
  171. // }
  172. // else if(this.currentRlcode.indexOf('35') == '0' && this.pType==22){
  173. // this.options = optionsForFujianDsk;
  174. // } else{
  175. // this.options = optionsForNation //通用
  176. // }
  177. if ((this.currentRlcode.indexOf('63') == '0' || this.currentRlcode.indexOf('66') == '0') && this.pType == 1) { //青海省小水库
  178. this.options = optionsForFujian;
  179. } else if (this.currentRlcode.indexOf('53') == '0' && this.pType == 1) {
  180. this.options = optionsForNation;
  181. } else if (this.pType == 22) { //大中水库
  182. this.options = optionsForFujianDsk;
  183. }
  184. },
  185. watch: {},
  186. methods: {
  187. submitHandler() {
  188. var _self = this;
  189. getRsByRgstrId(this.currentObjectRgstrId, this.pType).then(
  190. (res) => {
  191. if (res.data.baseStat == '0') {
  192. this.$message({
  193. message: '请填写重点环节落实情况!',
  194. type: 'warning'
  195. });
  196. return
  197. } else if (res.data.presStat == '0') {
  198. this.$message({
  199. message: '请填写责任人状态!',
  200. type: 'warning'
  201. });
  202. return
  203. } else if (res.data.resRunStat == '0') {
  204. this.$message({
  205. message: '请填写水库工程实体和运行管理情况!',
  206. type: 'warning'
  207. });
  208. return
  209. } else if (res.data.viewStat == '0') {
  210. this.$message({
  211. message: '走访用户状态!',
  212. type: 'warning'
  213. });
  214. return
  215. }
  216. this.$confirm('请确认所有信息填报完毕?', '提示', {
  217. confirmButtonText: '确定',
  218. cancelButtonText: '取消',
  219. type: 'warning'
  220. }).then(() => {
  221. let formObj = {
  222. "rgstrId": this.currentObjectRgstrId,
  223. "state": "2"
  224. }
  225. let url = '/dc/insp/rsvrRgstr/update';
  226. if (this.pType == 22) {
  227. url = '/bis/insp/rsml/rgstr';
  228. }
  229. request.post(url, formObj).then((res) => {
  230. if (res.success) {
  231. _self.$emit("addShuiKuSuccess");
  232. _self.$message.success("提交成功");
  233. } else {
  234. _self.$emit('cancelHandler');
  235. }
  236. });
  237. }).catch(() => {
  238. });
  239. }, (err) => {
  240. });
  241. },
  242. closeHandler() {
  243. this.dialogShow = false
  244. this.$emit("addShuiKuSuccess");
  245. },
  246. appearDialog(type) {
  247. this.dialogShow = true
  248. // this.problemSmallType = type
  249. },
  250. closePDialog() {
  251. this.dialogShow = false
  252. },
  253. showDialog() {
  254. this.dialogFormVisible = true;
  255. },
  256. cancelHandler() {
  257. this.$emit('cancelHandler');
  258. },
  259. addShuiKuSuccess() {
  260. this.$emit('addShuiKuSuccess');
  261. },
  262. closeDialog() {
  263. this.$confirm('确认退出吗?', '提示', {
  264. confirmButtonText: '确定',
  265. cancelButtonText: '取消',
  266. type: 'warning'
  267. }).then(() => {
  268. this.$emit('cancelHandler');
  269. }).catch(() => {
  270. });
  271. },
  272. tabIndexChange(item) {
  273. if (item.label == '问题清单') {
  274. this.activeLabel = item.label
  275. } else {
  276. this.activeLabel = ''
  277. }
  278. }
  279. }
  280. };
  281. </script>
  282. <style>
  283. #shuikutianbaoId .el-dialog {
  284. margin-top: 10vh;
  285. }
  286. </style>