ERP:增加入库单的审批功能

This commit is contained in:
YunaiV
2024-02-06 23:28:48 +08:00
parent 5bdf0fc0ff
commit 115c30ea40
4 changed files with 107 additions and 23 deletions

View File

@ -34,9 +34,25 @@ export const StockInApi = {
return await request.put({ url: `/erp/stock-in/update`, data })
},
// 更新其它入库单的状态
updateStockInStatus: async (id: number, status: number) => {
return await request.put({
url: `/erp/stock-in/update-status`,
params: {
id,
status
}
})
},
// 删除其它入库单
deleteStockIn: async (id: number) => {
return await request.delete({ url: `/erp/stock-in/delete?id=` + id })
deleteStockIn: async (ids: number[]) => {
return await request.delete({
url: `/erp/stock-in/delete`,
params: {
ids: ids.join(',')
}
})
},
// 导出其它入库单 Excel