|
@@ -116,9 +116,21 @@ INTERFACE_IMPORT = (() => {
|
|
|
]
|
|
]
|
|
|
const items = arrayValue(EprjInfo, ['Items', 'Item']);
|
|
const items = arrayValue(EprjInfo, ['Items', 'Item']);
|
|
|
let hasOneHundredChapter = false;
|
|
let hasOneHundredChapter = false;
|
|
|
|
|
+ const _chkIfHasOneHundred = function(pBill) {
|
|
|
|
|
+ let rst = false;
|
|
|
|
|
+ if (pBill.name.indexOf('第100章') >= 0 && pBill.name.indexOf('总则') >= 0) {
|
|
|
|
|
+ rst = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (let idx = 0; idx < pBill.children.length; idx++) {
|
|
|
|
|
+ rst = _chkIfHasOneHundred(pBill.children[idx]);
|
|
|
|
|
+ if (rst) break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return rst;
|
|
|
|
|
+ };
|
|
|
for (let i of items) {
|
|
for (let i of items) {
|
|
|
let bill = setupBills(i);
|
|
let bill = setupBills(i);
|
|
|
- if (bill.name.indexOf('第100章') >= 0 && bill.name.indexOf('总则') >= 0) hasOneHundredChapter = true;
|
|
|
|
|
|
|
+ if (_chkIfHasOneHundred(bill)) hasOneHundredChapter = true;
|
|
|
if (bill.name == "暂列金额(不含计日工总额)") {
|
|
if (bill.name == "暂列金额(不含计日工总额)") {
|
|
|
bill.fees = [{ fieldName: "common",tenderTotalFee:ProvisionalSums, tenderUnitFee: "0", totalFee: ProvisionalSums, unitFee: "0" }];
|
|
bill.fees = [{ fieldName: "common",tenderTotalFee:ProvisionalSums, tenderUnitFee: "0", totalFee: ProvisionalSums, unitFee: "0" }];
|
|
|
if (bill.calcBase === undefined || bill.calcBase === null || bill.calcBase === '') {
|
|
if (bill.calcBase === undefined || bill.calcBase === null || bill.calcBase === '') {
|