|
|
@@ -179,13 +179,13 @@ const XMLStandard = (function () {
|
|
|
{name: '工程所在地', value: _util.getValueByKey(source.basicInformation, 'projLocation'), required: true},
|
|
|
{name: '工程地址', value: _util.getValueByKey(source.basicInformation, 'projAddress'), required: true},
|
|
|
{name: '施工单位', value: _util.getValueByKey(source.basicInformation, 'buildingUnit')},
|
|
|
- {name: '编制单位', value: _util.getValueByKey(source.basicInformation, 'establishmentUnit'), required: true},
|
|
|
+ {name: '编制单位', value: _util.getValueByKey(source.basicInformation, 'establishUnit'), required: true},
|
|
|
{name: '审核单位', value: _util.getValueByKey(source.basicInformation, 'auditUnit')},
|
|
|
- {name: '编制人', value: _util.getValueByKey(source.basicInformation, 'buildingUnitAuthor'), required: true},
|
|
|
+ {name: '编制人', value: _util.getValueByKey(source.basicInformation, 'establishUnitAuthor'), required: true},
|
|
|
{name: '审核人', value: _util.getValueByKey(source.basicInformation, 'auditUnitAuditor')},
|
|
|
{name: '开工日期', value: _util.getValueByKey(source.basicInformation, 'commencementDate'), type: _config.TYPE.DATE},
|
|
|
{name: '竣工日期', value: _util.getValueByKey(source.basicInformation, 'completionDate'), type: _config.TYPE.DATE},
|
|
|
- {name: '编制日期', value: _util.getValueByKey(source.basicInformation, 'establishDate'), type: _config.TYPE.DATE, required: true},
|
|
|
+ {name: '编制日期', value: _util.getValueByKey(source.basicInformation, 'essentialEstablishDate'), type: _config.TYPE.DATE, required: true},
|
|
|
{name: '审核日期', value: _util.getValueByKey(source.basicInformation, 'auditDate'), type: _config.TYPE.DATE},
|
|
|
{name: '材料价格期', value: _util.getValueByKey(source.basicInformation, 'materialPricePeriod'), required: true},
|
|
|
{name: '合同价类型', value: _util.getValueByKey(source.basicInformation, 'contractPriceType')},
|
|
|
@@ -198,9 +198,9 @@ const XMLStandard = (function () {
|
|
|
//控制总价: 如果文件类型是“控制价”,则导出建设项目的工程造价;如果是“招标”、“投标”,则取0
|
|
|
let attrs = [
|
|
|
{name: '招标代理机构', value: _util.getValueByKey(source.basicInformation, 'agency')},
|
|
|
- {name: '造价工程师', value: _util.getValueByKey(source.basicInformation, 'tenderCostEngineer'), required: true},
|
|
|
- {name: '造价工程师注册证号', value: _util.getValueByKey(source.basicInformation, 'tenderCostEngineerNo'), required: true},
|
|
|
- {name: '招标工期', value: _util.getValueByKey(source.basicInformation, 'tenderPeriod'), required: true, type: _config.TYPE.INT},
|
|
|
+ {name: '造价工程师', value: _util.getValueByKey(source.basicInformation, 'tenderingCostEngineer'), required: true},
|
|
|
+ {name: '造价工程师注册证号', value: _util.getValueByKey(source.basicInformation, 'tenderingRegistrationCertificateNumber'), required: true},
|
|
|
+ {name: '招标工期', value: _util.getValueByKey(source.basicInformation, 'tenderingPeriod'), required: true, type: _config.TYPE.INT},
|
|
|
{name: '控制总价', value: exportKind === _config.EXPORT_KIND.Control ? source.summaryInfo.engineeringCost : '0',
|
|
|
required: true, type: _config.TYPE.NUM2},
|
|
|
];
|
|
|
@@ -211,9 +211,9 @@ const XMLStandard = (function () {
|
|
|
let attrs = [
|
|
|
{name: '投标人', value: _util.getValueByKey(source.basicInformation, 'bidder'), required: true},
|
|
|
{name: '造价工程师', value: _util.getValueByKey(source.basicInformation, 'bidCostEngineer'), required: true},
|
|
|
- {name: '造价工程师注册证号', value: _util.getValueByKey(source.basicInformation, 'bidCostEngineerNo'), required: true},
|
|
|
+ {name: '造价工程师注册证号', value: _util.getValueByKey(source.basicInformation, 'bidRegistrationCertificateNumber'), required: true},
|
|
|
{name: '项目经理', value: _util.getValueByKey(source.basicInformation, 'projectManager')},
|
|
|
- {name: '投标工期', value: _util.getValueByKey(source.basicInformation, 'biddingPeriod')},
|
|
|
+ {name: '投标工期', value: _util.getValueByKey(source.basicInformation, 'bidPeriod')},
|
|
|
{name: '投标保证金', value: _util.getValueByKey(source.basicInformation, 'biddingMargin'), type: _config.TYPE.NUM2},
|
|
|
{name: '质量承诺', value: _util.getValueByKey(source.basicInformation, 'qualityCommitment')},
|
|
|
{name: '担保类型', value: _util.getValueByKey(source.basicInformation, 'guaranteeType'), enumeration: ['支票', '现金', '电汇', '汇票']},
|
|
|
@@ -1297,16 +1297,16 @@ const XMLStandard = (function () {
|
|
|
//创建项目特征节点
|
|
|
if (feature.length > 0) {
|
|
|
let itemChac = new ItemCharacter();
|
|
|
- //let reg = /(.{0,}):(.{0,})/;
|
|
|
+ let reg = /(.{0,}):(.{0,})/;
|
|
|
for (let f of feature) {
|
|
|
- /*let source = {name: '', value: ''};
|
|
|
+ let source = {name: '', value: ''};
|
|
|
let execRst = reg.exec(f);
|
|
|
if (execRst) {
|
|
|
source.name = execRst[1].replace(/^\d+\.{1}/, '').trim(); //去除开头(1.)序号,首位空格
|
|
|
source.value = execRst[2].trim();
|
|
|
}
|
|
|
- let featureEle = new Feature(source);*/
|
|
|
- let featureEle = new Feature({name: f.trim(), value: ''});
|
|
|
+ let featureEle = new Feature(source);
|
|
|
+ //let featureEle = new Feature({name: f.trim(), value: ''});
|
|
|
itemChac.children.push(featureEle);
|
|
|
}
|
|
|
bills.children.push(itemChac);
|
|
|
@@ -1315,9 +1315,9 @@ const XMLStandard = (function () {
|
|
|
if (job.length > 0) {
|
|
|
let jobContent = new JobContent();
|
|
|
for (let j of job) {
|
|
|
- /*let data = j.replace(/^\d+\.{1}/, '').trim();
|
|
|
- let content = new Content(data);*/
|
|
|
- let content = new Content(j.trim());
|
|
|
+ let data = j.replace(/^\d+\.{1}/, '').trim();
|
|
|
+ let content = new Content(data);
|
|
|
+ //let content = new Content(j.trim());
|
|
|
jobContent.children.push(content);
|
|
|
}
|
|
|
bills.children.push(jobContent);
|