ArriveGoodsForm.data.ts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. title: '供应商id(supplier)',
  75. align:"center",
  76. dataIndex: 'supplier',
  77. ifShow:false
  78. },
  79. ];
  80. //子表表格配置
  81. export const ArriveGoodsFormShipColumns: JVxeColumn[] = [
  82. {
  83. title: '船名(ship name)',
  84. key: 'shipName',
  85. type: JVxeTypes.normal,
  86. placeholder: '请输入${title}',
  87. defaultValue:'',
  88. },
  89. {
  90. title: '主机号(host number)',
  91. key: 'hostNumber',
  92. type: JVxeTypes.input,
  93. placeholder: '请输入${title}',
  94. defaultValue:'',
  95. },
  96. {
  97. title: '工程编号(project No)',
  98. key: 'projectNo',
  99. type: JVxeTypes.input,
  100. placeholder: '请输入${title}',
  101. defaultValue:'',
  102. },
  103. {
  104. title: '船厂(ship factory)',
  105. key: 'shipFactory',
  106. type: JVxeTypes.normal,
  107. placeholder: '请输入${title}',
  108. defaultValue:'',
  109. },
  110. {
  111. title: '船东(shipowner)',
  112. key: 'shipowner',
  113. type: JVxeTypes.normal,
  114. placeholder: '请输入${title}',
  115. defaultValue:'',
  116. },
  117. {
  118. title: '操作(operation)',
  119. key: 'action',
  120. width:"400px",
  121. // 固定在右侧
  122. fixed: 'right',
  123. // 对齐方式为居中
  124. align: 'center',
  125. // 组件类型定义为【插槽】
  126. type: JVxeTypes.slot,
  127. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  128. slotName: 'action',
  129. },
  130. ]
  131. export const ArriveGoodsDetailColumns: JVxeColumn[] = [
  132. {
  133. title: '预发货日期(preshipment data)',
  134. key: 'shipmentDate',
  135. type: JVxeTypes.normal,
  136. placeholder: '请输入${title}',
  137. width:"200px",
  138. defaultValue:'',
  139. },
  140. {
  141. title: '最早发货日期(earliest delivery date)',
  142. key: 'earliestDeliveryDate',
  143. type: JVxeTypes.normal,
  144. placeholder: '请输入${title}',
  145. width:"200px",
  146. defaultValue:'',
  147. },
  148. {
  149. title: '最晚发货日期(latest delivery date)',
  150. key: 'latestDeliveryDate',
  151. type: JVxeTypes.normal,
  152. placeholder: '请输入${title}',
  153. width:"200px",
  154. defaultValue:'',
  155. },
  156. {
  157. title: '产品中文名(chinese name)',
  158. key: 'chineseName',
  159. type: JVxeTypes.normal,
  160. placeholder: '请输入${title}',
  161. width:"200px",
  162. defaultValue:'',
  163. },
  164. {
  165. title: '产品英文名(english name)',
  166. key: 'englishName',
  167. type: JVxeTypes.normal,
  168. placeholder: '请输入${title}',
  169. width:"200px",
  170. defaultValue:'',
  171. },
  172. {
  173. title: '型号(model)',
  174. key: 'model',
  175. type: JVxeTypes.normal,
  176. placeholder: '请输入${title}',
  177. width:"200px",
  178. defaultValue:'',
  179. },
  180. {
  181. title: '备件号(partno)',
  182. key: 'partno',
  183. type: JVxeTypes.normal,
  184. placeholder: '请输入${title}',
  185. width:"200px",
  186. defaultValue:'',
  187. },
  188. {
  189. title: '订货号(orderno)',
  190. key: 'orderno',
  191. type: JVxeTypes.normal,
  192. placeholder: '请输入${title}',
  193. width:"200px",
  194. defaultValue:'',
  195. },
  196. {
  197. title: '图号(drawingno)',
  198. key: 'drawingno',
  199. type: JVxeTypes.normal,
  200. placeholder: '请输入${title}',
  201. width:"200px",
  202. defaultValue:'',
  203. },
  204. {
  205. title: '厂家(factory)',
  206. key: 'factory',
  207. placeholder: '请输入${title}',
  208. width:"200px",
  209. defaultValue:'',
  210. type: JVxeTypes.normal,
  211. options: [],
  212. dictCode: 'factory',
  213. },
  214. {
  215. title: '质量等级(quality grade)',
  216. key: 'qualityGrade',
  217. type: JVxeTypes.normal,
  218. options: [],
  219. dictCode: 'quality_grade',
  220. placeholder: '请输入${title}',
  221. width:"200px",
  222. defaultValue:'',
  223. },
  224. {
  225. title: '需要船检证书(need Ship inspection certificate)',
  226. key: 'needShip',
  227. width:"200px",
  228. placeholder: '请输入${title}',
  229. defaultValue:'',
  230. type: JVxeTypes.normal,
  231. options: [],
  232. dictCode: 'yes_or_no',
  233. },
  234. {
  235. title: '船检证书(ship Inspection certificate)',
  236. key: 'shipInspection',
  237. type: JVxeTypes.normal,
  238. width:"200px",
  239. placeholder: '请输入${title}',
  240. defaultValue:'',
  241. },
  242. {
  243. title: '订单数量(order quantity)',
  244. key: 'orderQuantity',
  245. type: JVxeTypes.normal,
  246. placeholder: '请输入${title}',
  247. width:"200px",
  248. defaultValue:'',
  249. },
  250. {
  251. title: '已到货数量(arrival quantity)',
  252. key: 'arrivalQuantity',
  253. type: JVxeTypes.normal,
  254. placeholder: '请输入${title}',
  255. defaultValue:'',
  256. width:"200px",
  257. },
  258. {
  259. title: '已到货金额(arrival money)',
  260. key: 'arrivalMoney',
  261. type: JVxeTypes.normal,
  262. placeholder: '请输入${title}',
  263. defaultValue:'',
  264. width:"200px",
  265. },
  266. {
  267. title: '数量(quantity)',
  268. key: 'quantity',
  269. type: JVxeTypes.input,
  270. placeholder: '请输入${title}',
  271. defaultValue:'',
  272. width:"200px",
  273. },
  274. {
  275. title: '备注(note)',
  276. key: 'notes',
  277. width:"200px",
  278. type: JVxeTypes.input,
  279. placeholder: '请输入${title}',
  280. defaultValue:'',
  281. },
  282. {
  283. title: '操作(operation)',
  284. key: 'action',
  285. width:"200px",
  286. // 固定在右侧
  287. fixed: 'right',
  288. // 对齐方式为居中
  289. align: 'center',
  290. // 组件类型定义为【插槽】
  291. type: JVxeTypes.slot,
  292. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  293. slotName: 'action',
  294. },
  295. ]