|
|
@ -340,6 +340,9 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因政策类别为优惠,则优惠包类别只能选择赠送优惠' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.salesPolicyKey === '0001') { |
|
|
|
this.temp.projectCost = '0' |
|
|
|
} |
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.disabled = true |
|
|
@ -367,6 +370,9 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因政策类别为优惠,则优惠包类别只能选择赠送优惠' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.salesPolicyKey === '0001') { |
|
|
|
this.temp.projectCost = '0' |
|
|
|
} |
|
|
|
if (this.temp.salesPolicy === '促销' && this.temp.baseDiscountpackageVehs.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因政策类别为促销,则享受促销政策的车辆列表不能为空' }) |
|
|
|
return |
|
|
|