ArriveGoodsForm.data.ts 7.4 KB

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