|
@@ -3132,17 +3132,11 @@ export default {
|
|
|
//费用判断是否需要调用删除接口
|
|
|
if (row.id) {
|
|
|
corpsitem(row.id).then(res => {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
+ this.$message.success("操作成功!");
|
|
|
this.advantageProjectData.splice(row.$index, 1);
|
|
|
})
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
+ this.$message.success("操作成功!");
|
|
|
this.advantageProjectData.splice(row.$index, 1);
|
|
|
}
|
|
|
})
|
|
@@ -3158,6 +3152,12 @@ export default {
|
|
|
if (Number(data[i].orderQuantity) > Number(data[i].storageQuantity)) {
|
|
|
return this.$message.error('商品信息第' + (Number(i) + 1) + '行订货数量大于库存数量')
|
|
|
}
|
|
|
+ if (!Number(data[i].purchaseAmount)) {
|
|
|
+ return this.$message.error('商品信息第' + (parseInt(i) + 1) + '行采购价格不能为空')
|
|
|
+ }
|
|
|
+ if (Number(data[i].purchaseAmount) === 0) {
|
|
|
+ return this.$message.error('商品信息第' + (parseInt(i) + 1) + '行采购价格不能为0')
|
|
|
+ }
|
|
|
}
|
|
|
let integral = 0;//积分
|
|
|
if (length1) {
|
|
@@ -3184,7 +3184,7 @@ export default {
|
|
|
goodsData.filter(item => Number(item.size) >= 17).forEach(item => sizeNum += Number(item.orderQuantity));
|
|
|
this.$set(this.form, 'specialOfferOf', allNum == 0 ? '0.00' : (specialNum / allNum * 100).toFixed(2));
|
|
|
this.$set(this.form, 'largeScale', allNum == 0 ? '0.00' : (sizeNum / allNum * 100).toFixed(2));
|
|
|
- for (let item in this.goodsData) {
|
|
|
+ for (let item in goodsData) {
|
|
|
if (Number(goodsData[item].orderQuantity) > Number(goodsData[item].storageQuantity)) {
|
|
|
return this.$message.error('商品信息第' + (parseInt(item) + 1) + '行订货数量不能超过库存')
|
|
|
}
|