Browse Source

Merge branch 'feature/houseCheckReason'

bugfix/member_move_out
wanggongfeng 3 years ago
parent
commit
0d7ededd85
  1. 40
      src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue

40
src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue

@ -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: {
@ -268,6 +285,20 @@ export default {
...res.data
}
}).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) {
@ -275,7 +306,8 @@ export default {
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')
}

Loading…
Cancel
Save