|
|
@ -204,10 +204,9 @@ export default { |
|
|
|
saveOrUpdate() { |
|
|
|
if (this.formobj.smsPricestrategyBillDetailList.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.smsPricestrategyBillDetailList.length; i++) { |
|
|
|
if (this.formobj.smsPricestrategyBillDetailList[i].strategyType = '') { |
|
|
|
this.$message({ showClose: true, type: 'warning', message: '商品类别列表中价格策略不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.smsPricestrategyBillDetailList[i].strategyType === '') { |
|
|
|
this.$message({ showClose: true, type: 'warning', message: '商品类别列表中价格策略不能为空' }) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'warning', message: '商品类别列表不能为空' }) |
|
|
@ -236,7 +235,7 @@ export default { |
|
|
|
submit() { |
|
|
|
if (this.formobj.smsPricestrategyBillDetailList.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.smsPricestrategyBillDetailList.length; i++) { |
|
|
|
if (this.formobj.smsPricestrategyBillDetailList[i].strategyType = '') { |
|
|
|
if (this.formobj.smsPricestrategyBillDetailList[i].strategyType === '') { |
|
|
|
this.$message({ showClose: true, type: 'warning', message: '商品类别列表中价格策略不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|