material.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. 'use strict';
  2. /**
  3. * 材料调差
  4. *
  5. * @author ELlisran
  6. * @date 2019/10/20
  7. * @version
  8. */
  9. // 调差类型
  10. const t_type = [
  11. { text: '消耗量', value: 1 },
  12. { text: '费用', value: 2 },
  13. ];
  14. // 工料分类
  15. const m_type = [
  16. { text: '分类', value: 1 },
  17. { text: '钢材', value: 2 },
  18. { text: '地材', value: 3 },
  19. { text: '油料', value: 4 },
  20. { text: '水泥', value: 5 },
  21. { text: '半成品', value: 6 },
  22. { text: '砂石料', value: 8 },
  23. { text: '沥青', value: 9 },
  24. { text: '其他', value: 7 },
  25. ];
  26. // 指数调差类型
  27. const ex_type = [
  28. { text: '定值', value: 1 },
  29. { text: '变值', value: 2 },
  30. ];
  31. const ex_basic_text = {
  32. bqht: '所选期合同计量金额',
  33. bqbg: '所选期变更计量金额',
  34. bqwc: '所选期完成计量金额',
  35. zdy: '自定义金额',
  36. };
  37. // 金额
  38. const decimal = {
  39. up: 3, // 单价
  40. qty: 3, // 数量
  41. tp: 2, // 金额
  42. };
  43. const exponent_decimal = {
  44. up: 3, // 单价, 基准价格指数,现行价格指数
  45. tp: 0, // 金额
  46. qty: 3, // 计算值
  47. };
  48. const ex_calc = [
  49. {
  50. code: 'bqht',
  51. text: '所选期合同计量金额',
  52. value: '',
  53. select: false,
  54. },
  55. {
  56. code: 'bqbg',
  57. text: '所选期变更计量金额',
  58. value: '',
  59. select: false,
  60. },
  61. {
  62. code: 'bqwc',
  63. text: '所选期完成计量金额',
  64. value: '',
  65. select: true,
  66. },
  67. {
  68. code: 'zdy',
  69. text: '自定义金额',
  70. value: '',
  71. result: '',
  72. select: false,
  73. },
  74. ];
  75. const is_summary = {
  76. yes: 1,
  77. no: 2,
  78. };
  79. const qty_source = [
  80. {
  81. value: 1,
  82. name: '完成计量',
  83. key: 'gather_qty',
  84. },
  85. {
  86. value: 2,
  87. name: '合同计量',
  88. key: 'contract_qty',
  89. },
  90. {
  91. value: 3,
  92. name: '完成计量(含不计价变更)',
  93. key: 'gather_minus_qty',
  94. },
  95. ];
  96. const qty_source_value = {
  97. gather_qty: 1,
  98. contract_qty: 2,
  99. gather_minus_qty: 3,
  100. };
  101. const exponent_status = {
  102. shared_noNode: 1,
  103. shared_node: 2,
  104. self_noNode: 3,
  105. self_node: 4,
  106. };
  107. module.exports = {
  108. t_type,
  109. m_type,
  110. ex_type,
  111. is_summary,
  112. ex_calc,
  113. ex_basic_text,
  114. decimal,
  115. exponent_decimal,
  116. qty_source,
  117. qty_source_value,
  118. exponent_status,
  119. };