|
|
@ -22,7 +22,7 @@ export interface SaleShipmentMainVO { |
|
|
|
serialNumber: string |
|
|
|
} |
|
|
|
|
|
|
|
// 查询销售发运申请主列表
|
|
|
|
// 查询结算出库申请主列表
|
|
|
|
export const getSaleShipmentMainPage = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
@ -33,27 +33,27 @@ export const getSaleShipmentMainPage = async (params) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询销售发运申请主详情
|
|
|
|
// 查询结算出库申请主详情
|
|
|
|
export const getSaleShipmentMain = async (id: number) => { |
|
|
|
return await request.get({ url: `/wms/sale-shipment-main-request/get?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 新增销售发运申请主
|
|
|
|
// 新增结算出库申请主
|
|
|
|
export const createSaleShipmentMain = async (data: SaleShipmentMainVO) => { |
|
|
|
return await request.post({ url: `/wms/sale-shipment-main-request/create`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改销售发运申请主
|
|
|
|
// 修改结算出库申请主
|
|
|
|
export const updateSaleShipmentMain = async (data: SaleShipmentMainVO) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/update`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 删除销售发运申请主
|
|
|
|
// 删除结算出库申请主
|
|
|
|
export const deleteSaleShipmentMain = async (id: number) => { |
|
|
|
return await request.delete({ url: `/wms/sale-shipment-main-request/delete?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 导出销售发运申请主 Excel
|
|
|
|
// 导出结算出库申请主 Excel
|
|
|
|
export const exportSaleShipmentMain = async (params) => { |
|
|
|
return await request.download({ url: `/wms/sale-shipment-main-request/export-excel`, params }) |
|
|
|
} |
|
|
@ -63,32 +63,32 @@ export const importTemplate = () => { |
|
|
|
return request.download({ url: '/wms/sale-shipment-main-request/get-import-template' }) |
|
|
|
} |
|
|
|
|
|
|
|
// 关闭-销售发运申请
|
|
|
|
// 关闭-结算出库申请
|
|
|
|
export const close = async (id) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 重新添加-销售发运申请
|
|
|
|
// 重新添加-结算出库申请
|
|
|
|
export const reAdd = async (id) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 提交审批-销售发运申请
|
|
|
|
// 提交审批-结算出库申请
|
|
|
|
export const submit = async (id) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 审批驳回-销售发运申请
|
|
|
|
// 审批驳回-结算出库申请
|
|
|
|
export const refused = async (id) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 审批通过-销售发运申请
|
|
|
|
// 审批通过-结算出库申请
|
|
|
|
export const agree = async (id) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 处理-销售发运申请
|
|
|
|
// 处理-结算出库申请
|
|
|
|
export const handle = async (id) => { |
|
|
|
return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id }) |
|
|
|
} |