feat: 新增备货区域前端接口(任务4)
This commit is contained in:
@@ -0,0 +1,71 @@
|
|||||||
|
import type { PageParam, PageResult } from '@vben/request';
|
||||||
|
|
||||||
|
import { requestClient } from '#/api/request';
|
||||||
|
|
||||||
|
export namespace LmsStockingIvtApi {
|
||||||
|
/** 备货区域点位。 */
|
||||||
|
export interface StockingIvt {
|
||||||
|
isUsed: string;
|
||||||
|
ivtId: number;
|
||||||
|
ivtStatus: string;
|
||||||
|
pointCode: string;
|
||||||
|
pointLocation?: string;
|
||||||
|
pointName: string;
|
||||||
|
pointType: string;
|
||||||
|
remark?: string;
|
||||||
|
sortSeq: number;
|
||||||
|
updater?: string;
|
||||||
|
updateTime?: string;
|
||||||
|
vehicleCode?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 备货区域修改参数。 */
|
||||||
|
export interface StockingIvtUpdateReq {
|
||||||
|
isUsed: string;
|
||||||
|
ivtId: number;
|
||||||
|
ivtStatus: string;
|
||||||
|
pointLocation?: string;
|
||||||
|
pointType: string;
|
||||||
|
remark?: string;
|
||||||
|
sortSeq: number;
|
||||||
|
vehicleCode?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 纸管托盘格位库存。 */
|
||||||
|
export interface PaperVehicleInventory {
|
||||||
|
colNum: number;
|
||||||
|
materialCode: string;
|
||||||
|
materialName: string;
|
||||||
|
qty: number;
|
||||||
|
rowNum: number;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 查询备货区域分页。 */
|
||||||
|
export function getStockingIvtPage(params: PageParam) {
|
||||||
|
return requestClient.get<PageResult<LmsStockingIvtApi.StockingIvt>>(
|
||||||
|
'/lms/stocking-ivt/page',
|
||||||
|
{ params },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 查询备货区域详情。 */
|
||||||
|
export function getStockingIvt(ivtId: number) {
|
||||||
|
return requestClient.get<LmsStockingIvtApi.StockingIvt>(
|
||||||
|
'/lms/stocking-ivt/get',
|
||||||
|
{ params: { ivtId } },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 修改备货区域点位。 */
|
||||||
|
export function updateStockingIvt(data: LmsStockingIvtApi.StockingIvtUpdateReq) {
|
||||||
|
return requestClient.put('/lms/stocking-ivt/update', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 查询纸管托盘库存。 */
|
||||||
|
export function getPaperVehicleInventory(vehicleCode: string) {
|
||||||
|
return requestClient.get<LmsStockingIvtApi.PaperVehicleInventory[]>(
|
||||||
|
'/lms/stocking-ivt/paperVehicleList',
|
||||||
|
{ params: { vehicleCode } },
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -309,6 +309,8 @@ const RawFoil_DICT = {
|
|||||||
RAWFOIL_CASHEPOSITION_TYPE: 'rawfoil_casheposition_type', // 生箔母卷缓存位点位类型
|
RAWFOIL_CASHEPOSITION_TYPE: 'rawfoil_casheposition_type', // 生箔母卷缓存位点位类型
|
||||||
RAWFOIL_CASHEPOSITION_STATUS: 'rawfoil_casheposition_status', // 生箔母卷缓存位库存状态
|
RAWFOIL_CASHEPOSITION_STATUS: 'rawfoil_casheposition_status', // 生箔母卷缓存位库存状态
|
||||||
EMPTYROLLER_CASHEPOSITION_TYPE: 'emptyroller_casheposition_type', // 空辊缓存位点位类型
|
EMPTYROLLER_CASHEPOSITION_TYPE: 'emptyroller_casheposition_type', // 空辊缓存位点位类型
|
||||||
|
LMS_STOCKING_IVT_POINT_TYPE: 'lms_stocking_ivt_point_type', // LMS 备货区域点位类型
|
||||||
|
LMS_STOCKING_IVT_STATUS: 'lms_stocking_ivt_status', // LMS 备货区域点位状态
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
/** 字典类型枚举 - 统一导出 */
|
/** 字典类型枚举 - 统一导出 */
|
||||||
|
|||||||
Reference in New Issue
Block a user