From 5172cd123423e9e31c63d9a05d76476260715fda Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 27 Jun 2024 14:22:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B7=E6=AC=BE=E4=B8=9A=E5=8A=A1=E8=81=94?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 2 +- src/api/http.js | 3 + .../apply/creditApplication/index.vue | 13 +- .../apply/creditEvaluation/rating.vue | 2 +- .../apply/loanApplication/step1.vue | 28 +-- .../apply/loanApplication/step2.vue | 62 +++-- .../manage/list/corporateLoans/detail.vue | 119 ++++++--- src/pages/manage/list/corporateLoans/list.js | 7 - src/pages/manage/list/corporateLoans/loan.vue | 4 + .../manage/list/corporateLoans/management.vue | 104 +++++--- .../manage/list/corporateLoans/repayment.vue | 78 +++++- src/pages/manage/list/personalLoans/index.vue | 232 +++++++++--------- src/pages/manage/list/personalLoans/list.js | 7 - src/pages/manage/list/personalLoans/list.vue | 2 + 14 files changed, 420 insertions(+), 243 deletions(-) delete mode 100644 src/pages/manage/list/corporateLoans/list.js delete mode 100644 src/pages/manage/list/personalLoans/list.js diff --git a/src/api/api.js b/src/api/api.js index a09c21b..386ce55 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -10,7 +10,7 @@ if (dev) { // 本地 host = 'http://121.37.12.51/' // 中台测试服 // host = 'https://www.occupationlab.com/' // 正式服 - host = 'http://192.168.31.217:9000/' + host = 'http://192.168.31.51:9000/' } // 创建axios实例 const service = axios.create({ diff --git a/src/api/http.js b/src/api/http.js index 16d6d02..caeeab6 100644 --- a/src/api/http.js +++ b/src/api/http.js @@ -86,6 +86,9 @@ export const badDebtRecognition = data => { export const postLoanInvestigationInput = data => { return post(`${host}/judgment/bankPostLoanInvestigation/postLoanInvestigationInput`, data) } +export const addExtensionPeriod = data => { + return post(`${host}/judgment/bankCompanyLoans/addExtensionPeriod`, data) +} export const loanContractSave = (data) => { return post('/judgment/bankPersonalLoanContractInfo/saveOrUpdate', data) diff --git a/src/pages/manage/list/corporateLoans/apply/creditApplication/index.vue b/src/pages/manage/list/corporateLoans/apply/creditApplication/index.vue index cfae213..c32517c 100644 --- a/src/pages/manage/list/corporateLoans/apply/creditApplication/index.vue +++ b/src/pages/manage/list/corporateLoans/apply/creditApplication/index.vue @@ -326,13 +326,18 @@ export default { }, async submit () { try { - const { data } = await creditApplicationInput({ + const { form } = this + if (!form.matureRepayment && !form.otherRepayments) return this.$message.error('请选择还款来源!') + if (!form.paymentForMaterials && !form.payLaborCosts && !form.payExpenses && !form.otherUses) return this.$message.error('请选择贷款用途!') + + await creditApplicationInput({ ...this.$store.state.system.creditIds, ...this.$store.state.system.creditImportIds, - ...this.form, + ...form, }) - this.$message[data.status === 200 ? 'success' : 'error']('创建成功!') - setTimeout(this.$router.push('/counter/list/manage/orporateLoans-application'), 1500) + this.$message.success('保存成功!') + this.$parent.active = '3' + this.$parent.curStep = 0 } catch { (e) => { } } }, }, diff --git a/src/pages/manage/list/corporateLoans/apply/creditEvaluation/rating.vue b/src/pages/manage/list/corporateLoans/apply/creditEvaluation/rating.vue index d56f8a1..38c4286 100644 --- a/src/pages/manage/list/corporateLoans/apply/creditEvaluation/rating.vue +++ b/src/pages/manage/list/corporateLoans/apply/creditEvaluation/rating.vue @@ -205,7 +205,7 @@ export default { ...this.creditIds, ...this.form, }) - this.$message[data.status === 200 ? 'success' : 'error']('创建成功!') + this.$message.success('创建成功!') this.$parent.active = '2' } catch { (e) => { } } }, diff --git a/src/pages/manage/list/corporateLoans/apply/loanApplication/step1.vue b/src/pages/manage/list/corporateLoans/apply/loanApplication/step1.vue index 38bd9dd..7a5f596 100644 --- a/src/pages/manage/list/corporateLoans/apply/loanApplication/step1.vue +++ b/src/pages/manage/list/corporateLoans/apply/loanApplication/step1.vue @@ -69,7 +69,7 @@ - + @@ -102,24 +102,24 @@ export default { creditTerm: 231, annualizedInterestRate: '', loanApplicationAmount: '', - repaymentMethod: 235, + repaymentMethodOne: 235, distributionMethod: 238, }, opt1: [ { - id: 231, + id: 1, name: '1年' }, { - id: 232, + id: 3, name: '3年' }, { - id: 233, + id: 5, name: '5年' }, { - id: 234, + id: 10, name: '10年' }, ], @@ -132,10 +132,10 @@ export default { id: 236, name: '等额本息' }, - { - id: 237, - name: '先息后本' - }, + // { + // id: 237, + // name: '先息后本' + // }, ], opt3: [ { @@ -165,10 +165,10 @@ export default { companyLoanId: this.$store.state.system.creditIds.companyLoanId, }) // 缓存信用评估几个id - // this.setCreditIds({ - // companyLoanId: data.companyLoanId, // 顶部三个tab切换的公共id - // creditEvaluationId: data.creditEvaluationId, // 信用评估的id - // }) + this.setCreditIds({ + companyLoanId: data.companyLoanId, // 顶部三个tab切换的公共id + loanId: data.loanId, // 贷款申请的id + }) this.$emit('updateStep', 1) } catch { (e) => { } } }, diff --git a/src/pages/manage/list/corporateLoans/apply/loanApplication/step2.vue b/src/pages/manage/list/corporateLoans/apply/loanApplication/step2.vue index 09ce590..3340f3f 100644 --- a/src/pages/manage/list/corporateLoans/apply/loanApplication/step2.vue +++ b/src/pages/manage/list/corporateLoans/apply/loanApplication/step2.vue @@ -2,7 +2,7 @@