|
@ -206,8 +206,8 @@ |
|
|
await getManagementPrecisions(itemCodes, that.fromLocationCode, res => { |
|
|
await getManagementPrecisions(itemCodes, that.fromLocationCode, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.managementList = res.list; |
|
|
this.managementList = res.list; |
|
|
this.managementType = this.managementList.some(item => item.ManagementPrecision == |
|
|
this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision |
|
|
'BY_BATCH') ? 'BY_BATCH' : '' |
|
|
this.managementType = 'BY_QUANTITY' |
|
|
if(this.managementType == 'BY_BATCH'){ |
|
|
if(this.managementType == 'BY_BATCH'){ |
|
|
that.detailSource.forEach(item=>{ |
|
|
that.detailSource.forEach(item=>{ |
|
|
item.subList.forEach(cur=>{ |
|
|
item.subList.forEach(cur=>{ |
|
@ -216,6 +216,15 @@ |
|
|
cur.fromPackingNumber='' |
|
|
cur.fromPackingNumber='' |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else if(this.managementType == 'BY_QUANTITY'){ |
|
|
|
|
|
that.detailSource.forEach(item=>{ |
|
|
|
|
|
item.subList.forEach(cur=>{ |
|
|
|
|
|
cur.packingNumber='' |
|
|
|
|
|
cur.toPackingNumber='' |
|
|
|
|
|
cur.fromPackingNumber='' |
|
|
|
|
|
cur.batch='' |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|