|
@@ -296,6 +296,10 @@ async function checkGetMaterialDetails(gUsedMaterialDetails, materialDict) {
|
|
|
return gUsedMaterialDetails;
|
|
return gUsedMaterialDetails;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function calcBatComposite() {
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
async function tryToExecCompositeTask(taskId, taskInfo = {}) {
|
|
async function tryToExecCompositeTask(taskId, taskInfo = {}) {
|
|
|
if (getCompositeTaskMode() == 1) {
|
|
if (getCompositeTaskMode() == 1) {
|
|
|
lk.log('开始极速模式执行合成任务');
|
|
lk.log('开始极速模式执行合成任务');
|
|
@@ -455,7 +459,9 @@ function refreshMaterialAfterComposite(usedGroups) {
|
|
|
lk.logErr(error);
|
|
lk.logErr(error);
|
|
|
}
|
|
}
|
|
|
for (let group of usedGroups) {
|
|
for (let group of usedGroups) {
|
|
|
- deleteMaterial(group.castingId, group.orderList);
|
|
|
|
|
|
|
+ for (let one of group) {
|
|
|
|
|
+ deleteUsedMaterial(one.castingId, one.orderList);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
jsonStr = JSON.stringify(gAllMaterialDetails, null, 2);
|
|
jsonStr = JSON.stringify(gAllMaterialDetails, null, 2);
|
|
|
lk.setVal(GandartConstKey.PrivCollectionDetail, jsonStr);
|
|
lk.setVal(GandartConstKey.PrivCollectionDetail, jsonStr);
|
|
@@ -463,7 +469,7 @@ function refreshMaterialAfterComposite(usedGroups) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function deleteMaterial(castingId, recordIdLst) {
|
|
|
|
|
|
|
+function deleteUsedMaterial(castingId, recordIdLst) {
|
|
|
let itemLst = gAllMaterialDetails[castingId];
|
|
let itemLst = gAllMaterialDetails[castingId];
|
|
|
if (itemLst) {
|
|
if (itemLst) {
|
|
|
let remainLst = [];
|
|
let remainLst = [];
|
|
@@ -801,7 +807,7 @@ async function getDetailByCasting(castingId, collectionName, pageSize = 50, page
|
|
|
if (ret.success) {
|
|
if (ret.success) {
|
|
|
let obj = ret.obj;
|
|
let obj = ret.obj;
|
|
|
retItemLst = obj.list;
|
|
retItemLst = obj.list;
|
|
|
- lk.log(`获取个人产品拥有详情成功`);
|
|
|
|
|
|
|
+ lk.log(`获取个人产品拥有详情成功,响应:${data}`);
|
|
|
} else {
|
|
} else {
|
|
|
lk.log(`获取个人产品拥有详情失败,响应:${data}`);
|
|
lk.log(`获取个人产品拥有详情失败,响应:${data}`);
|
|
|
}
|
|
}
|