|
@@ -39,11 +39,23 @@ INTERFACE_IMPORT = (() => {
|
|
|
'1': '一般计税',
|
|
'1': '一般计税',
|
|
|
'2': '简易计税',
|
|
'2': '简易计税',
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ // 工程专业
|
|
|
|
|
+ let engineeringName = '小修保养、大中修';
|
|
|
|
|
+ // 费用标准
|
|
|
|
|
+ let feeName = '高速公路';
|
|
|
|
|
+
|
|
|
// 提取基本信息,xml中提取出来的基本信息,最终会与模板基本信息进行合并处理。(接口内不需要处理合并)
|
|
// 提取基本信息,xml中提取出来的基本信息,最终会与模板基本信息进行合并处理。(接口内不需要处理合并)
|
|
|
function setupInformation(projectSrc) {
|
|
function setupInformation(projectSrc) {
|
|
|
const gcxx = getValue(projectSrc, ['工程信息']);
|
|
const gcxx = getValue(projectSrc, ['工程信息']);
|
|
|
const ztbxx = getValue(projectSrc, ['招投标信息', '招标控制价']) || getValue(projectSrc, ['招投标信息', '投标信息']) || getValue(projectSrc, ['招投标信息', '招标信息']);
|
|
const ztbxx = getValue(projectSrc, ['招投标信息', '招标控制价']) || getValue(projectSrc, ['招投标信息', '投标信息']) || getValue(projectSrc, ['招投标信息', '招标信息']);
|
|
|
// key:基本信息模板中的key,作为合并时的匹配字段
|
|
// key:基本信息模板中的key,作为合并时的匹配字段
|
|
|
|
|
+ const natureConstruction = natureConstructionMap[getValue(gcxx, ['_项目类型'])] || '';
|
|
|
|
|
+ if (natureConstruction === '养护(年度经费)') {
|
|
|
|
|
+ engineeringName = '小修保养年度经费';
|
|
|
|
|
+ }
|
|
|
|
|
+ const roadGrade = roadGradeMap[getValue(gcxx, ['_专业划分'])] || '';
|
|
|
|
|
+ feeName = roadGrade;
|
|
|
const info = [
|
|
const info = [
|
|
|
{ key: 'projNum', value: getValue(gcxx, ['_项目编号']) },
|
|
{ key: 'projNum', value: getValue(gcxx, ['_项目编号']) },
|
|
|
{ key: 'constructingUnits', value: getValue(gcxx, ['_建设单位']) },
|
|
{ key: 'constructingUnits', value: getValue(gcxx, ['_建设单位']) },
|
|
@@ -51,8 +63,8 @@ INTERFACE_IMPORT = (() => {
|
|
|
{ key: 'endChainages', value: getValue(gcxx, ['_终点桩号']) },
|
|
{ key: 'endChainages', value: getValue(gcxx, ['_终点桩号']) },
|
|
|
{ key: 'constructionAddress', value: getValue(gcxx, ['_建设地址']) },
|
|
{ key: 'constructionAddress', value: getValue(gcxx, ['_建设地址']) },
|
|
|
{ key: 'projOverview', value: getValue(gcxx, ['_项目概况']) },
|
|
{ key: 'projOverview', value: getValue(gcxx, ['_项目概况']) },
|
|
|
- { key: 'natureConstruction', value: natureConstructionMap[getValue(gcxx, ['_项目类型'])] || '' },
|
|
|
|
|
- { key: 'roadGrade', value: roadGradeMap[getValue(gcxx, ['_专业划分'])] || '' },
|
|
|
|
|
|
|
+ { key: 'natureConstruction', value: natureConstruction },
|
|
|
|
|
+ { key: 'roadGrade', value: roadGrade },
|
|
|
{ key: 'roadDistance', value: getValue(gcxx, ['_道路里程-公里']) },
|
|
{ key: 'roadDistance', value: getValue(gcxx, ['_道路里程-公里']) },
|
|
|
{ key: 'designUnit', value: getValue(gcxx, ['_设计单位']) },
|
|
{ key: 'designUnit', value: getValue(gcxx, ['_设计单位']) },
|
|
|
{ key: 'taxMode', value: taxModeMap[getValue(gcxx, ['_计税方式'])] },
|
|
{ key: 'taxMode', value: taxModeMap[getValue(gcxx, ['_计税方式'])] },
|
|
@@ -161,6 +173,8 @@ INTERFACE_IMPORT = (() => {
|
|
|
GUID: getValue(projectSrc, ['工程信息', '_GUID']),
|
|
GUID: getValue(projectSrc, ['工程信息', '_GUID']),
|
|
|
info: setupInformation(projectSrc),
|
|
info: setupInformation(projectSrc),
|
|
|
tenders,
|
|
tenders,
|
|
|
|
|
+ engineeringName,
|
|
|
|
|
+ feeName,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
return setupProject(getValue(xmlObj, ['浙江公路工程']));
|
|
return setupProject(getValue(xmlObj, ['浙江公路工程']));
|