@@ -143,7 +143,7 @@
this.totalCount = 0
this.newList.forEach(f => {
f.extInfo.positionList.forEach(o => {
- if (o.isOccupy == 0 && o.quantity > 0) {
+ if (o.workOrderCode == this.wordItem.code && (!Object.prototype.hasOwnProperty.call(o, 'isOccupy') || (o.isOccupy == 0 && o.quantity > 0))) {
this.totalCount = Number(this.totalCount) + Number(o.quantity)
}
})