|
|
@@ -138,7 +138,8 @@ INTERFACE_IMPORT = (() => {
|
|
|
return tender;
|
|
|
}
|
|
|
|
|
|
- function setupBills(item) {
|
|
|
+ function setupBills(item, needClac = false) {
|
|
|
+ const regBlank = new RegExp(' ', 'g');
|
|
|
let bill = {
|
|
|
code: item._ListCode,
|
|
|
name: item._ListName,
|
|
|
@@ -151,7 +152,7 @@ INTERFACE_IMPORT = (() => {
|
|
|
qtyFormula: item._QtyFormula,
|
|
|
children: []
|
|
|
}
|
|
|
- if (bill.qtyFormula && bill.qtyFormula !== '') {
|
|
|
+ if ((needClac || bill.name == "暂列金额(不含计日工总额)") && bill.qtyFormula && bill.qtyFormula !== '') {
|
|
|
let formula = getValue(item, ['CostComposition', 'Formula', '_Formulas']);
|
|
|
let ratio = getValue(item, ['CostComposition', 'Formula', '_Ratio']);
|
|
|
if (formula !== undefined && formula !== null && formula !== '') {
|
|
|
@@ -185,7 +186,11 @@ INTERFACE_IMPORT = (() => {
|
|
|
let subItems = arrayValue(item, ['Item']);
|
|
|
if (subItems && subItems.length > 0) {
|
|
|
for (let i of subItems) {
|
|
|
- bill.children.push(setupBills(i))
|
|
|
+ if (typeof i._ListName === 'string' && i._ListName.replace(regBlank, '') === '清单第100章总则') {
|
|
|
+ bill.children.push(setupBills(i, true));
|
|
|
+ } else {
|
|
|
+ bill.children.push(setupBills(i, needClac));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return bill;
|