lxf 2 жил өмнө
parent
commit
be0d1a15c2

+ 29 - 20
src/views/purchaseSales/outAndInWarehouse/inventoryInquiry/index.vue

@@ -49,7 +49,16 @@ const sourceList = ref({
     id: "",
   },
 });
-const productType = ref([]);
+const definition = ref([
+  {
+    label: "产品",
+    value: "1",
+  },
+  {
+    label: "物料",
+    value: "2",
+  },
+]);
 const loading = ref(false);
 const selectConfig = computed(() => {
   if (props.warehouseId) {
@@ -78,11 +87,11 @@ const config = computed(() => {
     {
       attrs: {
         label: "物品类型",
-        prop: "productType",
+        prop: "definition",
         width: 140,
       },
       render(type) {
-        return proxy.dictValueLabel(type, productType.value);
+        return proxy.dictValueLabel(type, definition.value);
       },
     },
     {
@@ -149,23 +158,23 @@ const getDict = () => {
       });
     }
   });
-  proxy
-    .post("/dictTenantData/page", {
-      pageNum: 1,
-      pageSize: 999,
-      dictCode: "product_type",
-      tenantId: useUserStore().user.tenantId,
-    })
-    .then((res) => {
-      if (res.rows && res.rows.length > 0) {
-        productType.value = res.rows.map((item) => {
-          return {
-            label: item.dictValue,
-            value: item.dictKey,
-          };
-        });
-      }
-    });
+  // proxy
+  //   .post("/dictTenantData/page", {
+  //     pageNum: 1,
+  //     pageSize: 999,
+  //     dictCode: "product_type",
+  //     tenantId: useUserStore().user.tenantId,
+  //   })
+  //   .then((res) => {
+  //     if (res.rows && res.rows.length > 0) {
+  //       productType.value = res.rows.map((item) => {
+  //         return {
+  //           label: item.dictValue,
+  //           value: item.dictKey,
+  //         };
+  //       });
+  //     }
+  //   });
 };
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };