SelectionQuotationForm.data.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  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: '询问价项目(inquiry project)',
  25. align:"center",
  26. dataIndex: 'projectName'
  27. },
  28. {
  29. title: '优先级(priority)',
  30. align:"center",
  31. dataIndex: 'priority_dictText'
  32. },
  33. {
  34. title: '产品分类(production class)',
  35. align:"center",
  36. dataIndex: 'productionClass_dictText'
  37. },
  38. {
  39. title: '机型(model)',
  40. align:"center",
  41. dataIndex: 'model'
  42. },
  43. {
  44. title: '厂家(maker)',
  45. align:"center",
  46. dataIndex: 'maker'
  47. },
  48. {
  49. title: '提交(submit)',
  50. align:"center",
  51. dataIndex: 'submit_dictText',
  52. customRender:({text,record}) =>{
  53. if(record.submit=='0'){
  54. text = '未提交'
  55. }else if(record.submit=='1'){
  56. text = '已提交'
  57. }
  58. return text;
  59. },
  60. },
  61. ];
  62. //子表表格配置
  63. export const SelectQuotationFormShipTableCloumn: JVxeColumn[] = [
  64. {
  65. title: '船名(ship name)',
  66. key: 'shipName',
  67. type: JVxeTypes.normal,
  68. placeholder: '请输入${title}',
  69. defaultValue:'',
  70. },
  71. {
  72. title: '主机号(host number)',
  73. key: 'hostNumber',
  74. type: JVxeTypes.normal,
  75. placeholder: '请输入${title}',
  76. defaultValue:'',
  77. },
  78. {
  79. title: '工程编号(project No)',
  80. key: 'projectNo',
  81. type: JVxeTypes.normal,
  82. placeholder: '请输入${title}',
  83. defaultValue:'',
  84. },
  85. {
  86. title: '船厂(ship factory)',
  87. key: 'shipFactory',
  88. type: JVxeTypes.normal,
  89. placeholder: '请输入${title}',
  90. defaultValue:'',
  91. },
  92. {
  93. title: '船东(shipowner)',
  94. key: 'shipowner',
  95. type: JVxeTypes.normal,
  96. placeholder: '请输入${title}',
  97. defaultValue:'',
  98. },
  99. {
  100. title: '操作(operation)',
  101. key: 'action',
  102. width:"400px",
  103. // 固定在右侧
  104. fixed: 'right',
  105. // 对齐方式为居中
  106. align: 'center',
  107. // 组件类型定义为【插槽】
  108. type: JVxeTypes.slot,
  109. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  110. slotName: 'action',
  111. },
  112. ]
  113. export const SelectQuotationFormProductColumns: JVxeColumn[] = [
  114. {
  115. title: '产品分类(product class)',
  116. key: 'productClass',
  117. type: JVxeTypes.normal,
  118. placeholder: '请输入${title}',
  119. width:"200px",
  120. defaultValue:'',
  121. },
  122. {
  123. title: '产品编码(product code)',
  124. key: 'productCode',
  125. type: JVxeTypes.normal,
  126. placeholder: '请输入${title}',
  127. width:"200px",
  128. defaultValue:'',
  129. },
  130. {
  131. title: '产品中文名(chinese name)',
  132. key: 'chineseName',
  133. type: JVxeTypes.normal,
  134. placeholder: '请输入${title}',
  135. width:"200px",
  136. defaultValue:'',
  137. },
  138. {
  139. title: '产品英文名(english name)',
  140. key: 'englishName',
  141. type: JVxeTypes.normal,
  142. placeholder: '请输入${title}',
  143. width:"200px",
  144. defaultValue:'',
  145. },
  146. {
  147. title: '型号(model)',
  148. key: 'model',
  149. type: JVxeTypes.normal,
  150. placeholder: '请输入${title}',
  151. width:"200px",
  152. defaultValue:'',
  153. },
  154. {
  155. title: '备件号(partno)',
  156. key: 'partno',
  157. type: JVxeTypes.normal,
  158. placeholder: '请输入${title}',
  159. width:"200px",
  160. defaultValue:'',
  161. },
  162. {
  163. title: '订货号(orderno)',
  164. key: 'orderno',
  165. type: JVxeTypes.normal,
  166. placeholder: '请输入${title}',
  167. width:"200px",
  168. defaultValue:'',
  169. },
  170. {
  171. title: '图号(drawingno)',
  172. key: 'drawingno',
  173. type: JVxeTypes.normal,
  174. placeholder: '请输入${title}',
  175. width:"200px",
  176. defaultValue:'',
  177. },
  178. {
  179. title: '厂家(factory)',
  180. key: 'factory',
  181. placeholder: '请输入${title}',
  182. width:"200px",
  183. defaultValue:'',
  184. type: JVxeTypes.normal,
  185. },
  186. {
  187. title: '质量等级(quality grade)',
  188. key: 'qualityGrade',
  189. type: JVxeTypes.normal,
  190. placeholder: '请输入${title}',
  191. width:"200px",
  192. defaultValue:'',
  193. },
  194. {
  195. title: '数量(quantity)',
  196. key: 'quantity',
  197. type: JVxeTypes.normal,
  198. placeholder: '请输入${title}',
  199. width:"200px",
  200. defaultValue:'',
  201. },
  202. {
  203. title: '选定供应商(selection supplier)',
  204. key: 'selectionSupplier',
  205. type: JVxeTypes.slot,
  206. slotName: 'selectionSupplier',
  207. placeholder: '请输入${title}',
  208. defaultValue:'',
  209. width:"200px",
  210. },
  211. {
  212. title: '付款条件(payment terms)',
  213. key: 'paymentTerms',
  214. type: JVxeTypes.normal,
  215. placeholder: '请输入${title}',
  216. width:"200px",
  217. defaultValue:'',
  218. },
  219. {
  220. title: '发货方式(delivery)',
  221. key: 'delivery',
  222. type: JVxeTypes.normal,
  223. placeholder: '请输入${title}',
  224. width:"200px",
  225. defaultValue:'',
  226. },
  227. {
  228. title: '交期(delivery time)',
  229. key: 'deliveryTime',
  230. type: JVxeTypes.normal,
  231. placeholder: '请输入${title}',
  232. width:"200px",
  233. defaultValue:'',
  234. },
  235. {
  236. title: '报价有效期(quotation validity)',
  237. key: 'quotationValidity',
  238. type: JVxeTypes.normal,
  239. placeholder: '请输入${title}',
  240. width:"200px",
  241. defaultValue:'',
  242. },
  243. {
  244. title: '上次报价(last price)',
  245. key: 'lastPice',
  246. type: JVxeTypes.normal,
  247. placeholder: '请输入${title}',
  248. defaultValue:'',
  249. width:"200px",
  250. },
  251. {
  252. title: '单价(price)',
  253. key: 'taxPrice',
  254. type: JVxeTypes.normal,
  255. placeholder: '请输入${title}',
  256. defaultValue:'',
  257. width:"200px",
  258. },
  259. {
  260. title: '金额(amount)',
  261. key: 'taxAmount',
  262. type: JVxeTypes.normal,
  263. placeholder: '请输入${title}',
  264. defaultValue:'',
  265. width:"200px",
  266. },
  267. {
  268. title: '备注(note)',
  269. key: 'notes',
  270. width:"200px",
  271. type: JVxeTypes.normal,
  272. placeholder: '请输入${title}',
  273. defaultValue:'',
  274. },
  275. {
  276. title: '操作(operation)',
  277. key: 'action',
  278. width:"200px",
  279. // 固定在右侧
  280. fixed: 'right',
  281. // 对齐方式为居中
  282. align: 'center',
  283. // 组件类型定义为【插槽】
  284. type: JVxeTypes.slot,
  285. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  286. slotName: 'action',
  287. },
  288. ]
  289. export const SupplierQuotationColumns: JVxeColumn[] = [
  290. {
  291. title: '产品分类(product class)',
  292. key: 'productClass',
  293. type: JVxeTypes.normal,
  294. placeholder: '请输入${title}',
  295. width:"200px",
  296. defaultValue:'',
  297. },
  298. {
  299. title: '产品编码(product code)',
  300. key: 'productCode',
  301. type: JVxeTypes.normal,
  302. placeholder: '请输入${title}',
  303. width:"200px",
  304. defaultValue:'',
  305. },
  306. {
  307. title: '产品中文名(chinese name)',
  308. key: 'chineseName',
  309. type: JVxeTypes.normal,
  310. placeholder: '请输入${title}',
  311. width:"200px",
  312. defaultValue:'',
  313. },
  314. {
  315. title: '产品英文名(english name)',
  316. key: 'englishName',
  317. type: JVxeTypes.normal,
  318. placeholder: '请输入${title}',
  319. width:"200px",
  320. defaultValue:'',
  321. },
  322. {
  323. title: '型号(model)',
  324. key: 'model',
  325. type: JVxeTypes.normal,
  326. placeholder: '请输入${title}',
  327. width:"200px",
  328. defaultValue:'',
  329. },
  330. {
  331. title: '备件号(partno)',
  332. key: 'partno',
  333. type: JVxeTypes.normal,
  334. placeholder: '请输入${title}',
  335. width:"200px",
  336. defaultValue:'',
  337. },
  338. {
  339. title: '订货号(orderno)',
  340. key: 'orderno',
  341. type: JVxeTypes.normal,
  342. placeholder: '请输入${title}',
  343. width:"200px",
  344. defaultValue:'',
  345. },
  346. {
  347. title: '图号(drawingno)',
  348. key: 'drawingno',
  349. type: JVxeTypes.normal,
  350. placeholder: '请输入${title}',
  351. width:"200px",
  352. defaultValue:'',
  353. },
  354. {
  355. title: '厂家(factory)',
  356. key: 'factory',
  357. placeholder: '请输入${title}',
  358. width:"200px",
  359. defaultValue:'',
  360. type: JVxeTypes.normal,
  361. },
  362. {
  363. title: '质量等级(quality grade)',
  364. key: 'qualityGrade',
  365. type: JVxeTypes.normal,
  366. placeholder: '请输入${title}',
  367. width:"200px",
  368. defaultValue:'',
  369. },
  370. {
  371. title: '报价供应商(quotation supplier)',
  372. key: 'suppilerName',
  373. width:"200px",
  374. placeholder: '请输入${title}',
  375. defaultValue:'',
  376. type: JVxeTypes.normal,
  377. },
  378. {
  379. title: '付款条件(payment trems)',
  380. key: 'paymentTerms',
  381. type: JVxeTypes.normal,
  382. width:"200px",
  383. placeholder: '请输入${title}',
  384. defaultValue:'',
  385. },
  386. {
  387. title: '发货方式(delivery)',
  388. key: 'delivery',
  389. type: JVxeTypes.normal,
  390. placeholder: '请输入${title}',
  391. width:"200px",
  392. },
  393. {
  394. title: '交期(deliery time)',
  395. key: 'childDeliveryTime',
  396. type: JVxeTypes.normal,
  397. placeholder: '请输入${title}',
  398. defaultValue:'',
  399. width:"200px",
  400. },
  401. {
  402. title: '单价(price)',
  403. key: 'taxPrice',
  404. type: JVxeTypes.normal,
  405. placeholder: '请输入${title}',
  406. defaultValue:'',
  407. width:"200px",
  408. },
  409. {
  410. title: '币种(currency)',
  411. key: 'currency',
  412. type: JVxeTypes.normal,
  413. placeholder: '请输入${title}',
  414. defaultValue:'',
  415. width:"200px",
  416. },
  417. {
  418. title: '上次报价(last price)',
  419. key: 'lastPice',
  420. type: JVxeTypes.normal,
  421. placeholder: '请输入${title}',
  422. defaultValue:'',
  423. width:"200px",
  424. },
  425. {
  426. title: '金额(amount)',
  427. key: 'taxAmount',
  428. type: JVxeTypes.normal,
  429. placeholder: '请输入${title}',
  430. defaultValue:'',
  431. width:"200px",
  432. },
  433. {
  434. title: '备注(note)',
  435. key: 'notes',
  436. width:"200px",
  437. type: JVxeTypes.normal,
  438. placeholder: '请输入${title}',
  439. defaultValue:'',
  440. },
  441. ]
  442. export const SupplierSummaryAmountColumns: JVxeColumn[] = [
  443. {
  444. title: '报价单号(bill code)',
  445. key: 'billCode',
  446. type: JVxeTypes.normal,
  447. placeholder: '请输入${title}',
  448. defaultValue:'',
  449. },
  450. {
  451. title: '单据日期(bill date)',
  452. key: 'billDate',
  453. type: JVxeTypes.normal,
  454. placeholder: '请输入${title}',
  455. defaultValue:'',
  456. },
  457. {
  458. title: '报价项目(quotation project)',
  459. key: 'projectName',
  460. type: JVxeTypes.normal,
  461. placeholder: '请输入${title}',
  462. defaultValue:'',
  463. },
  464. {
  465. title: '报价供应商(quotation supplier)',
  466. key: 'suppilerName',
  467. type: JVxeTypes.normal,
  468. placeholder: '请输入${title}',
  469. defaultValue:'',
  470. },
  471. {
  472. title: '报价截止日期(quotation deadline)',
  473. key: 'quotationDeadline',
  474. type: JVxeTypes.normal,
  475. placeholder: '请输入${title}',
  476. defaultValue:'',
  477. },
  478. {
  479. title: '币种(currency)',
  480. key: 'currency',
  481. type: JVxeTypes.normal,
  482. placeholder: '请输入${title}',
  483. defaultValue:'',
  484. },
  485. {
  486. title: '合计金额(total amount)',
  487. key: 'taxAmount',
  488. type: JVxeTypes.normal,
  489. placeholder: '请输入${title}',
  490. defaultValue:'',
  491. },
  492. ]