'use strict'; //允许使用的工料机类型:人工、普通材料、其他材料费、混凝土、砂浆、配合比、商品混凝土、商品砂浆 //机械台班、机上人工、机械组成物、主材、设备 if(typeof allowGljType !== 'undefined'){ allowGljType = [1, 201, 202, 203, 204, 205, 206, 207, 301, 302, 303, 4, 5]; } 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]; } /** * * * @author Zhong * @date 2018/8/31 * @version */ //计税方式 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 }; }