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 @@
-
+
{{item.planBeginTime}}~{{item.planEndTime}}
@@ -90,15 +99,24 @@
-
- {{item.deptName}}
+
{{item.deptName}}
{{item.confirmZjdzdNumber}}/{{item.reportZjdzdNumber}}
-
+
{{item.planBeginTime}}~{{item.planEndTime}}
@@ -113,16 +131,27 @@
-
- {{item.deptName}}
- {{item.confirmZjdzdNumber}}/{{item.reportZjdzdNumber}}
-
+ {{item.deptName}}
+
+ {{item.confirmZjdzdNumber}}/{{item.reportZjdzdNumber}}
+
+
-
-
+
+
{{item.planBeginTime}}~{{item.planEndTime}}
@@ -150,6 +179,9 @@
},
data() {
return {
+ currentRate1:0,
+ currentRate2:0,
+ currentRate3:0,
active: 1,
show: false,
loading: false,
@@ -164,6 +196,9 @@
doneList:[],
todo:0,
todoList:[],
+ gradientColor:{
+
+ },
// 查询参数
queryParams: {
taskStatus: null,
@@ -205,6 +240,21 @@
);
},
methods: {
+ chooseValue(item){
+ let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed()
+ return a
+ },
+ chooseColor(item){
+ let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed()
+ if(a < 50){
+ return '#FA5353'
+ }else if(a < 100){
+ return '#22B7F2'
+ }else{
+ return '#85d824'
+ }
+ return '#FA5353'
+ },
taskExecutorChange(row){
if(row.taskExecutor!=null&&row.taskExecutor!=""&&row.taskExecutor.length>1){
var actions = [];
@@ -282,12 +332,13 @@
getList() {
listTask(this.queryParams).then(response => {
this.total = response.total
- this.totalList = response.rows
+ this.totalList = []
this.done = 0;
this.doneList = [];
this.todo = 0;
this.todoList = [];
response.rows.map(res => {
+ console.log(res.reportNhNumber)
if(res.taskStatus == "FINISHED"){
this.done+=1
this.doneList.push(res);
@@ -295,18 +346,17 @@
this.todo+=1
this.todoList.push(res);
}
+ /*this.totalList.push(res);*/
if(res.taskExecutor!=null&&res.taskExecutor!=''){
res.taskExecutor = res.taskExecutor.split(',')
}
})
+ this.totalList = response.rows
});
},
gotoLink(){
this.$router.push('/homesteadSurvey/settle')
},
- _isMobile() {
- this.phone = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
- },
},
}
diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue
index 0aec4188..79ed4462 100644
--- a/src/views/homesteadSurvey/list.vue
+++ b/src/views/homesteadSurvey/list.vue
@@ -327,6 +327,7 @@
required
placeholder="代表人邮政编码"
input-align="right"
+ maxlength="6"
:rules="[{ required: true, message: '代表人邮政编码不能为空' }]"
/>
@@ -1709,9 +1710,9 @@
if(response.rows.length>0){
this.qlrform = response.rows[0]
this.nhform.suyqrdm = this.qlrform.suyqrdm
+ this.nhform.txdz = response.rows[0].suyqrmc
}
});
-
},
// 返回
onClickLeft(){
@@ -1803,8 +1804,19 @@
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
+ })
}
})
}