|
@@ -481,7 +481,7 @@ async function doExecFinalComposite(taskId, taskInfo, finalGroups) {
|
|
|
});
|
|
});
|
|
|
startIdx += 1;
|
|
startIdx += 1;
|
|
|
}
|
|
}
|
|
|
- let ret = await confirmCompositeV2(taskId, taskInfo, compositeList);
|
|
|
|
|
|
|
+ let ret = await confirmCompositeV3(taskId, taskInfo, compositeList);
|
|
|
if (ret) {
|
|
if (ret) {
|
|
|
for (let idx = startIdx - batchMaxNum; idx < startIdx; idx++) {
|
|
for (let idx = startIdx - batchMaxNum; idx < startIdx; idx++) {
|
|
|
retWillDelLst.push(idx);
|
|
retWillDelLst.push(idx);
|
|
@@ -498,7 +498,7 @@ async function doExecFinalComposite(taskId, taskInfo, finalGroups) {
|
|
|
materialDetailList: finalGroups[i]
|
|
materialDetailList: finalGroups[i]
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
- let ret = await confirmCompositeV2(taskId, taskInfo, compositeList);
|
|
|
|
|
|
|
+ let ret = await confirmCompositeV3(taskId, taskInfo, compositeList);
|
|
|
if (ret) {
|
|
if (ret) {
|
|
|
retWillDelLst.push(idx);
|
|
retWillDelLst.push(idx);
|
|
|
retOrderLst.push(ret);
|
|
retOrderLst.push(ret);
|
|
@@ -961,7 +961,7 @@ async function getDetailByCasting(castingId, collectionName, pageSize = 50, page
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-async function confirmCompositeV2(taskId, taskInfo, compositeList) {
|
|
|
|
|
|
|
+async function confirmCompositeV3(taskId, taskInfo, compositeList) {
|
|
|
return new Promise((resolve, _reject) => {
|
|
return new Promise((resolve, _reject) => {
|
|
|
try {
|
|
try {
|
|
|
const headers = GCommonGandartHeads;
|
|
const headers = GCommonGandartHeads;
|
|
@@ -973,7 +973,7 @@ async function confirmCompositeV2(taskId, taskInfo, compositeList) {
|
|
|
};
|
|
};
|
|
|
let body = JSON.stringify(data);
|
|
let body = JSON.stringify(data);
|
|
|
let url = {
|
|
let url = {
|
|
|
- url: `${config.BASE_API}/v2/composite/v3/confirmCompositeV2`,
|
|
|
|
|
|
|
+ url: `${config.BASE_API}/v2/composite/v3/confirmCompositeV3`,
|
|
|
headers: headers,
|
|
headers: headers,
|
|
|
body: body
|
|
body: body
|
|
|
};
|
|
};
|