@@ -301,6 +301,8 @@ | |||||
<van-datetime-picker | <van-datetime-picker | ||||
:value="new Date" | :value="new Date" | ||||
type="date" | type="date" | ||||
:min-date="minDate" | |||||
:max-date="maxDate" | |||||
@confirm="onConfirmzjdqdsj" | @confirm="onConfirmzjdqdsj" | ||||
@cancel="showZjdqdsj = false" | @cancel="showZjdqdsj = false" | ||||
/> | /> | ||||
@@ -790,7 +792,7 @@ export default { | |||||
showXzyy:false, | showXzyy:false, | ||||
showXzqssj:false, | showXzqssj:false, | ||||
showUpload:false, | showUpload:false, | ||||
minDate: new Date(1950,0,1), | |||||
minDate: new Date(1950,1,1), | |||||
maxDate: new Date(2030, 10, 1), | maxDate: new Date(2030, 10, 1), | ||||
form:{} | form:{} | ||||
}; | }; | ||||
@@ -106,15 +106,6 @@ | |||||
<span style="font-size: 14px;color: #22B7F2;margin-left: 5px;" @click="dcsh()">调查审核</span> | <span style="font-size: 14px;color: #22B7F2;margin-left: 5px;" @click="dcsh()">调查审核</span> | ||||
</p> | </p> | ||||
</div> | </div> | ||||
<van-popup v-model="dcshShow" position="bottom"> | |||||
<van-picker | |||||
show-toolbar | |||||
:columns="examineData" | |||||
value-key="dictLabel" | |||||
@confirm="onSurveyStatusChanged" | |||||
@cancel="dcshShow = false" | |||||
/> | |||||
</van-popup> | |||||
<van-popup v-model="showesign" closeable position="right" :style="{ height: '100%' }" | <van-popup v-model="showesign" closeable position="right" :style="{ height: '100%' }" | ||||
close-icon="close"> | close-icon="close"> | ||||
<van-row style="margin:0 10%"> | <van-row style="margin:0 10%"> | ||||
@@ -156,6 +147,26 @@ | |||||
</van-row> | </van-row> | ||||
</van-form> | </van-form> | ||||
</van-dialog> | |||||
<van-dialog v-model="dcshShow" title="调查审核" show-cancel-button confirmButtonText="保存" cancelButtonText="关闭" confirmButtonColor="#323233" :before-close="onBeforeCloseSh" > | |||||
<van-form ref="dcshForm"> | |||||
<van-row> | |||||
<van-col span="24"> | |||||
<van-field v-model="zjdzdxx.auditRemark" label="备注" placeholder="审核备注" input-align="right" :rules="[{ required: true }]" required /> | |||||
</van-col> | |||||
<van-col span="8"> | |||||
<p style="margin-left: 10%;color: #646566; font-size: 0.373333rem;">审核</p> | |||||
</van-col> | |||||
<van-col span="16"> | |||||
<van-radio-group v-model="zjdzdxx.surveyStatus" direction="horizontal"> | |||||
<van-radio name="5">通过</van-radio> | |||||
<van-radio name="4">驳回</van-radio> | |||||
</van-radio-group> | |||||
</van-col> | |||||
</van-row> | |||||
</van-form> | |||||
</van-dialog> | </van-dialog> | ||||
<van-popup v-model:show="showImageList" position="bottom" style="height:40vh;padding:50px 10px 0" closeable | <van-popup v-model:show="showImageList" position="bottom" style="height:40vh;padding:50px 10px 0" closeable | ||||
close-icon="close"> | close-icon="close"> | ||||
@@ -206,7 +217,6 @@ export default { | |||||
ycbz:"", | ycbz:"", | ||||
jzwqkList:[], | jzwqkList:[], | ||||
fssslxList:[], | fssslxList:[], | ||||
examineData:[{dictLabel:"审批通过",dictValue:"5"},{dictLabel:"审批驳回",dictValue:"4"}], | |||||
zjdzdxx:{surveyStatus:"5"}, | zjdzdxx:{surveyStatus:"5"}, | ||||
fssslist:[], | fssslist:[], | ||||
//电子签名 | //电子签名 | ||||
@@ -270,24 +280,31 @@ export default { | |||||
canvasTTdown() { | canvasTTdown() { | ||||
$('#canvasTT').css('display', 'none'); | $('#canvasTT').css('display', 'none'); | ||||
}, | }, | ||||
onSurveyStatusChanged(val){ | |||||
this.$set(this.zjdzdxx, 'surveyStatus', val.dictValue); | |||||
if(val.dictValue === "5"){ | |||||
let surveyItem = JSON.parse(localStorage.getItem("surveyItem")); | |||||
this.$set(this.zjdzdxx, 'surveyId', surveyItem.id); | |||||
onBeforeCloseSh(action, done){ | |||||
if (action === 'confirm') { | |||||
this.$refs.dcshForm.validate().then(() => { | |||||
updateZjdzd(this.zjdzdxx).then(response => { | |||||
if(response.code === 200){ | |||||
let _this =this | |||||
_this.$toast({ | |||||
icon: 'success', // 找到自己需要的图标 | |||||
message: '保存成功', | |||||
duration:"1000", | |||||
onClose:function(){ | |||||
_this.dcshShow = false; | |||||
_this.goRightBack(); | |||||
} | |||||
}) | |||||
} | |||||
}); | |||||
}).catch(() => { | |||||
return done(false); | |||||
}); | |||||
} else { | |||||
return done(); | |||||
} | } | ||||
updateZjdzd(this.zjdzdxx).then(response => { | |||||
let _this =this | |||||
_this.$toast({ | |||||
icon: 'success', // 找到自己需要的图标 | |||||
message: '保存成功', | |||||
duration:"1000", | |||||
onClose:function(){ | |||||
_this.dcshShow = false; | |||||
_this.goRightBack(); | |||||
} | |||||
}) | |||||
}); | |||||
}, | }, | ||||
onRefreshFsss(){ | onRefreshFsss(){ | ||||
if(this.loading){ | if(this.loading){ | ||||
@@ -435,12 +452,9 @@ export default { | |||||
} else { | } else { | ||||
return done(); | return done(); | ||||
} | } | ||||
}, | |||||
confirmn(){ | |||||
console.info(111) | |||||
}, | }, | ||||
dcsh(){ | dcsh(){ | ||||
this.$set(this.zjdzdxx, 'surveyStatus', "5"); | |||||
this.dcshShow = true; | this.dcshShow = true; | ||||
}, | }, | ||||
showUploadList(id){ | showUploadList(id){ | ||||
@@ -286,13 +286,9 @@ | |||||
this.$router.push({name:'homesteadList'}) | this.$router.push({name:'homesteadList'}) | ||||
}); | }); | ||||
}, | }, | ||||
chooseValue(item){ | |||||
let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed() | |||||
return a | |||||
}, | |||||
chooseColor(item){ | chooseColor(item){ | ||||
let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed() | |||||
if(a < 50){ | |||||
let a = ((item.zjdwcsl/item.zjdsl)*100).toFixed() | |||||
if(a === "NaN" || a < 50){ | |||||
return '#FA5353' | return '#FA5353' | ||||
}else if(a < 100){ | }else if(a < 100){ | ||||
return '#22B7F2' | return '#22B7F2' | ||||
@@ -302,8 +298,8 @@ | |||||
return '#FA5353' | return '#FA5353' | ||||
}, | }, | ||||
chooseColor2(item){ | chooseColor2(item){ | ||||
let a = ((item.confirmZjdzdNumber/item.reportZjdzdNumber)*100).toFixed() | |||||
if(a < 50){ | |||||
let a = ((item.zjdwcsl/item.zjdsl)*100).toFixed() | |||||
if(a === "NaN" || a < 50){ | |||||
return 'rgba(250,83,83,0.22)' | return 'rgba(250,83,83,0.22)' | ||||
}else if(a < 100){ | }else if(a < 100){ | ||||
return 'rgba(34,183,242,0.22)' | return 'rgba(34,183,242,0.22)' | ||||
@@ -920,10 +920,19 @@ | |||||
// 入户核查搜索框新增。 | // 入户核查搜索框新增。 | ||||
onClickzjd(){ | onClickzjd(){ | ||||
this.$cookies.remove("search"); | this.$cookies.remove("search"); | ||||
localStorage.setItem("zjdzdxxItem",JSON.stringify({suyqrdm:this.qlrform.suyqrdm,zjddm:null,zjdlyzk:"1",landStatus:"1" | |||||
,houseOwnership:"2",landPhms:"10",isMore:"0",sffz:"0",sfcz:"0" | |||||
,zjdqdfs:"01",sjly:"01",qlsdfs:"1",qllx:"1",qlxz:"203",dj:"1",yt:"01"})); | |||||
this.$router.push({name:'homesteadAdd'}); | |||||
let params = { | |||||
"deptId" : this.$store.state.user.loginDeptId | |||||
} | |||||
listSuyqr(params).then((response) => { | |||||
if(response.rows.length>0){ | |||||
localStorage.setItem("zjdzdxxItem",JSON.stringify({suyqrdm:response.rows[0].suyqrdm,zjddm:null,zjdlyzk:"1",landStatus:"1" | |||||
,houseOwnership:"2",landPhms:"10",isMore:"0",sffz:"0",sfcz:"0" | |||||
,zjdqdfs:"01",sjly:"01",qlsdfs:"1",qllx:"1",qlxz:"203",dj:"1",yt:"01"})); | |||||
this.$router.push({name:'homesteadAdd'}); | |||||
} | |||||
}); | |||||
}, | }, | ||||
// 农户信息搜索框新增。 | // 农户信息搜索框新增。 | ||||
onClicknh(){ | onClicknh(){ | ||||
@@ -55,7 +55,7 @@ | |||||
<p style="display: flex;align-items: center;"> | <p style="display: flex;align-items: center;"> | ||||
<img src="../../assets/images/housesteadSurvey/list03.png" alt="" style="margin-right: 5px;"> | <img src="../../assets/images/housesteadSurvey/list03.png" alt="" style="margin-right: 5px;"> | ||||
<span style="line-height: 1;font-size: 16px;">{{item.xm}}</span> | <span style="line-height: 1;font-size: 16px;">{{item.xm}}</span> | ||||
<span style="line-height: 1;font-size: 16px;margin-left: 70%;">{{formatDict(yhzgxList,item.yhzgx)}}</span> | |||||
<span style="line-height: 1;font-size: 16px;margin-left: 68%;">{{formatDict(yhzgxList,item.yhzgx)}}</span> | |||||
</p> | </p> | ||||
<div style="display:flex;line-height:20px;margin-top: 15px;font-size: 14px;color: #999999;"> | <div style="display:flex;line-height:20px;margin-top: 15px;font-size: 14px;color: #999999;"> | ||||
<p style="flex:1;text-align:left;">证件号码:</p> | <p style="flex:1;text-align:left;">证件号码:</p> | ||||
@@ -97,6 +97,8 @@ | |||||
<van-datetime-picker | <van-datetime-picker | ||||
type="date" | type="date" | ||||
:value="new Date" | :value="new Date" | ||||
:min-date="minDate" | |||||
:max-date="maxDate" | |||||
@confirm="onConfirmZgqrzrq" | @confirm="onConfirmZgqrzrq" | ||||
@cancel="showZgqrzrq = false" | @cancel="showZgqrzrq = false" | ||||
/> | /> | ||||
@@ -233,7 +235,7 @@ export default { | |||||
// 当前位置信息 | // 当前位置信息 | ||||
tGeoOrganizationLat: null, | tGeoOrganizationLat: null, | ||||
tGeoOrganizationLng: null, | tGeoOrganizationLng: null, | ||||
minDate: new Date(), | |||||
minDate: new Date(1950,1,1), | |||||
maxDate: new Date(2025, 10, 1), | maxDate: new Date(2025, 10, 1), | ||||
showZgqrzrq:false, | showZgqrzrq:false, | ||||
form:{} | form:{} | ||||