From 60c51aadbaea386094b6f23d611dd939ec5257f7 Mon Sep 17 00:00:00 2001 From: xyq <392009588@qq.com> Date: Thu, 1 Jun 2023 08:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?= =?UTF-8?q?=E3=80=81=E5=AE=B6=E5=BA=AD=E6=88=90=E5=91=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/add4.vue | 21 +++++-- src/views/homesteadSurvey/hncyList2.vue | 62 ++++--------------- src/views/homesteadSurvey/index.vue | 6 +- src/views/homesteadSurvey/list.vue | 4 -- src/views/homesteadSurvey/nhcyList.vue | 20 +++++- src/views/homesteadSurvey/nmfwAdd.vue | 2 +- .../familyMember/familyMemberList.vue | 5 +- src/views/sunVillage_info/login_code.vue | 10 ++- 8 files changed, 63 insertions(+), 67 deletions(-) diff --git a/src/views/homesteadSurvey/add4.vue b/src/views/homesteadSurvey/add4.vue index dbd27a50..9f1087fc 100644 --- a/src/views/homesteadSurvey/add4.vue +++ b/src/views/homesteadSurvey/add4.vue @@ -63,7 +63,7 @@

- {{item.fssslx}} + {{ formatDict(fssslxList, item.fssslx) }}

建筑面积(㎡):

@@ -71,7 +71,7 @@

建筑物情况:

-

{{item.jzwqk}}

+

{{ formatDict(jzwqkList, item.jzwqk) }}

@@ -173,6 +173,8 @@ export default { permission:false, bztp:"", ycbz:"", + jzwqkList:[], + fssslxList:[], examineData:[{dictLabel:"审批通过",dictValue:"5"},{dictLabel:"审批驳回",dictValue:"4"}], zjdzdxx:{surveyStatus:"5"}, fssslist:[], @@ -187,13 +189,19 @@ export default { }; }, created(){ + this.houseGetDicts("jzwqk").then((response) => { + this.jzwqkList = response.data; + }); + this.houseGetDicts("fsss_type").then((response) => { + this.fssslxList = response.data; + }); this.zjdzdxx = JSON.parse(localStorage.getItem("zjdzdxxItem")); this.permission = localStorage.getItem("executePermission"); let businessLevel = this.$store.state.user.businessLevel; + console.info(this.zjdzdxx); if(this.zjdzdxx.surveySign != null){ this.signature.resultImg = this.$store.getters.baseRoutingUrl+this.zjdzdxx.surveySign; } - console.info(businessLevel); if(this.zjdzdxx.id !== undefined){ getZjdzd(this.zjdzdxx.id).then((response) => { if(response.data.surveyStatus !== "1" && businessLevel === "2"){ @@ -293,12 +301,12 @@ export default { zjddcSign(param, this.zjdzdxx.zjddm).then(response => { this.$notify({type: 'success', message: '签字成功'}); this.showesign = false; - // location.reload(); getZjdzd(this.zjdzdxx.id).then((response) => { localStorage.setItem("zjdzdxxItem",JSON.stringify(response.data)) + location.reload(); }); - this.getList(); + }); }) @@ -307,6 +315,9 @@ export default { this.$toast.fail('请签名后再保存签字'); }); }, + formatDict(dict, value) { + return this.selectDictLabel(dict, value); + }, dataURLtoBlob (dataurl, filename = 'file') { let arr = dataurl.split(',') let mime = arr[0].match(/:(.*?);/)[1] diff --git a/src/views/homesteadSurvey/hncyList2.vue b/src/views/homesteadSurvey/hncyList2.vue index 79ef6438..70d82b68 100644 --- a/src/views/homesteadSurvey/hncyList2.vue +++ b/src/views/homesteadSurvey/hncyList2.vue @@ -566,57 +566,21 @@ }, //删除户主 deletenh(item,index){ - let yes = true - let params={ - nhdm : item.nhdm, - deptId: item.deptId - } - listNhhncy(params).then((res) => { - console.log(res.rows.length) - if(res.rows.length>0){ - yes = false - this.$toast({ - icon: 'error', // 找到自己需要的图标 - message: '无法删除,此户主存在户内成员!', - duration:"1000", - onClose:function(){ + Dialog.confirm({ + title: '警告', + message: '确认删除户内成员么?', + }) + .then(() => { + // on confirm + delNhhncy(item.id).then(res => { + if(res.code=="200"){ + this.hncylist.splice(index,1); } }) - }else{ - listShyqr(params).then((res) => { - if(res.rows.length>0){ - yes = false - this.$toast({ - icon: 'error', // 找到自己需要的图标 - message: '无法删除,此户主已经成为使用权人!', - duration:"1000", - onClose:function(){ - } - }) - }else{ - if(yes){ - Dialog.confirm({ - title: '警告', - message: '确认删除此使用权人么?', - }) - .then(() => { - // on confirm - delNh(item.id).then(res => { - if(res.code=="200"){ - this.nhlist.splice(index,1); - this.totalH-- - this.totalR-- - } - }) - }) - .catch(() => { - // on cancel - }); - } - } - }); - } - }); + }) + .catch(() => { + // on cancel + }); }, // 设为户主 diff --git a/src/views/homesteadSurvey/index.vue b/src/views/homesteadSurvey/index.vue index 2dbca579..d6a65fe0 100644 --- a/src/views/homesteadSurvey/index.vue +++ b/src/views/homesteadSurvey/index.vue @@ -84,7 +84,7 @@ size="70%" layer-color="#ebedf0" :color="chooseColor(item)" - :text="item.zjdwcsl!=0?(((item.zjdwcsl/item.zjdsl)*100).toFixed(2))+'%':0+'%'" + :text="item.zjdwcsl!=0?(item.zjdwcsl == item.zjdsl?100+'%':(((item.zjdwcsl/item.zjdsl)*100).toFixed(2))+'%'):0+'%'" />