From a39ff1e686b5eeeb464f43dcef36a19419866ccb Mon Sep 17 00:00:00 2001 From: "maxw@mesnac.com" Date: Fri, 17 Jan 2025 10:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=90=E5=93=81=E8=BD=A6?= =?UTF-8?q?=E6=9E=B6=E5=AD=90=E9=A1=B5=E9=9D=A2=E5=92=8C=E4=B8=8B=E9=92=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/psmInStock/index.ts | 77 ++++++ src/api/wms/psmInStock/types.ts | 166 +++++++++++ src/api/wms/psmInStockDetail/index.ts | 77 ++++++ src/api/wms/psmInStockDetail/types.ts | 106 +++++++ src/router/index.ts | 14 + src/views/wms/psmInStock/index.vue | 338 +++++++++++++++++++++++ src/views/wms/psmInStockDetail/index.vue | 276 ++++++++++++++++++ 7 files changed, 1054 insertions(+) create mode 100644 src/api/wms/psmInStock/index.ts create mode 100644 src/api/wms/psmInStock/types.ts create mode 100644 src/api/wms/psmInStockDetail/index.ts create mode 100644 src/api/wms/psmInStockDetail/types.ts create mode 100644 src/views/wms/psmInStock/index.vue create mode 100644 src/views/wms/psmInStockDetail/index.vue diff --git a/src/api/wms/psmInStock/index.ts b/src/api/wms/psmInStock/index.ts new file mode 100644 index 0000000..1851160 --- /dev/null +++ b/src/api/wms/psmInStock/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { PsmInStockVO, PsmInStockForm, PsmInStockQuery } from '@/api/wms/psmInStock/types'; + +/** + * 查询成品入库记录列表 + * @param query + * @returns {*} + */ + +export const listPsmInStock = (query?: PsmInStockQuery): AxiosPromise => { + return request({ + url: '/wms/psmInStock/list', + method: 'get', + params: query + }); +}; + +/** + * 查询成品入库记录详细 + * @param inStockId + */ +export const getPsmInStock = (inStockId: string | number): AxiosPromise => { + return request({ + url: '/wms/psmInStock/' + inStockId, + method: 'get' + }); +}; + +/** + * 新增成品入库记录 + * @param data + */ +export const addPsmInStock = (data: PsmInStockForm) => { + return request({ + url: '/wms/psmInStock', + method: 'post', + data: data + }); +}; + +/** + * 修改成品入库记录 + * @param data + */ +export const updatePsmInStock = (data: PsmInStockForm) => { + return request({ + url: '/wms/psmInStock', + method: 'put', + data: data + }); +}; + +/** + * 删除成品入库记录 + * @param inStockId + */ +export const delPsmInStock = (inStockId: string | number | Array) => { + return request({ + url: '/wms/psmInStock/' + inStockId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询成品入库记录列表 + * @param query + * @returns {*} + */ +export function getWmsPsmInStockList (query) { + return request({ + url: '/wms/psmInStock/getWmsPsmInStockList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/psmInStock/types.ts b/src/api/wms/psmInStock/types.ts new file mode 100644 index 0000000..3d38bfb --- /dev/null +++ b/src/api/wms/psmInStock/types.ts @@ -0,0 +1,166 @@ +export interface PsmInStockVO { + /** + * 表主键 + */ + inStockId: string | number; + + /** + * 入库班组 + */ + inClass: string; + + /** + * 入库班次 + */ + inShift: string; + + /** + * 入库数量 + */ + inAmount: number; + + /** + * 仓库名称 + */ + storeName: string; + + /** + * 库位条码 + */ + storePlaceCode: string; + + /** + * 工装条码 + */ + toolingBarcode: string; + + /** + * 物料ID + */ + materialId: string | number; + + /** + * 轮胎规格 + */ + materialSpe: string; + + /** + * 品级编号 + */ + checkGradeCode: string; + +} + +export interface PsmInStockForm extends BaseEntity { + /** + * 表主键 + */ + inStockId?: string | number; + + /** + * 入库班组 + */ + inClass?: string; + + /** + * 入库班次 + */ + inShift?: string; + + /** + * 入库数量 + */ + inAmount?: number; + + /** + * 仓库名称 + */ + storeName?: string; + + /** + * 库位条码 + */ + storePlaceCode?: string; + + /** + * 工装条码 + */ + toolingBarcode?: string; + + /** + * 物料ID + */ + materialId?: string | number; + + /** + * 轮胎规格 + */ + materialSpe?: string; + + /** + * 品级编号 + */ + checkGradeCode?: string; + +} + +export interface PsmInStockQuery extends PageQuery { + + /** + * 表主键 + */ + inStockId?: string | number; + + /** + * 入库班组 + */ + inClass?: string; + + /** + * 入库班次 + */ + inShift?: string; + + /** + * 入库数量 + */ + inAmount?: number; + + /** + * 仓库名称 + */ + storeName?: string; + + /** + * 库位条码 + */ + storePlaceCode?: string; + + /** + * 工装条码 + */ + toolingBarcode?: string; + + /** + * 物料ID + */ + materialId?: string | number; + + /** + * 轮胎规格 + */ + materialSpe?: string; + + /** + * 品级编号 + */ + checkGradeCode?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/wms/psmInStockDetail/index.ts b/src/api/wms/psmInStockDetail/index.ts new file mode 100644 index 0000000..86270a8 --- /dev/null +++ b/src/api/wms/psmInStockDetail/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { PsmInStockDetailVO, PsmInStockDetailForm, PsmInStockDetailQuery } from '@/api/wms/psmInStockDetail/types'; + +/** + * 查询成品入库列表 + * @param query + * @returns {*} + */ + +export const listPsmInStockDetail = (query?: PsmInStockDetailQuery): AxiosPromise => { + return request({ + url: '/wms/psmInStockDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询成品入库详细 + * @param objid + */ +export const getPsmInStockDetail = (objid: string | number): AxiosPromise => { + return request({ + url: '/wms/psmInStockDetail/' + objid, + method: 'get' + }); +}; + +/** + * 新增成品入库 + * @param data + */ +export const addPsmInStockDetail = (data: PsmInStockDetailForm) => { + return request({ + url: '/wms/psmInStockDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改成品入库 + * @param data + */ +export const updatePsmInStockDetail = (data: PsmInStockDetailForm) => { + return request({ + url: '/wms/psmInStockDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除成品入库 + * @param objid + */ +export const delPsmInStockDetail = (objid: string | number | Array) => { + return request({ + url: '/wms/psmInStockDetail/' + objid, + method: 'delete' + }); +}; + + +/** + * 下拉框查询成品入库列表 + * @param query + * @returns {*} + */ +export function getWmsPsmInStockDetailList (query) { + return request({ + url: '/wms/psmInStockDetail/getWmsPsmInStockDetailList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/psmInStockDetail/types.ts b/src/api/wms/psmInStockDetail/types.ts new file mode 100644 index 0000000..05b6ab2 --- /dev/null +++ b/src/api/wms/psmInStockDetail/types.ts @@ -0,0 +1,106 @@ +export interface PsmInStockDetailVO { + /** + * 主键 + */ + objid: string | number; + + /** + * 外键关联in_load表主键id + */ + inStockId: string | number; + + /** + * 物料id + */ + materialId: string | number; + + /** + * 物料规格 + */ + materialSpe: string; + + /** + * 硫化条码 + */ + tyreNo: string; + + /** + * 品级编号 + */ + checkGradeCode: string; + +} + +export interface PsmInStockDetailForm extends BaseEntity { + /** + * 主键 + */ + objid?: string | number; + + /** + * 外键关联in_load表主键id + */ + inStockId?: string | number; + + /** + * 物料id + */ + materialId?: string | number; + + /** + * 物料规格 + */ + materialSpe?: string; + + /** + * 硫化条码 + */ + tyreNo?: string; + + /** + * 品级编号 + */ + checkGradeCode?: string; + +} + +export interface PsmInStockDetailQuery extends PageQuery { + + /** + * 主键 + */ + objid?: string | number; + + /** + * 外键关联in_load表主键id + */ + inStockId?: string | number; + + /** + * 物料id + */ + materialId?: string | number; + + /** + * 物料规格 + */ + materialSpe?: string; + + /** + * 硫化条码 + */ + tyreNo?: string; + + /** + * 品级编号 + */ + checkGradeCode?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/router/index.ts b/src/router/index.ts index a92cb78..ddd94f9 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -131,6 +131,20 @@ export const constantRoutes: RouteRecordRaw[] = [ } ] }, + { + path: '/wms', + component: Layout, + redirect: '/index', + children: [ + { + path: 'psmInStockDetail', + component: () => import('@/views/wms/psmInStockDetail/index.vue'), + name: 'psmInStockDetail', + meta: { title: '成品入库明细', icon: 'dashboard' }, + hidden: true + } + ] + }, { path: '/user', component: Layout, diff --git a/src/views/wms/psmInStock/index.vue b/src/views/wms/psmInStock/index.vue new file mode 100644 index 0000000..7506536 --- /dev/null +++ b/src/views/wms/psmInStock/index.vue @@ -0,0 +1,338 @@ + + + diff --git a/src/views/wms/psmInStockDetail/index.vue b/src/views/wms/psmInStockDetail/index.vue new file mode 100644 index 0000000..a726247 --- /dev/null +++ b/src/views/wms/psmInStockDetail/index.vue @@ -0,0 +1,276 @@ + + +