|
|
|
@ -100,7 +100,7 @@ |
|
|
|
|
<h6 class="l-title">申请人特别说明(选填)</h6> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-input v-model="form.specialInstructions" type="textarea" maxlength="500" placeholder="请输入申请述求"></el-input> |
|
|
|
|
<el-input v-model="form.specialInstructions" type="textarea" maxlength="500" placeholder="请输入申请诉求"></el-input> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="24" style="margin-top: 20px"> |
|
|
|
@ -234,19 +234,55 @@ |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<div class="m-t-30 text-center"> |
|
|
|
|
<el-button @click="submit" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
<el-button @click="beforeSubmit" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog :visible="visible" append-to-body style="z-index: 6000;" :close-on-click-modal="true" :show-close="false" |
|
|
|
|
custom-class="dia"> |
|
|
|
|
<div class="data-dia23"> |
|
|
|
|
<div slot="title" class="dia-header"> |
|
|
|
|
<div class="data-title">提示</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="popBody"> |
|
|
|
|
<p class="text-lg" style="color: #333">请进行授信审核</p> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="popBtns"> |
|
|
|
|
<el-button class="close btn hover:bg-blue-100 " @click="visible = false">取 消</el-button> |
|
|
|
|
<el-button class="sure btn hover:bg-blue-700 " type="primary" @click="submit">确 定</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog :visible="successVisible" append-to-body style="z-index: 6000;" :close-on-click-modal="false" |
|
|
|
|
:show-close="false" custom-class="dia"> |
|
|
|
|
<div class="data-dia23"> |
|
|
|
|
<div slot="title" class="dia-header"> |
|
|
|
|
<div class="data-title">提示</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="popBody" style="flex-direction: column;"> |
|
|
|
|
<p class="text-lg" style="margin-bottom: 10px;color: #333">授信完成</p> |
|
|
|
|
<p class="text-lg" style="color: #333">可进行贷款申请</p> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="popBtns"> |
|
|
|
|
<el-button class="sure btn hover:bg-blue-700 " type="primary" @click="toStep3">确 定</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { inputListen } from '@/utils/utilFunction.js' |
|
|
|
|
import { addOperation, creditApplicationInput } from '@/api/http' |
|
|
|
|
import { creditApplicationDetails, addOperation, creditApplicationInput } from '@/api/http' |
|
|
|
|
import { mapState, mapMutations } from 'vuex' |
|
|
|
|
export default { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
form: { |
|
|
|
|
applicationAccount: '913403005685450862', |
|
|
|
|
applicationAccount: '6227007200580926', |
|
|
|
|
customerName: '丛小凤', |
|
|
|
|
identificationNumber: '220602199202281229', |
|
|
|
|
contactPhoneNumber: '15890317718', |
|
|
|
@ -291,6 +327,8 @@ export default { |
|
|
|
|
name: '不良' |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
visible: false, |
|
|
|
|
successVisible: false, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -304,22 +342,44 @@ export default { |
|
|
|
|
inputListen, |
|
|
|
|
// 查询详情 |
|
|
|
|
async getDetail () { |
|
|
|
|
const id = this.creditIds.companyLoanId |
|
|
|
|
let r |
|
|
|
|
if (id) { |
|
|
|
|
const res = await creditApplicationDetails({ |
|
|
|
|
companyLoanId: id |
|
|
|
|
}) |
|
|
|
|
r = res.data.bankCreditApplication || {} |
|
|
|
|
if (r.creditId) { |
|
|
|
|
this.form.creditId = r.creditId |
|
|
|
|
this.form.cooperationPeriod = r.cooperationPeriod |
|
|
|
|
this.form.matureRepayment = r.matureRepayment === 'true' |
|
|
|
|
this.form.otherRepaymentsCheck = !!r.otherRepayments |
|
|
|
|
this.form.otherRepayments = r.otherRepayments |
|
|
|
|
this.form.paymentForMaterials = r.paymentForMaterials === 'true' |
|
|
|
|
this.form.payLaborCosts = r.payLaborCosts === 'true' |
|
|
|
|
this.form.payExpenses = r.payExpenses === 'true' |
|
|
|
|
this.form.otherUseCheck = !!r.otherUses |
|
|
|
|
this.form.otherUses = r.otherUses |
|
|
|
|
this.form.specialInstructions = r.specialInstructions |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 附件回显 |
|
|
|
|
this.initCreditImportIds({ |
|
|
|
|
corporateIdCard: '', |
|
|
|
|
mortgagePropertyCertificate: '', |
|
|
|
|
proofOfMaritalStatus: '', |
|
|
|
|
copyOfSpouseSIdCard: '', |
|
|
|
|
originalBusinessLicense: '', |
|
|
|
|
accountOpeningPermit: '', |
|
|
|
|
leaseContract: '', |
|
|
|
|
companyArticlesOfAssociation: '', |
|
|
|
|
shareholderDocuments: '', |
|
|
|
|
financialSeal: '', |
|
|
|
|
oneYearTaxPaymentCertificate: '', |
|
|
|
|
halfYearRevenue: '', |
|
|
|
|
corporateFinancialStatements: '', |
|
|
|
|
loanApplicationForm: '', |
|
|
|
|
creditAuthorizationLetter: '', |
|
|
|
|
corporateIdCard: r.corporateIdCard || '', |
|
|
|
|
mortgagePropertyCertificate: r.mortgagePropertyCertificate || '', |
|
|
|
|
proofOfMaritalStatus: r.proofOfMaritalStatus || '', |
|
|
|
|
copyOfSpouseSIdCard: r.copyOfSpouseSIdCard || '', |
|
|
|
|
originalBusinessLicense: r.originalBusinessLicense || '', |
|
|
|
|
accountOpeningPermit: r.accountOpeningPermit || '', |
|
|
|
|
leaseContract: r.leaseContract || '', |
|
|
|
|
companyArticlesOfAssociation: r.companyArticlesOfAssociation || '', |
|
|
|
|
shareholderDocuments: r.shareholderDocuments || '', |
|
|
|
|
financialSeal: r.financialSeal || '', |
|
|
|
|
oneYearTaxPaymentCertificate: r.oneYearTaxPaymentCertificate || '', |
|
|
|
|
halfYearRevenue: r.halfYearRevenue || '', |
|
|
|
|
corporateFinancialStatements: r.corporateFinancialStatements || '', |
|
|
|
|
loanApplicationForm: r.loanApplicationForm || '', |
|
|
|
|
creditAuthorizationLetter: r.creditAuthorizationLetter || '', |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 导入 |
|
|
|
@ -327,14 +387,17 @@ export default { |
|
|
|
|
this.setCreditImportIndex(i) |
|
|
|
|
this.$parent.$parent.$parent.showData('导入报表', 12) |
|
|
|
|
}, |
|
|
|
|
async submit () { |
|
|
|
|
try { |
|
|
|
|
async beforeSubmit () { |
|
|
|
|
const { form } = this |
|
|
|
|
if (!form.matureRepayment && !form.otherRepaymentsCheck) return this.$message.error('请选择还款来源!') |
|
|
|
|
if (form.otherRepaymentsCheck && !form.otherRepayments) return this.$message.error('请输入其他的还款来源!') |
|
|
|
|
if (!form.paymentForMaterials && !form.payLaborCosts && !form.payExpenses && !form.otherUses) return this.$message.error('请选择贷款用途!') |
|
|
|
|
if (!form.paymentForMaterials && !form.payLaborCosts && !form.payExpenses && !form.otherUseCheck) return this.$message.error('请选择贷款用途!') |
|
|
|
|
if (form.otherUseCheck && !form.otherUses) return this.$message.error('请输入其他的用途!') |
|
|
|
|
|
|
|
|
|
this.visible = true |
|
|
|
|
}, |
|
|
|
|
async submit () { |
|
|
|
|
try { |
|
|
|
|
const { form } = this |
|
|
|
|
// 判分 |
|
|
|
|
await creditApplicationInput({ |
|
|
|
|
...this.$store.state.system.creditIds, |
|
|
|
@ -344,31 +407,34 @@ export default { |
|
|
|
|
|
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,768' |
|
|
|
|
const rule = [] |
|
|
|
|
form.matureRepayment && rule.push({ answerId: 799, emptyOne: '', emptyTwo: '', operationIds: preId + ',798,799', type: '' }) |
|
|
|
|
form.otherRepayments && rule.push({ answerId: 800, emptyOne: 125, emptyTwo: form.otherRepayments, operationIds: preId + ',798,800', type: 3 }) |
|
|
|
|
form.paymentForMaterials && rule.push({ answerId: 834, emptyOne: '', emptyTwo: '', operationIds: preId + ',833,834', type: '' }) |
|
|
|
|
form.payLaborCosts && rule.push({ answerId: 835, emptyOne: '', emptyTwo: '', operationIds: preId + ',833,835', type: '' }) |
|
|
|
|
form.payExpenses && rule.push({ answerId: 836, emptyOne: '', emptyTwo: '', operationIds: preId + ',833,836', type: '' }) |
|
|
|
|
form.otherUses && rule.push({ answerId: 800, emptyOne: 125, emptyTwo: form.otherUses, operationIds: preId + ',833,837', type: 3 }) |
|
|
|
|
form.cooperationPeriod && rule.push({ answerId: 875, emptyOne: 149, emptyTwo: form.cooperationPeriod, operationIds: preId + ',875', type: 3 }) |
|
|
|
|
form.matureRepayment && rule.push({ answerId: 798, emptyOne: 147, emptyTwo: 269, operationIds: preId + ',798', type: 1 }) |
|
|
|
|
form.otherRepayments && rule.push({ answerId: 798, emptyOne: 147, emptyTwo: 270, operationIds: preId + ',798', type: 1 }) |
|
|
|
|
|
|
|
|
|
form.paymentForMaterials && rule.push({ answerId: 833, emptyOne: 148, emptyTwo: 271, operationIds: preId + ',833', type: 1 }) |
|
|
|
|
form.payLaborCosts && rule.push({ answerId: 833, emptyOne: 148, emptyTwo: 272, operationIds: preId + ',833', type: 1 }) |
|
|
|
|
form.payExpenses && rule.push({ answerId: 833, emptyOne: 148, emptyTwo: 273, operationIds: preId + ',833', type: 1 }) |
|
|
|
|
form.otherUses && rule.push({ answerId: 833, emptyOne: 148, emptyTwo: 274, operationIds: preId + ',833', type: 1 }) |
|
|
|
|
|
|
|
|
|
form.specialInstructions && rule.push({ answerId: 802, emptyOne: 125, emptyTwo: form.specialInstructions, operationIds: preId + ',802', type: 3 }) |
|
|
|
|
|
|
|
|
|
// 附件的判分,都是点击题 |
|
|
|
|
const files = this.creditImportIds |
|
|
|
|
files.corporateIdCard && rule.push({ answerId: 804, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,804', type: '' }) |
|
|
|
|
files.mortgagePropertyCertificate && rule.push({ answerId: 805, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,805', type: '' }) |
|
|
|
|
files.proofOfMaritalStatus && rule.push({ answerId: 806, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,806', type: '' }) |
|
|
|
|
files.copyOfSpouseSIdCard && rule.push({ answerId: 807, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,807', type: '' }) |
|
|
|
|
files.originalBusinessLicense && rule.push({ answerId: 808, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,808', type: '' }) |
|
|
|
|
files.accountOpeningPermit && rule.push({ answerId: 809, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,809', type: '' }) |
|
|
|
|
files.leaseContract && rule.push({ answerId: 810, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,810', type: '' }) |
|
|
|
|
files.companyArticlesOfAssociation && rule.push({ answerId: 811, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,811', type: '' }) |
|
|
|
|
files.shareholderDocuments && rule.push({ answerId: 812, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,812', type: '' }) |
|
|
|
|
files.financialSeal && rule.push({ answerId: 813, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,813', type: '' }) |
|
|
|
|
files.oneYearTaxPaymentCertificate && rule.push({ answerId: 814, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,814', type: '' }) |
|
|
|
|
files.halfYearRevenue && rule.push({ answerId: 815, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,815', type: '' }) |
|
|
|
|
files.corporateFinancialStatements && rule.push({ answerId: 817, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,817', type: '' }) |
|
|
|
|
files.loanApplicationForm && rule.push({ answerId: 818, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,818', type: '' }) |
|
|
|
|
files.creditAuthorizationLetter && rule.push({ answerId: 819, emptyOne: '', emptyTwo: '', operationIds: preId + ',803,819', type: '' }) |
|
|
|
|
files.corporateIdCard && rule.push({ answerId: 804, emptyOne: 146, emptyTwo: files.corporateIdCard, operationIds: preId + ',803,804', type: 1 }) |
|
|
|
|
files.mortgagePropertyCertificate && rule.push({ answerId: 805, emptyOne: 146, emptyTwo: files.mortgagePropertyCertificate, operationIds: preId + ',803,805', type: 1 }) |
|
|
|
|
files.proofOfMaritalStatus && rule.push({ answerId: 806, emptyOne: 146, emptyTwo: files.proofOfMaritalStatus, operationIds: preId + ',803,806', type: 1 }) |
|
|
|
|
files.copyOfSpouseSIdCard && rule.push({ answerId: 807, emptyOne: 146, emptyTwo: files.copyOfSpouseSIdCard, operationIds: preId + ',803,807', type: 1 }) |
|
|
|
|
files.originalBusinessLicense && rule.push({ answerId: 808, emptyOne: 146, emptyTwo: files.originalBusinessLicense, operationIds: preId + ',803,808', type: 1 }) |
|
|
|
|
files.accountOpeningPermit && rule.push({ answerId: 809, emptyOne: 146, emptyTwo: files.accountOpeningPermit, operationIds: preId + ',803,809', type: 1 }) |
|
|
|
|
files.leaseContract && rule.push({ answerId: 810, emptyOne: 146, emptyTwo: files.leaseContract, operationIds: preId + ',803,810', type: 1 }) |
|
|
|
|
files.companyArticlesOfAssociation && rule.push({ answerId: 811, emptyOne: 146, emptyTwo: files.companyArticlesOfAssociation, operationIds: preId + ',803,811', type: 1 }) |
|
|
|
|
files.shareholderDocuments && rule.push({ answerId: 812, emptyOne: 146, emptyTwo: files.shareholderDocuments, operationIds: preId + ',803,812', type: 1 }) |
|
|
|
|
files.financialSeal && rule.push({ answerId: 813, emptyOne: 146, emptyTwo: files.financialSeal, operationIds: preId + ',803,813', type: 1 }) |
|
|
|
|
files.oneYearTaxPaymentCertificate && rule.push({ answerId: 814, emptyOne: 146, emptyTwo: files.oneYearTaxPaymentCertificate, operationIds: preId + ',803,814', type: 1 }) |
|
|
|
|
files.halfYearRevenue && rule.push({ answerId: 815, emptyOne: 146, emptyTwo: files.halfYearRevenue, operationIds: preId + ',803,815', type: 1 }) |
|
|
|
|
files.corporateFinancialStatements && rule.push({ answerId: 817, emptyOne: 146, emptyTwo: files.corporateFinancialStatements, operationIds: preId + ',803,817', type: 1 }) |
|
|
|
|
files.loanApplicationForm && rule.push({ answerId: 818, emptyOne: 146, emptyTwo: files.loanApplicationForm, operationIds: preId + ',803,818', type: 1 }) |
|
|
|
|
files.creditAuthorizationLetter && rule.push({ answerId: 819, emptyOne: 146, emptyTwo: files.creditAuthorizationLetter, operationIds: preId + ',803,819', type: 1 }) |
|
|
|
|
|
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
@ -377,15 +443,21 @@ export default { |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.$message.success('保存成功!') |
|
|
|
|
this.successVisible = true |
|
|
|
|
} catch { (e) => { } } |
|
|
|
|
}, |
|
|
|
|
// 跳转到第三步 |
|
|
|
|
toStep3 () { |
|
|
|
|
this.$parent.active = '3' |
|
|
|
|
this.$parent.curStep = 0 |
|
|
|
|
} catch { (e) => { } } |
|
|
|
|
this.$parent.tab3Disabled = false |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang='scss' scoped> |
|
|
|
|
@import '@/styles/dialog.scss'; |
|
|
|
|
|
|
|
|
|
.l-title { |
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
font-size: 18px; |
|
|
|
|