columns.ts 897 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. required: true,
  15. message: "请选择物料名称",
  16. trigger: "blur"
  17. }],
  18. click: ({ value, column }) => {
  19. if(column.boxType){
  20. dialog.visible = true
  21. }
  22. },
  23. },
  24. {
  25. label: "产线",
  26. prop: "productionLineName",
  27. hide:true,
  28. display:false
  29. },
  30. {
  31. label: "产能",
  32. prop: "capacity",
  33. rules: [{
  34. required: true,
  35. message: "请填写产能",
  36. trigger: "blur"
  37. }],
  38. },
  39. {
  40. label: "最小齐套数",
  41. prop: "minCapacity",
  42. rules: [{
  43. required: true,
  44. message: "请填写产能",
  45. trigger: "blur"
  46. }],
  47. },
  48. ]