column.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. export const TableColumns = [
  2. { key: "supplier", title: "供应商" },
  3. { key: "supplierName", title: "供应商名称" },
  4. { key: "puOrg", title: "采购组织" },
  5. { key: "puOrgName", title: "采购组织名称" },
  6. { key: "customer", title: "客户" },
  7. { key: "customerName", title: "客户名称" },
  8. {
  9. key: "priceType",
  10. title: "价格类型",
  11. inputType: "Select",
  12. referName: "sys_price_type",
  13. },
  14. // {
  15. // key: "isDistribution",
  16. // title: "配送价",
  17. // inputType: "Select",
  18. // referName: "sys_yes_no",
  19. // },
  20. { key: "effectiveDate", title: "价格生效日期" },
  21. { key: "endDate", title: "价格失效日期" },
  22. {
  23. key: "tax",
  24. title: "税率",
  25. inputType: "ComputedInput",
  26. width: 200,
  27. computed: (prop) => {
  28. const { tax } = prop;
  29. return tax.toFixed(8) + "%";
  30. },
  31. },
  32. { key: "taxFreePrice", title: "无税单价" },
  33. { key: "taxPrice", title: "主含税单价" },
  34. {
  35. key: "purchaseQuantity",
  36. title: "本次采购数量",
  37. inputType: "InputNumber",
  38. width: 300,
  39. min: (prop) => 0,
  40. max: (prop) => prop.puQty - (prop.executeQty || 0),
  41. controlsPosition: "right",
  42. },
  43. {
  44. key: "arrivalDatePlan",
  45. title: "计划到货日期",
  46. inputType: "DatePicker",
  47. valueFormat: "yyyy-MM-dd",
  48. width: 300,
  49. pickerOptions: {
  50. disabledDate(time) {
  51. return time.getTime() < Date.now();
  52. },
  53. },
  54. },
  55. { key: "note", title: "备注", inputType: "Textarea", width: 300 },
  56. ];