advancePaymentForm.data.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. //列表数据
  7. export const columns: BasicColumn[] = [
  8. {
  9. title: '预收款编号(bill code)',
  10. align:"center",
  11. dataIndex: 'billCode',
  12. ellipsis:true
  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: '项目(project)',
  25. align:"center",
  26. ellipsis:true,
  27. dataIndex: 'projectName'
  28. },
  29. {
  30. title: '订单编号(sale order number)',
  31. align:"center",
  32. ellipsis:true,
  33. width:200,
  34. dataIndex: 'saleOrder'
  35. },
  36. {
  37. title: '客户(customer)',
  38. align:"center",
  39. ellipsis:true,
  40. dataIndex: 'customerName'
  41. },
  42. {
  43. title: 'F号(F number)',
  44. align:"center",
  45. dataIndex: 'fnumber',
  46. ellipsis:true,
  47. },
  48. {
  49. title: '预收金额(advance payment amount)',
  50. align:"center",
  51. width:250,
  52. ellipsis:true,
  53. dataIndex: 'advanceAmount'
  54. },
  55. {
  56. title: '订单金额(order amount)',
  57. align:"center",
  58. dataIndex: 'orderAmount'
  59. },
  60. {
  61. title: '预收比例(advance payment ratio)',
  62. align:"center",
  63. width:250,
  64. ellipsis:true,
  65. dataIndex: 'advanceRatio',
  66. customRender:({text}) =>{
  67. text = !text ? "" : text+'%';
  68. return text;
  69. },
  70. },
  71. {
  72. title: '提交(submit)',
  73. align:"center",
  74. dataIndex: 'submit_dictText',
  75. },
  76. ];