From 762b528dd76fb18c6b422aebabaa5dd22c215d3a Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 10 Jan 2023 09:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BD=A6=E8=BE=86=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6--=E9=94=80=E5=94=AE=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cheliangtaizhang/relation/cheliangtaizhangChu.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue index 185f121db9..1e9870fddd 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue @@ -95,7 +95,7 @@ - + @@ -321,8 +321,7 @@ export default { price: [{ required: true, message: '成交价不能为空', trigger: 'blur' }], concatNo: [{ required: true, message: '合同编号不能为空', trigger: 'blur' }], isTerminal: [{ required: true, message: '是否为终端客户不能为空', trigger: 'change' }], - customerName: [{ required: true, message: '客户名称不能为空', trigger: 'change' }], - trailerOrInstallDealPrice: [{ required: true, message: '成交价不能为空', trigger: 'change' }] + customerName: [{ required: true, message: '客户名称不能为空', trigger: 'change' }] } } }, @@ -427,6 +426,10 @@ export default { }, // 保存 handleCreate() { + if (this.temp.trailerOrInstallDealPrice === '' && this.name !== '') { + this.$message({ showClose: true, type: 'error', message: '成交价不能为空' }) + return + } if (this.temp.giftsDescription !== '' && this.temp.giftsDescription !== '0' && this.temp.remarks === '') { this.$message({ showClose: true, type: 'error', message: '因赠品价值大于0,请填写备注' }) return