column.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. { key: "isDistribution", title: "配送价" },
  15. { key: "effectiveDate", title: "价格生效日期" },
  16. { key: "endDate", title: "价格失效日期" },
  17. { key: "tax", title: "税率" },
  18. { key: "taxFreePrice", title: "无税单价" },
  19. { key: "taxPrice", title: "主含税单价" },
  20. {
  21. key: "purchaseQuantity",
  22. title: "本次采购数量",
  23. inputType: "InputNumber",
  24. width: 200,
  25. min: (prop) => 0,
  26. max: (prop) => prop.puQty - (prop.executeQty || 0),
  27. controlsPosition: "right",
  28. },
  29. {
  30. key: "arrivalDatePlan",
  31. title: "计划到货日期",
  32. inputType: "DatePicker",
  33. valueFormat: "yyyy-MM-dd",
  34. width: 200,
  35. pickerOptions: {
  36. disabledDate(time) {
  37. return time.getTime() < Date.now();
  38. },
  39. },
  40. },
  41. { key: "note", title: "备注", inputType: "Textarea", width: 200 },
  42. ];