秀山需求变更完成
This commit is contained in:
@@ -3,7 +3,19 @@
|
|||||||
<ai-detail>
|
<ai-detail>
|
||||||
<ai-title slot="title" title="贷款审核详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})">
|
<ai-title slot="title" title="贷款审核详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})">
|
||||||
<template #rightBtn>
|
<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>
|
</template>
|
||||||
</ai-title>
|
</ai-title>
|
||||||
<template #content>
|
<template #content>
|
||||||
@@ -138,7 +150,7 @@
|
|||||||
<ai-dialog :visible.sync="dialog" title="审批" @closed="form={}" @onConfirm="submitAudit" width="560px">
|
<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 :model="form" :rules="rules" ref="AuditForm" size="small" label-width="120px">
|
||||||
<el-form-item label="审批结果" prop="auditStatus">
|
<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>
|
</el-form-item>
|
||||||
<template v-if="form.auditStatus==1">
|
<template v-if="form.auditStatus==1">
|
||||||
<template v-if="isGuaranteeProduct">
|
<template v-if="isGuaranteeProduct">
|
||||||
@@ -191,7 +203,12 @@ export default {
|
|||||||
isAuthing() {
|
isAuthing() {
|
||||||
return this.detail.status == "0"
|
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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -222,11 +239,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submitAudit() {
|
submitAudit(action = "/app/appfinancialloanapply/auditLoanApply") {
|
||||||
this.$refs.AuditForm.validate(v => {
|
this.$refs.AuditForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
let {id} = this.detail
|
let {id} = this.detail
|
||||||
this.instance.post("/app/appfinancialloanapply/auditLoanApply", null, {
|
this.instance.post(action, null, {
|
||||||
|
throttle: 1000,
|
||||||
params: {id, ...this.form}
|
params: {id, ...this.form}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user