|
@@ -983,7 +983,7 @@ export default {
|
|
|
addDemand(this.basicForm).then(res => {
|
|
|
console.log(333)
|
|
|
if (res.code === 200) {
|
|
|
- this.$modal.notifySuccess("保存成功");
|
|
|
+ this.$modal.notifySuccess(res.msg);
|
|
|
this.$modal.closeLoading();
|
|
|
this.back()
|
|
|
}
|
|
@@ -1000,7 +1000,7 @@ export default {
|
|
|
// this.basicForm.puDemandItemList.push(...this.delDemandItemList)
|
|
|
editDemand(param).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.$modal.notifySuccess("编辑成功");
|
|
|
+ this.$modal.notifySuccess(res.msg);
|
|
|
this.$modal.closeLoading();
|
|
|
this.back()
|
|
|
}
|
|
@@ -1105,7 +1105,7 @@ export default {
|
|
|
},
|
|
|
// 单元格标红
|
|
|
cellClassName({row, column, rowIndex, columnIndex}) {
|
|
|
- if(this.basicForm.isCustomerSpecified == 'N' && column.label == '需求可用周期' && Number(row.demandPeriod) > 1.5 && Number(row.demandPeriod) > Number(row.minOrderQty)) {
|
|
|
+ if(this.basicForm.isCustomerSpecified == 'N' && column.label == '需求可用周期' && Number(row.demandPeriod) > 1.5 && Number(row.qty) > Number(row.minOrderQty)) {
|
|
|
return 'success-row';
|
|
|
}
|
|
|
},
|