SelectionQuotationForm.data.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  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. customRender:({text,record}) =>{
  28. if(record.inquiryProject_dictText==1){
  29. return text;
  30. }else if(record.inquiryProject_dictText==0){
  31. return text+'(停用)'
  32. }
  33. }
  34. },
  35. {
  36. title: '优先级(priority)',
  37. align:"center",
  38. dataIndex: 'priority_dictText'
  39. },
  40. {
  41. title: '产品分类(production class)',
  42. align:"center",
  43. dataIndex: 'productionClass_dictText'
  44. },
  45. {
  46. title: '机型(model)',
  47. align:"center",
  48. dataIndex: 'model'
  49. },
  50. {
  51. title: '厂家(maker)',
  52. align:"center",
  53. dataIndex: 'maker'
  54. },
  55. {
  56. title: '提交(submit)',
  57. align:"center",
  58. dataIndex: 'submit_dictText',
  59. customRender:({text,record}) =>{
  60. if(record.submit=='0'){
  61. text = '未提交'
  62. }else if(record.submit=='1'){
  63. text = '已提交'
  64. }else if(record.submit=='2'){
  65. text = '待审批'
  66. }
  67. return text;
  68. },
  69. },
  70. {
  71. title: '总金额(美元)',
  72. align:"center",
  73. dataIndex: 'totalAmountUsd'
  74. },
  75. {
  76. title: '审批人',
  77. align:"center",
  78. dataIndex: 'approvalBy',
  79. },
  80. {
  81. title: '技术资料',
  82. align:"center",
  83. dataIndex: 'baseProtocaol',
  84. // width:150,
  85. slots: { customRender: 'viewFile' },
  86. },
  87. {
  88. title: '制单人',
  89. align:"center",
  90. dataIndex: 'createBy',
  91. },
  92. ];
  93. //子表表格配置
  94. export const SelectQuotationFormShipTableCloumn: JVxeColumn[] = [
  95. {
  96. title: '船名(ship name)',
  97. key: 'shipName',
  98. type: JVxeTypes.normal,
  99. placeholder: '请输入${title}',
  100. defaultValue:'',
  101. },
  102. {
  103. title: '主机号(host number)',
  104. key: 'hostNumber',
  105. type: JVxeTypes.normal,
  106. placeholder: '请输入${title}',
  107. defaultValue:'',
  108. },
  109. {
  110. title: '工程编号(project No)',
  111. key: 'projectNo',
  112. type: JVxeTypes.normal,
  113. placeholder: '请输入${title}',
  114. defaultValue:'',
  115. },
  116. {
  117. title: '船厂(ship factory)',
  118. key: 'shipFactory',
  119. type: JVxeTypes.normal,
  120. placeholder: '请输入${title}',
  121. defaultValue:'',
  122. },
  123. {
  124. title: '船东(shipowner)',
  125. key: 'shipowner',
  126. type: JVxeTypes.normal,
  127. placeholder: '请输入${title}',
  128. defaultValue:'',
  129. },
  130. {
  131. title: '操作(operation)',
  132. key: 'action',
  133. width:"400px",
  134. // 固定在右侧
  135. fixed: 'right',
  136. // 对齐方式为居中
  137. align: 'center',
  138. // 组件类型定义为【插槽】
  139. type: JVxeTypes.slot,
  140. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  141. slotName: 'action',
  142. },
  143. ]
  144. export const SelectQuotationFormProductColumns: JVxeColumn[] = [
  145. // {
  146. // title: '产品分类(product class)',
  147. // key: 'productClass',
  148. // type: JVxeTypes.normal,
  149. // placeholder: '请输入${title}',
  150. // width:"200px",
  151. // defaultValue:'',
  152. // },
  153. {
  154. title: '产品编码(product code)',
  155. key: 'productCode',
  156. type: JVxeTypes.normal,
  157. placeholder: '请输入${title}',
  158. width:"200px",
  159. defaultValue:'',
  160. fixed: 'left',
  161. },
  162. {
  163. title: '选定供应商(selection supplier)',
  164. key: 'selectionSupplier',
  165. type: JVxeTypes.slot,
  166. slotName: 'selectionSupplier',
  167. placeholder: '请输入${title}',
  168. defaultValue:'',
  169. width:"200px",
  170. fixed: 'left',
  171. },
  172. {
  173. title: '备件号(partno)',
  174. key: 'partno',
  175. type: JVxeTypes.normal,
  176. placeholder: '请输入${title}',
  177. width:"200px",
  178. defaultValue:'',
  179. },
  180. {
  181. title: '产品英文名(english name)',
  182. key: 'englishName',
  183. type: JVxeTypes.normal,
  184. placeholder: '请输入${title}',
  185. width:"200px",
  186. defaultValue:'',
  187. },
  188. {
  189. title: '质量等级(quality grade)',
  190. key: 'qualityGrade',
  191. type: JVxeTypes.normal,
  192. placeholder: '请输入${title}',
  193. width:"200px",
  194. defaultValue:'',
  195. },
  196. {
  197. title: '币种(currency)',
  198. key: 'currency',
  199. type: JVxeTypes.normal,
  200. placeholder: '请输入${title}',
  201. defaultValue:'',
  202. width:"200px",
  203. },
  204. {
  205. title: '折后单价(price)',
  206. key: 'taxPrice',
  207. type: JVxeTypes.normal,
  208. placeholder: '请输入${title}',
  209. defaultValue:'',
  210. width:"200px",
  211. },
  212. {
  213. title: '上次报价(last price)',
  214. key: 'lastPice',
  215. type: JVxeTypes.normal,
  216. placeholder: '请输入${title}',
  217. defaultValue:'',
  218. width:"200px",
  219. },
  220. {
  221. title: '折扣(discount)',
  222. key: 'discount',
  223. type: JVxeTypes.normal,
  224. placeholder: '请输入${title}',
  225. defaultValue:'',
  226. width:"200px",
  227. },
  228. // {
  229. // title: '折后金额(amount)',
  230. // key: 'taxAmount',
  231. // type: JVxeTypes.normal,
  232. // placeholder: '请输入${title}',
  233. // defaultValue:'',
  234. // width:"200px",
  235. // },
  236. {
  237. title: '折后美元单价(tax price)',
  238. key: 'taxPriceUsd',
  239. type: JVxeTypes.normal,
  240. placeholder: '请输入${title}',
  241. defaultValue:'',
  242. width:"200px",
  243. },
  244. {
  245. title: '折后美元金额(tax amount)',
  246. key: 'taxAmountUsd',
  247. type: JVxeTypes.normal,
  248. placeholder: '请输入${title}',
  249. defaultValue:'',
  250. width:"200px",
  251. statistics:['sum'],
  252. },
  253. {
  254. title: '美元汇率(exchangeRate)',
  255. key: 'exchangeRateUsd',
  256. type: JVxeTypes.normal,
  257. placeholder: '请输入${title}',
  258. defaultValue:'',
  259. width:"200px",
  260. },
  261. {
  262. title: '产品中文名(chinese name)',
  263. key: 'chineseName',
  264. type: JVxeTypes.normal,
  265. placeholder: '请输入${title}',
  266. width:"200px",
  267. defaultValue:'',
  268. },
  269. {
  270. title: '型号(model)',
  271. key: 'model',
  272. type: JVxeTypes.normal,
  273. placeholder: '请输入${title}',
  274. width:"200px",
  275. defaultValue:'',
  276. },
  277. {
  278. title: '订货号(orderno)',
  279. key: 'orderno',
  280. type: JVxeTypes.normal,
  281. placeholder: '请输入${title}',
  282. width:"200px",
  283. defaultValue:'',
  284. },
  285. {
  286. title: '图号(drawingno)',
  287. key: 'drawingno',
  288. type: JVxeTypes.normal,
  289. placeholder: '请输入${title}',
  290. width:"200px",
  291. defaultValue:'',
  292. },
  293. // {
  294. // title: '厂家(factory)',
  295. // key: 'factory',
  296. // placeholder: '请输入${title}',
  297. // width:"200px",
  298. // defaultValue:'',
  299. // type: JVxeTypes.normal,
  300. // },
  301. {
  302. title: '数量(quantity)',
  303. key: 'quantity',
  304. type: JVxeTypes.normal,
  305. placeholder: '请输入${title}',
  306. width:"200px",
  307. defaultValue:'',
  308. },
  309. {
  310. title: '付款条件(payment terms)',
  311. key: 'paymentTerm',
  312. type: JVxeTypes.normal,
  313. placeholder: '请输入${title}',
  314. width:"200px",
  315. defaultValue:'',
  316. },
  317. {
  318. title: '发货方式(delivery)',
  319. key: 'delivery',
  320. type: JVxeTypes.normal,
  321. placeholder: '请输入${title}',
  322. width:"200px",
  323. defaultValue:'',
  324. },
  325. {
  326. title: '交期(delivery time)',
  327. key: 'deliveryDayChild',
  328. type: JVxeTypes.normal,
  329. placeholder: '请输入${title}',
  330. width:"200px",
  331. defaultValue:'',
  332. },
  333. {
  334. title: '报价有效期(quotation validity)',
  335. key: 'quotationValidity',
  336. type: JVxeTypes.normal,
  337. placeholder: '请输入${title}',
  338. width:"200px",
  339. defaultValue:'',
  340. },
  341. {
  342. title: '备注(note)',
  343. key: 'notes',
  344. width:"200px",
  345. type: JVxeTypes.normal,
  346. placeholder: '请输入${title}',
  347. defaultValue:'',
  348. },
  349. {
  350. title: '操作(operation)',
  351. key: 'action',
  352. width:"200px",
  353. // 固定在右侧
  354. fixed: 'right',
  355. // 对齐方式为居中
  356. align: 'center',
  357. // 组件类型定义为【插槽】
  358. type: JVxeTypes.slot,
  359. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  360. slotName: 'action',
  361. },
  362. ]
  363. export const SupplierQuotationColumns: JVxeColumn[] = [
  364. {
  365. title: '产品编码(product code)',
  366. key: 'productCode',
  367. type: JVxeTypes.normal,
  368. placeholder: '请输入${title}',
  369. width:"200px",
  370. defaultValue:'',
  371. fixed: 'left',
  372. },
  373. {
  374. title: '报价供应商(quotation supplier)',
  375. key: 'suppilerName',
  376. width:"200px",
  377. placeholder: '请输入${title}',
  378. defaultValue:'',
  379. type: JVxeTypes.normal,
  380. fixed: 'left',
  381. },
  382. {
  383. title: '备件号(partno)',
  384. key: 'partno',
  385. type: JVxeTypes.normal,
  386. placeholder: '请输入${title}',
  387. width:"200px",
  388. defaultValue:'',
  389. },
  390. {
  391. title: '产品英文名(english name)',
  392. key: 'englishName',
  393. type: JVxeTypes.normal,
  394. placeholder: '请输入${title}',
  395. width:"200px",
  396. defaultValue:'',
  397. },
  398. {
  399. title: '质量等级(quality grade)',
  400. key: 'qualityGrade',
  401. type: JVxeTypes.normal,
  402. placeholder: '请输入${title}',
  403. width:"200px",
  404. defaultValue:'',
  405. },
  406. {
  407. title: '币种(currency)',
  408. key: 'currency',
  409. type: JVxeTypes.normal,
  410. placeholder: '请输入${title}',
  411. defaultValue:'',
  412. width:"200px",
  413. },
  414. {
  415. title: '折后单价(price)',
  416. key: 'taxPrice',
  417. type: JVxeTypes.normal,
  418. placeholder: '请输入${title}',
  419. defaultValue:'',
  420. width:"200px",
  421. },
  422. {
  423. title: '上次报价(last price)',
  424. key: 'lastPice',
  425. type: JVxeTypes.normal,
  426. placeholder: '请输入${title}',
  427. defaultValue:'',
  428. width:"200px",
  429. },
  430. {
  431. title: '折扣(discount)',
  432. key: 'discount',
  433. type: JVxeTypes.normal,
  434. placeholder: '请输入${title}',
  435. defaultValue:'',
  436. width:"200px",
  437. },
  438. {
  439. title: '折后美元单价(tax price)',
  440. key: 'taxPriceUsd',
  441. type: JVxeTypes.normal,
  442. placeholder: '请输入${title}',
  443. defaultValue:'',
  444. width:"200px",
  445. },
  446. {
  447. title: '折后美元金额(tax amount)',
  448. key: 'taxAmountUsd',
  449. type: JVxeTypes.normal,
  450. placeholder: '请输入${title}',
  451. defaultValue:'',
  452. width:"200px",
  453. },
  454. {
  455. title: '美元汇率(exchangeRateUsd)',
  456. key: 'exchangeRateUsd',
  457. type: JVxeTypes.normal,
  458. placeholder: '请输入${title}',
  459. defaultValue:'',
  460. width:"200px",
  461. },
  462. // {
  463. // title: '产品分类(product class)',
  464. // key: 'productClass',
  465. // type: JVxeTypes.normal,
  466. // placeholder: '请输入${title}',
  467. // width:"200px",
  468. // defaultValue:'',
  469. // },
  470. {
  471. title: '产品中文名(chinese name)',
  472. key: 'chineseName',
  473. type: JVxeTypes.normal,
  474. placeholder: '请输入${title}',
  475. width:"200px",
  476. defaultValue:'',
  477. },
  478. {
  479. title: '型号(model)',
  480. key: 'model',
  481. type: JVxeTypes.normal,
  482. placeholder: '请输入${title}',
  483. width:"200px",
  484. defaultValue:'',
  485. },
  486. {
  487. title: '订货号(orderno)',
  488. key: 'orderno',
  489. type: JVxeTypes.normal,
  490. placeholder: '请输入${title}',
  491. width:"200px",
  492. defaultValue:'',
  493. },
  494. {
  495. title: '图号(drawingno)',
  496. key: 'drawingno',
  497. type: JVxeTypes.normal,
  498. placeholder: '请输入${title}',
  499. width:"200px",
  500. defaultValue:'',
  501. },
  502. {
  503. title: '厂家(factory)',
  504. key: 'factory',
  505. placeholder: '请输入${title}',
  506. width:"200px",
  507. defaultValue:'',
  508. type: JVxeTypes.normal,
  509. },
  510. {
  511. title: '付款条件(payment trems)',
  512. key: 'paymentTerms',
  513. type: JVxeTypes.normal,
  514. width:"200px",
  515. placeholder: '请输入${title}',
  516. defaultValue:'',
  517. },
  518. {
  519. title: '发货方式(delivery)',
  520. key: 'delivery',
  521. type: JVxeTypes.normal,
  522. placeholder: '请输入${title}',
  523. width:"200px",
  524. },
  525. {
  526. title: '交期(deliery time)',
  527. key: 'childDeliveryTime',
  528. type: JVxeTypes.normal,
  529. placeholder: '请输入${title}',
  530. defaultValue:'',
  531. width:"200px",
  532. },
  533. // {
  534. // title: '折后金额(amount)',
  535. // key: 'taxAmount',
  536. // type: JVxeTypes.normal,
  537. // placeholder: '请输入${title}',
  538. // defaultValue:'',
  539. // width:"200px",
  540. // },
  541. {
  542. title: '备注(note)',
  543. key: 'notes',
  544. width:"200px",
  545. type: JVxeTypes.normal,
  546. placeholder: '请输入${title}',
  547. defaultValue:'',
  548. },
  549. ]
  550. export const SupplierSummaryAmountColumns: JVxeColumn[] = [
  551. {
  552. title: '报价单号(bill code)',
  553. key: 'billCode',
  554. type: JVxeTypes.normal,
  555. placeholder: '请输入${title}',
  556. defaultValue:'',
  557. },
  558. {
  559. title: '单据日期(bill date)',
  560. key: 'billDate',
  561. type: JVxeTypes.normal,
  562. placeholder: '请输入${title}',
  563. defaultValue:'',
  564. },
  565. {
  566. title: '报价项目(quotation project)',
  567. key: 'projectName',
  568. type: JVxeTypes.normal,
  569. placeholder: '请输入${title}',
  570. defaultValue:'',
  571. },
  572. {
  573. title: '报价供应商(quotation supplier)',
  574. key: 'suppilerName',
  575. type: JVxeTypes.normal,
  576. placeholder: '请输入${title}',
  577. defaultValue:'',
  578. },
  579. {
  580. title: '报价截止日期(quotation deadline)',
  581. key: 'quotationDeadline',
  582. type: JVxeTypes.normal,
  583. placeholder: '请输入${title}',
  584. defaultValue:'',
  585. },
  586. {
  587. title: '币种(currency)',
  588. key: 'currency',
  589. type: JVxeTypes.normal,
  590. placeholder: '请输入${title}',
  591. defaultValue:'',
  592. },
  593. {
  594. title: '折扣(discount)',
  595. key: 'discount',
  596. type: JVxeTypes.normal,
  597. placeholder: '请输入${title}',
  598. defaultValue:'',
  599. width:"200px",
  600. },
  601. {
  602. title: '合计金额(total amount)',
  603. key: 'taxAmount',
  604. type: JVxeTypes.normal,
  605. placeholder: '请输入${title}',
  606. defaultValue:'',
  607. },
  608. {
  609. title: '美元金额(tax amount)',
  610. key: 'taxAmountUsd',
  611. type: JVxeTypes.normal,
  612. placeholder: '请输入${title}',
  613. defaultValue:'',
  614. width:"200px",
  615. },
  616. {
  617. title: '报价备注(notes)',
  618. key: 'quotationNotes',
  619. type: JVxeTypes.quotationNotes,
  620. placeholder: '请输入${title}',
  621. defaultValue:'',
  622. width:"200px",
  623. },
  624. ]