Module exposing: WmSnApi
// Source: https://github.com/YunaiV/ruoyi-vue-pro | License: MIT | Copyright 2021 ruoyi-vue-pro
// Provided via justclaw.it.com; keep this notice with the code.
import request from '@/config/axios'
// MES SN 码 VO
export interface WmSnVO {
id: number
snCode: string
itemId: number
itemCode: string
itemName: string
specification: string
batchCode: string
workOrderId: number
createTime: string
}
// MES SN 码生成 VO
export interface WmSnGenerateVO {
itemId: number
batchCode?: string
workOrderId?: number
snNum: number
}
// MES SN 码 API
export const WmSnApi = {
// 生成 SN 码
generateSnCodes: async (data: WmSnGenerateVO) => {
return await request.post({ url: '/mes/wm/sn/generate', data })
},
// 查询 SN 码分页
getSnPage: async (params: any) => {
return await re
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key