| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 | 'use strict';//允许使用的工料机类型:人工、普通材料、其他材料费、混凝土、砂浆、配合比、商品混凝土、商品砂浆//机械台班、机上人工、机械组成物、主材、设备、企业管理费if(typeof allowGljType !== 'undefined'){    allowGljType = [1, 201, 202, 203, 204, 205, 206, 207, 301, 302, 303, 4,5, 6];}if(typeof allowComponent !== 'undefined'){    //允许含有组成物的工料机类型:混凝土、砂浆、配合比、机械台班、主材    allowComponent = [202, 203, 204, 301, 4];}if(typeof componentType !== 'undefined'){    //可以作为组成物的工料机类型:普通材料、机械组成物、机上人工、主材    componentType = [201, 302, 303, 4];}if(typeof machineAllowComponent !== 'undefined'){    //允许含有组成物的机械工料机类型:机械台班器仪表    machineAllowComponent = [301];}if(typeof machineComponent !== 'undefined'){    //可以作为机械工料机组成物的工料机类型:机械组成物、机上人工    machineComponent = [302, 303];}if(typeof materialAllowComponent !== 'undefined'){    //允许含有组成物的材料工料机类型:混凝土、砂浆、配合比    materialAllowComponent = [202, 203, 204];}if(typeof materialComponent !== 'undefined'){    //可以作为材料工料机组成物的工料机类型:普通材料    materialComponent = [201];}// 人材机库追加的列头if (typeof repositoryGljObj !== 'undefined') {    repositoryGljObj.setting.header = [        {headerName:"税率",headerWidth:60,dataCode:"taxRate", dataType: "Number", hAlign: "center", vAlign: "center"},        {headerName:"调整系数",headerWidth:60,dataCode:"adjCoe", dataType: "Number", hAlign: "center", vAlign: "center"},        {headerName:"三材类别",headerWidth:90,dataCode:"materialType", dataType: "String", hAlign: "center", vAlign: "center"},        {headerName:"三材系数",headerWidth:60,dataCode:"materialCoe", dataType: "Number", hAlign: "center", vAlign: "center"},        {headerName:"机型",headerWidth:60,dataCode:"model", dataType: "Number", hAlign: "center", vAlign: "center"},        {headerName:"工料指标类别",headerWidth:90,dataCode:"materialIndexType", dataType: "String", hAlign: "center", vAlign: "center"},        {headerName:"工料指标单位",headerWidth:90,dataCode:"materialIndexUnit", dataType: "String", hAlign: "center", vAlign: "center"},        {headerName:"单位转换系数",headerWidth:90,dataCode:"materialIndexCoe", dataType: "Number", hAlign: "center", vAlign: "center"}    ]}//计税方式const taxModel = {'common': 1, 'simple': 2};//价格属性:计税方式const pricePropertiesTemplate = [    {        region: '全省',        taxModel: taxModel.common,        price: {            dataCode: 'price1',            dataName: '单价-一般'        }    },    {        region: '全省',        taxModel: taxModel.simple,        price: {            dataCode: 'price2',            dataName: '单价-简易'        }    }];//消耗量属性:计税方式const consumeAmtPropertiesTemplate = [    {        region: '全省',        taxModel: taxModel.common,        consumeAmt: {            dataCode: 'consumeAmt1',            dataName: '消耗-一般',            refPrice: 'price1' //关联的单价字段        }    },    {        region: '全省',        taxModel: taxModel.simple,        consumeAmt: {            dataCode: 'consumeAmt2',            dataName: '消耗-简易',            refPrice: 'price2' //关联的单价字段        }    }];if(typeof module !== 'undefined'){    module.exports = {        pricePropertiesTemplate: pricePropertiesTemplate,        consumeAmtPropertiesTemplate: consumeAmtPropertiesTemplate    };}
 |