Browse Source

修复bug

master_hella_20240701
songguoqiang 5 months ago
parent
commit
1f0220d367
  1. 11
      src/api/wms/purchasePlanDetail/index.ts
  2. 8
      src/api/wms/saleDetail/index.ts
  3. 4
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue

11
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 })
}
}

8
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 })
}
}
// 查询销售订单子详情

4
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

Loading…
Cancel
Save