Browse Source

修复bug

master_hella_20240701
songguoqiang 5 months ago
parent
commit
1f0220d367
  1. 11
      src/api/wms/purchasePlanDetail/index.ts
  2. 6
      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) => { export const exportPurchasePlanDetail = async (params) => {
return await request.download({ url: `/wms/purchase-plan-detail/export-excel`, 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 })
}
}

6
src/api/wms/saleDetail/index.ts

@ -27,8 +27,14 @@ export interface SaleDetailVO {
// 查询销售订单子列表 // 查询销售订单子列表
export const getSaleDetailPage = async (params) => { export const getSaleDetailPage = async (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 }) return await request.get({ url: `/wms/sale-detail/page`, params })
} }
}
// 查询销售订单子详情 // 查询销售订单子详情
export const getSaleDetail = async (id: number) => { export const getSaleDetail = async (id: number) => {

4
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -305,11 +305,11 @@ const changeTabs = (item) => {
detailAllSchemas.value = Customeritem.allSchemas detailAllSchemas.value = Customeritem.allSchemas
} else if(item.prop == 'PurchaseOrder'){ } else if(item.prop == 'PurchaseOrder'){
tabsExtend.value = true tabsExtend.value = true
apiPage.value = PurchaseDetailApi.getPurchaseDetailPage apiPage.value = PurchaseDetailApi.getPurchaseDetailPageWMS
detailAllSchemas.value = PurchaseMain.allSchemas detailAllSchemas.value = PurchaseMain.allSchemas
} else if(item.prop == 'PurchasingPlan'){ } else if(item.prop == 'PurchasingPlan'){
tabsExtend.value = true tabsExtend.value = true
apiPage.value = PurchasePlanDetailApi.getPurchasePlanDetailPage apiPage.value = PurchasePlanDetailApi.getPurchasePlanDetailPagewms
detailAllSchemas.value = PurchasePlanMain.allSchemas detailAllSchemas.value = PurchasePlanMain.allSchemas
} else if(item.prop == 'InventoryBalance'){ } else if(item.prop == 'InventoryBalance'){
tabsExtend.value = true tabsExtend.value = true

Loading…
Cancel
Save