|
@@ -649,13 +649,20 @@
|
|
|
async _getInfo(sourceBizNo, type, list = []) {
|
|
async _getInfo(sourceBizNo, type, list = []) {
|
|
|
const dataArray = await getInfoBySourceBizNoAll(sourceBizNo);
|
|
const dataArray = await getInfoBySourceBizNoAll(sourceBizNo);
|
|
|
let res = {};
|
|
let res = {};
|
|
|
|
|
+
|
|
|
if (dataArray && dataArray.length > 0) {
|
|
if (dataArray && dataArray.length > 0) {
|
|
|
- res = dataArray[0];
|
|
|
|
|
- // res.outInDetailList = dataArray.map(
|
|
|
|
|
- // (item) => item.outInDetailList[0]
|
|
|
|
|
- // );
|
|
|
|
|
- res['bizNo'] = dataArray.map((item) => item.bizNo);
|
|
|
|
|
|
|
+ res = JSON.parse(JSON.stringify(dataArray[0]));
|
|
|
|
|
+ res['outInDetailList']=[]
|
|
|
|
|
+ dataArray.forEach(item=>{
|
|
|
|
|
+ console.log(item,'item')
|
|
|
|
|
+ item.outInDetailList.forEach(val=>{
|
|
|
|
|
+ val['bizNo']=item.bizNo
|
|
|
|
|
+ res['outInDetailList'].push(val)
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ // res['bizNo'] = dataArray.map((item) => item.bizNo);
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(res,'res')
|
|
|
// res
|
|
// res
|
|
|
this.init(res, type);
|
|
this.init(res, type);
|
|
|
},
|
|
},
|
|
@@ -665,7 +672,7 @@
|
|
|
this.extInfo = res.extInfo;
|
|
this.extInfo = res.extInfo;
|
|
|
this.productList = res?.outInDetailList?.map(
|
|
this.productList = res?.outInDetailList?.map(
|
|
|
(productItem, productIndex) => {
|
|
(productItem, productIndex) => {
|
|
|
- productItem['bizNo'] = res.bizNo[productIndex]||res.bizNo[0];
|
|
|
|
|
|
|
+ // productItem['bizNo'] = res.bizNo[productIndex]||res.bizNo[0];
|
|
|
return {
|
|
return {
|
|
|
...productItem,
|
|
...productItem,
|
|
|
outInDetailRecordRequestList:
|
|
outInDetailRecordRequestList:
|