waybill.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: 'input',
  85. required: true,
  86. }, {
  87. field: 'suitableForColdTime',
  88. label: '适冷时间',
  89. placeholder: '请输入适冷时间',
  90. type: 'input',
  91. required: true,
  92. }, {
  93. field: 'suitableForCold',
  94. label: '适冷温度',
  95. placeholder: '请输入适冷温度',
  96. type: 'input',
  97. required: true,
  98. }]
  99. }
  100. export const printList = () => {
  101. return [{
  102. field: 'name',
  103. label: '姓名',
  104. placeholder: '请输入姓名',
  105. type: 'input',
  106. required: true,
  107. }, {
  108. field: 'phone',
  109. label: '电话',
  110. placeholder: '请输入电话',
  111. type: 'input',
  112. required: true,
  113. }]
  114. }