columns.ts 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { useDictionaryStore } from "@/store";
  2. const { dicts } = useDictionaryStore();
  3. export const columns = [
  4. {
  5. label: "物料编号",
  6. prop: "materialCode",
  7. hide: true,
  8. display: false,
  9. },
  10. {
  11. label: "物料名称",
  12. prop: "materialName",
  13. rules: [
  14. {
  15. required: true,
  16. message: "请选择物料名称",
  17. trigger: "blur",
  18. },
  19. ],
  20. click: ({ value, column }) => {
  21. if (column.boxType) {
  22. dialog.visible = true;
  23. }
  24. },
  25. },
  26. {
  27. label: "产线",
  28. prop: "productionLineName",
  29. hide: true,
  30. display: false,
  31. },
  32. {
  33. label: "产能",
  34. prop: "capacity",
  35. rules: [
  36. {
  37. required: true,
  38. message: "请填写产能",
  39. trigger: "blur",
  40. },
  41. ],
  42. },
  43. {
  44. label: "最小齐套数",
  45. prop: "minCapacity",
  46. rules: [
  47. {
  48. required: true,
  49. message: "请填写产能",
  50. trigger: "blur",
  51. },
  52. ],
  53. },
  54. ];