|
@@ -496,7 +496,7 @@ const stageIm = (function () {
|
|
|
for (const p of posterity) {
|
|
|
if (p.children && p.children.length > 0 ) { continue; }
|
|
|
if (!p.b_code || p.b_code === '') { continue }
|
|
|
- if (!p.gather_qty || p.gather_qty === 0 ) { continue; }
|
|
|
+ if (!p.gather_tp || p.gather_tp === 0) { continue; }
|
|
|
let im = nodeImData.find(function (d) {
|
|
|
return d.lid === node.id &&
|
|
|
d.code === p.b_code && p.name === d.name && p.unit === d.unit && checkZero(ZhCalc.sub(p.unit_price, d.unit_price));
|
|
@@ -573,7 +573,7 @@ const stageIm = (function () {
|
|
|
bw: bw,
|
|
|
peg: peg ? getPegStr(peg.name) : '',
|
|
|
xm: node.name,
|
|
|
- drawing_code: getDrawingCode(node),
|
|
|
+ drawing_code: getDrawingCode(p),
|
|
|
changes: [],
|
|
|
};
|
|
|
im.calc_memo = '本期计量:' + im.jl + ' ' + im.unit;
|
|
@@ -642,7 +642,9 @@ const stageIm = (function () {
|
|
|
for (const d of datas) {
|
|
|
const detail = _.find(details, {uuid: d.uuid});
|
|
|
if (detail) {
|
|
|
- _.assignIn(detail, d);
|
|
|
+ _.assignIn(detail, d, function (oV, sV, key) {
|
|
|
+ return imFields.indexOf(key) > -1 && !_.isUndefined(sV) ? sV : oV;
|
|
|
+ });
|
|
|
} else {
|
|
|
details.push(d);
|
|
|
}
|