diff --git a/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue b/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue index 2cad16bd..ba3a95a1 100644 --- a/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue +++ b/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue @@ -116,18 +116,32 @@ + + + + + + + 取 消 + 确 定 + + @@ -176,7 +190,10 @@ export default { { dictValue: '孙子女', dictName: '孙子女' }, { dictValue: '兄弟姐妹', dictName: '兄弟姐妹' }, { dictValue: '中介', dictName: '中介' } - ] + ], + checkReason: '', + checkVisible: false, + disabledBtn: false } }, computed: { @@ -269,13 +286,28 @@ export default { } }).catch(() => {}) }, + // 打开审核不通过对话框 + openCheckReasonDialog(){ + this.checkVisible = true + this.checkReason = '' + this.disabledBtn = false + }, + // 不通过审核意见提交 + dialogCheckHandle(){ + if(this.checkReason === ''){ + return this.$message.error('请填写不通过原因') + } + this.checkHandle('2') + this.disabledBtn = true + }, // 审核提交方法 checkHandle: function (type) { const params = { id: this.dataForm.id, state: type, homeId: this.dataForm.homeId, - lessorRelation: this.dataForm.lessorRelation + lessorRelation: this.dataForm.lessorRelation, + reason: this.checkReason } this.$http.post('/pli/power/rentContractInfo/review', params).then(({ data: res }) => { if (res.code !== 0) { @@ -296,6 +328,8 @@ export default { type: 'success', duration: 500, onClose: () => { + this.disabledBtn = false + this.checkVisible = false this.visible = false this.$emit('refreshDataList') }