盘库操作初设计
This commit is contained in:
31
inventory-web/src/api/inbound/stock.ts
Normal file
31
inventory-web/src/api/inbound/stock.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取全量库存
|
||||
// 修改前: url: '/api/v1/inbound/stock/all'
|
||||
// 修改后: url: '/v1/inbound/stock/all'
|
||||
export function getAllStock() {
|
||||
return request({
|
||||
url: '/v1/inbound/stock/all',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 打印出库选单
|
||||
// 修改后: 去掉开头的 /api
|
||||
export function printSelectionList(items: any[]) {
|
||||
return request({
|
||||
url: '/v1/inbound/stock/print/selection',
|
||||
method: 'post',
|
||||
data: { items }
|
||||
})
|
||||
}
|
||||
|
||||
// 打印盘点报告
|
||||
// 修改后: 去掉开头的 /api
|
||||
export function printStocktakeReport(data: any) {
|
||||
return request({
|
||||
url: '/v1/inbound/stock/print/stocktake',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user