秀山需求变更完成
This commit is contained in:
@@ -3,7 +3,19 @@
|
||||
<ai-detail>
|
||||
<ai-title slot="title" title="贷款审核详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})">
|
||||
<template #rightBtn>
|
||||
<el-button v-if="isAuthing&&isFinanceAdmin" type="primary" @click="dialog=true">审核</el-button>
|
||||
<ai-dialog-btn dialogTitle="审批" :customFooter="false" @closed="form={}" @onConfirm="()=>submitAudit('/app/appfinancialloanapply/checkLoanApply')"
|
||||
width="560px" v-if="isAuthing&&isFinanceAdmin">
|
||||
<el-button slot="btn" type="primary">审核</el-button>
|
||||
<el-form :model="form" :rules="rules" ref="AuditForm" size="small" label-width="120px">
|
||||
<el-form-item label="审批结果" prop="auditStatus">
|
||||
<ai-select v-model="form.auditStatus" :selectList="auditOps"/>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.auditStatus==2" label="审批意见" prop="auditDescription">
|
||||
<el-input type="textarea" v-model="form.auditDescription" placeholder="请输入" maxlength="200" show-word-limit/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ai-dialog-btn>
|
||||
<el-button v-if="isChecking&&isFinanceAdmin" type="primary" @click="dialog=true">审核</el-button>
|
||||
</template>
|
||||
</ai-title>
|
||||
<template #content>
|
||||
@@ -138,7 +150,7 @@
|
||||
<ai-dialog :visible.sync="dialog" title="审批" @closed="form={}" @onConfirm="submitAudit" width="560px">
|
||||
<el-form :model="form" :rules="rules" ref="AuditForm" size="small" label-width="120px">
|
||||
<el-form-item label="审批结果" prop="auditStatus">
|
||||
<ai-select v-model="form.auditStatus" :selectList="dict.getDict('enterpriseAuditStatus')"/>
|
||||
<ai-select v-model="form.auditStatus" :selectList="auditOps"/>
|
||||
</el-form-item>
|
||||
<template v-if="form.auditStatus==1">
|
||||
<template v-if="isGuaranteeProduct">
|
||||
@@ -191,7 +203,12 @@ export default {
|
||||
isAuthing() {
|
||||
return this.detail.status == "0"
|
||||
},
|
||||
isGuaranteeProduct: v => v.detail.organizationType == 2
|
||||
isChecking: v => v.detail.status == 3,
|
||||
isGuaranteeProduct: v => v.detail.organizationType == 2,
|
||||
auditOps: v => v.dict.getDict('enterpriseAuditStatus')?.map(e => ({
|
||||
...e,
|
||||
dictName: e.dictValue == 1 && v.detail.status == "0" ? "待核查" : e.dictName
|
||||
})) || []
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -222,11 +239,12 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
submitAudit() {
|
||||
submitAudit(action = "/app/appfinancialloanapply/auditLoanApply") {
|
||||
this.$refs.AuditForm.validate(v => {
|
||||
if (v) {
|
||||
let {id} = this.detail
|
||||
this.instance.post("/app/appfinancialloanapply/auditLoanApply", null, {
|
||||
this.instance.post(action, null, {
|
||||
throttle: 1000,
|
||||
params: {id, ...this.form}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
|
||||
Reference in New Issue
Block a user