|
@@ -444,7 +444,12 @@ |
|
|
<van-row type="flex" justify="space-between" align="center"> |
|
|
<van-row type="flex" justify="space-between" align="center"> |
|
|
<van-col span="5">宅基地<br/>坐落平<br/>面位置图</van-col> |
|
|
<van-col span="5">宅基地<br/>坐落平<br/>面位置图</van-col> |
|
|
<van-col span="19"> |
|
|
<van-col span="19"> |
|
|
<MultiImageUploadComp :value="applicationDetail.ydjfsp.zjdzlpmwzt" :uploadDisabled="!wztUpdate" |
|
|
|
|
|
|
|
|
<MultiImageUploadComp :value="applicationDetail.ydjfsp.zjdzlpmwzt" |
|
|
|
|
|
:uploadDisabled="!wztUpdate" |
|
|
|
|
|
:tableId="applicationDetail.ydjfsp.id" |
|
|
|
|
|
:tableName="spTableName" |
|
|
|
|
|
:fileType="0" |
|
|
|
|
|
:attach="true" |
|
|
@fileChanged="fileUpdate"/> |
|
|
@fileChanged="fileUpdate"/> |
|
|
<van-row> |
|
|
<van-row> |
|
|
<van-col span="12"> |
|
|
<van-col span="12"> |
|
@@ -1573,7 +1578,11 @@ |
|
|
<van-col span="19"> |
|
|
<van-col span="19"> |
|
|
|
|
|
|
|
|
<MultiImageUploadComp :value="applicationDetail.ydjfys.jgpmjt" |
|
|
<MultiImageUploadComp :value="applicationDetail.ydjfys.jgpmjt" |
|
|
:uploadDisabled="this.formEnabled.acceptingForm.baseFormEnabled" |
|
|
|
|
|
|
|
|
:uploadDisabled="!this.formEnabled.acceptingForm.baseFormEnabled" |
|
|
|
|
|
:tableId="applicationDetail.ydjfys.id" |
|
|
|
|
|
:tableName="houseApplyUploadComp.tableName" |
|
|
|
|
|
:fileType="0" |
|
|
|
|
|
:attach="true" |
|
|
@fileChanged="fileUpdatePmt"/> |
|
|
@fileChanged="fileUpdatePmt"/> |
|
|
<van-field required :readonly="!this.formEnabled.acceptingForm.baseFormEnabled" |
|
|
<van-field required :readonly="!this.formEnabled.acceptingForm.baseFormEnabled" |
|
|
v-model="applicationDetail.ydjfys.jgpmjtjbr" placeholder="经办人" label="经办人" |
|
|
v-model="applicationDetail.ydjfys.jgpmjtjbr" placeholder="经办人" label="经办人" |
|
@@ -2170,6 +2179,7 @@ |
|
|
// 当前显示流程 |
|
|
// 当前显示流程 |
|
|
selectedTabName: 0, |
|
|
selectedTabName: 0, |
|
|
processKeyField: null, |
|
|
processKeyField: null, |
|
|
|
|
|
spTableName:"t_homeapply_ydjfsp", |
|
|
// 表单意图 |
|
|
// 表单意图 |
|
|
proposerStatus: PROPOSER_VIEW, |
|
|
proposerStatus: PROPOSER_VIEW, |
|
|
// 显示控制 |
|
|
// 显示控制 |
|
@@ -2366,8 +2376,8 @@ |
|
|
flowVisible: false, |
|
|
flowVisible: false, |
|
|
// 是/否字典 |
|
|
// 是/否字典 |
|
|
yesNoOptions: [ |
|
|
yesNoOptions: [ |
|
|
{dictLabel: '是', dictValue: 'Y'}, |
|
|
|
|
|
{dictLabel: '否', dictValue: 'N'}, |
|
|
|
|
|
|
|
|
{dictLabel: '是', dictValue: '1'}, |
|
|
|
|
|
{dictLabel: '否', dictValue: '0'}, |
|
|
], |
|
|
], |
|
|
yhzgxOptions: [], |
|
|
yhzgxOptions: [], |
|
|
// 当前附件tab |
|
|
// 当前附件tab |
|
@@ -2394,6 +2404,7 @@ |
|
|
this.type = this.$route.query.type; |
|
|
this.type = this.$route.query.type; |
|
|
this.taskId = this.$route.query.taskId; |
|
|
this.taskId = this.$route.query.taskId; |
|
|
this.auditbatchNo = this.$route.query.auditbatchNo; |
|
|
this.auditbatchNo = this.$route.query.auditbatchNo; |
|
|
|
|
|
this.$set(this.applicationDetail, "fileList", this.fileIdList); |
|
|
this.getDicts("family_status").then(response => { |
|
|
this.getDicts("family_status").then(response => { |
|
|
let arr = []; |
|
|
let arr = []; |
|
|
response.data.forEach(function (item) { |
|
|
response.data.forEach(function (item) { |
|
@@ -2955,20 +2966,17 @@ |
|
|
endDate: null, |
|
|
endDate: null, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (this.isProposeStatus(homeApplyStatus, ["71"])) { |
|
|
|
|
|
this.$set(this.formEnabled.acceptingForm, 'baseFormEnabled', false); |
|
|
|
|
|
if (this.applicationDetail.ydjfys.sfxszfjsbzzc == null) |
|
|
|
|
|
this.$set(this.applicationDetail.ydjfys, 'sfxszfjsbzzc', "N"); |
|
|
|
|
|
if (this.applicationDetail.ydjfys.qtysnr.clrsj == null) |
|
|
|
|
|
this.$set(this.applicationDetail.ydjfys.qtysnr, 'clrsj', handlerTime); |
|
|
|
|
|
if (this.applicationDetail.ydjfys.qtysnr.dsfwfsj == null) |
|
|
|
|
|
this.$set(this.applicationDetail.ydjfys.qtysnr, 'dsfwfsj', handlerTime); |
|
|
|
|
|
if (this.applicationDetail.ydjfys.qtysnr.zyjsrysj == null) |
|
|
|
|
|
this.$set(this.applicationDetail.ydjfys.qtysnr, 'zyjsrysj', handlerTime); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 验收 |
|
|
|
|
|
// else if(this.isProposeStatus(homeApplyStatus, ["71"])) |
|
|
|
|
|
// { |
|
|
|
|
|
// if(!this.applicationDetail.tHouseApplyEnd) |
|
|
|
|
|
// { |
|
|
|
|
|
// this.$set(this.applicationDetail, 'tHouseApplyEnd', { |
|
|
|
|
|
// //TODO: 开工结束时后台必定生成 |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
// if(this.applicationDetail.tHouseApplyEnd.oldHouseStatus == '0') |
|
|
|
|
|
// this.applicationDetail.tHouseApplyEnd.oldHouseStatus = null; |
|
|
|
|
|
// } |
|
|
|
|
|
// 开工二道场审批 |
|
|
// 开工二道场审批 |
|
|
|
|
|
|
|
|
else if (this.isProposeStatus(homeApplyStatus, ["39"])) { |
|
|
else if (this.isProposeStatus(homeApplyStatus, ["39"])) { |
|
@@ -2981,22 +2989,23 @@ |
|
|
else if (this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"])) { |
|
|
else if (this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"])) { |
|
|
if (this.isInRoles(role, ['town_leader'])) { |
|
|
if (this.isInRoles(role, ['town_leader'])) { |
|
|
if (!this.applicationDetail.ydjfys.jgpmjtjbr) this.applicationDetail.ydjfys.jgpmjtjbr = handlerName; |
|
|
if (!this.applicationDetail.ydjfys.jgpmjtjbr) this.applicationDetail.ydjfys.jgpmjtjbr = handlerName; |
|
|
if (!this.applicationDetail.ydjfys.xzzfysjbrxm) //this.applicationDetail.tHouseApplyEnd.zhenName = handlerName; |
|
|
|
|
|
|
|
|
if (!this.applicationDetail.ydjfys.xzzfysyj) //this.applicationDetail.tHouseApplyEnd.zhenName = handlerName; |
|
|
if (!this.applicationDetail.ydjfys.xzzfyssj) this.applicationDetail.ydjfys.xzzfyssj = handlerTime; |
|
|
if (!this.applicationDetail.ydjfys.xzzfyssj) this.applicationDetail.ydjfys.xzzfyssj = handlerTime; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.isInRoles(role, ['agriculture'])) { |
|
|
if (this.isInRoles(role, ['agriculture'])) { |
|
|
if (!this.applicationDetail.ydjfys.nyncbmysjbrxm) //this.applicationDetail.tHouseApplyEnd.nongyeName = handlerName; |
|
|
|
|
|
|
|
|
if (!this.applicationDetail.ydjfys.nyncbmysyj) //this.applicationDetail.tHouseApplyEnd.nongyeName = handlerName; |
|
|
if (!this.applicationDetail.ydjfys.nyncbmyssj) this.applicationDetail.ydjfys.nyncbmyssj = handlerTime; |
|
|
if (!this.applicationDetail.ydjfys.nyncbmyssj) this.applicationDetail.ydjfys.nyncbmyssj = handlerTime; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.isInRoles(role, ['nature_resource'])) { |
|
|
if (this.isInRoles(role, ['nature_resource'])) { |
|
|
if (!this.applicationDetail.ydjfys.zrzybmysjbrxm) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName; |
|
|
|
|
|
|
|
|
if (!this.applicationDetail.ydjfys.zrzybmysyj) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName; |
|
|
if (!this.applicationDetail.ydjfys.zrzybmyssj) this.applicationDetail.ydjfys.zrzybmyssj = handlerTime; |
|
|
if (!this.applicationDetail.ydjfys.zrzybmyssj) this.applicationDetail.ydjfys.zrzybmyssj = handlerTime; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.isInRoles(role, ['building'])) { |
|
|
if (this.isInRoles(role, ['building'])) { |
|
|
if (!this.applicationDetail.ydjfys.zfcxjsbmysjbrxm) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.applicationDetail.ydjfys.zfcxjsbmysyj) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName; |
|
|
if (!this.applicationDetail.ydjfys.zfcxjsbmyssj) this.applicationDetail.ydjfys.zfcxjsbmyssj = handlerTime; |
|
|
if (!this.applicationDetail.ydjfys.zfcxjsbmyssj) this.applicationDetail.ydjfys.zfcxjsbmyssj = handlerTime; |
|
|
} |
|
|
} |
|
|
if (0) { |
|
|
if (0) { |
|
@@ -3489,15 +3498,17 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 初次申请草稿的附件上传 |
|
|
// 初次申请草稿的附件上传 |
|
|
onUploadFinished(fileIdList) { |
|
|
|
|
|
this.fileTypeList = []; |
|
|
|
|
|
this.fileIdList = []; |
|
|
|
|
|
|
|
|
onUploadFinished(fileIdList,fileTypeList) { |
|
|
let _this = this; |
|
|
let _this = this; |
|
|
fileIdList.forEach(function (item) { |
|
|
|
|
|
_this.fileTypeList.push(item.fileType); |
|
|
|
|
|
_this.fileIdList.push(item.id); |
|
|
|
|
|
}) |
|
|
|
|
|
this.$set(this.applicationDetail, "fileList", this.fileIdList); |
|
|
|
|
|
|
|
|
this.fileIdList = []; |
|
|
|
|
|
this.fileTypeList = []; |
|
|
|
|
|
// setTimeout(() => { |
|
|
|
|
|
fileIdList.forEach(function (item) { |
|
|
|
|
|
_this.fileIdList.push(item.id); |
|
|
|
|
|
_this.fileTypeList.push(item.fileType); |
|
|
|
|
|
}) |
|
|
|
|
|
// }, 3000); |
|
|
|
|
|
this.$set(this.applicationDetail, "fileList", this.fileIdList); |
|
|
}, |
|
|
}, |
|
|
// 获取申请人信息 |
|
|
// 获取申请人信息 |
|
|
getApplyerDetail(val) { |
|
|
getApplyerDetail(val) { |
|
@@ -3539,12 +3550,41 @@ |
|
|
// 保存申请(是否提交) |
|
|
// 保存申请(是否提交) |
|
|
saveProposerApply(submit) { |
|
|
saveProposerApply(submit) { |
|
|
this.$refs.form.validate().then(() => { |
|
|
this.$refs.form.validate().then(() => { |
|
|
let msg = this.validateBaseApplyFormBase(); |
|
|
|
|
|
console.info(msg) |
|
|
|
|
|
if (msg) { |
|
|
|
|
|
this.notify(msg, 'danger'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.$toast.loading({ |
|
|
|
|
|
message: "数据处理中...", |
|
|
|
|
|
forbidClick: true, |
|
|
|
|
|
}); |
|
|
|
|
|
// setTimeout(() => { |
|
|
|
|
|
let msg = this.validateBaseApplyFormBase();; |
|
|
|
|
|
if (msg) { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify(msg, 'danger'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
console.log("进行保存", this.applicationDetail); |
|
|
|
|
|
this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id); |
|
|
|
|
|
this.$set(this.applicationDetail, 'auditStatus', "0"); |
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
|
|
|
|
if (submit) { |
|
|
|
|
|
this.id = response.data; |
|
|
|
|
|
this.submitApplyProposer(); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (response.code === 200) { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("保存成功", 'success'); |
|
|
|
|
|
this.goBack(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("保存失败,申请人没有资格权!", 'danger'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}).catch((e) => { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("保存失败!", 'danger'); |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
}); |
|
|
|
|
|
// }, 3000); |
|
|
// //地图判断 |
|
|
// //地图判断 |
|
|
// if (this.drawInsert != null) { |
|
|
// if (this.drawInsert != null) { |
|
|
// this.applicationDetail.theGeom = JSON.stringify(this.drawInsert); |
|
|
// this.applicationDetail.theGeom = JSON.stringify(this.drawInsert); |
|
@@ -3557,33 +3597,7 @@ |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
console.log("进行保存", this.applicationDetail); |
|
|
|
|
|
this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id); |
|
|
|
|
|
this.$set(this.applicationDetail, 'auditStatus', "0"); |
|
|
|
|
|
this.$toast.loading({ |
|
|
|
|
|
message: "数据处理中...", |
|
|
|
|
|
forbidClick: true, |
|
|
|
|
|
}); |
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
|
|
|
|
if (submit) { |
|
|
|
|
|
this.id = response.data; |
|
|
|
|
|
this.submitApplyProposer(); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (response.code === 200) { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("保存成功", 'success'); |
|
|
|
|
|
this.goBack(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("保存失败,申请人没有资格权!", 'danger'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}).catch((e) => { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("保存失败!", 'danger'); |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
}); |
|
|
|
|
|
}).catch(e => { |
|
|
}).catch(e => { |
|
|
let msg = this.validateBaseApplyFormBase(); |
|
|
let msg = this.validateBaseApplyFormBase(); |
|
|
if (msg) { |
|
|
if (msg) { |
|
@@ -3682,6 +3696,7 @@ |
|
|
}, |
|
|
}, |
|
|
// 提交申请 |
|
|
// 提交申请 |
|
|
submitApplyProposer() { |
|
|
submitApplyProposer() { |
|
|
|
|
|
|
|
|
if (this.applicationDetail.auditStatus == '2' && this.selectedTabName == 0) { |
|
|
if (this.applicationDetail.auditStatus == '2' && this.selectedTabName == 0) { |
|
|
updateOpretion(this.id).then(); |
|
|
updateOpretion(this.id).then(); |
|
|
} |
|
|
} |
|
@@ -3807,46 +3822,49 @@ |
|
|
// break; |
|
|
// break; |
|
|
// } |
|
|
// } |
|
|
msg = this.validateTownForm(); |
|
|
msg = this.validateTownForm(); |
|
|
|
|
|
|
|
|
if (msg) { |
|
|
if (msg) { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
|
|
|
comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj; |
|
|
|
|
|
// this.submitHouseApproveAgricultureOptions().then(item=>{ |
|
|
|
|
|
// _this.submitHouseApproveNatureplanOptions().then(item2=>{ |
|
|
|
|
|
// _this.submitHouseApproveOtherOptions().then(item3=>{ |
|
|
|
|
|
// if(_this.$refs.pictureUploadApplyingTHouseApproveTown && _this.$refs.pictureUploadApplyingTHouseApproveTown.isValid()) { |
|
|
|
|
|
// _this.submitHouseApproveTownOptions().then(item4=>{ |
|
|
|
|
|
// //地图判断 |
|
|
|
|
|
// if (_this.drawInsert != null) { |
|
|
|
|
|
// _this.applicationDetail.tHouseApproveNatureOptions.theGeom = JSON.stringify(_this.drawInsert); |
|
|
|
|
|
// } |
|
|
|
|
|
// else { |
|
|
|
|
|
// if(_this.applicationDetail.tHouseApproveNatureOptions && _this.applicationDetail.tHouseApproveNatureOptions.theGeom == null){ |
|
|
|
|
|
// _this.applicationDetail.tHouseApproveNatureOptions.theGeom = _this.convertGeom(_this.applicationDetail.tHouseApplyProposedSituation.theGeom); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
if (!pass) { |
|
|
|
|
|
comment = "驳回"; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.applicationDetail.ydjfsp.zjdzlpmwzt != null && this.applicationDetail.ydjfsp.zjdzlpmwzt !== "") { |
|
|
|
|
|
// _this.submitHouseApproveLocationplanOptions(pass, comment).then(item5=>{ |
|
|
|
|
|
// _this.submitHouseApproveNatureplanOptions().then(item6=>{ |
|
|
|
|
|
// setTimeout(() => { |
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
|
|
|
|
this.complete(pass, comment); |
|
|
|
|
|
}).catch(resp => { |
|
|
|
|
|
this.notify(msg, 'danger'); |
|
|
|
|
|
this.notify("保存失败!", 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
// }, 500); |
|
|
|
|
|
// }); |
|
|
|
|
|
// }); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.notify("宅基地坐落平面位置图不能为空", 'danger'); |
|
|
|
|
|
this.$refs.form.validate().then(() => { |
|
|
|
|
|
}).catch((e) => { |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj; |
|
|
|
|
|
// this.submitHouseApproveAgricultureOptions().then(item=>{ |
|
|
|
|
|
// _this.submitHouseApproveNatureplanOptions().then(item2=>{ |
|
|
|
|
|
// _this.submitHouseApproveOtherOptions().then(item3=>{ |
|
|
|
|
|
// if(_this.$refs.pictureUploadApplyingTHouseApproveTown && _this.$refs.pictureUploadApplyingTHouseApproveTown.isValid()) { |
|
|
|
|
|
// _this.submitHouseApproveTownOptions().then(item4=>{ |
|
|
|
|
|
// //地图判断 |
|
|
|
|
|
// if (_this.drawInsert != null) { |
|
|
|
|
|
// _this.applicationDetail.tHouseApproveNatureOptions.theGeom = JSON.stringify(_this.drawInsert); |
|
|
|
|
|
// } |
|
|
|
|
|
// else { |
|
|
|
|
|
// if(_this.applicationDetail.tHouseApproveNatureOptions && _this.applicationDetail.tHouseApproveNatureOptions.theGeom == null){ |
|
|
|
|
|
// _this.applicationDetail.tHouseApproveNatureOptions.theGeom = _this.convertGeom(_this.applicationDetail.tHouseApplyProposedSituation.theGeom); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
if (!pass) { |
|
|
|
|
|
comment = "驳回"; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.applicationDetail.ydjfsp.zjdzlpmwzt != null && this.applicationDetail.ydjfsp.zjdzlpmwzt !== "") { |
|
|
|
|
|
// _this.submitHouseApproveLocationplanOptions(pass, comment).then(item5=>{ |
|
|
|
|
|
// _this.submitHouseApproveNatureplanOptions().then(item6=>{ |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
|
|
|
|
this.complete(pass, comment); |
|
|
|
|
|
}).catch(resp => { |
|
|
|
|
|
this.notify(msg, 'danger'); |
|
|
|
|
|
this.notify("保存失败!", 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
}, 500); |
|
|
|
|
|
// });register/face/verified/allow |
|
|
|
|
|
// }); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.notify("宅基地坐落平面位置图不能为空", 'danger'); |
|
|
|
|
|
this.$refs.form.validate().then(() => { |
|
|
|
|
|
}).catch((e) => { |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// }); |
|
|
// }); |
|
|
// } else { |
|
|
// } else { |
|
|
|
|
|
|
|
@@ -3954,7 +3972,17 @@ |
|
|
this.notify("保存失败!", 'danger'); |
|
|
this.notify("保存失败!", 'danger'); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
this.complete(pass); |
|
|
|
|
|
|
|
|
if (this.applicationDetail.homeApplyStatus === "3C") { |
|
|
|
|
|
if (this.fileTypeList.indexOf("14") === -1) { |
|
|
|
|
|
this.notify("请上传开工乡镇受理会议纪要", 'danger'); |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
this.complete(pass); |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.complete(pass); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case PROPOSER_STAGE_END_ACTIVITY : { |
|
|
case PROPOSER_STAGE_END_ACTIVITY : { |
|
@@ -3976,6 +4004,18 @@ |
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
case "nature_resource": |
|
|
case "nature_resource": |
|
|
|
|
|
msg = this.validateAcceptingFormTown(undefined, role); |
|
|
|
|
|
if (msg) { |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
comment = this.applicationDetail.ydjfys.zfcxjsbmysyj; |
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
|
|
|
|
this.complete(pass, comment); |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
this.notify('保存失败', 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
break; |
|
|
|
|
|
case "building": |
|
|
msg = this.validateAcceptingFormTown(undefined, role); |
|
|
msg = this.validateAcceptingFormTown(undefined, role); |
|
|
if (msg) { |
|
|
if (msg) { |
|
|
break; |
|
|
break; |
|
@@ -3992,6 +4032,7 @@ |
|
|
if (msg) { |
|
|
if (msg) { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
comment = this.applicationDetail.ydjfys.xzzfysyj; |
|
|
comment = this.applicationDetail.ydjfys.xzzfysyj; |
|
|
if (this.applicationDetail.ydjfys.jgpmjt != null) { |
|
|
if (this.applicationDetail.ydjfys.jgpmjt != null) { |
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
|
saveHomeBaseInfo(this.applicationDetail).then((response) => { |
|
@@ -4294,26 +4335,10 @@ |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
fileUpdate(val) { |
|
|
fileUpdate(val) { |
|
|
const params = new FormData(); |
|
|
|
|
|
params.append("tableId", this.applicationDetail.ydjfsp.id); |
|
|
|
|
|
params.append("tableName", "t_homeapply_ydjfsp"); |
|
|
|
|
|
params.append("bizPath", "upload"); |
|
|
|
|
|
params.append("fileType", "0"); |
|
|
|
|
|
params.append('file', val[0].file); |
|
|
|
|
|
attach(params).then((resp) => { |
|
|
|
|
|
this.$set(this.applicationDetail.ydjfsp, 'zjdzlpmwzt', resp.fileUrl); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
this.$set(this.applicationDetail.ydjfsp, 'zjdzlpmwzt', val); |
|
|
}, |
|
|
}, |
|
|
fileUpdatePmt(val) { |
|
|
fileUpdatePmt(val) { |
|
|
const params = new FormData(); |
|
|
|
|
|
params.append("tableId", this.applicationDetail.ydjfys.id); |
|
|
|
|
|
params.append("tableName", "t_homeapply_ydjfsq"); |
|
|
|
|
|
params.append("bizPath", "upload"); |
|
|
|
|
|
params.append("fileType", "0"); |
|
|
|
|
|
params.append('file', val[0].file); |
|
|
|
|
|
attach(params).then((resp) => { |
|
|
|
|
|
this.$set(this.applicationDetail.ydjfys, 'jgpmjt', resp.fileUrl); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
this.$set(this.applicationDetail.ydjfys, 'jgpmjt',val); |
|
|
}, |
|
|
}, |
|
|
// 带平面图附件上传的镇级验收审批 |
|
|
// 带平面图附件上传的镇级验收审批 |
|
|
submitHouseApplyEndLocationplanOptions(pass, commentText) { |
|
|
submitHouseApplyEndLocationplanOptions(pass, commentText) { |
|
@@ -4397,6 +4422,7 @@ |
|
|
selectTab(index) { |
|
|
selectTab(index) { |
|
|
if (index <= this.active) { |
|
|
if (index <= this.active) { |
|
|
this.selectedTabName = index; |
|
|
this.selectedTabName = index; |
|
|
|
|
|
this.pointDarw(null); |
|
|
} |
|
|
} |
|
|
//console.log(index, this.active,this.selectedTabName); |
|
|
//console.log(index, this.active,this.selectedTabName); |
|
|
}, |
|
|
}, |
|
@@ -4450,30 +4476,37 @@ |
|
|
// this.applicationDetail.tHouseApplyEnd.theGeom = this.convertGeom(this.applicationDetail.tHouseApproveNatureOptions.theGeom); |
|
|
// this.applicationDetail.tHouseApplyEnd.theGeom = this.convertGeom(this.applicationDetail.tHouseApproveNatureOptions.theGeom); |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
console.info(this.applicationDetail); |
|
|
|
|
|
this.$toast.loading({ |
|
|
|
|
|
message: "数据处理中...", |
|
|
|
|
|
forbidClick: true, |
|
|
|
|
|
}); |
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then(resp => { |
|
|
|
|
|
if (submit) { |
|
|
|
|
|
submitCheck(this.applicationDetail.id).then(resp => { |
|
|
|
|
|
|
|
|
if (this.applicationDetail.ydjfys.jgpmjt != null) { |
|
|
|
|
|
this.$refs.form.validate().then(() => { |
|
|
|
|
|
this.$toast.loading({ |
|
|
|
|
|
message: "数据处理中...", |
|
|
|
|
|
forbidClick: true, |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
saveHomeBaseInfo(this.applicationDetail).then(resp => { |
|
|
|
|
|
if (submit) { |
|
|
|
|
|
submitCheck(this.applicationDetail.id).then(resp => { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("操作成功", 'success'); |
|
|
|
|
|
this.goBack(); |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("操作失败!", 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
this.$toast.clear(); |
|
|
this.$toast.clear(); |
|
|
this.notify("操作成功", 'success'); |
|
|
|
|
|
|
|
|
this.notify("保存成功", 'success'); |
|
|
this.goBack(); |
|
|
this.goBack(); |
|
|
}).catch(err => { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify("操作失败!", 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
this.$toast.clear(); |
|
|
this.$toast.clear(); |
|
|
this.notify("保存成功", 'success'); |
|
|
|
|
|
this.goBack(); |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
this.$toast.clear(); |
|
|
|
|
|
this.notify('保存失败', 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
this.notify('保存失败', 'danger'); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.notify("竣工平面简图不能为空", 'danger'); |
|
|
|
|
|
} |
|
|
// }).catch(e => { |
|
|
// }).catch(e => { |
|
|
// let msg = this.validateAcceptingFormBase(); |
|
|
// let msg = this.validateAcceptingFormBase(); |
|
|
// if (msg) { |
|
|
// if (msg) { |
|
@@ -4491,18 +4524,19 @@ |
|
|
func(this.tGeoOrganizationLng, this.tGeoOrganizationLat); |
|
|
func(this.tGeoOrganizationLng, this.tGeoOrganizationLat); |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
console.info(this.deptId); |
|
|
|
|
|
getQueryLand(this.deptId).then((response) => { |
|
|
|
|
|
if (response.code == 200) { |
|
|
|
|
|
let InsertCode = response.data; |
|
|
|
|
|
this.form.orgCode = InsertCode.orgCode; |
|
|
|
|
|
this.tGeoOrganizationLat = InsertCode.lat; |
|
|
|
|
|
this.tGeoOrganizationLng = InsertCode.lng; |
|
|
|
|
|
if (func) { |
|
|
|
|
|
func(this.tGeoOrganizationLng, this.tGeoOrganizationLat); |
|
|
|
|
|
|
|
|
if(this.deptId !== null && this.deptId !== undefined){ |
|
|
|
|
|
getQueryLand(this.deptId).then((response) => { |
|
|
|
|
|
if (response.code == 200) { |
|
|
|
|
|
let InsertCode = response.data; |
|
|
|
|
|
this.form.orgCode = InsertCode.orgCode; |
|
|
|
|
|
this.tGeoOrganizationLat = InsertCode.lat; |
|
|
|
|
|
this.tGeoOrganizationLng = InsertCode.lng; |
|
|
|
|
|
if (func) { |
|
|
|
|
|
func(this.tGeoOrganizationLng, this.tGeoOrganizationLat); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
validateBaseApplyFormBase() { |
|
|
validateBaseApplyFormBase() { |
|
@@ -4659,9 +4693,11 @@ |
|
|
} |
|
|
} |
|
|
if (this.fileTypeList.indexOf("1") === -1) { |
|
|
if (this.fileTypeList.indexOf("1") === -1) { |
|
|
return "请上传申请会议纪要"; |
|
|
return "请上传申请会议纪要"; |
|
|
} else if (this.fileTypeList.indexOf("2") === -1) { |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (this.fileTypeList.indexOf("2") === -1) { |
|
|
return "请上传申请承诺书"; |
|
|
return "请上传申请承诺书"; |
|
|
} else if (this.fileTypeList.indexOf("3") === -1) { |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (this.fileTypeList.indexOf("3") === -1) { |
|
|
return "请上传身份材料"; |
|
|
return "请上传身份材料"; |
|
|
} |
|
|
} |
|
|
return false; |
|
|
return false; |
|
@@ -4789,15 +4825,29 @@ |
|
|
return false; |
|
|
return false; |
|
|
}, |
|
|
}, |
|
|
validateTownForm() { |
|
|
validateTownForm() { |
|
|
if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscyj)) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.checkString(this.applicationDetail.ydjfsp.zjdzlpmwzt)) { |
|
|
|
|
|
return "宅基地坐落平面位置图不能为空"; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.checkString(this.applicationDetail.ydjfsp.zckcryxm)) { |
|
|
|
|
|
return "踏勘人不能为空"; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.checkString(this.applicationDetail.ydjfsp.zjdzlpmwztztr)) { |
|
|
|
|
|
return "制图人不能为空"; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzyj)) { |
|
|
return "镇政府审批意见不能为空"; |
|
|
return "镇政府审批意见不能为空"; |
|
|
} |
|
|
} |
|
|
if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzrxm)) { |
|
|
if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzrxm)) { |
|
|
return "镇政府审批签字不能为空"; |
|
|
return "镇政府审批签字不能为空"; |
|
|
} |
|
|
} |
|
|
if (this.fileTypeList.indexOf("4") === -1) { |
|
|
|
|
|
return "请上传归档文件"; |
|
|
|
|
|
|
|
|
if (this.applicationDetail.homeApplyStatus === "1C" || this.applicationDetail.homeApplyStatus === "7C") { |
|
|
|
|
|
|
|
|
|
|
|
if (this.fileTypeList.indexOf("4") === -1) { |
|
|
|
|
|
return "请上传归档文件"; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// if (this.checkString(this.applicationDetail.tHouseApproveTownOptions.theGeomPoint)) { |
|
|
// if (this.checkString(this.applicationDetail.tHouseApproveTownOptions.theGeomPoint)) { |
|
|
// return "镇政府审批现场定位不能为空"; |
|
|
// return "镇政府审批现场定位不能为空"; |
|
|
// } |
|
|
// } |
|
@@ -4856,11 +4906,12 @@ |
|
|
// if (this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy === 'Y' && this.checkString(this.applicationDetail.tHouseApplyEnd.enjoySubsidyContent)) { |
|
|
// if (this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy === 'Y' && this.checkString(this.applicationDetail.tHouseApplyEnd.enjoySubsidyContent)) { |
|
|
// return "享受住房建设补助政策不能为空"; |
|
|
// return "享受住房建设补助政策不能为空"; |
|
|
// } |
|
|
// } |
|
|
if (this.fileTypeList.indexOf("9") === -1) { |
|
|
|
|
|
return "验收会议纪要"; |
|
|
|
|
|
} else if (this.fileTypeList.indexOf("10") === -1) { |
|
|
|
|
|
return "验收保证书"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (this.fileTypeList.indexOf("9") === -1) { |
|
|
|
|
|
return "请上传验收会议纪要"; |
|
|
|
|
|
} else if (this.fileTypeList.indexOf("10") === -1) { |
|
|
|
|
|
return "请上传验收保证书"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return false; |
|
|
return false; |
|
|
}, |
|
|
}, |
|
|
validateAcceptingFormTown(pass, role) { |
|
|
validateAcceptingFormTown(pass, role) { |
|
@@ -4913,7 +4964,7 @@ |
|
|
return "乡镇自然资源部门经办时间不能为空"; |
|
|
return "乡镇自然资源部门经办时间不能为空"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (0) { |
|
|
|
|
|
|
|
|
if (!role || role === 'building') { |
|
|
if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysyj)) { |
|
|
if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysyj)) { |
|
|
return "乡镇住建部门意见不能为空"; |
|
|
return "乡镇住建部门意见不能为空"; |
|
|
} |
|
|
} |
|
@@ -4954,7 +5005,8 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 通过时检查打勾, 农业部门 |
|
|
// 通过时检查打勾, 农业部门 |
|
|
if (pass) { |
|
|
|
|
|
|
|
|
if (!role || role === 'town_leader') { |
|
|
|
|
|
console.info(this.fileTypeList) |
|
|
if (this.fileTypeList.indexOf("11") === -1) { |
|
|
if (this.fileTypeList.indexOf("11") === -1) { |
|
|
return "请上传归档文件"; |
|
|
return "请上传归档文件"; |
|
|
} |
|
|
} |
|
|