From 6a324e6b1129af7347d455a23379694995db83f9 Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Fri, 11 Mar 2022 14:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/homesteadSurvey/fsss.js | 17 +--- src/api/homesteadSurvey/zrz.js | 18 +--- src/views/homesteadSurvey/add.vue | 158 +++++++++++++++++------------- 3 files changed, 100 insertions(+), 93 deletions(-) diff --git a/src/api/homesteadSurvey/fsss.js b/src/api/homesteadSurvey/fsss.js index d8ac8aa8..38d48d4d 100644 --- a/src/api/homesteadSurvey/fsss.js +++ b/src/api/homesteadSurvey/fsss.js @@ -60,18 +60,11 @@ export function getFsssZjdDmList(zjddm) { }) } -// 通过宅基地编码修改附属设施状态 -export function updateFsssZtN(zjddm) { - return request({ - url: '/houseSurvey/fsss/updateFsssZtN/' + zjddm, - method: 'get' - }) -} - -// 通过宅基地编码修改附属设施状态 -export function updateFsssZtY(zjddm) { +// 修改数据调查-附属设施 +export function updateFsssStatus(data) { return request({ - url: '/houseSurvey/fsss/updateFsssZtY/' + zjddm, - method: 'get' + url: '/houseSurvey/fsss/updateFsssStatus', + method: 'post', + data: data }) } diff --git a/src/api/homesteadSurvey/zrz.js b/src/api/homesteadSurvey/zrz.js index 3b0a1517..742fab71 100644 --- a/src/api/homesteadSurvey/zrz.js +++ b/src/api/homesteadSurvey/zrz.js @@ -69,19 +69,11 @@ export function getZrzZjdDmList(zjddm) { }) } -// 通过宅基地修改自然幢核查状态 -export function updateZrzZtN(zjddm) { - return request({ - url: '/houseSurvey/zrz/updateZrzZtN/' + zjddm, - method: 'get' - }) -} - -// 通过宅基地修改自然幢核查状态 -export function updateZrzZtY(zjddm) { +// 修改数据调查-自然幢 +export function updateZrzStatus(data) { return request({ - url: '/houseSurvey/zrz/updateZrzZtY/' + zjddm, - method: 'get' + url: '/houseSurvey/zrz/updateZrzStatus', + method: 'post', + data: data }) } - diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 494e12b6..a616206b 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -48,7 +48,7 @@
- +

附属物

@@ -446,35 +446,9 @@ placeholder="备注" maxlength="200" /> - -
- 保存 + 保存
@@ -607,10 +581,18 @@

添加附属设施信息

+
- 异常标记 - 签名确认 - 调查审核 + 异常标记 + 签名确认 + 调查审核
@@ -2757,9 +2739,9 @@ /> - + 清空画板 - 保存确认 + 保存提交
-
- 关闭 +
+ 保存
{ this.showPopupzrz(zrz) @@ -3222,8 +3193,8 @@ }else if(this.cookiesInfo.active=="4"){ this.showfsss= true - //this.form4.theGeom = this.cookiesInfo.mapFsssAData.theGeom; - this.form4.zjddm = this.form.zjddm; + this.form4 = this.cookiesInfo.mapFsssAData + this.form4.theGeom = this.cookiesInfo.mapFsssAData.theGeom; this.getFsssList() setTimeout(() => { this.showPopupfsss(fsss) @@ -3357,6 +3328,7 @@ if(this.active ==1){ //this.form.theGeom = this.item.theGeom; this.message = this.form.theGeom; + console.log(this.message); //this.$refs.drewingClickLoading = this.form.theGeom; this.mapClickLoading(); } @@ -3365,6 +3337,16 @@ }, methods: { + showPic(){ + if(this.form.dzqm!=null&&this.form.dzqm!=""){ + this.resultImg = this.baseUrl+this.form.dzqm + } + if(this.$cookies.get("businessLevel")=='2'){ + this.showsh = true + }else{ + this.showsh = false + } + }, validatorIdcard(val){ if(this.form1.shyqrdbzjlx=='01'){ if(this.vcheckID(val)){ @@ -3485,7 +3467,17 @@ this.form.auditRemark = this.auditRemark if(this.form.zjdAudit=='2'){ this.form.houseDataConfirmStatus = 'UNCONFIRMED' - this.form.dzqm = '' + let params = { + houseDataConfirmStatus : 'UNCONFIRMED', + zjddm : this.form.zjddm, + zjdAudit : "0" + } + updateZrzStatus(params).then(res => { + console.log(res) + }) + updateFsssStatus(params).then(res => { + console.log(res) + }) updateZjdzd(this.form).then(response => { let _this =this this.$toast({ @@ -3497,7 +3489,19 @@ } }) }); + }else{ + let params = { + houseDataConfirmStatus : 'CONFIRMED', + zjddm : this.form.zjddm, + zjdAudit : "1" + } + updateZrzStatus(params).then(res => { + console.log(res) + }) + updateFsssStatus(params).then(res => { + console.log(res) + }) updateZjdzd(this.form).then(response => { let _this =this this.$toast({ @@ -3509,12 +3513,30 @@ } }) }); + } }, saveyc(){ this.showycbj = false this.form.isyc = this.isyc this.form.ycms = this.ycms + let params = { + zjddm : this.form.zjddm, + isyc : this.form.isyc + } + updateZrzStatus(params).then(res => {}) + updateFsssStatus(params).then(res => {}) + updateZjdzd(this.form).then(response => { + let _this =this + this.$toast({ + icon: 'success', // 找到自己需要的图标 + message: '保存成功', + duration:"1000", + onClose:function(){ + _this.showycbj = false + } + }) + }); }, // 图片上传前 beforeReadyc(file){ @@ -3586,6 +3608,7 @@ configKey: "system.attachment.url"} sysConfig(params).then(response => { this.baseUrl = response.rows[0].configValue + console.log(this.baseUrl) }) }, // 验证 @@ -5861,13 +5884,13 @@ uploadFile(data2).then(res => { this.form.dzqm = res.fileName this.form.houseDataConfirmStatus = "CONFIRMED" - if(this.form.zjddm !="" && this.form.zjddm !=undefined && this.form.zjddm !=null && this.form.isyc =="N"){ - updateZrzZtN(this.form.zjddm).then(response => {}); - updateFsssZtN(this.form.zjddm).then(response => {}); - }else { - updateZrzZtY(this.form.zjddm).then(response => {}); - updateFsssZtY(this.form.zjddm).then(response => {}); + this.form.zjdAudit = '0' + let param ={ + zjddm : this.item.zjddm, + houseDataConfirmStatus : "CONFIRMED" } + updateZrzStatus(param).then(res => {}) + updateFsssStatus(param).then(res => {}) if (this.form.id != null) { updateZjdzd(this.form).then(response => { let _this =this @@ -5896,6 +5919,8 @@ }) }, 200); }else{ + this.form.houseDataConfirmStatus = "CONFIRMED" + this.form.zjdAudit = '0' updateZjdzd(this.form).then(response => { let _this =this this.$toast({ @@ -5912,9 +5937,6 @@ }, searchCommit(){ this.showesign = true - if(this.form.dzqm!=null&&this.form.dzqm!=""){ - this.resultImg = this.baseUrl+this.form.dzqm - } }, searchCommit1(){ this.form.houseDataConfirmStatus = "CONFIRMED"