columns.ts 795 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { useDictionaryStoreHook } from "../../../store/index";
  2. const { dicts } = useDictionaryStoreHook();
  3. export const columns = [
  4. {
  5. label: "物料编码",
  6. prop: "materialCode",
  7. hide:true
  8. },
  9. {
  10. label: "物料名称",
  11. prop: "materialName",
  12. overHidden:true,
  13. hide:true
  14. },
  15. {
  16. label: "物料编码",
  17. prop: "bomMaterialCode",
  18. },
  19. {
  20. label: "物料名称",
  21. prop: "bomMaterialName",
  22. overHidden:true,
  23. },
  24. {
  25. label: "物料属性",
  26. prop: "bomMaterialAttribute",
  27. type: 'select',
  28. dicData:dicts.material_properties,
  29. props: { label: "dictLabel", value: "dictValue" },
  30. },
  31. {
  32. label: "物料数量",
  33. prop: "bomMaterialNumber",
  34. min:0,
  35. slot:true,
  36. cell: true,
  37. type: "number",
  38. precision: 2,
  39. },
  40. ];