You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { eamServer } from '../../index'
|
|
|
|
|
|
|
|
export interface IStorageOutParam {
|
|
|
|
id?: string
|
|
|
|
customerId: string
|
|
|
|
name: string
|
|
|
|
description: string
|
|
|
|
deviceId: number
|
|
|
|
price: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export const storageOutDevice = (params: IStorageOutParam) =>
|
|
|
|
eamServer({
|
|
|
|
url: `/device/out-storage`,
|
|
|
|
method: 'post',
|
|
|
|
data: params,
|
|
|
|
})
|
|
|
|
|
|
|
|
export const getStorageOutByDeviceId = (deviceId: number) =>
|
|
|
|
eamServer({
|
|
|
|
url: `/out-storage/get-by-device-id`,
|
|
|
|
method: 'get',
|
|
|
|
params: { deviceId },
|
|
|
|
})
|
|
|
|
|
|
|
|
export const getStorageOutPage = (params: PageParam) =>
|
|
|
|
eamServer({
|
|
|
|
url: `/out-storage/page`,
|
|
|
|
method: 'get',
|
|
|
|
params,
|
|
|
|
})
|