moreShopAdmin/src/api/beforehand_order.ts
mkm 304d944699 feat(order): 预订单列表增加订单类型和出入库状态筛选功能
- 新增订单类型和出入库状态的筛选选项
- 添加相应的 API 接口获取统计数据
- 实现筛选条件变化时重新获取列表数据
- 优化页面布局,增加统计信息显示
2025-01-10 11:39:30 +08:00

115 lines
3.9 KiB
TypeScript

import request from '@/utils/request'
// 预订单表列表
export function apiBeforehandOrderLists(params: any) {
return request.get({ url: '/beforehand_order/beforehandorder/lists', params })
}
export function apiBeforehandOrderStatisticsCount(params: any) {
return request.get({ url: '/beforehand_order/beforehandorder/statistics_count', params })
}
// 添加预订单表
export function apiBeforehandOrderAdd(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/add', params })
}
// 编辑预订单表
export function apiBeforehandOrderEdit(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/edit', params })
}
// 一键出库
export function apiBeforehandOrderCreateOutboundOrder(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/createOutboundOrder', params })
}
// 删除预订单表
export function apiBeforehandOrderDelete(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/delete', params })
}
export function apiBeforehandOrderSettle(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/settle', params })
}
// 预订单表详情
export function apiBeforehandOrderDetail(params: any) {
return request.get({ url: '/beforehand_order/beforehandorder/detail', params })
}
// 入库列表
export function apiBeforehandOrderWarehousingLists(params: any) {
return request.get({ url: '/beforehand_order/beforehandorder/warehousing_lists', params })
}
// 出库列表
export function apiBeforehandOrderOutboundLists(params: any) {
return request.get({ url: '/beforehand_order/beforehandorder/outbound_lists', params })
}
// 订单转预订单
export function apiPurchaseOrderTransferAdvanceOrder(params: any) {
return request.post({
url: '/beforehand_order/beforehandorder/orderTransferAdvanceOrder',
params
})
}
// 打印出库标签
export function apiPurchaseOrderExport(params: any) {
return request.post({
url: '/beforehand_order/beforehandorder/export',
params
})
}
/**
* 生成支付订单
*/
export function apiPurchaseOrderGenerateOrder(params: any) {
return request.post({
url: '/beforehand_order/beforehandorder/generateOrder',
params
})
}
//导出清单
export function apiPurchaseOrderExportOrderList(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/export_order_list', params })
}
//导出分单
export function apiPurchaseOrderOrderAllocation(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/order_allocation', params })
}
//采购信息
export function apiPurchaseOrderOrderInfo(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/order_info', params })
}
//导出出库
export function apiPurchaseOrderOrderOutbound(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/order_outbound', params })
}
//导出出库
export function apiPurchaseOrderOrderOutbound3(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/order_outbound3', params })
}
//导出退库
export function apiPurchaseOrderStockReturn(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/stock_return', params })
}
//导出退供应商
export function apiPurchaseOrderReturnSupplier(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/return_supplier', params })
}
// 预订单日志列表
export function apiBeforehandOrderLogLists(params: any) {
return request.get({ url: '/beforehand_order/beforehandorder/logList', params })
}
//保存预订单日志
export function apiBeforehandOrderLogSave(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/saveLog', params })
}
//确认预订单日志
export function apiBeforehandOrderLogConfirm(params: any) {
return request.post({ url: '/beforehand_order/beforehandorder/confirmLog', params })
}