|
|
@@ -86,10 +86,10 @@ INTERFACE_EXPORT = (() => {
|
|
|
// 额外字段
|
|
|
const extraMap = {
|
|
|
'淮北': [
|
|
|
- { name: 'ZbrNssbh', value: getValueByKey(information, '') }, // 招标人纳税识别号
|
|
|
- { name: 'ZxrNssbh', value: getValueByKey(information, '') }, // 造价咨询人纳税识别号
|
|
|
- { name: 'ZbrDbSfzh', value: getValueByKey(information, '') }, // 招标人法定代表人或其授权人身份证号
|
|
|
- { name: 'ZxrNssbh', value: getValueByKey(information, '') }, // 造价咨询人法定代表或其授权人纳税识别号
|
|
|
+ { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
|
|
|
+ { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
|
|
|
+ { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
|
|
|
+ { name: 'ZxrNssbh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
|
|
|
]
|
|
|
};
|
|
|
if (extraMap[subArea]) {
|
|
|
@@ -114,10 +114,10 @@ INTERFACE_EXPORT = (() => {
|
|
|
// 额外字段
|
|
|
const extraMap = {
|
|
|
'淮北': [
|
|
|
- { name: 'ZbrNssbh', value: getValueByKey(information, '') }, // 招标人纳税识别号
|
|
|
- { name: 'ZxrNssbh', value: getValueByKey(information, '') }, // 造价咨询人纳税识别号
|
|
|
- { name: 'ZbrDbSfzh', value: getValueByKey(information, '') }, // 招标人法定代表人或其授权人身份证号
|
|
|
- { name: 'ZxrNssbh', value: getValueByKey(information, '') }, // 造价咨询人法定代表或其授权人纳税识别号
|
|
|
+ { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
|
|
|
+ { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
|
|
|
+ { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
|
|
|
+ { name: 'ZxrNssbh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
|
|
|
]
|
|
|
};
|
|
|
if (extraMap[subArea]) {
|
|
|
@@ -130,8 +130,8 @@ INTERFACE_EXPORT = (() => {
|
|
|
function TouBiaoXx(information, totalCost) {
|
|
|
const attrs = [
|
|
|
{ name: 'Zbr', value: getValueByKey(information, 'tendereeName') }, // 招标人
|
|
|
- { name: 'Tbr', value: getValueByKey(information, '') }, // 投标人
|
|
|
- { name: 'TbrDb', value: getValueByKey(information, '') }, // 投标人法定代表或其授权
|
|
|
+ { name: 'Tbr', value: getValueByKey(information, 'bidder') }, // 投标人
|
|
|
+ { name: 'TbrDb', value: getValueByKey(information, 'bidderAuthorizer') }, // 投标人法定代表或其授权
|
|
|
{ name: 'Bzr', value: getValueByKey(information, 'tenderCompiler') }, // 编制人
|
|
|
{ name: 'BzTime', value: getValueByKey(information, 'compilationTime'), type: TYPE.DATE }, // 编制时间
|
|
|
{ name: 'Tbzj', value: totalCost, type: TYPE.DECIMAL }, // 控制价总价(元),取“投标报价”的金额。
|
|
|
@@ -139,9 +139,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
// 额外字段
|
|
|
const extraMap = {
|
|
|
'淮北': [
|
|
|
- { name: 'ZbrNssbh', value: getValueByKey(information, '') }, // 招标人纳税识别号
|
|
|
- { name: 'TbrNssbh', value: getValueByKey(information, '') }, // 投标人纳税识别号
|
|
|
- { name: 'TbrDbsfzh', value: getValueByKey(information, '') }, // 投标人法定代表或其授权人身份证号
|
|
|
+ { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
|
|
|
+ { name: 'TbrNssbh', value: getValueByKey(information, 'bidderTaxpayerIdentificationNo') }, // 投标人纳税识别号
|
|
|
+ { name: 'TbrDbsfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 投标人法定代表或其授权人身份证号
|
|
|
]
|
|
|
};
|
|
|
if (extraMap[subArea]) {
|
|
|
@@ -426,13 +426,13 @@ INTERFACE_EXPORT = (() => {
|
|
|
Element.call(this, 'JrgBJrgMx', attrs);
|
|
|
}
|
|
|
|
|
|
- // 暂估材料表
|
|
|
- function ZgCl() {
|
|
|
- Element.call(this, 'ZgCl');
|
|
|
+ // 暂估材料表、评标材料表
|
|
|
+ function gljRefRoot(eleName) {
|
|
|
+ Element.call(this, eleName);
|
|
|
}
|
|
|
|
|
|
- // 暂估材料明细
|
|
|
- function ZgClMx(glj) {
|
|
|
+ // 暂估材料表、评标材料表明细
|
|
|
+ function gljRefElement(eleName, glj) {
|
|
|
const attrs = [
|
|
|
{ name: 'Xh', value: glj.seq }, // 序号
|
|
|
{ name: 'RcjId', value: projectGLJIDToRcjID[glj.projectGLJID] }, // 资源ID
|
|
|
@@ -441,10 +441,38 @@ INTERFACE_EXPORT = (() => {
|
|
|
{ name: 'Ggxh', value: glj.specs }, // 规格型号
|
|
|
{ name: 'Dw', value: glj.unit }, // 单位
|
|
|
{ name: 'Sl', value: BID_INVITATION ? '0' : glj.quantity, type: TYPE.DECIMAL }, // 工程量
|
|
|
- { name: 'Dj', value: BID_INVITATION ? '0' : glj.market_price, type: TYPE.DECIMAL }, // 单价
|
|
|
- { name: 'Hj', value: BID_INVITATION ? '0' : glj.market_price, type: TYPE.DECIMAL }, // 合价
|
|
|
+ { name: 'Dj', value: glj.marketPrice, type: TYPE.DECIMAL }, // 暂定价、单价
|
|
|
+ { name: 'Hj', value: BID_INVITATION ? '0' : glj.totalPrice, type: TYPE.DECIMAL }, // 合价
|
|
|
+ { name: 'Bz', value: glj.remark, type: TYPE.DECIMAL }, // 备注
|
|
|
+ ];
|
|
|
+ Element.call(this, eleName, attrs);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 人材机汇总
|
|
|
+ function Rcjhz() {
|
|
|
+ Element.call(this, 'Rcjhz');
|
|
|
+ }
|
|
|
+
|
|
|
+ // 人材机汇总明细
|
|
|
+ function RcjhzMx(glj) {
|
|
|
+ const attrs = [
|
|
|
+ { name: 'RcjId', value: projectGLJIDToRcjID[glj.id] }, // 资源ID
|
|
|
+ { name: 'Bm', value: glj.code }, // 编码
|
|
|
+ { name: 'Mc', value: glj.name }, // 名称
|
|
|
+ { name: 'Ggxh', value: glj.specs }, // 规格型号
|
|
|
+ { name: 'Dw', value: glj.unit }, // 单位
|
|
|
+ { name: 'Dj', value: glj.priceInfo.tenderPrice, type: TYPE.DECIMAL }, // 预算价,调后
|
|
|
+ { name: 'Sl', value: glj.tenderQuantity, type: TYPE.DECIMAL }, // 总消耗量
|
|
|
+ { name: 'Hj', value: glj.totalPrice, type: TYPE.DECIMAL }, // 合价,人材料总消耗量*预算价
|
|
|
+ { name: 'Cd', value: '' }, // 产地
|
|
|
+ { name: 'Gycs', value: '' }, // 厂商
|
|
|
+ { name: 'Rcjlb', value: '', type: TYPE.INT }, // 人材机类型 1=人工;2=材料;3=机械
|
|
|
+ { name: 'Jgbz', value: 'false', type: TYPE.BOOL }, // 供材方
|
|
|
+ { name: 'Zyclbj', value: !!glj.is_main_material, type: TYPE.BOOL }, // 主要材料
|
|
|
+ { name: 'Zgjbz', value: !!glj.is_evaluate, type: TYPE.BOOL }, // 是否暂估
|
|
|
+ { name: 'Zcbz', value: 'false', type: TYPE.BOOL }, // 主材标记
|
|
|
]
|
|
|
- Element.call(this, 'ZgClMx', attrs);
|
|
|
+ Element.call(this, 'RcjhzMx', attrs);
|
|
|
}
|
|
|
// 组装数据 --------------------------------------
|
|
|
|
|
|
@@ -638,9 +666,22 @@ INTERFACE_EXPORT = (() => {
|
|
|
return [root]
|
|
|
}
|
|
|
|
|
|
- // 组装暂估材料
|
|
|
- function setupEvaluationList(evaluationListDetail) {
|
|
|
-
|
|
|
+ // 组装人材机汇总相关表数据
|
|
|
+ function setupGLJList() {
|
|
|
+ // 暂估材料
|
|
|
+ const zgcl = new gljRefRoot('ZgCl');
|
|
|
+ const zgclData = curDetail.evaluateMaterialData.map(glj => new gljRefElement('ZgClMx', glj));
|
|
|
+ zgcl.children.push(...zgclData);
|
|
|
+
|
|
|
+ // 评标材料
|
|
|
+ const jpcl = new gljRefRoot('JpCl');
|
|
|
+ const jpclData = curDetail.bidMaterialData.map(glj => new gljRefElement('JpClMx', glj));
|
|
|
+ jpcl.children.push(...jpclData);
|
|
|
+ if (BID_INVITATION) {
|
|
|
+ return [zgcl, jpcl];
|
|
|
+ }
|
|
|
+ // 人材机汇总 (招标不导出)
|
|
|
+ const rcjhz = new Rcjhz();
|
|
|
}
|
|
|
|
|
|
return setupConstruction(projectData);
|