|
@@ -143,7 +143,7 @@
|
|
|
this.totalCount = 0
|
|
this.totalCount = 0
|
|
|
this.newList.forEach(f => {
|
|
this.newList.forEach(f => {
|
|
|
f.extInfo.positionList.forEach(o => {
|
|
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)
|
|
this.totalCount = Number(this.totalCount) + Number(o.quantity)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|