diff --git a/src/views/homesteadSurvey/add4.vue b/src/views/homesteadSurvey/add4.vue index 3de815af..e9ebf875 100644 --- a/src/views/homesteadSurvey/add4.vue +++ b/src/views/homesteadSurvey/add4.vue @@ -158,13 +158,13 @@ - +

审核

- + 通过 驳回 @@ -225,6 +225,7 @@ export default { jzwqkList:[], fssslxList:[], zjdzdxx:{surveyStatus:"5"}, + zjddcsh:{surveyStatus:"5",auditRemark:""}, fssslist:[], //电子签名 signature: { @@ -294,11 +295,20 @@ export default { $('#canvasTT').css('display', 'none'); }, bhyyLook(){ - Dialog({ type: 'success', message: this.zjdzdxx.auditRemark }); + if(this.zjdzdxx.auditRemark !== null && this.zjdzdxx.auditRemark !== ''){ + Dialog({ type: 'success', message: this.zjdzdxx.auditRemark }); + }else{ + Dialog({ type: 'success', message: "无"}); + } }, onBeforeCloseSh(action, done){ if (action === 'confirm') { - updateZjdzd(this.zjdzdxx).then(response => { + if(this.zjddcsh.surveyStatus === '4') { + let surveyItem = JSON.parse(localStorage.getItem("surveyItem")); + this.$set(this.zjddcsh, 'surveyId', surveyItem.id); + } + this.$set(this.zjddcsh, 'id', this.zjdzdxx.id); + updateZjdzd(this.zjddcsh).then(response => { if(response.code === 200){ let _this =this _this.$toast({