ysy 2 ani în urmă
părinte
comite
d591a70fe8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      pages/pda/jobBooking/components/turnoverBom.vue

+ 1 - 1
pages/pda/jobBooking/components/turnoverBom.vue

@@ -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)
 						}
 					})