inventoryCheckForm.data.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. import {BasicColumn} from '/@/components/Table';
  2. import {FormSchema} from '/@/components/Table';
  3. import { rules} from '/@/utils/helper/validator';
  4. import { render } from '/@/utils/common/renderUtils';
  5. import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
  6. import { getWeekMonthQuarterYear } from '/@/utils';
  7. //列表数据
  8. export const columns: BasicColumn[] = [
  9. {
  10. title: '盘点单号(bill code)',
  11. align:"center",
  12. dataIndex: 'billCode'
  13. },
  14. {
  15. title: '盘点日期(bill date)',
  16. align:"center",
  17. dataIndex: 'billDate',
  18. customRender:({text}) =>{
  19. text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
  20. return text;
  21. },
  22. },
  23. {
  24. title: '仓库(warehouse)',
  25. align:"center",
  26. dataIndex: 'warehouse'
  27. },
  28. {
  29. title: '货位(goods allocation)',
  30. align:"center",
  31. dataIndex: 'goodsAllocation',
  32. width:'250'
  33. },
  34. {
  35. title: '提交(submit)',
  36. align:"center",
  37. dataIndex: 'submit_dictText',
  38. },
  39. ];
  40. export const stockDetailColumns: JVxeColumn[] = [
  41. {
  42. title: '产品分类(product class)',
  43. key: 'productClass',
  44. type: JVxeTypes.normal,
  45. placeholder: '请输入${title}',
  46. width:"200px",
  47. defaultValue:'',
  48. },
  49. {
  50. title: '产品编码(product code)',
  51. key: 'productCode',
  52. type: JVxeTypes.normal,
  53. placeholder: '请输入${title}',
  54. width:"200px",
  55. defaultValue:'',
  56. },
  57. {
  58. title: '产品中文名(chineseName)',
  59. key: 'chineseName',
  60. type: JVxeTypes.normal,
  61. placeholder: '请输入${title}',
  62. width:"200px",
  63. defaultValue:'',
  64. },
  65. {
  66. title: '产品英文名(englishName)',
  67. key: 'englishName',
  68. type: JVxeTypes.normal,
  69. placeholder: '请输入${title}',
  70. width:"200px",
  71. defaultValue:'',
  72. },
  73. {
  74. title: '型号(model)',
  75. key: 'model',
  76. type: JVxeTypes.normal,
  77. placeholder: '请输入${title}',
  78. width:"200px",
  79. defaultValue:'',
  80. },
  81. {
  82. title: '备件号(partno)',
  83. key: 'partno',
  84. type: JVxeTypes.normal,
  85. placeholder: '请输入${title}',
  86. width:"200px",
  87. defaultValue:'',
  88. },
  89. {
  90. title: '订货号(orderno)',
  91. key: 'orderno',
  92. type: JVxeTypes.normal,
  93. placeholder: '请输入${title}',
  94. width:"200px",
  95. defaultValue:'',
  96. },
  97. {
  98. title: '图号(drawingno)',
  99. key: 'drawingno',
  100. type: JVxeTypes.normal,
  101. placeholder: '请输入${title}',
  102. width:"200px",
  103. defaultValue:'',
  104. },
  105. {
  106. title: '厂家(factory)',
  107. key: 'factory',
  108. placeholder: '请输入${title}',
  109. width:"200px",
  110. defaultValue:'',
  111. type: JVxeTypes.normal,
  112. },
  113. {
  114. title: '质量等级(quality grade)',
  115. key: 'qualityGrade',
  116. type: JVxeTypes.normal,
  117. placeholder: '请输入${title}',
  118. width:"200px",
  119. defaultValue:'',
  120. },
  121. {
  122. title: '编号(batch code)',
  123. key: 'batchCode',
  124. placeholder: '请输入${title}',
  125. width:"200px",
  126. defaultValue:'',
  127. type: JVxeTypes.normal,
  128. },
  129. {
  130. title: '库存数量(inventory quantity)',
  131. key: 'inventoryQuantity',
  132. type: JVxeTypes.normal,
  133. placeholder: '请输入${title}',
  134. defaultValue:'',
  135. width:"200px",
  136. },
  137. {
  138. title: '盘点数量(counted quantity)',
  139. key: 'countedQuantity',
  140. type: JVxeTypes.inputNumber,
  141. validateRules: [{ required: true, message: '' }],
  142. placeholder: '请输入${title}',
  143. defaultValue:'',
  144. width:"200px",
  145. },
  146. {
  147. title: '盘盈/盘亏(inventory profit/loss)',
  148. key: 'inventory',
  149. width:"200px",
  150. placeholder: '请输入${title}',
  151. defaultValue:'',
  152. type: JVxeTypes.inputNumber,
  153. validateRules: [{ required: true, message: '' }],
  154. },
  155. {
  156. title: '备注(notes)',
  157. key: 'notes',
  158. type: JVxeTypes.input,
  159. width:"200px",
  160. placeholder: '请输入${title}',
  161. defaultValue:'',
  162. },
  163. {
  164. title: '操作(operation)',
  165. key: 'action',
  166. width:"200px",
  167. // 固定在右侧
  168. fixed: 'right',
  169. // 对齐方式为居中
  170. align: 'center',
  171. // 组件类型定义为【插槽】
  172. type: JVxeTypes.slot,
  173. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  174. slotName: 'action',
  175. },
  176. ]