|
@@ -901,8 +901,9 @@ class AnalysisStageExcelTree extends AnalysisExcelTree {
|
|
contract_tp: {value: ['本期合同计量|金额'], type: colDefineType.match},
|
|
contract_tp: {value: ['本期合同计量|金额'], type: colDefineType.match},
|
|
deal_dgn_qty1: {value: ['合同|项目节数量1'], type: colDefineType.match},
|
|
deal_dgn_qty1: {value: ['合同|项目节数量1'], type: colDefineType.match},
|
|
deal_dgn_qty2: {value: ['合同|项目节数量2'], type: colDefineType.match},
|
|
deal_dgn_qty2: {value: ['合同|项目节数量2'], type: colDefineType.match},
|
|
- qc_dgn_qty1: {value: ['变更|项目节数量1'], type: colDefineType.match},
|
|
|
|
- qc_dgn_qty2: {value: ['变更|项目节数量2'], type: colDefineType.match},
|
|
|
|
|
|
+ c_dgn_qty1: {value: ['变更|项目节数量1'], type: colDefineType.match},
|
|
|
|
+ c_dgn_qty2: {value: ['变更|项目节数量2'], type: colDefineType.match},
|
|
|
|
+ postil: {value: ['本期批注'], type: colDefineType.match}
|
|
};
|
|
};
|
|
this.needCols = ['code', 'b_code', 'pos', 'name', 'unit', 'unit_price', 'contract_qty', 'contract_tp'];
|
|
this.needCols = ['code', 'b_code', 'pos', 'name', 'unit', 'unit_price', 'contract_qty', 'contract_tp'];
|
|
}
|
|
}
|
|
@@ -942,6 +943,7 @@ class AnalysisStageExcelTree extends AnalysisExcelTree {
|
|
xmj.deal_dgn_qty2 = aeUtils.toNumber(row[this.colsDef.deal_dgn_qty2]);
|
|
xmj.deal_dgn_qty2 = aeUtils.toNumber(row[this.colsDef.deal_dgn_qty2]);
|
|
xmj.c_dgn_qty1 = aeUtils.toNumber(row[this.colsDef.c_dgn_qty1]);
|
|
xmj.c_dgn_qty1 = aeUtils.toNumber(row[this.colsDef.c_dgn_qty1]);
|
|
xmj.c_dgn_qty2 = aeUtils.toNumber(row[this.colsDef.c_dgn_qty2]);
|
|
xmj.c_dgn_qty2 = aeUtils.toNumber(row[this.colsDef.c_dgn_qty2]);
|
|
|
|
+ xmj.postil = this.ctx.helper.replaceReturn(row[this.colsDef.postil]);
|
|
this.ctx.helper.checkDgnQtyPrecision(xmj);
|
|
this.ctx.helper.checkDgnQtyPrecision(xmj);
|
|
return xmj;
|
|
return xmj;
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -973,12 +975,13 @@ class AnalysisStageExcelTree extends AnalysisExcelTree {
|
|
node.unit_price = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.unit_price]), this.decimal.up);
|
|
node.unit_price = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.unit_price]), this.decimal.up);
|
|
const precision = this.ctx.helper.findPrecision(this.precision, node.unit);
|
|
const precision = this.ctx.helper.findPrecision(this.precision, node.unit);
|
|
node.contract_qty = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.contract_qty]), precision.value);
|
|
node.contract_qty = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.contract_qty]), precision.value);
|
|
- if (node.quantity && node.unit_price) {
|
|
|
|
- node.contract_tp = this.ctx.helper.mul(node.quantity, node.unit_price, this.decimal.tp);
|
|
|
|
|
|
+ if (node.contract_qty && node.unit_price) {
|
|
|
|
+ node.contract_tp = this.ctx.helper.mul(node.contract_qty, node.unit_price, this.decimal.tp);
|
|
} else {
|
|
} else {
|
|
node.contract_tp = null;
|
|
node.contract_tp = null;
|
|
}
|
|
}
|
|
- if (this.filter.filterZeroGcl && !node.quantity && !node.total_price) return true;
|
|
|
|
|
|
+ node.postil = this.ctx.helper.replaceReturn(row[this.colsDef.postil]);
|
|
|
|
+ if (this.filter.filterZeroGcl && !node.contract_qty && !node.contract_tp) return true;
|
|
return this.cacheTree.addGclNode(node);
|
|
return this.cacheTree.addGclNode(node);
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
@@ -994,6 +997,7 @@ class AnalysisStageExcelTree extends AnalysisExcelTree {
|
|
pos.quantity = aeUtils.toNumber(row[this.colsDef.contract_qty]);
|
|
pos.quantity = aeUtils.toNumber(row[this.colsDef.contract_qty]);
|
|
pos = this.cacheTree.addPos(pos, true);
|
|
pos = this.cacheTree.addPos(pos, true);
|
|
pos.contract_qty = pos.quantity;
|
|
pos.contract_qty = pos.quantity;
|
|
|
|
+ pos.postil = this.ctx.helper.replaceReturn(row[this.colsDef.postil]);
|
|
return pos;
|
|
return pos;
|
|
}
|
|
}
|
|
|
|
|