|
|
@ -116,18 +116,32 @@ |
|
|
|
</label> |
|
|
|
</template> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核原因" prop="reason" v-if="dataForm.flag === '1' && dataForm.state === '2'"> |
|
|
|
<el-input v-model="dataForm.reason" placeholder="审核原因" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<template slot="footer"> |
|
|
|
<div class="resi-btns"> |
|
|
|
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> |
|
|
|
<el-button v-if="dataForm.state === '0'" type="danger" @click="checkHandle('2')">{{ $t('checkBTGBtn') }}</el-button> |
|
|
|
<el-button v-if="dataForm.state === '0'" type="danger" @click="openCheckReasonDialog">{{ $t('checkBTGBtn') }}</el-button> |
|
|
|
<el-button v-if="dataForm.state === '0'" type="primary" @click="checkHandle('1')">{{ $t('checkTGBtn') }}</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<el-dialog :visible.sync="dialogVisible" :modal="false"> |
|
|
|
<img width="100%" :src="dialogImageUrl" alt=""> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
title="审核不通过原因" |
|
|
|
:visible.sync="checkVisible" |
|
|
|
width="30%" |
|
|
|
append-to-body> |
|
|
|
<el-input v-model="checkReason" placeholder="请输入审核不通过原因"></el-input> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="checkVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="dialogCheckHandle" :disabled="disabledBtn">确 定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
|
|
|
@ -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') |
|
|
|
} |
|
|
|