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