jiangxi_2017.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. }
  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. *
  33. *
  34. * @author Zhong
  35. * @date 2018/8/31
  36. * @version
  37. */
  38. //计税方式
  39. const taxModel = {'common': 1, 'simple': 2};
  40. //价格属性:计税方式
  41. const pricePropertiesTemplate = [
  42. {
  43. region: '全省',
  44. taxModel: taxModel.common,
  45. price: {
  46. dataCode: 'price1',
  47. dataName: '单价-一般'
  48. }
  49. },
  50. {
  51. region: '全省',
  52. taxModel: taxModel.simple,
  53. price: {
  54. dataCode: 'price2',
  55. dataName: '单价-简易'
  56. }
  57. }
  58. ];
  59. //消耗量属性:计税方式
  60. const consumeAmtPropertiesTemplate = [
  61. {
  62. region: '全省',
  63. taxModel: taxModel.common,
  64. consumeAmt: {
  65. dataCode: 'consumeAmt1',
  66. dataName: '消耗-一般',
  67. refPrice: 'price1' //关联的单价字段
  68. }
  69. },
  70. {
  71. region: '全省',
  72. taxModel: taxModel.simple,
  73. consumeAmt: {
  74. dataCode: 'consumeAmt2',
  75. dataName: '消耗-简易',
  76. refPrice: 'price2' //关联的单价字段
  77. }
  78. }
  79. ];
  80. if(typeof module !== 'undefined'){
  81. module.exports = {
  82. pricePropertiesTemplate: pricePropertiesTemplate,
  83. consumeAmtPropertiesTemplate: consumeAmtPropertiesTemplate
  84. };
  85. }