|
@@ -224,7 +224,7 @@ const stageIm = (function () {
|
|
|
const subPeg1 = getNodeByLevel(node, peg.level + 1);
|
|
|
let result = peg.name;
|
|
|
if (subPeg1 && subPeg1.id !== peg.id) {
|
|
|
- result = result + '-' + subPeg1.name;
|
|
|
+ result = result + mergeChar + subPeg1.name;
|
|
|
}
|
|
|
return result;
|
|
|
} else {
|
|
@@ -234,7 +234,7 @@ const stageIm = (function () {
|
|
|
let parent = node, result = parent.name;
|
|
|
while (parent.level > 3 && parent) {
|
|
|
parent = getNodeByLevel(node, parent.level - 1);
|
|
|
- result = parent.name + '-' + result;
|
|
|
+ result = parent.name + mergeChar + result;
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
@@ -248,7 +248,7 @@ const stageIm = (function () {
|
|
|
let parent = node, result = parent.name;
|
|
|
while (parent.level > 3 && parent) {
|
|
|
parent = getNodeByLevel(node, parent.level - 1);
|
|
|
- result = parent.name + '-' + result;
|
|
|
+ result = parent.name + mergeChar + result;
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
@@ -468,7 +468,7 @@ const stageIm = (function () {
|
|
|
const pPos = gsPos.getLedgerPos(p.id);
|
|
|
if (pPos && pPos.length > 0) {
|
|
|
for (const pp of pPos) {
|
|
|
- if (!pp.gather_qty || !pp.contract_qty || !pp.qc_qty) continue;
|
|
|
+ if (!pp.gather_qty && !pp.contract_qty && !pp.qc_qty) continue;
|
|
|
let im = nodeImData.find(function (d) {
|
|
|
return d.lid === node.id && d.pos_name === pp.name;
|
|
|
});
|
|
@@ -488,7 +488,7 @@ const stageIm = (function () {
|
|
|
|
|
|
for (const c of changes) {
|
|
|
if (c.lid === p.id && c.pid == pp.id && c.qty && c.qty !== 0) {
|
|
|
- imDefault.changes.push(c);
|
|
|
+ im.changes.push(c);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -526,8 +526,8 @@ const stageIm = (function () {
|
|
|
ImData.push(imDefault);
|
|
|
}
|
|
|
for (const im of nodeImData) {
|
|
|
- im.drawing_code = im.drawing_code.join('');
|
|
|
- im.position = im.position.join('');
|
|
|
+ im.drawing_code = im.drawing_code.join(mergeChar);
|
|
|
+ im.position = im.position.join(mergeChar);
|
|
|
ImData.push(im);
|
|
|
}
|
|
|
}
|