123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- /**
- * Created by zhang on 2018/8/14.
- */
- if(typeof projectGljObject !== 'undefined'){
- projectGljObject.displayTypeMap=[
- {ID:'LABOUR',text:'人工'},
- {ID:'GENERAL_MATERIAL',text:'材料'},
- {ID:'GENERAL_MACHINE',text:'施工机具'},//重庆2018定额中去掉了主材,机械的显示改为了施工机具
- {ID:'MAIN_MATERIAL',text:'主材'}
- ];
- }
- if(typeof gljUtil !== 'undefined'){
- gljUtil.hasCompMachine = [301,304];//有组成物的机械
- gljUtil.machineComposition = [303,305,306,307,308,309,310,311];//可以做为机械组成物的类型
- }
- //允许使用的工料机类型:人工、普通材料、混凝土、砂浆、配合比、商品混凝土、商品砂浆、其他材料费、机械台班、机上人工、仪器仪表、燃料动力费、折旧费、
- // 检修费、维护费、安拆费及场外运费、校验费、其他费用、主材、企业管理费、利润、一般风险费
- if(typeof allowGljType !== 'undefined'){
- allowGljType = [1, 201, 202, 203, 204, 205, 206, 207, 301, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 4, 6, 7, 8];
- }
- if(typeof allowComponent !== 'undefined'){
- //允许含有组成物的工料机类型:混凝土、砂浆、配合比、机械台班、仪器仪表、主材
- allowComponent = [202, 203, 204, 301, 304, 4];
- }
- if(typeof componentType !== 'undefined'){
- //可以作为组成物的工料机类型:普通材料、机上人工、燃料动力费、折旧费、检修费、维护费、安拆费及场外运费、校验费、其他费用、主材
- componentType = [201, 303, 305, 306, 307, 308, 309, 310, 311, 4];
- }
- if(typeof machineAllowComponent !== 'undefined'){
- //允许含有组成物的机械工料机类型:机械台班、仪器仪表
- machineAllowComponent = [301, 304];
- }
- if(typeof machineComponent !== 'undefined'){
- //可以作为机械工料机组成物的工料机类型:机械组成物、机上人工、燃料动力费、折旧费、检修费、维护费、安拆费及场外运费、校验费、其他费用
- machineComponent = [303, 305, 306, 307, 308, 309, 310, 311];
- }
- if(typeof materialAllowComponent !== 'undefined'){
- //允许含有组成物的材料工料机类型:混凝土、砂浆、配合比
- materialAllowComponent = [202, 203, 204];
- }
- if(typeof materialComponent !== 'undefined'){
- //可以作为材料工料机组成物的工料机类型:普通材料
- materialComponent = [201];
- }
- // CSL, 2018-08-21 计算程序、基数 的覆盖。
- if (rationCalcBases){
- changePropNames(rationCalcBases,
- ['定额基价人工费', '定额基价材料费', '甲供定额基价人工费', '甲供定额基价材料费', '甲定定额基价人工费', '甲定定额基价材料费', '分包定额基价人工费','分包定额基价材料费'],
- ['定额人工费', '定额材料费', '甲供定额人工费', '甲供定额材料费', '甲定定额人工费', '甲定定额材料费', '分包定额人工费','分包定额材料费']);
- deletePropNames(rationCalcBases, [
- '定额基价机械费', '定额基价机上人工费', '机械费价差', '主材费价差', '设备费价差','甲供定额基价机械费','甲定定额基价机械费',
- '设备费', '甲供设备费', '甲定设备费', '分包设备费', '分包定额基价机械费']);
- rationCalcBases['定额其他材料费'] = function () {
- return 0;
- };
- rationCalcBases['定额施工机具使用费'] = function () {
- return 0;
- };
- rationCalcBases['人工费价差'] = function () {
- return 0;
- };
- rationCalcBases['材料费价差'] = function () {
- return 0;
- };
- rationCalcBases['计价材料价差'] = function () {
- return 0;
- };
- rationCalcBases['机上人工费价差'] = function () {
- return 0;
- };
- rationCalcBases['机械燃料动力费价差'] = function () {
- return 0;
- };
- rationCalcBases['机械折旧费'] = function () {
- return 0;
- };
- rationCalcBases['特大机械检修费'] = function () {
- return 0;
- };
- rationCalcBases['中小机械检修费'] = function () {
- return 0;
- };
- rationCalcBases['特大机械维护费'] = function () {
- return 0;
- };
- rationCalcBases['中小机械维护费'] = function () {
- return 0;
- };
- rationCalcBases['机械安拆费及场外运输费'] = function () {
- return 0;
- };
- rationCalcBases['机械燃料动力费'] = function () {
- return 0;
- };
- rationCalcBases['定额仪器仪表费'] = function () {
- return 0;
- };
- rationCalcBases['定额其他施工机具使用费'] = function () {
- return 0;
- };
- rationCalcBases['甲供定额施工机具费'] = function () {
- return 0;
- };
- rationCalcBases['分包定额施工机具费'] = function () {
- return 0;
- };
- rationCalcBases['甲定定额施工机具费'] = function () {
- return 0;
- };
- }
- else {
- let s = '加载超前,覆盖失败!';
- console.log(s);
- alert(s);
- }
|