e9bd36b48b10343942f2b7baf85e9385404749ae.svn-base 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <template>
  2. <div>
  3. <!-- <el-dialog :title="'责任人填报'" :visible.sync="dialogFormVisible"> -->
  4. <el-container style="height:520px;">
  5. <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;">
  6. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">信息填报</p>
  7. <el-form :model="formObj" :label-width="formLabelWidth" :rules="rules">
  8. <el-form-item v-if="pType==56" label="县级党委政府或者县级水利、住建、工信、住建、农业农村等任一部门是否将用水强度控制纳入2020年度工作任务" :required="true">
  9. <el-radio v-model="formObj.isWtuIn" label="1">是</el-radio>
  10. <el-radio v-model="formObj.isWtuIn" label="2">否</el-radio>
  11. <el-radio v-model="formObj.isWtuIn" label="3">部分</el-radio>
  12. <el-button
  13. @click="addProblem('isWtuIn',formObj.isWtuIn)"
  14. type="text"
  15. v-if="formObj.isWtuIn =='2' || formObj.isWtuIn =='3'">
  16. <i class="el-icon-circle-plus add-problem-icon"></i>
  17. </el-button>
  18. <i @click="showPic('isWtuIn')" class="el-icon-camera-solid" v-if="formObj.isWtuIn =='1'"></i>
  19. </el-form-item>
  20. <p style="margin-top:10px;margin-bottom: 10px"><i class="el-icon-caret-right"></i><span style="width:120px;padding-left: 10px">取水许可管理对象</span><span class="hrs"></span></p>
  21. <el-form-item label="2019年和2020年是否按时下达计划用水" :required="true">
  22. <el-radio v-model="formObj.isPlanWt" label="1">是</el-radio>
  23. <el-radio v-model="formObj.isPlanWt" label="2">否</el-radio>
  24. <el-radio v-model="formObj.isPlanWt" label="3">部分</el-radio>
  25. <el-button
  26. @click="addProblem('isPlanWt',formObj.isPlanWt)"
  27. type="text"
  28. v-if="formObj.isPlanWt =='2' || formObj.isPlanWt =='3'">
  29. <i class="el-icon-circle-plus add-problem-icon"></i>
  30. </el-button>
  31. <i @click="showPic('isPlanWt')" class="el-icon-camera-solid" v-if="formObj.isPlanWt =='1'"></i>
  32. </el-form-item>
  33. <el-form-item label="2019年和2020年计划用水下达是否规范" :required="true">
  34. <el-radio v-model="formObj.isNorm" label="1">是</el-radio>
  35. <el-radio v-model="formObj.isNorm" label="2">否</el-radio>
  36. <el-radio v-model="formObj.isNorm" label="3">部分</el-radio>
  37. <el-button
  38. @click="addProblem('isNorm',formObj.isNorm)"
  39. type="text"
  40. v-if="formObj.isNorm =='2' || formObj.isNorm =='3'">
  41. <i class="el-icon-circle-plus add-problem-icon"></i>
  42. </el-button>
  43. <i @click="showPic('isNorm')" class="el-icon-camera-solid" v-if="formObj.isNorm =='1'"></i>
  44. </el-form-item>
  45. <el-form-item label="2019年超计划用水是否累进征收水资源费" :required="true">
  46. <el-radio v-model="formObj.isOplanPay" label="1">是</el-radio>
  47. <el-radio v-model="formObj.isOplanPay" label="2">否</el-radio>
  48. <el-radio v-model="formObj.isOplanPay" label="3">部分</el-radio>
  49. <el-radio v-model="formObj.isOplanPay" label="4">无超计划</el-radio>
  50. <el-button
  51. @click="addProblem('isOplanPay',formObj.isOplanPay)"
  52. type="text"
  53. v-if="formObj.isOplanPay =='2' || formObj.isOplanPay =='3'">
  54. <i class="el-icon-circle-plus add-problem-icon"></i>
  55. </el-button>
  56. <i @click="showPic('isOplanPay')" class="el-icon-camera-solid" v-if="formObj.isOplanPay =='1' || formObj.isOplanPay =='4'"></i>
  57. </el-form-item>
  58. <p style="margin-top:10px;margin-bottom: 10px"><i class="el-icon-caret-right"></i><span style="width:120px;padding-left: 10px">公共管网供水重点用水户</span><span class="hrs"></span></p>
  59. <el-form-item label="是否建立应纳入计划用水管理的重点用水户名录" :required="true">
  60. <el-radio v-model="formObj.isBuldPwt" label="1">是</el-radio>
  61. <el-radio v-model="formObj.isBuldPwt" label="2">否</el-radio>
  62. <el-button
  63. @click="addProblem('isBuldPwt',formObj.isBuldPwt)"
  64. type="text"
  65. v-if="formObj.isBuldPwt =='2'">
  66. <i class="el-icon-circle-plus add-problem-icon"></i>
  67. </el-button>
  68. <i @click="showPic('isBuldPwt')" class="el-icon-camera-solid" v-if="formObj.isBuldPwt =='1'"></i>
  69. </el-form-item>
  70. <el-form-item label="是否出台非居民用水计划用水管理办法" :required="true">
  71. <el-radio v-model="formObj.isPubWtpl" label="1">是</el-radio>
  72. <el-radio v-model="formObj.isPubWtpl" label="2">否</el-radio>
  73. <el-button
  74. @click="addProblem('isPubWtpl',formObj.isPubWtpl)"
  75. type="text"
  76. v-if="formObj.isPubWtpl =='2'">
  77. <i class="el-icon-circle-plus add-problem-icon"></i>
  78. </el-button>
  79. <i @click="showPic('isPubWtpl')" class="el-icon-camera-solid" v-if="formObj.isPubWtpl =='1'"></i>
  80. </el-form-item>
  81. <el-form-item label="2019年和2020年是否按时下达计划用水" :required="true">
  82. <el-radio v-model="formObj.isPubPlan" label="1">是</el-radio>
  83. <el-radio v-model="formObj.isPubPlan" label="2">否</el-radio>
  84. <el-radio v-model="formObj.isPubPlan" label="3">部分</el-radio>
  85. <el-button
  86. @click="addProblem('isPubPlan',formObj.isPubPlan)"
  87. type="text"
  88. v-if="formObj.isPubPlan =='2' || formObj.isPubPlan =='3'">
  89. <i class="el-icon-circle-plus add-problem-icon"></i>
  90. </el-button>
  91. <i @click="showPic('isPubPlan')" class="el-icon-camera-solid" v-if="formObj.isPubPlan =='1'"></i>
  92. </el-form-item>
  93. <el-form-item label="2019年和2020年超计划用水是否累进征收水费" :required="true">
  94. <el-radio v-model="formObj.isOplanApay" label="1">是</el-radio>
  95. <el-radio v-model="formObj.isOplanApay" label="2">否</el-radio>
  96. <el-radio v-model="formObj.isOplanApay" label="3">部分</el-radio>
  97. <el-radio v-model="formObj.isOplanApay" label="4">无超计划</el-radio>
  98. <el-button
  99. @click="addProblem('isOplanApay',formObj.isOplanApay)"
  100. type="text"
  101. v-if="formObj.isOplanApay =='2' || formObj.isOplanApay =='3'">
  102. <i class="el-icon-circle-plus add-problem-icon"></i>
  103. </el-button>
  104. <i @click="showPic('isOplanApay')" class="el-icon-camera-solid" v-if="formObj.isOplanApay =='1' || formObj.isOplanApay =='4'"></i>
  105. </el-form-item>
  106. <el-form-item label="2019年城市公共供水管网漏损率是否低于上级下达的控制目标" :required="true">
  107. <el-radio v-model="formObj.isPipeLowc" label="1">是</el-radio>
  108. <el-radio v-model="formObj.isPipeLowc" label="2">否</el-radio>
  109. <el-button
  110. @click="addProblem('isPipeLowc',formObj.isPipeLowc)"
  111. type="text"
  112. v-if="formObj.isPipeLowc =='2'">
  113. <i class="el-icon-circle-plus add-problem-icon"></i>
  114. </el-button>
  115. <i @click="showPic('isPipeLowc')" class="el-icon-camera-solid" v-if="formObj.isPipeLowc =='1'"></i>
  116. </el-form-item>
  117. <el-form-item v-if="pType==53" label="非常规水源是否纳入水资源统一配置。(仅检查福州、厦门、莆田、泉州、漳州市)" :required="true">
  118. <el-radio v-model="formObj.isNwtInc" label="1">是</el-radio>
  119. <el-radio v-model="formObj.isNwtInc" label="2">否</el-radio>
  120. <el-button
  121. @click="addProblem('isNwtInc',formObj.isNwtInc)"
  122. type="text"
  123. v-if="formObj.isNwtInc =='2'">
  124. <i class="el-icon-circle-plus add-problem-icon"></i>
  125. </el-button>
  126. <i @click="showPic('isNwtInc')" class="el-icon-camera-solid" v-if="formObj.isNwtInc =='1'"></i>
  127. </el-form-item>
  128. <el-form-item v-if="pType==53" label="再生水使用量2019年是否比2018年增加" :required="true">
  129. <el-radio v-model="formObj.isAddWt" label="1">是</el-radio>
  130. <el-radio v-model="formObj.isAddWt" label="2">否</el-radio>
  131. <el-button
  132. @click="addProblem('isAddWt',formObj.isAddWt)"
  133. type="text"
  134. v-if="formObj.isAddWt =='2'">
  135. <i class="el-icon-circle-plus add-problem-icon"></i>
  136. </el-button>
  137. <i @click="showPic('isAddWt')" class="el-icon-camera-solid" v-if="formObj.isAddWt =='1'"></i>
  138. </el-form-item>
  139. <el-form-item label="">
  140. <el-button type="primary" @click="addHandler" v-if="openType">保 存</el-button>
  141. </el-form-item>
  142. </el-form>
  143. </el-main>
  144. <problem-dialog
  145. v-if="showAddProblemDialog && openType"
  146. :objType="pType"
  147. :villType="pType"
  148. :objId="currentObjectId"
  149. :objName="currentObjectName"
  150. :problemMiddleType="'取水许可管理复核'"
  151. :problData="probId"
  152. @closeDialog="closePlDialog"
  153. :currentObjectRgstrId="currentObjectRgstrId"
  154. ></problem-dialog>
  155. <add-pic-com v-if="jqmmDialogShow" :dialogTitle="'相关材料'" :jqmmEngId="id" :type="type" :openType="openType" @jqmmDialogClose="jqmmDialogClose"></add-pic-com>
  156. </el-container>
  157. </div>
  158. </template>
  159. <script>
  160. import inputWith from "@widget/inuptWith.vue"
  161. import problemDialog from "../../duChaWenTi/problemDialog.vue";
  162. import addPicCom from "./addPic.vue"
  163. import request from "@util/gw_ajax_request.js"
  164. import {getRgstridWrwsWtup} from "@api/duChaTianBao.js"
  165. import {formatDateTimeD} from "@util/gw_date.js"
  166. export default {
  167. components: {
  168. inputWith: inputWith,
  169. problemDialog,
  170. addPicCom
  171. },
  172. props: ['currentObjectId','currentObjectName','currentObjectRgstrId','pType','openType'],
  173. data() {
  174. var checkTel = (rule, value, callback) => {
  175. var isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/;//座机
  176. var isMob= /^[1][3,4,5,7,8][0-9]{9}$/;// 座机格式
  177. if (value&&!isMob.test(value)&&!isPhone.test(value)) {
  178. callback(new Error('请输入合理电话'));
  179. } else if(value&&(isMob.test(value)||isPhone.test(value))){
  180. callback();
  181. }
  182. // setTimeout(() => {
  183. // }, 1000);
  184. };
  185. return {
  186. id:"",
  187. objtbStatu:{
  188. wtupState:"",
  189. rgstrId:"",
  190. id:"",
  191. state:""
  192. },
  193. rules:{
  194. wiunWaoLegPersTel:[
  195. { validator: checkTel,trigger: 'blur' }
  196. ],
  197. techPersTel:[
  198. { validator: checkTel,trigger: 'blur' }
  199. ],
  200. patrolPersTel:[
  201. { validator: checkTel,trigger: 'blur' }
  202. ],
  203. },
  204. jqmmDialogShow: false,
  205. type: '',
  206. formObj: {
  207. isWtuIn:"",
  208. isPlanWt:"",
  209. planWtNum:"",
  210. planWtNote:"",
  211. isNorm:"",
  212. noNormNum:"",
  213. noNormNote:"",
  214. isOplanPay:"",
  215. oplanNum:"",
  216. oplanNote:"",
  217. isBuldPwt:"",
  218. isPubWtpl:"",
  219. isPubPlan:"",
  220. noPubNum:"",
  221. noPubNote:"",
  222. isOplanApay:"",
  223. noOplanNum:"",
  224. noOplanNote:"",
  225. isPipeLowc:"",
  226. isNwtInc:"",
  227. isAddWt:""
  228. },
  229. dialogFormVisible: false,
  230. formLabelWidth: '180px',
  231. loading: true,
  232. operationType1:'',
  233. rsvrRules: null,
  234. probId: '',
  235. showAddProblemDialog: false
  236. }
  237. },
  238. computed:{
  239. recPersId(){
  240. return localStorage.getItem("userid")? localStorage.getItem("userid"): ''
  241. }
  242. },
  243. created(){
  244. this.findItemByType()
  245. },
  246. mounted() {
  247. this.getRgstridObj();
  248. },
  249. watch: {
  250. currentObjectRgstrId(n,o){
  251. this.getRgstridObj();
  252. },
  253. },
  254. methods: {
  255. jqmmDialogClose() {
  256. this.jqmmDialogShow = false;
  257. },
  258. showPic(type){
  259. this.type = type
  260. this.jqmmDialogShow = true
  261. },
  262. getRgstridObj(){
  263. var _self = this;
  264. getRgstridWrwsWtup(_self.currentObjectRgstrId,_self.pType).then((res)=>{
  265. _self.formObj = res.data;
  266. _self.id = res.data.id;
  267. });
  268. },
  269. addHandler(){
  270. var _self = this;
  271. _self.formObj['rgstrId'] = _self.currentObjectRgstrId;
  272. _self.formObj['recPersId'] = _self.recPersId;
  273. _self.objtbStatu.rgstrId = _self.currentObjectRgstrId;
  274. _self.objtbStatu.id = _self.currentObjectRgstrId;
  275. if(_self.pType==53){
  276. if(this.formObj.isPlanWt!=null &&
  277. this.formObj.isNorm!=null &&
  278. this.formObj.isOplanPay!=null &&
  279. this.formObj.isBuldPwt!=null &&
  280. this.formObj.isPubWtpl!=null &&
  281. this.formObj.isPubPlan!=null &&
  282. this.formObj.isOplanApay!=null &&
  283. this.formObj.isPipeLowc!=null &&
  284. this.formObj.isNwtInc!=null &&
  285. this.formObj.isAddWt!=null){
  286. this.objtbStatu.wtupState = "2"
  287. this.objtbStatu.state = "1"
  288. }else if(this.formObj.isPlanWt==null &&
  289. this.formObj.isNorm==null &&
  290. this.formObj.isOplanPay==null &&
  291. this.formObj.isBuldPwt==null &&
  292. this.formObj.isPubWtpl==null &&
  293. this.formObj.isPubPlan==null &&
  294. this.formObj.isOplanApay==null &&
  295. this.formObj.isPipeLowc==null &&
  296. this.formObj.isNwtInc==null &&
  297. this.formObj.isAddWt==null
  298. ){
  299. this.objtbStatu.wtupState = "0"
  300. this.objtbStatu.state = "0"
  301. }else{
  302. this.objtbStatu.wtupState = "1"
  303. this.objtbStatu.state = "1"
  304. }
  305. }
  306. if(_self.pType==56){
  307. if(this.formObj.isWtuIn!=null &&
  308. this.formObj.isPlanWt!=null &&
  309. this.formObj.isNorm!=null &&
  310. this.formObj.isOplanPay!=null &&
  311. this.formObj.isBuldPwt!=null &&
  312. this.formObj.isPubWtpl!=null &&
  313. this.formObj.isPubPlan!=null &&
  314. this.formObj.isOplanApay!=null &&
  315. this.formObj.isPipeLowc!=null){
  316. this.objtbStatu.wtupState = "2"
  317. this.objtbStatu.state = "1"
  318. }else if(this.formObj.isWtuIn==null &&
  319. this.formObj.isPlanWt==null &&
  320. this.formObj.isNorm==null &&
  321. this.formObj.isOplanPay==null &&
  322. this.formObj.isBuldPwt==null &&
  323. this.formObj.isPubWtpl==null &&
  324. this.formObj.isPubPlan==null &&
  325. this.formObj.isOplanApay==null &&
  326. this.formObj.isPipeLowc==null){
  327. this.objtbStatu.wtupState = "0"
  328. this.objtbStatu.state = "0"
  329. }else{
  330. this.objtbStatu.wtupState = "1"
  331. this.objtbStatu.state = "1"
  332. }
  333. }
  334. var url = "";
  335. var urls = "";
  336. url = (_self.pType==53?"/bis/insp/wrws/wtup":"/bis/insp/wrwx/wtup");
  337. urls = (_self.pType==53?"/bis/insp/wrws":"/bis/insp/wrwx");
  338. this.$confirm('确认保存现场督查情况信息?', '提示', {
  339. confirmButtonText: '确定',
  340. cancelButtonText: '取消',
  341. type: 'warning'
  342. })
  343. .then(() => {
  344. try{
  345. request.post(url,_self.formObj).then((res)=>{
  346. if (res.success) {
  347. _self.$message.success("修改成功");
  348. request.post(urls,_self.objtbStatu).then((res)=>{
  349. res;
  350. })
  351. _self.$emit("addShuiKuSuccess");
  352. }
  353. });
  354. } catch(e) {
  355. }
  356. })
  357. .catch(() => {
  358. });
  359. },
  360. cancelHandler(){
  361. this.$emit('cancelHandler');
  362. },
  363. findItemByType(){
  364. const obj ={
  365. tname: "BIS_INSP_WRWS_RGSTR_WTUP",
  366. type:this.pType
  367. }
  368. request.post("/bis/insp/item/ques/info/findItemByType",obj).then(res =>{
  369. this.rsvrRules = res.data;
  370. })
  371. },
  372. addProblem(item,iValue){
  373. let rest = this.rsvrRules.filter(e => {
  374. return e.iValue === iValue && e.eName === item;
  375. });
  376. if (rest[0]){
  377. this.probId = rest[0].id;
  378. }
  379. this.showAddProblemDialog = true;
  380. },
  381. formatRadio(val){
  382. if(val == '1'){
  383. return '是'
  384. }else if(val == '2'){
  385. return '否'
  386. }else{
  387. return val
  388. }
  389. },
  390. closePlDialog(val) {
  391. this.showAddProblemDialog = false;
  392. }
  393. },
  394. }
  395. </script>
  396. <style scoped>
  397. #dcdxHeader {
  398. padding: 15px 20px;
  399. }
  400. #dxdcFooter {
  401. text-align: center;
  402. }
  403. #dxdcAside {
  404. border:1px solid #d5d5ff;
  405. }
  406. .el-dialog__wrapper .el-treeWhite{
  407. /* max-height: 260px !important; */
  408. }
  409. .add-problem-icon{
  410. font-size: 16px;
  411. }
  412. .el-icon-camera-solid,.el-icon-circle-plus{
  413. margin-left: 20px;
  414. color: #00bbff;
  415. font-size: 18px;
  416. line-height: 12px;
  417. vertical-align: middle;
  418. cursor: pointer;
  419. }
  420. .el-icon-circle-plus{
  421. vertical-align: top;
  422. }
  423. </style>