diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index 29de7bb7..1b668e91 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -10,7 +10,7 @@
- + diff --git a/src/mycomponents/qty/recommendHandleQty.vue b/src/mycomponents/qty/recommendHandleQty.vue index 6263af6b..20ac670d 100644 --- a/src/mycomponents/qty/recommendHandleQty.vue +++ b/src/mycomponents/qty/recommendHandleQty.vue @@ -9,11 +9,12 @@ {{Number(dataContent.qty)}} + - + diff --git a/src/pages/productionReturn/job/okToReturnDetail.vue b/src/pages/productionReturn/job/okToReturnDetail.vue index 5a8ad359..8e5a865a 100644 --- a/src/pages/productionReturn/job/okToReturnDetail.vue +++ b/src/pages/productionReturn/job/okToReturnDetail.vue @@ -206,17 +206,26 @@ await getManagementPrecisions(itemCodes, that.fromLocationCode, res => { if (res.success) { this.managementList = res.list; - this.managementType = this.managementList.some(item => item.ManagementPrecision == - 'BY_BATCH') ? 'BY_BATCH' : '' - if(this.managementType == 'BY_BATCH'){ - that.detailSource.forEach(item=>{ - item.subList.forEach(cur=>{ - cur.packingNumber='' - cur.toPackingNumber='' - cur.fromPackingNumber='' - }) + this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision + this.managementType = 'BY_QUANTITY' + if(this.managementType == 'BY_BATCH'){ + that.detailSource.forEach(item=>{ + item.subList.forEach(cur=>{ + cur.packingNumber='' + cur.toPackingNumber='' + cur.fromPackingNumber='' }) - } + }) + }else if(this.managementType == 'BY_QUANTITY'){ + that.detailSource.forEach(item=>{ + item.subList.forEach(cur=>{ + cur.packingNumber='' + cur.toPackingNumber='' + cur.fromPackingNumber='' + cur.batch='' + }) + }) + } } }) } else {