/** * Created by jimiz on 2017/4/19. */ const ModuleNames = { bills: 'bills', ration: 'ration', GLJ: 'GLJ', feeRate: 'feeRate', projectGLJ: 'projectGLJ', ration_glj:'ration_glj', ration_coe:'ration_coe', ration_ass:'ration_ass', quantity_detail:'quantity_detail', labour_coe: 'labour_coe', calc_program: 'calc_program' }; const gljType = { // 人工 LABOUR: 1, // ==============材料类型================= // 普通材料 GENERAL_MATERIAL: 201, // 混凝土 CONCRETE: 202, // 砂浆 MORTAR: 203, // 配合比 MIX_RATIO: 204, // 商品混凝土 COMMERCIAL_CONCRETE: 205, // 商品砂浆 COMMERCIAL_MORTAR: 206, // ==============材料类型================= // ==============机械类型================= // 机械台班 GENERAL_MACHINE: 301, // 机械组成物 MACHINE_COMPOSITION: 302, // 机上人工 MACHINE_LABOUR: 303, // ==============机械类型================= // 主材 MAIN_MATERIAL: 4, // 设备 EQUIPMENT: 5 }; // 计算基数 [定额基价材料费] 要用到的材料类型。 const baseMaterialTypes = [ gljType.GENERAL_MATERIAL, gljType.CONCRETE, gljType.MORTAR, gljType.MIX_RATIO, gljType.COMMERCIAL_CONCRETE, gljType.COMMERCIAL_MORTAR ]; // 全部材料类型。用于暂估等 (多了主材和设备) const allMaterialTypes = [ gljType.GENERAL_MATERIAL, gljType.CONCRETE, gljType.MORTAR, gljType.MIX_RATIO, gljType.COMMERCIAL_CONCRETE, gljType.COMMERCIAL_MORTAR, gljType.MAIN_MATERIAL, gljType.EQUIPMENT ]; // 会有组成物的材料 const compositionTypes = [ gljType.MAIN_MATERIAL, gljType.CONCRETE, gljType.MORTAR, gljType.MIX_RATIO]; const notEditType = [ gljType.CONCRETE, gljType.MORTAR, gljType.MIX_RATIO, gljType.GENERAL_MACHINE, gljType.MAIN_MATERIAL ]; const CP_Col_Width = { // 多处计算程序界面的列宽统一设置 rowHeader: 30, colHeader: 30, // 这个是标题栏高度不是宽度,也写在一起 code: 70, serialNo: 50, name: 200, dispExprUser: 180, feeRate: 60, displayFieldName: 120, statement: 380, memo: 110, unitFee: 90, totalFee: 90 }; const treeNodeCalcType = { ctRationCalcProgram: 1, ctBillCalcProgram: 2, // 汇总清单下所有定额的工料机 ctGatherRationsFees: 3, // 汇总定额的各个费 ctGatherBillsFees: 4, // 汇总清单的各个费 ctCalcBaseValue: 5, ctNull: 6 // ctCommonUnitFee: 6 // 树结点的手工输入综合单价的方式已废弃,现综合单价只读,引入市场单价。 }; const calcAllType = { catAll: 'all', catBills: 'bills', catRations: 'ration' }; const subSheetIndex = { ssiRationGLJ: 0, ssiRationCoe: 1, ssiRationAssistant: 2, ssiQuantityDetail: 3, ssiCalcProgram: 4, ssiMemo: 5, ssiFeature: 6 }; const volumePriceMaps = { "量人": gljType.LABOUR, "量材": gljType.GENERAL_MATERIAL, "量机": gljType.GENERAL_MACHINE, "量主": gljType.MAIN_MATERIAL, "量设": gljType.EQUIPMENT, "人工": gljType.LABOUR, "材料": gljType.GENERAL_MATERIAL, "机械": gljType.GENERAL_MACHINE, "主材": gljType.MAIN_MATERIAL, "设备": gljType.EQUIPMENT, 1: "量人", 201: "量材", 301: "量机", 4: "量主", 5: "量设" }; const rationType = { ration: 1, volumePrice: 2, gljRation: 3 }; const leafBillGetFeeType = { rationContent: 0, rationPriceConverse: 1, rationPrice: 2, billsPrice: 3 }; const zanguCalcType = { common: 0, gatherMaterial: 1 }; //清单固定行 const fixedFlag = { // 分部分项工程 SUB_ENGINERRING: 1, // 措施项目 MEASURE: 2, // 施工技术措施项目 CONSTRUCTION_TECH: 3, // 安全文明施工按实计算费用 SAFETY_CONSTRUCTION_ACTUAL: 4, // 施工组织措施专项费用 CONSTRUCTION_ORGANIZATION: 5, // 安全文明施工专项费用 SAFETY_CONSTRUCTION: 6, // 其他项目 OTHER: 7, // 暂列金额 PROVISIONAL: 8, // 暂估价 ESTIMATE: 9, // 材料(工程设备)暂估价 MATERIAL_PROVISIONAL: 10, // 专业工程暂估价 ENGINEERING_ESITIMATE: 11, // 计日工 DAYWORK: 12, // 总承包服务费 TURN_KEY_CONTRACT: 13, // 索赔与现场签证 CLAIM_VISA: 14, // 规费 CHARGE: 15, // 社会保险费及住房公积金 Social insurance fee and housing accumulation fund SOCIAL_INSURANCE_HOUSING_FUND: 16, // 工程排污费 charges for disposing pollutants POLLUTANTS: 17, // 税金 TAX: 18, //工程造价 ENGINEERINGCOST: 19 }; const gljKeyArray =['code','name','specs','unit','type']; const rationKeyArray =['code','name','specs','unit','subType']; const gljLibKeyArray =['code', 'name', 'specs', 'unit', 'gljType']; const billType ={ DXFY:1,//大项费用 FB:2,//分部 FX:3,//分项 BILL:4//清单 }; const billText = { 1:'费用', 2:'分部', 3:'分项', 4:'清单' };