|
@@ -635,25 +635,25 @@
|
|
|
if (this.isInterior) {
|
|
if (this.isInterior) {
|
|
|
res = await storageApi.getInboundDetailsById(id);
|
|
res = await storageApi.getInboundDetailsById(id);
|
|
|
} else {
|
|
} else {
|
|
|
- res = await storageApi.getInfoBySourceBizNo(id);
|
|
|
|
|
|
|
+ res = await storageApi.getInfoBySourceBizNoAll(id);
|
|
|
}
|
|
}
|
|
|
console.log(
|
|
console.log(
|
|
|
'===============================================================',
|
|
'===============================================================',
|
|
|
res
|
|
res
|
|
|
);
|
|
);
|
|
|
- this.infoData = res;
|
|
|
|
|
- this.extInfo = res.extInfo;
|
|
|
|
|
- this.productList = res.outInDetailList.map(
|
|
|
|
|
|
|
+ this.infoData = res?.[0];
|
|
|
|
|
+ this.extInfo = res?.[0]?.extInfo;
|
|
|
|
|
+ this.productList = res?.[0].outInDetailList?.map(
|
|
|
(productItem, productIndex) => {
|
|
(productItem, productIndex) => {
|
|
|
return {
|
|
return {
|
|
|
...productItem,
|
|
...productItem,
|
|
|
outInDetailRecordRequestList:
|
|
outInDetailRecordRequestList:
|
|
|
- productItem.outInDetailRecordRequestList.map((packingItem) => {
|
|
|
|
|
|
|
+ productItem.outInDetailRecordRequestList?.map((packingItem) => {
|
|
|
return {
|
|
return {
|
|
|
...packingItem,
|
|
...packingItem,
|
|
|
categoryName: productItem.categoryName,
|
|
categoryName: productItem.categoryName,
|
|
|
categoryCode: productItem.categoryCode,
|
|
categoryCode: productItem.categoryCode,
|
|
|
- materialDetailList: packingItem.materialDetailList.map(
|
|
|
|
|
|
|
+ materialDetailList: packingItem.materialDetailList?.map(
|
|
|
(materialItem) => {
|
|
(materialItem) => {
|
|
|
return {
|
|
return {
|
|
|
...materialItem,
|
|
...materialItem,
|