|
@@ -251,6 +251,7 @@ class ImportBaseTree {
|
|
|
if (!temp.unit_price) temp.unit_price = node.unit_price;
|
|
|
if (!temp.drawing_code) temp.drawing_code = node.drawing_code;
|
|
|
if (!temp.memo) temp.memo = node.memo;
|
|
|
+ if (!temp.features) temp.features = node.features;
|
|
|
if (!temp.total_price) temp.total_price = node.total_price;
|
|
|
}
|
|
|
|
|
@@ -545,6 +546,7 @@ class AnalysisExcelTree {
|
|
|
total_price: {value: ['金额', '合价'], type: colDefineType.match},
|
|
|
drawing_code: {value: ['图号', '图册号'], type: colDefineType.match},
|
|
|
memo: {value: ['备注'], type: colDefineType.match},
|
|
|
+ features: {value: ['项目特征'], type: colDefineType.match},
|
|
|
};
|
|
|
this.needCols = needCols || ['code', 'b_code', 'pos'];
|
|
|
}
|
|
@@ -578,6 +580,7 @@ class AnalysisExcelTree {
|
|
|
node.total_price = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.total_price]), this.decimal.tp);
|
|
|
node.drawing_code = this.ctx.helper.replaceReturn(row[this.colsDef.drawing_code]);
|
|
|
node.memo = this.ctx.helper.replaceReturn(row[this.colsDef.memo]);
|
|
|
+ node.features = row[this.colsDef.features];
|
|
|
this.ctx.helper.checkDgnQtyPrecision(node);
|
|
|
return this.cacheTree.addXmjNode(node);
|
|
|
} catch (error) {
|
|
@@ -613,6 +616,7 @@ class AnalysisExcelTree {
|
|
|
node.unit_price = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.unit_price]), this.decimal.up);
|
|
|
node.drawing_code = this.ctx.helper.replaceReturn(row[this.colsDef.drawing_code]);
|
|
|
node.memo = this.ctx.helper.replaceReturn(row[this.colsDef.memo]);
|
|
|
+ node.features = row[this.colsDef.features];
|
|
|
node.deal_tp = node.deal_qty && node.unit_price ? this.ctx.helper.mul(node.deal_qty, node.unit_price, this.decimal.tp) : 0;
|
|
|
if (node.quantity && node.unit_price) {
|
|
|
node.total_price = this.ctx.helper.mul(node.quantity, node.unit_price, this.decimal.tp);
|