guangdong_2018.js 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. 'use strict';
  2. //允许使用的工料机类型:人工、普通材料、其他材料费、混凝土、砂浆、配合比、商品混凝土、商品砂浆
  3. //机械台班、机上人工、机械组成物、主材、设备、企业管理费
  4. if(typeof allowGljType !== 'undefined'){
  5. allowGljType = [1, 201, 202, 203, 204, 205, 206, 207, 301, 302, 303, 4,5, 6];
  6. }
  7. if(typeof allowComponent !== 'undefined'){
  8. //允许含有组成物的工料机类型:混凝土、砂浆、配合比、机械台班、主材
  9. allowComponent = [202, 203, 204, 301, 4];
  10. }
  11. if(typeof componentType !== 'undefined'){
  12. //可以作为组成物的工料机类型:普通材料、机械组成物、机上人工、主材
  13. componentType = [201, 302, 303, 4];
  14. }
  15. if(typeof machineAllowComponent !== 'undefined'){
  16. //允许含有组成物的机械工料机类型:机械台班器仪表
  17. machineAllowComponent = [301];
  18. }
  19. if(typeof machineComponent !== 'undefined'){
  20. //可以作为机械工料机组成物的工料机类型:机械组成物、机上人工
  21. machineComponent = [302, 303];
  22. }
  23. if(typeof materialAllowComponent !== 'undefined'){
  24. //允许含有组成物的材料工料机类型:混凝土、砂浆、配合比
  25. materialAllowComponent = [202, 203, 204];
  26. }
  27. if(typeof materialComponent !== 'undefined'){
  28. //可以作为材料工料机组成物的工料机类型:普通材料
  29. materialComponent = [201];
  30. }
  31. // 人材机库追加的列头
  32. if (typeof repositoryGljObj !== 'undefined') {
  33. repositoryGljObj.setting.header = [
  34. {headerName:"税率",headerWidth:60,dataCode:"taxRate", dataType: "Number", hAlign: "center", vAlign: "center"},
  35. {headerName:"调整系数",headerWidth:60,dataCode:"adjCoe", dataType: "Number", hAlign: "center", vAlign: "center"},
  36. {headerName:"三材类别",headerWidth:90,dataCode:"materialType", dataType: "String", hAlign: "center", vAlign: "center"},
  37. {headerName:"三材系数",headerWidth:60,dataCode:"materialCoe", dataType: "Number", hAlign: "center", vAlign: "center"},
  38. {headerName:"机型",headerWidth:60,dataCode:"model", dataType: "Number", hAlign: "center", vAlign: "center"},
  39. {headerName:"工料指标类别",headerWidth:90,dataCode:"materialIndexType", dataType: "String", hAlign: "center", vAlign: "center"},
  40. {headerName:"工料指标单位",headerWidth:90,dataCode:"materialIndexUnit", dataType: "String", hAlign: "center", vAlign: "center"},
  41. {headerName:"单位转换系数",headerWidth:90,dataCode:"materialIndexCoe", dataType: "Number", hAlign: "center", vAlign: "center"}
  42. ]
  43. }
  44. //计税方式
  45. const taxModel = {'common': 1, 'simple': 2};
  46. //价格属性:计税方式
  47. const pricePropertiesTemplate = [
  48. {
  49. region: '全省',
  50. taxModel: taxModel.common,
  51. price: {
  52. dataCode: 'price1',
  53. dataName: '单价-一般'
  54. }
  55. },
  56. {
  57. region: '全省',
  58. taxModel: taxModel.simple,
  59. price: {
  60. dataCode: 'price2',
  61. dataName: '单价-简易'
  62. }
  63. }
  64. ];
  65. //消耗量属性:计税方式
  66. const consumeAmtPropertiesTemplate = [
  67. {
  68. region: '全省',
  69. taxModel: taxModel.common,
  70. consumeAmt: {
  71. dataCode: 'consumeAmt1',
  72. dataName: '消耗-一般',
  73. refPrice: 'price1' //关联的单价字段
  74. }
  75. },
  76. {
  77. region: '全省',
  78. taxModel: taxModel.simple,
  79. consumeAmt: {
  80. dataCode: 'consumeAmt2',
  81. dataName: '消耗-简易',
  82. refPrice: 'price2' //关联的单价字段
  83. }
  84. }
  85. ];
  86. if(typeof module !== 'undefined'){
  87. module.exports = {
  88. pricePropertiesTemplate: pricePropertiesTemplate,
  89. consumeAmtPropertiesTemplate: consumeAmtPropertiesTemplate
  90. };
  91. }