waybill.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. export const formRules = () => {
  2. return [{
  3. field: 'deliveryName',
  4. label: '配送人',
  5. placeholder: '请选择配送人',
  6. type: 'selectiveSearch',
  7. required: true,
  8. }, {
  9. field: 'reCheckName',
  10. label: '复核人',
  11. placeholder: '请选择复核人',
  12. type: 'selectiveSearch',
  13. required: true,
  14. }, {
  15. field: 'tamperProofLabel',
  16. label: '防拆标签码',
  17. placeholder: '请输入防拆标签码',
  18. type: 'input',
  19. required: true,
  20. }, {
  21. field: 'tamperProofLabelImg',
  22. label: '防拆标签图片',
  23. placeholder: '请上传防拆标签图片',
  24. type: 'upload',
  25. required: true,
  26. }, {
  27. field: 'remark',
  28. label: '备注',
  29. placeholder: '备注',
  30. type: 'textarea',
  31. }]
  32. }
  33. export const pickupRulesil = () => {
  34. return [{
  35. field: 'name',
  36. label: '姓名',
  37. placeholder: '请输入姓名',
  38. type: 'input',
  39. required: true,
  40. }, {
  41. field: 'phone',
  42. label: '电话',
  43. placeholder: '请输入电话',
  44. type: 'input',
  45. required: true,
  46. }, {
  47. field: 'address',
  48. label: '地址',
  49. placeholder: '请输入地址',
  50. type: 'input',
  51. required: true,
  52. }]
  53. }
  54. export const iceRaftRulesil = () => {
  55. return [{
  56. field: 'code',
  57. label: '编号',
  58. placeholder: '请输入编号',
  59. type: 'input',
  60. required: true,
  61. }, {
  62. field: 'label',
  63. label: '冰排备注',
  64. placeholder: '请输入冰排备注',
  65. type: 'input',
  66. required: true,
  67. }, {
  68. field: 'status',
  69. label: '状态',
  70. placeholder: '请选择状态',
  71. type: 'selectiveSearch',
  72. required: true,
  73. options: [{
  74. value: '2',
  75. label: '正常'
  76. }, {
  77. value: '1',
  78. label: '停用'
  79. }]
  80. }, {
  81. field: 'freezeClaim',
  82. label: '冷冻要求',
  83. placeholder: '请输入冷冻时间',
  84. type: 'selectiveSearch',
  85. required: true,
  86. options: [{
  87. label: '48小时',
  88. value: 48,
  89. }, {
  90. label: '24小时',
  91. value: 24,
  92. }, {
  93. label: '12小时',
  94. value: 12,
  95. }]
  96. }, {
  97. field: 'suitableForCold',
  98. label: '释冷温度',
  99. placeholder: '请输入释冷温度',
  100. type: 'input',
  101. required: true,
  102. }, {
  103. field: 'iceColdAddress',
  104. label: '释冷地点',
  105. placeholder: '请输入释冷地点',
  106. type: 'input',
  107. required: true,
  108. }]
  109. }
  110. export const printList = () => {
  111. return [{
  112. field: 'name',
  113. label: '姓名',
  114. placeholder: '请输入姓名',
  115. type: 'input',
  116. required: true,
  117. }, {
  118. field: 'phone',
  119. label: '电话',
  120. placeholder: '请输入电话',
  121. type: 'input',
  122. required: true,
  123. }]
  124. }