content.config.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import { httpList } from "/@/api/purchase/porder";
  2. import { ContentConfig } from "/@/components/PageContent";
  3. import { renderProp } from "/@/utils/columnRenderHelper";
  4. import { cgdStatusOptions, sendStatusOptions } from "./_options";
  5. import { CG_ORDER_SOURCE_OPTIONS } from "/@/config/status";
  6. import { cg_order_type_options } from "/@/utils/status";
  7. const columns = [
  8. {
  9. label: "采购单编号",
  10. prop: "sequenceNo",
  11. width: "175px"
  12. },
  13. {
  14. label: "状态",
  15. prop: "status",
  16. width: 95,
  17. ...renderProp(cgdStatusOptions, "status")
  18. },
  19. {
  20. label: "状态",
  21. prop: "sendStatus",
  22. width: 95,
  23. ...renderProp(sendStatusOptions, "sendStatus")
  24. },
  25. {
  26. label: "订单来源",
  27. prop: "cgdSource",
  28. width: 95,
  29. ...renderProp(CG_ORDER_SOURCE_OPTIONS, "cgdSource")
  30. },
  31. {
  32. label: "商品来源",
  33. prop: "cgdType",
  34. width: 95,
  35. ...renderProp(cg_order_type_options, "cgdType")
  36. },
  37. {
  38. label: "商品编号",
  39. prop: "goodNo",
  40. width: "175px"
  41. },
  42. {
  43. label: "商品名称",
  44. prop: "goodName",
  45. width: "180px"
  46. },
  47. {
  48. label: "卖出方公司编号",
  49. prop: "supplierNo",
  50. width: "175px"
  51. },
  52. {
  53. label: "卖出方公司名称",
  54. prop: "supplierName",
  55. width: "175px"
  56. },
  57. {
  58. label: "销售订单编号",
  59. prop: "qrdCode",
  60. width: "160px"
  61. },
  62. {
  63. label: "备库单编号",
  64. prop: "bkCode",
  65. width: "160px"
  66. },
  67. {
  68. label: "采购员",
  69. prop: "ownerName",
  70. width: 75
  71. },
  72. {
  73. label: "买入方公司名称",
  74. prop: "companyName",
  75. width: "160px"
  76. },
  77. {
  78. label: "买入方公司编号",
  79. prop: "companyNo",
  80. width: "175px"
  81. },
  82. {
  83. label: "创建时间",
  84. prop: "addtime",
  85. width: 155
  86. },
  87. {
  88. label: "操作",
  89. fixed: "right",
  90. width: 55,
  91. slot: "operation"
  92. }
  93. ];
  94. const contentConfig: ContentConfig = {
  95. title: "采购单管理",
  96. columns,
  97. apis: {
  98. httpList,
  99. httpAdd: true
  100. }
  101. };
  102. export default contentConfig;