...
|
...
|
@@ -242,6 +242,12 @@ |
|
|
const index = row.lineIndex;
|
|
|
const salesPrice = newSalesPrice;
|
|
|
const productSkn = row.productSkn;
|
|
|
const fmt = /^\d{1,5}$/;
|
|
|
|
|
|
if (!fmt.test(newSalesPrice) || newSalesPrice <= 0) {
|
|
|
this.$Message.error('销售价必须是大于0,不包含小数点且最多五位的数字', 5);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (newSalesPrice > row.retailPrice) {
|
|
|
this.$Message.error('销售价不能大于吊牌价');
|
...
|
...
|
|