cosmoim-852 fix 容器整理bug修改

master
guoshuang 3 years ago
parent 0b6cd87dbd
commit e05e0a9fd9

@ -155,7 +155,7 @@ export default class KanDanHandOver extends BasePage {
qty: this.NewQty, qty: this.NewQty,
}; };
this.Submitlist.push(arr); this.Submitlist.push(arr);
this.every.qty -= parseFloat(this.NewQty); this.every.qty += parseFloat(this.NewQty);
this.model.SourceDetail.qty -= parseFloat(this.NewQty); this.model.SourceDetail.qty -= parseFloat(this.NewQty);
} }
deleteItem(e: any) { deleteItem(e: any) {
@ -166,7 +166,7 @@ export default class KanDanHandOver extends BasePage {
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
this.Submitlist.splice(e.contentIndex, 1); this.Submitlist.splice(e.contentIndex, 1);
this.every.qty += parseFloat(e.lineData.qty); this.every.qty -= parseFloat(e.lineData.qty);
this.model.SourceDetail.qty += parseFloat(e.lineData.qty); this.model.SourceDetail.qty += parseFloat(e.lineData.qty);
} else if (res.cancel) { } else if (res.cancel) {
return; return;

Loading…
Cancel
Save