diff --git a/src/api/wms/purchasePlanDetail/index.ts b/src/api/wms/purchasePlanDetail/index.ts index 1b35d8ec9..3da2f8973 100644 --- a/src/api/wms/purchasePlanDetail/index.ts +++ b/src/api/wms/purchasePlanDetail/index.ts @@ -56,3 +56,14 @@ export const deletePurchasePlanDetail = async (id: number) => { export const exportPurchasePlanDetail = async (params) => { return await request.download({ url: `/wms/purchase-plan-detail/export-excel`, params }) } + +// WMS查询要货计划子列表 +export const getPurchasePlanDetailPagewms = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchase-plan-detail/seniorWMS', data }) + } else { + return await request.get({ url: `/wms/purchase-plan-detail/pageWMS`, params }) + } +} diff --git a/src/api/wms/saleDetail/index.ts b/src/api/wms/saleDetail/index.ts index 79c182062..5c928c170 100644 --- a/src/api/wms/saleDetail/index.ts +++ b/src/api/wms/saleDetail/index.ts @@ -27,7 +27,13 @@ export interface SaleDetailVO { // 查询销售订单子列表 export const getSaleDetailPage = async (params) => { - return await request.get({ url: `/wms/sale-detail/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/sale-detail/senior', data }) + } else { + return await request.get({ url: `/wms/sale-detail/page`, params }) + } } // 查询销售订单子详情 diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue index 2335a1dee..927538edd 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue @@ -305,11 +305,11 @@ const changeTabs = (item) => { detailAllSchemas.value = Customeritem.allSchemas } else if(item.prop == 'PurchaseOrder'){ tabsExtend.value = true - apiPage.value = PurchaseDetailApi.getPurchaseDetailPage + apiPage.value = PurchaseDetailApi.getPurchaseDetailPageWMS detailAllSchemas.value = PurchaseMain.allSchemas } else if(item.prop == 'PurchasingPlan'){ tabsExtend.value = true - apiPage.value = PurchasePlanDetailApi.getPurchasePlanDetailPage + apiPage.value = PurchasePlanDetailApi.getPurchasePlanDetailPagewms detailAllSchemas.value = PurchasePlanMain.allSchemas } else if(item.prop == 'InventoryBalance'){ tabsExtend.value = true