lihaiMiddleOfficeAdminWeb/src/api/psi/purchase_order.ts
mkm fbf9966c80 refactor(psi): 重构采购模块接口和页面
- 移除 psi_order 和 psi_product 文件中的接口定义
- 更新采购订单和产品页面的接口调用
- 调整采购订单列表页面的路由链接和按钮文案
- 移除产品仓库弹窗中的商品类型筛选
2025-03-01 17:11:25 +08:00

61 lines
1.8 KiB
TypeScript

import request from '@/utils/request'
// 商品仓储订单列表
export function apiWarehouseOrderLists(params: any) {
return request.get({ url: '/purchase_order/purchaseorder/lists', params }, { urlPrefix: 'psi' })
}
// 添加商品仓储订单
export function apiWarehouseOrderAdd(params: any) {
return request.post({ url: '/purchase_order/purchaseorder/add', params }, { urlPrefix: 'psi' })
}
// 添加出库单
export function apiWarehouseOrderOutbound(params: any) {
return request.post(
{ url: '/purchase_order/purchaseorder/outbound', params },
{ urlPrefix: 'psi' }
)
}
// 编辑商品仓储订单
export function apiWarehouseOrderEdit(params: any) {
return request.post({ url: '/purchase_order/purchaseorder/edit', params }, { urlPrefix: 'psi' })
}
// 删除商品仓储订单
export function apiWarehouseOrderDelete(params: any) {
return request.post(
{ url: '/purchase_order/purchaseorder/delete', params },
{ urlPrefix: 'psi' }
)
}
// 商品仓储订单详情
export function apiWarehouseOrderDetail(params: any) {
return request.get(
{ url: '/purchase_order/purchaseorder/detail', params },
{ urlPrefix: 'psi' }
)
}
// 导出商品仓储入库订单
export function apiWarehouseOrderRentryExport(params: any) {
return request.post(
{ url: '/purchase_order/purchaseorder/rentry_export', params },
{ urlPrefix: 'psi' }
)
}
// 导出商品仓储出库订单
export function apiWarehouseOrderExport(params: any) {
return request.post(
{ url: '/purchase_order/purchaseorder/export', params },
{ urlPrefix: 'psi' }
)
}
// 编辑商品仓储订单
export function apiWarehouseOrderUpdateEdit(params: any) {
return request.post(
{ url: '/purchase_order/purchaseorder/update_edit', params },
{ urlPrefix: 'psi' }
)
}