31 lines
714 B
TypeScript
31 lines
714 B
TypeScript
|
|
import type { AddInventoryRecordParams, BatchAddInventoryParams } from './types/operator'
|
||
|
|
import { http } from '@/http/http'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取运营商列表
|
||
|
|
*/
|
||
|
|
export function getOperatorAllListAPI() {
|
||
|
|
return http.get<any>('/staff/ebikeOperator/list')
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 添加库存
|
||
|
|
*/
|
||
|
|
export function addOperatorAPI(data: AddInventoryRecordParams) {
|
||
|
|
return http.post<any>('/operations/ebikeInventory/addInventory', data)
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 库存总览
|
||
|
|
*/
|
||
|
|
export function getInventoryOverviewAPI() {
|
||
|
|
return http.get<any>('/operations/ebikeInventory/list')
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 批量入库
|
||
|
|
*/
|
||
|
|
export function batchAddInventoryAPI(data: BatchAddInventoryParams) {
|
||
|
|
return http.post<any>('/operations/ebikeEcuInfo/batchSave', data)
|
||
|
|
}
|