From 2d313944f8fb37e795e6e6c40b4220d2f27d454f Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 23 Jan 2024 15:45:49 +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=E8=BD=AC=E7=A7=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/secondarysublet/secondarysubletAdd.vue | 6 +++++- .../views/workFlow/ercizhuanzuFlow/secondarysubletEdit.vue | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/secondarysublet/secondarysubletAdd.vue b/anrui-riskcenter-ui/src/views/secondarysublet/secondarysubletAdd.vue index 5e9891d874..5857a21f03 100644 --- a/anrui-riskcenter-ui/src/views/secondarysublet/secondarysubletAdd.vue +++ b/anrui-riskcenter-ui/src/views/secondarysublet/secondarysubletAdd.vue @@ -71,7 +71,7 @@ @@ -334,6 +334,10 @@ export default { submit() { this.$refs['form_obj'].validate((valid) => { if (valid) { + if (this.formobj.vinList.length === 0) { + this.$message({ showClose: true, type: 'error', message: '二次销售车辆列表不能为空' }) + return + } this.submitdisabled = true req.submit(this.formobj).then((res) => { if (res.success) { diff --git a/anrui-riskcenter-ui/src/views/workFlow/ercizhuanzuFlow/secondarysubletEdit.vue b/anrui-riskcenter-ui/src/views/workFlow/ercizhuanzuFlow/secondarysubletEdit.vue index c1d186c75b..cd4b2edb98 100644 --- a/anrui-riskcenter-ui/src/views/workFlow/ercizhuanzuFlow/secondarysubletEdit.vue +++ b/anrui-riskcenter-ui/src/views/workFlow/ercizhuanzuFlow/secondarysubletEdit.vue @@ -70,7 +70,7 @@ @@ -333,6 +333,10 @@ export default { submit() { this.$refs['form_obj'].validate((valid) => { if (valid) { + if (this.formobj.vinList.length === 0) { + this.$message({ showClose: true, type: 'error', message: '二次销售车辆列表不能为空' }) + return + } this.submitdisabled = true req.submit(this.formobj).then((res) => { if (res.success) {