diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 3135e4e9..48c4961b 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -582,8 +582,8 @@
- - 签名确认 + 异常标记 + 签名确认
@@ -772,7 +772,6 @@ name="电话" label="电话" placeholder="电话" - type="number" /> 保存签名 + + + + + +
+ 关闭 +
+
{ const h = img.height const w = img.width - let ch = img.height/2 - let cw = img.width/2 + let ch = img.height/4 + let cw = img.width/4 let canvas = document.createElement('canvas') let ctx = canvas.getContext('2d') canvas.height = ch @@ -3468,6 +3497,7 @@ d.push(blobBin.charCodeAt(i)) } const data2 = new FormData(); + console.log(d) data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'})); uploadFile(data2).then(res => { if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){ @@ -3482,8 +3512,10 @@ deleteFilezjd(file){ let url = ","+file.baseUrl let url1 = file.baseUrl+"," + let url2 = file.baseUrl this.form.zjdxctp = this.form.zjdxctp.replaceAll(url,"") this.form.zjdxctp = this.form.zjdxctp.replaceAll(url1,"") + this.form.zjdxctp = this.form.zjdxctp.replaceAll(url2,"") }, // 图片上传前 beforeReadfw(file){ @@ -3501,8 +3533,8 @@ img.onload = () => { const h = img.height const w = img.width - let ch = img.height/2 - let cw = img.width/2 + let ch = img.height/4 + let cw = img.width/4 let canvas = document.createElement('canvas') let ctx = canvas.getContext('2d') canvas.height = ch @@ -3531,8 +3563,10 @@ deleteFilefw(file){ let url = ","+file.baseUrl let url1 = file.baseUrl+"," + let url2 = file.baseUrl this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url,"") this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url1,"") + this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url2,"") }, onConfirmhzsjly(value){ this.nhform.sjlyName = value.dictLabel @@ -3572,7 +3606,7 @@ this.form1.shyqrdbzjhm = value.hzzjhm this.form1.shyqrdbzjlx = value.hzzjlx this.form1.dh = value.phone - this.form1.dz = value.TXDZ + this.form1.dz = value.txdz this.zjlxOptions.map(res => { if(res.dictValue == this.form1.shyqrdbzjlx){ this.form1.shyqrdbzjlxName = res.dictLabel @@ -3997,8 +4031,10 @@ listSuyqr(params).then((response) => { if(response.rows.length>0){ this.nhform.suyqrdm = response.rows[0].suyqrdm + this.nhform.txdz = response.rows[0].dbrtxdz }else{ this.nhform.suyqrdm = this.form.suyqrdm + this.nhform.txdz = this.form.suyqrmc } }); }else{ @@ -4138,8 +4174,6 @@ this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res}) }) } - - this.lyzkOptions.map(res => { if(res.dictValue == this.form.lyzk){ this.form.lyzkName = res.dictLabel @@ -4181,7 +4215,7 @@ deptId :this.item.deptId, sffz:"Y", yt:"072", - ytName:"农村宅基地", + ytmc:"农村宅基地", lyzk:"1", lyzkName:"正常使用", lzyx:'0', @@ -4197,10 +4231,12 @@ qlsdfs:'1', qlsdfsName:'地上', sjly:'04', - sjlyName:'农村宅基地使用权确权登记发证' + sjlyName:'农村宅基地使用权确权登记发证', + zl:'' } if(response.rows.length>0){ this.form.suyqrdm = response.rows[0].suyqrdm + this.form.zl = response.rows[0].dbrtxdz } }); } @@ -4350,14 +4386,24 @@ if(this.nhform.id!=null){ updateNh(this.nhform).then( response => { - let _this =this + let _this = this this.$toast({ icon: 'success', // 找到自己需要的图标 message: '修改成功', duration:"1000", onClose:function(){ - _this.shownh = false - _this.getNh() + let psyqr = { + deptId : _this.nhform.deptId, + nhdm : _this.nhform.nhdm, + shyqrdbxm : _this.nhform.hzxm, + shyqrdbzjlx : _this.nhform.hzzjlx, + shyqrdbzjhm : _this.nhform.hzzjhm, + dh : _this.nhform.phone, + dz : _this.nhform.txdz + } + setSyqrInfo(psyqr).then(res => { + _this.shownh = false + }) } }) } @@ -4392,11 +4438,13 @@ _this.showzrz = false _this.active = 3 _this.getZrzList() + _this.shownmfwlist(_this.form3) } }) }); } else { addZrz(this.form3).then(response => { + this.form3 = response.data let _this =this this.$toast({ icon: 'success', // 找到自己需要的图标 @@ -4406,6 +4454,7 @@ _this.showzrz = false _this.active = 3 _this.getZrzList() + _this.shownmfwlist(_this.form3) } }) }); diff --git a/src/views/homesteadSurvey/index.vue b/src/views/homesteadSurvey/index.vue index 690575e0..dc0e90d9 100644 --- a/src/views/homesteadSurvey/index.vue +++ b/src/views/homesteadSurvey/index.vue @@ -30,7 +30,7 @@ width="50" height="50" :src="require('../../assets/images/housesteadSurvey/task1.png')" - @click="active=1" + @click="active=1,getList()" />

全部任务

@@ -41,7 +41,7 @@ width="50" height="50" :src="require('../../assets/images/housesteadSurvey/task2.png')" - @click="active=2" + @click="active=2,getList()" />

已完成

@@ -52,7 +52,7 @@ width="50" height="50" :src="require('../../assets/images/housesteadSurvey/task3.png')" - @click="active=3" + @click="active=3,getList()" />

待调查

@@ -75,7 +75,16 @@