|
|
@@ -63,6 +63,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
const itemFeeMap = {
|
|
|
'marketLabour': 'RGF',
|
|
|
'marketMaterial': 'CLF',
|
|
|
+ 'marketMachine':'JXSYF',
|
|
|
'marketEquipment': 'SBGZF',
|
|
|
'direct': 'DEZJF',
|
|
|
'equipment': 'DESBF',
|
|
|
@@ -371,29 +372,32 @@ INTERFACE_EXPORT = (() => {
|
|
|
],
|
|
|
children: [],
|
|
|
};
|
|
|
- let elecDatas = electrovalenceObj.getElectrovalenceDatas(null, pgljData.com_electrovalence, pgljData.gljList);
|
|
|
- electrovalenceObj.calcPertElectrovalenceMarketPrice(elecDatas);
|
|
|
- for (let e of elecDatas) {
|
|
|
- let Electro = {
|
|
|
- name: "Electro",
|
|
|
- attrs: [{
|
|
|
- name: "Code",
|
|
|
- value: e.code,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Price",
|
|
|
- value: e.electPrice,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Ratio",
|
|
|
- value: e.coe,
|
|
|
- },
|
|
|
- ],
|
|
|
- children: [],
|
|
|
- };
|
|
|
- Param.children.push(Electro);
|
|
|
+ if (isBidSubmission) { //导出到招标、招标控制价文件中,不输出这一部分。
|
|
|
+ let elecDatas = electrovalenceObj.getElectrovalenceDatas(null, pgljData.com_electrovalence, pgljData.gljList);
|
|
|
+ electrovalenceObj.calcPertElectrovalenceMarketPrice(elecDatas);
|
|
|
+ for (let e of elecDatas) {
|
|
|
+ let Electro = {
|
|
|
+ name: "Electro",
|
|
|
+ attrs: [{
|
|
|
+ name: "Code",
|
|
|
+ value: e.code,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "Price",
|
|
|
+ value: e.electPrice,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "Ratio",
|
|
|
+ value: e.coe,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ children: [],
|
|
|
+ };
|
|
|
+ Param.children.push(Electro);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
this.children.push(Param);
|
|
|
|
|
|
function MP(g) {
|
|
|
@@ -704,9 +708,6 @@ INTERFACE_EXPORT = (() => {
|
|
|
Element.call(this, "FixedCostItem", attrs);
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
let Mps = new emptyElement("Mps");
|
|
|
@@ -714,22 +715,23 @@ INTERFACE_EXPORT = (() => {
|
|
|
let Mechs = new emptyElement("Mechs");
|
|
|
let gljKeyMap = {};
|
|
|
let temMechs = [];
|
|
|
- for (let g of pgljData.gljList) {
|
|
|
- let type = g.type + "";
|
|
|
- gljKeyMap[gljUtil.getIndex(g)] = g;
|
|
|
- type = type.charAt(0);
|
|
|
- if (type == "1") {
|
|
|
- Mps.children.push(new MP(g));
|
|
|
- } else if (type == "2" || type == 5) {
|
|
|
- Materials.children.push(new Material(g));
|
|
|
- } else if (type == "3") {
|
|
|
- temMechs.push(g);
|
|
|
+ if (isBidSubmission) { //导出到招标、招标控制价文件中,不输出这一部分。
|
|
|
+ for (let g of pgljData.gljList) {
|
|
|
+ let type = g.type + "";
|
|
|
+ gljKeyMap[gljUtil.getIndex(g)] = g;
|
|
|
+ type = type.charAt(0);
|
|
|
+ if (type == "1") {
|
|
|
+ Mps.children.push(new MP(g));
|
|
|
+ } else if (type == "2" || type == 5) {
|
|
|
+ Materials.children.push(new Material(g));
|
|
|
+ } else if (type == "3") {
|
|
|
+ temMechs.push(g);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let t of temMechs) {
|
|
|
+ Mechs.children.push(new Mech(t,gljKeyMap));
|
|
|
}
|
|
|
}
|
|
|
- for (let t of temMechs) {
|
|
|
- Mechs.children.push(new Mech(t,gljKeyMap));
|
|
|
- }
|
|
|
-
|
|
|
this.children.push(Mps);
|
|
|
this.children.push(Materials);
|
|
|
this.children.push(Mechs);
|
|
|
@@ -737,6 +739,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
|
|
|
function EprjInfo(tenderProject) {
|
|
|
let bills = tenderProject.Bills.datas;
|
|
|
+ let feature = tenderProject.property.projectFeature ? tenderProject.property.projectFeature : [];
|
|
|
let totalItem = null;
|
|
|
let proItem = null; //暂列金额项
|
|
|
for (let b of bills) {
|
|
|
@@ -754,7 +757,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
},
|
|
|
];
|
|
|
Element.call(this, "EprjInfo", attrs);
|
|
|
- this.children.push(new SummaryOfCost(totalItem, proItem));
|
|
|
+ this.children.push(new SummaryOfCost(totalItem, proItem,feature));
|
|
|
this.children.push(new MakeInfo(tenderProject));
|
|
|
this.children.push(new Params(tenderProject));
|
|
|
this.children.push(new getBillsItems(tenderProject));
|
|
|
@@ -916,7 +919,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
value: data.quantity,
|
|
|
},
|
|
|
{
|
|
|
- name: "QtyFomula",
|
|
|
+ name: "QtyFormula",
|
|
|
value: data.calcBase //data.calcBase ? cbParser.toFExpr(data.calcBase, tenderProject.mainTree.items) : "",
|
|
|
},
|
|
|
{
|
|
|
@@ -1297,7 +1300,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
Element.call(this, "Params", attrs);
|
|
|
}
|
|
|
|
|
|
- function SummaryOfCost(totalItem, proItem) {
|
|
|
+ function SummaryOfCost(totalItem, proItem,feature) {
|
|
|
const attrs = [{
|
|
|
name: "TenderSumLimit",
|
|
|
value: totalItem.feesIndex && totalItem.feesIndex.common && totalItem.feesIndex.common.tenderTotalFee ? totalItem.feesIndex.common.tenderTotalFee : 0,
|
|
|
@@ -1323,9 +1326,12 @@ INTERFACE_EXPORT = (() => {
|
|
|
value: totalItem.feesIndex && totalItem.feesIndex.estimate && totalItem.feesIndex.estimate.tenderTotalFee ? totalItem.feesIndex.estimate.tenderTotalFee : 0,
|
|
|
},
|
|
|
];
|
|
|
- if (isBidInvitation || isControl) attrs.splice(1, 1); //招标 - 控制价
|
|
|
- if (isBidSubmission) attrs.splice(0, 1); //投标
|
|
|
-
|
|
|
+ if(isBidInvitation) attrs = [] //招标
|
|
|
+ if (isControl) attrs.splice(1, 5); //控制价
|
|
|
+ if (isBidSubmission) { //投标文件时,读工程特征中的 招标控制价 值
|
|
|
+ let tenderSumLimit = _.find(feature, { "dispName": "招标控制价" });
|
|
|
+ if(tenderSumLimit) attrs[0].value = tenderSumLimit.value
|
|
|
+ }
|
|
|
Element.call(this, "SummaryOfCost", attrs);
|
|
|
}
|
|
|
|