From 4e6f8aead9e762a4b5f35668472c9f848d65b6e1 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Tue, 13 May 2025 15:04:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=A4=E5=9B=9E=E8=BD=A6?=
=?UTF-8?q?=E8=BE=86=E4=BA=8C=E6=AC=A1=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?--=E8=A1=A5=E5=85=85=E5=90=88=E5=90=8C=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../relation/generatecontract.vue | 61 ++++++++++++-------
.../views/secondarysales/secondarysales.vue | 2 +-
2 files changed, 41 insertions(+), 22 deletions(-)
diff --git a/anrui-riskcenter-ui/src/views/secondarysales/relation/generatecontract.vue b/anrui-riskcenter-ui/src/views/secondarysales/relation/generatecontract.vue
index 15365b8865..43e146cb12 100644
--- a/anrui-riskcenter-ui/src/views/secondarysales/relation/generatecontract.vue
+++ b/anrui-riskcenter-ui/src/views/secondarysales/relation/generatecontract.vue
@@ -5,7 +5,6 @@
{{ viewTitle }}
保存
- 生成
关闭
@@ -31,7 +30,7 @@
- 新车主名称
+ *新车主名称
@@ -39,11 +38,11 @@
- 客户类型
+ *客户类型
{{ formobj.customerType }}
- 联系电话
+ *联系电话
{{ formobj.mobile }}
@@ -80,6 +79,23 @@
+ 附件
+
+
+ 合同
+
+
+
+
+
+
+
+ 证件
+
+
+
+
+
@@ -184,6 +200,8 @@ export default {
endDate: '',
certificateAddress: '',
loanSecondarySalesVehVoList: [],
+ contractFiles: [],
+ otherFiles: []
},
rules: {}
}
@@ -275,9 +293,27 @@ export default {
}
},
saveOrUpdate() {
+ if (this.formobj.customerName === '' || this.formobj.mobile === '' || this.formobj.customerType === '') {
+ this.$message({ showClose: true, type: 'error', message: '客户信息中新车主名称、客户类型、联系电话等不能为空' })
+ return
+ }
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
+ if (this.formobj.contractFiles.length > 0) {
+ const aa = []
+ this.formobj.contractFiles.forEach((e) => {
+ aa.push(e.url)
+ })
+ this.formobj.contractFiles = aa
+ }
+ if (this.formobj.otherFiles.length > 0) {
+ const bb = []
+ this.formobj.otherFiles.forEach((e) => {
+ bb.push(e.url)
+ })
+ this.formobj.otherFiles = bb
+ }
req.save(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
@@ -291,23 +327,6 @@ export default {
}
})
},
- submit() {
- // this.$refs['form_obj'].validate((valid) => {
- // if (valid) {
- // this.submitdisabled = true
- // req.saveOrUpdate(this.formobj).then((res) => {
- // if (res.success) {
- // this.$message({ showClose: true, type: 'success', message: '保存成功' })
- // this.handleReturn('true')
- // } else {
- // this.submitdisabled = false
- // }
- // }).catch(() => {
- // this.submitdisabled = false
- // })
- // }
- // })
- },
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
diff --git a/anrui-riskcenter-ui/src/views/secondarysales/secondarysales.vue b/anrui-riskcenter-ui/src/views/secondarysales/secondarysales.vue
index c33012304e..3e11fb3516 100644
--- a/anrui-riskcenter-ui/src/views/secondarysales/secondarysales.vue
+++ b/anrui-riskcenter-ui/src/views/secondarysales/secondarysales.vue
@@ -202,7 +202,7 @@ export default {
size: 'small',
icon: '',
btnKey: 'toCreate',
- btnLabel: '生成合同'
+ btnLabel: '补充信息'
},
{
type: 'primary',