StoreConsignmentOut.data.ts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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: '提交(submit)1是0否',
  11. align:"center",
  12. dataIndex: 'submit_dictText'
  13. },
  14. {
  15. title: '单据日期',
  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: '单据编码',
  25. align:"center",
  26. dataIndex: 'billCode'
  27. },
  28. {
  29. title: '项目(project)',
  30. align:"center",
  31. dataIndex: 'project'
  32. },
  33. {
  34. title: '项目名称',
  35. align:"center",
  36. dataIndex: 'projectName'
  37. },
  38. {
  39. title: '客户(customer)',
  40. align:"center",
  41. dataIndex: 'customer'
  42. },
  43. {
  44. title: '客户名称',
  45. align:"center",
  46. dataIndex: 'customerName'
  47. },
  48. {
  49. title: '仓库(warehouse)',
  50. align:"center",
  51. dataIndex: 'warehouse'
  52. },
  53. {
  54. title: '货位(goods allocation)',
  55. align:"center",
  56. dataIndex: 'goodsAllocation'
  57. },
  58. {
  59. title: '备注(notes)',
  60. align:"center",
  61. dataIndex: 'notes'
  62. },
  63. ];
  64. //子表表格配置
  65. export const storeConsignmentOutDetailsColumns: JVxeColumn[] = [
  66. {
  67. title: '产品id',
  68. key: 'productId',
  69. type: JVxeTypes.input,
  70. width:"200px",
  71. placeholder: '请输入${title}',
  72. defaultValue:'',
  73. },
  74. {
  75. title: '产品分类',
  76. key: 'productClass',
  77. type: JVxeTypes.input,
  78. width:"200px",
  79. placeholder: '请输入${title}',
  80. defaultValue:'',
  81. },
  82. {
  83. title: '产品编码',
  84. key: 'productCode',
  85. type: JVxeTypes.input,
  86. width:"200px",
  87. placeholder: '请输入${title}',
  88. defaultValue:'',
  89. },
  90. {
  91. title: '产品中文名',
  92. key: 'chineseName',
  93. type: JVxeTypes.input,
  94. width:"200px",
  95. placeholder: '请输入${title}',
  96. defaultValue:'',
  97. },
  98. {
  99. title: '产品英文名',
  100. key: 'englishName',
  101. type: JVxeTypes.input,
  102. width:"200px",
  103. placeholder: '请输入${title}',
  104. defaultValue:'',
  105. },
  106. {
  107. title: '型号',
  108. key: 'model',
  109. type: JVxeTypes.input,
  110. width:"200px",
  111. placeholder: '请输入${title}',
  112. defaultValue:'',
  113. },
  114. {
  115. title: '备件号',
  116. key: 'partno',
  117. type: JVxeTypes.input,
  118. width:"200px",
  119. placeholder: '请输入${title}',
  120. defaultValue:'',
  121. },
  122. {
  123. title: '图号',
  124. key: 'drawingno',
  125. type: JVxeTypes.input,
  126. width:"200px",
  127. placeholder: '请输入${title}',
  128. defaultValue:'',
  129. },
  130. {
  131. title: '质量等级',
  132. key: 'qualityGrade',
  133. type: JVxeTypes.input,
  134. width:"200px",
  135. placeholder: '请输入${title}',
  136. defaultValue:'',
  137. },
  138. {
  139. title: '出库数量(stock out quantity)',
  140. key: 'stockOutQuantity',
  141. type: JVxeTypes.inputNumber,
  142. width:"200px",
  143. placeholder: '请输入${title}',
  144. defaultValue:'',
  145. },
  146. {
  147. title: '库存选择(Inventory selection)记录库存单号',
  148. key: 'inventorySelection',
  149. type: JVxeTypes.input,
  150. width:"200px",
  151. placeholder: '请输入${title}',
  152. defaultValue:'',
  153. },
  154. {
  155. title: '备注(notes)',
  156. key: 'notes',
  157. type: JVxeTypes.input,
  158. width:"200px",
  159. placeholder: '请输入${title}',
  160. defaultValue:'',
  161. },
  162. {
  163. title: '来源',
  164. key: 'sourceId',
  165. type: JVxeTypes.input,
  166. width:"200px",
  167. placeholder: '请输入${title}',
  168. defaultValue:'',
  169. },
  170. {
  171. title: '来源批次id',
  172. key: 'batchId',
  173. type: JVxeTypes.input,
  174. width:"200px",
  175. placeholder: '请输入${title}',
  176. defaultValue:'',
  177. },
  178. ]
  179. // 高级查询数据
  180. export const superQuerySchema = {
  181. submit: {title: '提交(submit)1是0否',order: 0,view: 'list', type: 'string',dictCode: 'yes_or_no',},
  182. billDate: {title: '单据日期',order: 1,view: 'date', type: 'string',},
  183. billCode: {title: '单据编码',order: 2,view: 'text', type: 'string',},
  184. project: {title: '项目(project)',order: 3,view: 'text', type: 'string',},
  185. projectName: {title: '项目名称',order: 4,view: 'text', type: 'string',},
  186. customer: {title: '客户(customer)',order: 5,view: 'text', type: 'string',},
  187. customerName: {title: '客户名称',order: 6,view: 'text', type: 'string',},
  188. warehouse: {title: '仓库(warehouse)',order: 7,view: 'text', type: 'string',},
  189. goodsAllocation: {title: '货位(goods allocation)',order: 8,view: 'text', type: 'string',},
  190. notes: {title: '备注(notes)',order: 9,view: 'textarea', type: 'string',},
  191. //子表高级查询
  192. storeConsignmentOutDetails: {
  193. title: '寄存代发出库-子表明细',
  194. view: 'table',
  195. fields: {
  196. productId: {title: '产品id',order: 0,view: 'text', type: 'string',},
  197. productClass: {title: '产品分类',order: 1,view: 'text', type: 'string',},
  198. productCode: {title: '产品编码',order: 2,view: 'text', type: 'string',},
  199. chineseName: {title: '产品中文名',order: 3,view: 'text', type: 'string',},
  200. englishName: {title: '产品英文名',order: 4,view: 'text', type: 'string',},
  201. model: {title: '型号',order: 5,view: 'text', type: 'string',},
  202. partno: {title: '备件号',order: 6,view: 'text', type: 'string',},
  203. drawingno: {title: '图号',order: 7,view: 'text', type: 'string',},
  204. qualityGrade: {title: '质量等级',order: 8,view: 'text', type: 'string',},
  205. stockOutQuantity: {title: '出库数量(stock out quantity)',order: 9,view: 'number', type: 'number',},
  206. inventorySelection: {title: '库存选择(Inventory selection)记录库存单号',order: 10,view: 'text', type: 'string',},
  207. notes: {title: '备注(notes)',order: 11,view: 'text', type: 'string',},
  208. sourceId: {title: '来源',order: 12,view: 'text', type: 'string',},
  209. batchId: {title: '来源批次id',order: 13,view: 'text', type: 'string',},
  210. }
  211. },
  212. };