Prechádzať zdrojové kódy

fix:增加物料规格筛选

lupeng 3 mesiacov pred
rodič
commit
3ef3cd4b74

+ 2 - 2
src/components/CommonTable/configs/tableConfig.ts

@@ -9,7 +9,7 @@ export const tableConfig = {
       { label: "物料名称", prop: "materialName", search: true },
       { label: "保质期", prop: "qualityGuaranteePeriod" },
 
-      { label: "物料规格", prop: "spec" },
+      { label: "物料规格", prop: "spec", search: true },
 
       {
         label: "物料属性",
@@ -491,7 +491,7 @@ export const tableConfig = {
         type: "number",
         precision: 2,
       },
-      { label: "物料规格", prop: "spec" },
+      { label: "物料规格", prop: "spec",search: true },
     ],
   },
 

+ 5 - 0
src/views/base/bom/index.vue

@@ -306,6 +306,10 @@ option.value = Object.assign(option.value, {
       props: { label: "dictLabel", value: "dictValue" },
     },
     {
+      label: "规格",
+      prop: "spec",
+    },
+    {
       label: "物料数量",
       prop: "bomMaterialNumber",
       min: 0,
@@ -382,6 +386,7 @@ const onSelectedFinish = (selectedValueList) => {
       bomVersion: version.value.value,
       bomMaterialAttribute: selectedValue.attributeDictValue,
       bomMaterialNumber: 0,
+      spec: selectedValue.spec,
       $cellEdit: true,
     });
     data.value.push(bom.value);

+ 1 - 1
src/views/base/craftManagement/route/index.vue

@@ -546,7 +546,7 @@ option.value = Object.assign(option.value, {
       overHidden: true,
     },
     {
-      label: "通用工艺名",
+      label: "通用工艺名",
       prop: "commonRouteName",
       editDisplay: false,
       width: 150,