From 25244179fa3a9d2358bb9bff0207f2f89acef830 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Wed, 23 Aug 2023 17:57:20 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=B6=E8=AE=BF=E5=87=86?=
=?UTF-8?q?=E5=A4=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../homevisitpreparation.js | 14 ++++++
.../homevisittobeprepared.vue | 44 ++++++++++++++++++-
2 files changed, 56 insertions(+), 2 deletions(-)
diff --git a/anrui-riskcenter-ui/src/api/homevisitpreparation/homevisitpreparation.js b/anrui-riskcenter-ui/src/api/homevisitpreparation/homevisitpreparation.js
index 91ed7bf8f9..03e7472616 100644
--- a/anrui-riskcenter-ui/src/api/homevisitpreparation/homevisitpreparation.js
+++ b/anrui-riskcenter-ui/src/api/homevisitpreparation/homevisitpreparation.js
@@ -16,5 +16,19 @@ export default {
method: 'get',
params: data
})
+ },
+ initConSetUp: function(data) {
+ return request({
+ url: '/riskcenter/v1/loanhomevisitprep/initConSetUp/' + data,
+ method: 'get'
+ })
+ },
+ saveLoanCon: function(data) {
+ return request({
+ url: '/riskcenter/v1/loanhomevisitprep/saveLoanCon',
+ method: 'post',
+ params: data
+ })
}
+
}
diff --git a/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisittobeprepared.vue b/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisittobeprepared.vue
index 8e815facd6..d613e52de2 100644
--- a/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisittobeprepared.vue
+++ b/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisittobeprepared.vue
@@ -126,6 +126,17 @@
+
+
+
+ 一车一合同
+ 一贷款人一合同
+
+
+
@@ -150,6 +161,7 @@ export default {
return {
viewState: 1,
btndisabled: false,
+ dialogVisible: false,
btnList: [
{
type: 'primary',
@@ -200,6 +212,7 @@ export default {
size: 10,
total: 0
},
+ contract: '',
rules: {}
}
},
@@ -276,10 +289,37 @@ export default {
})
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
- return
}
},
- toContract() {},
+ toContract() {
+ if (this.sids.length === 1) {
+ req.initConSetUp(this.sids[0]).then((res) => {
+ if (res.data === '003') {
+ this.dialogVisible = true
+ this.contract = ''
+ } else {
+ this.saveLoanCon(res.data)
+ }
+ })
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
+ }
+ },
+ handleConfirm() {
+ if (this.contract !== '') {
+ this.dialogVisible = false
+ this.saveLoanCon(this.contract)
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择相应的生成合同设置方式' })
+ }
+ },
+ saveLoanCon(val) {
+ req.saveLoanCon({ sid: this.sids[0], conSetUpKey: val }).then((res) => {
+ if (res.success) {
+ this.$message({ showClose: true, type: 'success', message: '操作成功'})
+ }
+ })
+ },
handleLook(row) {
this.viewState = 3
this.$refs['divSale'].showInfo(row.saleOrderSid)