From 1f0220d367d4b7a88245ccfdb020e846bd469230 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Thu, 13 Jun 2024 09:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasePlanDetail/index.ts | 11 +++++++++++ src/api/wms/saleDetail/index.ts | 8 +++++++- .../basicDataManage/itemManage/itembasic/index.vue | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) 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