You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
TypeScript
63 lines
1.7 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface BitWmsInboundReqVO {
|
|
productId: number
|
|
warehouseId: number
|
|
areaId?: number
|
|
count: number
|
|
supplierId?: number
|
|
remark?: string
|
|
}
|
|
|
|
export interface BitWmsOutboundReqVO {
|
|
productId: number
|
|
warehouseId: number
|
|
areaId?: number
|
|
count: number
|
|
outReason: string
|
|
remark?: string
|
|
}
|
|
|
|
export interface BitWmsMoveReqVO {
|
|
productId: number
|
|
fromWarehouseId: number
|
|
fromAreaId?: number
|
|
toWarehouseId: number
|
|
toAreaId?: number
|
|
count: number
|
|
remark?: string
|
|
}
|
|
|
|
export interface BitWmsLabelRespVO {
|
|
title?: string
|
|
printData: Record<string, any>
|
|
templateJson?: Record<string, any>
|
|
}
|
|
|
|
export const BitWmsApi = {
|
|
getSamplePage: async (params: any) => {
|
|
return await request.get({ url: '/erp/product/sample-page', params })
|
|
},
|
|
getSampleSimpleList: async (params?: any) => {
|
|
return await request.get({ url: '/erp/product/sample-simple-list', params })
|
|
},
|
|
inbound: async (data: BitWmsInboundReqVO) => {
|
|
return await request.post({ url: '/erp/bit-wms/inbound', data })
|
|
},
|
|
outbound: async (data: BitWmsOutboundReqVO) => {
|
|
return await request.post({ url: '/erp/bit-wms/outbound', data })
|
|
},
|
|
move: async (data: BitWmsMoveReqVO) => {
|
|
return await request.post({ url: '/erp/bit-wms/move', data })
|
|
},
|
|
scan: async (code: string) => {
|
|
return await request.get({ url: '/erp/bit-wms/scan', params: { code } })
|
|
},
|
|
getSampleLabel: async (productId: number) => {
|
|
return await request.get({ url: '/erp/bit-wms/sample-label', params: { productId } })
|
|
},
|
|
getLocationLabel: async (locationId: number) => {
|
|
return await request.get({ url: '/erp/bit-wms/location-label', params: { locationId } })
|
|
}
|
|
}
|