Browse Source

2025.02.07 绩效&送货计划 第三版 优化

master
yuejiayang 11 months ago
parent
commit
a834cbd7d8
  1. 8
      src/views/modules/deliverySchedule/supplierDeliverySchedule.vue

8
src/views/modules/deliverySchedule/supplierDeliverySchedule.vue

@ -822,13 +822,15 @@ export default {
return sums;
},
validateDeliveryQty(row) {
validateDeliveryQty(row,type) {
if (row.deliveryQty > row.pendingQty) {
this.$message.error('此次送货数量不能大于待送货数量');
row.deliveryQty = row.pendingQty; //
throw new Error('此次送货数量不能大于待送货数量!'); //
} else {
this.updateDeliveryQty(row)
if (type !== 2){
this.updateDeliveryQty(row)
}
}
},
@ -916,7 +918,7 @@ export default {
}
try {
for (const item of this.modalData.SupplierDeliveryScheduleList) {
await this.validateDeliveryQty(item)
await this.validateDeliveryQty(item,2)
}
let inData = {
site: this.$store.state.user.site,

Loading…
Cancel
Save