refactor(wms): 更新获取物料分类列表的 API

- 将 getBaseMaterialCategoryList 替换为 getBaseMaterialCategoryListInWMS
- 优化了物料分类列表的获取逻辑,可能提高了数据的准确性和性能
master
zangch@mesnac.com 4 months ago
parent 277d6bc272
commit 1ade4bf86f

@ -176,6 +176,7 @@ import { AllocateOrderDetailVO, AllocateOrderDetailQuery, AllocateOrderDetailFor
import { getAllocateOrder } from '@/api/wms/allocateOrder';
import { AllocateOrderVO, AllocateOrderForm, AllocateOrderQuery } from '@/api/wms/allocateOrder/types';
import { useRoute } from 'vue-router';
import { getBaseMaterialCategoryListInWMS } from '@/api/wms/baseMaterialCategory';
const router = useRoute();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { erp_synchronous_status } = toRefs<any>(proxy?.useDict('erp_synchronous_status', 'wms_allocate_way'));
@ -402,7 +403,7 @@ const handleExport = () => {
let mategoryOptions = ref([]);
const getMaterialCategorySelect = async () => {
const res = await getBaseMaterialCategoryList(null);
const res = await getBaseMaterialCategoryListInWMS(null);
mategoryOptions.value = res.data;
};

Loading…
Cancel
Save