|
@@ -120,17 +120,38 @@ INTERFACE_IMPORT = (() => {
|
|
|
});
|
|
});
|
|
|
// 第100-700章的数据
|
|
// 第100-700章的数据
|
|
|
if (oneSevenBills) {
|
|
if (oneSevenBills) {
|
|
|
- oneSevenBills.children = extractItemsRecur(oneSevenSrc, [['工程量清单明细']], (src) => ({
|
|
|
|
|
- GUID: getValue(src, ['_GUID']),
|
|
|
|
|
- sectionCode: getValue(src, ['_清单章节号']),
|
|
|
|
|
- code: getValue(src, ['_子目号']),
|
|
|
|
|
- name: getValue(src, ['_子目名称']),
|
|
|
|
|
- unit: getValue(src, ['_单位']),
|
|
|
|
|
- quantity: getValue(src, ['_数量']),
|
|
|
|
|
- remark: getValue(src, ['_备注']),
|
|
|
|
|
- appraisalBills: +getValue(src, ['_评审清单']),
|
|
|
|
|
- specialProvisional: getValue(src, ['_数据类型']) === '21' ? '专业工程' : ''
|
|
|
|
|
- }));
|
|
|
|
|
|
|
+ oneSevenBills.children = extractItemsRecur(oneSevenSrc, [['工程量清单明细']], (src) => {
|
|
|
|
|
+ const bill = {
|
|
|
|
|
+ GUID: getValue(src, ['_GUID']),
|
|
|
|
|
+ sectionCode: getValue(src, ['_清单章节号']),
|
|
|
|
|
+ code: getValue(src, ['_子目号']),
|
|
|
|
|
+ name: getValue(src, ['_子目名称']),
|
|
|
|
|
+ unit: getValue(src, ['_单位']),
|
|
|
|
|
+ quantity: getValue(src, ['_数量']),
|
|
|
|
|
+ remark: getValue(src, ['_备注']),
|
|
|
|
|
+ appraisalBills: +getValue(src, ['_评审清单']),
|
|
|
|
|
+ specialProvisional: getValue(src, ['_数据类型']) === '21' ? '专业工程' : '',
|
|
|
|
|
+ children: [],
|
|
|
|
|
+ };
|
|
|
|
|
+ const rBillItems = arrayValue(src, ['定额信息表']); // 导入后作为清单处理
|
|
|
|
|
+ if (rBillItems.length > 0) {
|
|
|
|
|
+ rBillItems.forEach((rationXml, index) => {
|
|
|
|
|
+ const item = {
|
|
|
|
|
+ // seq: index + 1,
|
|
|
|
|
+ // fees,
|
|
|
|
|
+ GUID: getValue(rationXml, ['_GUID']),
|
|
|
|
|
+ code: getValue(rationXml, ['_定额编号']),
|
|
|
|
|
+ name: getValue(rationXml, ['_定额名称']),
|
|
|
|
|
+ unit: getValue(rationXml, ['_单位']),
|
|
|
|
|
+ tenderQuantity: getValue(rationXml, ['_数量']),
|
|
|
|
|
+ quantity: getValue(rationXml, ['_数量']),
|
|
|
|
|
+ remark: getValue(rationXml, ['_备注']),
|
|
|
|
|
+ };
|
|
|
|
|
+ bill.children.push(item);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ return bill;
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
// 计日工数据
|
|
// 计日工数据
|
|
|
if (dayWorkBills) {
|
|
if (dayWorkBills) {
|