ysy 2 년 전
부모
커밋
d591a70fe8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 						}
 					})