material.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: 7 },
  24. ];
  25. // 指数调差类型
  26. const ex_type = [
  27. { text: '定值', value: 1 },
  28. { text: '变值', value: 2 },
  29. ];
  30. const ex_basic_text = {
  31. bqht: '所选期合同计量金额',
  32. bqbg: '所选期变更计量金额',
  33. bqwc: '所选期完成计量金额',
  34. zdy: '自定义金额',
  35. };
  36. // 金额
  37. const decimal = {
  38. up: 3, // 单价
  39. qty: 3, // 数量
  40. tp: 2, // 金额
  41. };
  42. const ex_calc = [
  43. {
  44. code: 'bqht',
  45. text: '所选期合同计量金额',
  46. value: '',
  47. select: false,
  48. },
  49. {
  50. code: 'bqbg',
  51. text: '所选期变更计量金额',
  52. value: '',
  53. select: false,
  54. },
  55. {
  56. code: 'bqwc',
  57. text: '所选期完成计量金额',
  58. value: '',
  59. select: true,
  60. },
  61. {
  62. code: 'zdy',
  63. text: '自定义金额',
  64. value: '',
  65. select: false,
  66. },
  67. ];
  68. const is_summary = {
  69. yes: 1,
  70. no: 2,
  71. };
  72. module.exports = {
  73. t_type,
  74. m_type,
  75. ex_type,
  76. is_summary,
  77. ex_calc,
  78. ex_basic_text,
  79. decimal,
  80. };