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