ArriveGoodsForm.data.ts 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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: '到货日期(arrival date)',
  16. align:"center",
  17. dataIndex: 'arrivalDate',
  18. customRender:({text}) =>{
  19. text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
  20. return text;
  21. },
  22. },
  23. {
  24. title: '项目(project)',
  25. align:"center",
  26. dataIndex: 'projectName'
  27. },
  28. {
  29. title: '供应商(supplier)',
  30. align:"center",
  31. dataIndex: 'supplierName'
  32. },
  33. {
  34. title: '优先级(priority)',
  35. align:"center",
  36. dataIndex: 'priority_dictText'
  37. },
  38. {
  39. title: '产品分类(production class)',
  40. align:"center",
  41. dataIndex: 'productionClass'
  42. },
  43. {
  44. title: '机型(model)',
  45. align:"center",
  46. dataIndex: 'model'
  47. },
  48. {
  49. title: '厂家(maker)',
  50. align:"center",
  51. dataIndex: 'maker'
  52. },
  53. {
  54. title: '采购部门(purchase department)',
  55. align:"center",
  56. dataIndex: 'purchaseDepartment'
  57. },
  58. {
  59. title: '采购员(purchaseman)',
  60. align:"center",
  61. dataIndex: 'purchaseman'
  62. },
  63. {
  64. title: '提交(submit)',
  65. align:"center",
  66. dataIndex: 'submit_dictText',
  67. },
  68. {
  69. title: '关闭(close)',
  70. align:"center",
  71. dataIndex: 'close_dictText',
  72. },
  73. ];
  74. //子表表格配置
  75. export const ArriveGoodsFormShipColumns: JVxeColumn[] = [
  76. {
  77. title: '船名(ship name)',
  78. key: 'shipName',
  79. type: JVxeTypes.normal,
  80. placeholder: '请输入${title}',
  81. defaultValue:'',
  82. },
  83. {
  84. title: '主机号(host number)',
  85. key: 'hostNumber',
  86. type: JVxeTypes.input,
  87. placeholder: '请输入${title}',
  88. defaultValue:'',
  89. },
  90. {
  91. title: '工程编号(project No)',
  92. key: 'projectNo',
  93. type: JVxeTypes.input,
  94. placeholder: '请输入${title}',
  95. defaultValue:'',
  96. },
  97. {
  98. title: '船厂(ship factory)',
  99. key: 'shipFactory',
  100. type: JVxeTypes.normal,
  101. placeholder: '请输入${title}',
  102. defaultValue:'',
  103. },
  104. {
  105. title: '船东(shipowner)',
  106. key: 'shipowner',
  107. type: JVxeTypes.normal,
  108. placeholder: '请输入${title}',
  109. defaultValue:'',
  110. },
  111. {
  112. title: '操作(operation)',
  113. key: 'action',
  114. width:"400px",
  115. // 固定在右侧
  116. fixed: 'right',
  117. // 对齐方式为居中
  118. align: 'center',
  119. // 组件类型定义为【插槽】
  120. type: JVxeTypes.slot,
  121. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  122. slotName: 'action',
  123. },
  124. ]
  125. export const ArriveGoodsDetailColumns: JVxeColumn[] = [
  126. {
  127. title: '预发货日期(preshipment data)',
  128. key: 'shipmentDate',
  129. type: JVxeTypes.normal,
  130. placeholder: '请输入${title}',
  131. width:"200px",
  132. defaultValue:'',
  133. },
  134. {
  135. title: '最早发货日期(earliest delivery date)',
  136. key: 'earliestDeliveryDate',
  137. type: JVxeTypes.normal,
  138. placeholder: '请输入${title}',
  139. width:"200px",
  140. defaultValue:'',
  141. },
  142. {
  143. title: '最晚发货日期(latest delivery date)',
  144. key: 'latestDeliveryDate',
  145. type: JVxeTypes.normal,
  146. placeholder: '请输入${title}',
  147. width:"200px",
  148. defaultValue:'',
  149. },
  150. {
  151. title: '产品中文名(chinese name)',
  152. key: 'chineseName',
  153. type: JVxeTypes.input,
  154. placeholder: '请输入${title}',
  155. width:"200px",
  156. defaultValue:'',
  157. },
  158. {
  159. title: '产品英文名(english name)',
  160. key: 'englishName',
  161. type: JVxeTypes.input,
  162. placeholder: '请输入${title}',
  163. width:"200px",
  164. defaultValue:'',
  165. },
  166. {
  167. title: '型号(model)',
  168. key: 'model',
  169. type: JVxeTypes.normal,
  170. placeholder: '请输入${title}',
  171. width:"200px",
  172. defaultValue:'',
  173. },
  174. {
  175. title: '备件号(partno)',
  176. key: 'partno',
  177. type: JVxeTypes.normal,
  178. placeholder: '请输入${title}',
  179. width:"200px",
  180. defaultValue:'',
  181. },
  182. {
  183. title: '订货号(orderno)',
  184. key: 'orderno',
  185. type: JVxeTypes.normal,
  186. placeholder: '请输入${title}',
  187. width:"200px",
  188. defaultValue:'',
  189. },
  190. {
  191. title: '图号(drawingno)',
  192. key: 'drawingno',
  193. type: JVxeTypes.normal,
  194. placeholder: '请输入${title}',
  195. width:"200px",
  196. defaultValue:'',
  197. },
  198. {
  199. title: '厂家(factory)',
  200. key: 'factory',
  201. placeholder: '请输入${title}',
  202. width:"200px",
  203. defaultValue:'',
  204. type: JVxeTypes.normal,
  205. options: [],
  206. dictCode: 'factory',
  207. },
  208. {
  209. title: '质量等级(quality grade)',
  210. key: 'qualityGrade',
  211. type: JVxeTypes.normal,
  212. options: [],
  213. dictCode: 'quality_grade',
  214. placeholder: '请输入${title}',
  215. width:"200px",
  216. defaultValue:'',
  217. },
  218. {
  219. title: '需要船检证书(need Ship inspection certificate)',
  220. key: 'needShip',
  221. width:"200px",
  222. placeholder: '请输入${title}',
  223. defaultValue:'',
  224. type: JVxeTypes.normal,
  225. options: [],
  226. dictCode: 'yes_or_no',
  227. },
  228. {
  229. title: '船检证书(ship Inspection certificate)',
  230. key: 'shipInspection',
  231. type: JVxeTypes.normal,
  232. width:"200px",
  233. placeholder: '请输入${title}',
  234. defaultValue:'',
  235. },
  236. {
  237. title: '订单数量(order quantity)',
  238. key: 'orderQuantity',
  239. type: JVxeTypes.normal,
  240. placeholder: '请输入${title}',
  241. width:"200px",
  242. defaultValue:'',
  243. },
  244. {
  245. title: '已到货数量(arrival quantity)',
  246. key: 'arrivalQuantity',
  247. type: JVxeTypes.normal,
  248. placeholder: '请输入${title}',
  249. defaultValue:'',
  250. width:"200px",
  251. },
  252. {
  253. title: '已到货金额(arrival money)',
  254. key: 'arrivalMoney',
  255. type: JVxeTypes.normal,
  256. placeholder: '请输入${title}',
  257. defaultValue:'',
  258. width:"200px",
  259. },
  260. {
  261. title: '数量(quantity)',
  262. key: 'quantity',
  263. type: JVxeTypes.input,
  264. placeholder: '请输入${title}',
  265. defaultValue:'',
  266. width:"200px",
  267. },
  268. {
  269. title: '备注(note)',
  270. key: 'notes',
  271. width:"200px",
  272. type: JVxeTypes.input,
  273. placeholder: '请输入${title}',
  274. defaultValue:'',
  275. },
  276. {
  277. title: '操作(operation)',
  278. key: 'action',
  279. width:"200px",
  280. // 固定在右侧
  281. fixed: 'right',
  282. // 对齐方式为居中
  283. align: 'center',
  284. // 组件类型定义为【插槽】
  285. type: JVxeTypes.slot,
  286. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  287. slotName: 'action',
  288. },
  289. ]