|
|
@@ -428,6 +428,14 @@ INTERFACE_EXPORT = (() => {
|
|
|
}
|
|
|
|
|
|
function createZaoJHZB(Bid, ZaoJHZB) {
|
|
|
+ const flagToLB = {
|
|
|
+ [fixedFlag.ONE_SEVEN_BILLS]: '1',
|
|
|
+ [fixedFlag.PROVISIONAL_TOTAL]: '2',
|
|
|
+ [fixedFlag.BILLS_TOTAL_WT_PROV]: '3',
|
|
|
+ [fixedFlag.DAYWORK_LABOR]: '4',
|
|
|
+ [fixedFlag.PROVISIONAL]: '5',
|
|
|
+ [fixedFlag.TOTAL_COST]: '6',
|
|
|
+ };
|
|
|
const map_ZC_LB = [
|
|
|
{reg: /(第?100章?至第?700章?)/, zc: '', lb: '1'},
|
|
|
{reg: /已包含在清单合计中的材料/, zc: '', lb: '2'},
|
|
|
@@ -444,10 +452,13 @@ INTERFACE_EXPORT = (() => {
|
|
|
{reg: /第700章/, zc: '700', lb: '17'}
|
|
|
]
|
|
|
|
|
|
- function getZCLB(name, kind){
|
|
|
- let rst = '';
|
|
|
+ function getZCLB(flag, name, kind){
|
|
|
+ let rst = kind === 2 ? flagToLB[flag] || '' : '';
|
|
|
+ if (rst) {
|
|
|
+ return rst;
|
|
|
+ }
|
|
|
+ const trimName = (name || '').replace(/\s/g, '');
|
|
|
for (let i = 0; i < map_ZC_LB.length; i++){
|
|
|
- const trimName = (name || '').replace(/\s/g, '');
|
|
|
if (map_ZC_LB[i].reg.test(trimName)){
|
|
|
if (kind == 1)
|
|
|
rst = map_ZC_LB[i].zc
|
|
|
@@ -465,7 +476,6 @@ INTERFACE_EXPORT = (() => {
|
|
|
else
|
|
|
return (node.data.feesIndex && node.data.feesIndex.common ? node.data.feesIndex.common.tenderTotalFee : 0);
|
|
|
}
|
|
|
- debugger;
|
|
|
let nodes = [vTree.roots[0], ...vTree.roots[0].children, ...vTree.roots.slice(1)];
|
|
|
|
|
|
let hzmxNo = 0;
|
|
|
@@ -474,10 +484,10 @@ INTERFACE_EXPORT = (() => {
|
|
|
hzmxNo++;
|
|
|
let attrs = [
|
|
|
{ name: '序号', value: hzmxNo },
|
|
|
- { name: '章次', value: getZCLB(node.data.name, 1) },
|
|
|
+ { name: '章次', value: getZCLB(node.getFlag(), node.data.name, 1) },
|
|
|
{ name: '名称', value: node.data.name },
|
|
|
{ name: '金额', value: getJE(node) },
|
|
|
- { name: '类别', value: getZCLB(node.data.name, 2) },
|
|
|
+ { name: '类别', value: getZCLB(node.getFlag(), node.data.name, 2) },
|
|
|
{ name: '备注', value: node.data.remark }
|
|
|
];
|
|
|
const zaoJHZMX = new CreateNode('造价汇总明细', attrs);
|