|
|
@ -206,8 +206,8 @@ |
|
|
|
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' : '' |
|
|
|
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=>{ |
|
|
@ -216,6 +216,15 @@ |
|
|
|
cur.fromPackingNumber='' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else if(this.managementType == 'BY_QUANTITY'){ |
|
|
|
that.detailSource.forEach(item=>{ |
|
|
|
item.subList.forEach(cur=>{ |
|
|
|
cur.packingNumber='' |
|
|
|
cur.toPackingNumber='' |
|
|
|
cur.fromPackingNumber='' |
|
|
|
cur.batch='' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|