From cdc318c98f1122aa7065fe209404f510a472ab1c Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 5 Mar 2025 21:22:04 +0800 Subject: [PATCH] =?UTF-8?q?add(mes):=20=E6=B7=BB=E5=8A=A0=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E6=8A=95=E5=85=A5=E5=92=8C=E4=BA=A7=E5=87=BA=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增生产投入扫描信息模块,包括列表、新增、修改、删除等功能- 新增生产产出扫描信息模块,包括列表、新增、修改、删除等功能 - 实现了与后端 API 的交互,支持数据查询和操作 - 添加了下拉框选项数据的获取和展示 - 优化了用户界面,支持搜索、分页、导出等功能 --- src/api/mes/prodInputScanInfo/index.ts | 77 +++++ src/api/mes/prodInputScanInfo/types.ts | 161 +++++++++ src/api/mes/prodOutputScanInfo/index.ts | 77 +++++ src/api/mes/prodOutputScanInfo/types.ts | 146 ++++++++ src/api/mes/prodShiftChange/index.ts | 77 +++++ src/api/mes/prodShiftChange/types.ts | 131 ++++++++ src/views/mes/prodInputScanInfo/index.vue | 354 ++++++++++++++++++++ src/views/mes/prodOutputScanInfo/index.vue | 355 ++++++++++++++++++++ src/views/mes/prodShiftChange/index.vue | 366 +++++++++++++++++++++ 9 files changed, 1744 insertions(+) create mode 100644 src/api/mes/prodInputScanInfo/index.ts create mode 100644 src/api/mes/prodInputScanInfo/types.ts create mode 100644 src/api/mes/prodOutputScanInfo/index.ts create mode 100644 src/api/mes/prodOutputScanInfo/types.ts create mode 100644 src/api/mes/prodShiftChange/index.ts create mode 100644 src/api/mes/prodShiftChange/types.ts create mode 100644 src/views/mes/prodInputScanInfo/index.vue create mode 100644 src/views/mes/prodOutputScanInfo/index.vue create mode 100644 src/views/mes/prodShiftChange/index.vue diff --git a/src/api/mes/prodInputScanInfo/index.ts b/src/api/mes/prodInputScanInfo/index.ts new file mode 100644 index 0000000..3d02dbd --- /dev/null +++ b/src/api/mes/prodInputScanInfo/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProdInputScanInfoVO, ProdInputScanInfoForm, ProdInputScanInfoQuery } from '@/api/mes/prodInputScanInfo/types'; + +/** + * 查询生产投入扫描信息列表 + * @param query + * @returns {*} + */ + +export const listProdInputScanInfo = (query?: ProdInputScanInfoQuery): AxiosPromise => { + return request({ + url: '/mes/prodInputScanInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询生产投入扫描信息详细 + * @param prodInputScanInfoId + */ +export const getProdInputScanInfo = (prodInputScanInfoId: string | number): AxiosPromise => { + return request({ + url: '/mes/prodInputScanInfo/' + prodInputScanInfoId, + method: 'get' + }); +}; + +/** + * 新增生产投入扫描信息 + * @param data + */ +export const addProdInputScanInfo = (data: ProdInputScanInfoForm) => { + return request({ + url: '/mes/prodInputScanInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改生产投入扫描信息 + * @param data + */ +export const updateProdInputScanInfo = (data: ProdInputScanInfoForm) => { + return request({ + url: '/mes/prodInputScanInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除生产投入扫描信息 + * @param prodInputScanInfoId + */ +export const delProdInputScanInfo = (prodInputScanInfoId: string | number | Array) => { + return request({ + url: '/mes/prodInputScanInfo/' + prodInputScanInfoId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询生产投入扫描信息列表 + * @param query + * @returns {*} + */ +export function getProdInputScanInfoList (query) { + return request({ + url: '/mes/prodInputScanInfo/getProdInputScanInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/prodInputScanInfo/types.ts b/src/api/mes/prodInputScanInfo/types.ts new file mode 100644 index 0000000..615fabc --- /dev/null +++ b/src/api/mes/prodInputScanInfo/types.ts @@ -0,0 +1,161 @@ +export interface ProdInputScanInfoVO { + /** + * 主键标识 + */ + prodInputScanInfoId: string | number; + + /** + * 工序ID + */ + processId: string | number; + + /** + * 机台ID + */ + machineId: string | number; + + /** + * 硫化条码 + */ + vulcanizedBarcode: string; + + /** + * 胎胚条码 + */ + embryoBarcode: string; + + /** + * 生产工具 + */ + toolId: string | number; + + /** + * 物料ID + */ + materielId: string | number; + + /** + * 扫描结果 + */ + scanResult: string; + + /** + * 记录人名称 + */ + userName: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface ProdInputScanInfoForm extends BaseEntity { + /** + * 主键标识 + */ + prodInputScanInfoId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 硫化条码 + */ + vulcanizedBarcode?: string; + + /** + * 胎胚条码 + */ + embryoBarcode?: string; + + /** + * 生产工具 + */ + toolId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 扫描结果 + */ + scanResult?: string; + + /** + * 记录人名称 + */ + userName?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface ProdInputScanInfoQuery extends PageQuery { + + /** + * 主键标识 + */ + prodInputScanInfoId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 硫化条码 + */ + vulcanizedBarcode?: string; + + /** + * 胎胚条码 + */ + embryoBarcode?: string; + + /** + * 生产工具 + */ + toolId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 扫描结果 + */ + scanResult?: string; + + /** + * 记录人名称 + */ + userName?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/prodOutputScanInfo/index.ts b/src/api/mes/prodOutputScanInfo/index.ts new file mode 100644 index 0000000..fb89169 --- /dev/null +++ b/src/api/mes/prodOutputScanInfo/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProdOutputScanInfoVO, ProdOutputScanInfoForm, ProdOutputScanInfoQuery } from '@/api/mes/prodOutputScanInfo/types'; + +/** + * 查询生产产出扫描信息列表 + * @param query + * @returns {*} + */ + +export const listProdOutputScanInfo = (query?: ProdOutputScanInfoQuery): AxiosPromise => { + return request({ + url: '/mes/prodOutputScanInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询生产产出扫描信息详细 + * @param prodOutputScanInfoId + */ +export const getProdOutputScanInfo = (prodOutputScanInfoId: string | number): AxiosPromise => { + return request({ + url: '/mes/prodOutputScanInfo/' + prodOutputScanInfoId, + method: 'get' + }); +}; + +/** + * 新增生产产出扫描信息 + * @param data + */ +export const addProdOutputScanInfo = (data: ProdOutputScanInfoForm) => { + return request({ + url: '/mes/prodOutputScanInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改生产产出扫描信息 + * @param data + */ +export const updateProdOutputScanInfo = (data: ProdOutputScanInfoForm) => { + return request({ + url: '/mes/prodOutputScanInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除生产产出扫描信息 + * @param prodOutputScanInfoId + */ +export const delProdOutputScanInfo = (prodOutputScanInfoId: string | number | Array) => { + return request({ + url: '/mes/prodOutputScanInfo/' + prodOutputScanInfoId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询生产产出扫描信息列表 + * @param query + * @returns {*} + */ +export function getProdOutputScanInfoList (query) { + return request({ + url: '/mes/prodOutputScanInfo/getProdOutputScanInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/prodOutputScanInfo/types.ts b/src/api/mes/prodOutputScanInfo/types.ts new file mode 100644 index 0000000..d75fd80 --- /dev/null +++ b/src/api/mes/prodOutputScanInfo/types.ts @@ -0,0 +1,146 @@ +export interface ProdOutputScanInfoVO { + /** + * 主键标识 + */ + prodOutputScanInfoId: string | number; + + /** + * 工序ID + */ + processId: string | number; + + /** + * 机台ID + */ + machineId: string | number; + + /** + * 胎胚条码 + */ + embryoBarcode: string; + + /** + * 工装ID + */ + toolingId: string | number; + + /** + * 物料ID + */ + materielId: string | number; + + /** + * 扫描结果 + */ + scanResult: string; + + /** + * 记录人名称 + */ + userName: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface ProdOutputScanInfoForm extends BaseEntity { + /** + * 主键标识 + */ + prodOutputScanInfoId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 胎胚条码 + */ + embryoBarcode?: string; + + /** + * 工装ID + */ + toolingId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 扫描结果 + */ + scanResult?: string; + + /** + * 记录人名称 + */ + userName?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface ProdOutputScanInfoQuery extends PageQuery { + + /** + * 主键标识 + */ + prodOutputScanInfoId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 胎胚条码 + */ + embryoBarcode?: string; + + /** + * 工装ID + */ + toolingId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 扫描结果 + */ + scanResult?: string; + + /** + * 记录人名称 + */ + userName?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/prodShiftChange/index.ts b/src/api/mes/prodShiftChange/index.ts new file mode 100644 index 0000000..8498d4a --- /dev/null +++ b/src/api/mes/prodShiftChange/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProdShiftChangeVO, ProdShiftChangeForm, ProdShiftChangeQuery } from '@/api/mes/prodShiftChange/types'; + +/** + * 查询交接班信息列表 + * @param query + * @returns {*} + */ + +export const listProdShiftChange = (query?: ProdShiftChangeQuery): AxiosPromise => { + return request({ + url: '/mes/prodShiftChange/list', + method: 'get', + params: query + }); +}; + +/** + * 查询交接班信息详细 + * @param shiftChangeId + */ +export const getProdShiftChange = (shiftChangeId: string | number): AxiosPromise => { + return request({ + url: '/mes/prodShiftChange/' + shiftChangeId, + method: 'get' + }); +}; + +/** + * 新增交接班信息 + * @param data + */ +export const addProdShiftChange = (data: ProdShiftChangeForm) => { + return request({ + url: '/mes/prodShiftChange', + method: 'post', + data: data + }); +}; + +/** + * 修改交接班信息 + * @param data + */ +export const updateProdShiftChange = (data: ProdShiftChangeForm) => { + return request({ + url: '/mes/prodShiftChange', + method: 'put', + data: data + }); +}; + +/** + * 删除交接班信息 + * @param shiftChangeId + */ +export const delProdShiftChange = (shiftChangeId: string | number | Array) => { + return request({ + url: '/mes/prodShiftChange/' + shiftChangeId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询交接班信息列表 + * @param query + * @returns {*} + */ +export function getProdShiftChangeList (query) { + return request({ + url: '/mes/prodShiftChange/getProdShiftChangeList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/prodShiftChange/types.ts b/src/api/mes/prodShiftChange/types.ts new file mode 100644 index 0000000..2db59dc --- /dev/null +++ b/src/api/mes/prodShiftChange/types.ts @@ -0,0 +1,131 @@ +export interface ProdShiftChangeVO { + /** + * 主键标识 + */ + shiftChangeId: string | number; + + /** + * 接班时间 + */ + shiftChangeTime: string; + + /** + * 机台ID + */ + machineId: string | number; + + /** + * 班次ID + */ + shiftId: string | number; + + /** + * 班组ID + */ + classTeamId: string | number; + + /** + * 接班人ID + */ + userId: string | number; + + /** + * 接班人名称 + */ + userName: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface ProdShiftChangeForm extends BaseEntity { + /** + * 主键标识 + */ + shiftChangeId?: string | number; + + /** + * 接班时间 + */ + shiftChangeTime?: string; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 班次ID + */ + shiftId?: string | number; + + /** + * 班组ID + */ + classTeamId?: string | number; + + /** + * 接班人ID + */ + userId?: string | number; + + /** + * 接班人名称 + */ + userName?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface ProdShiftChangeQuery extends PageQuery { + + /** + * 主键标识 + */ + shiftChangeId?: string | number; + + /** + * 接班时间 + */ + shiftChangeTime?: string; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 班次ID + */ + shiftId?: string | number; + + /** + * 班组ID + */ + classTeamId?: string | number; + + /** + * 接班人ID + */ + userId?: string | number; + + /** + * 接班人名称 + */ + userName?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/mes/prodInputScanInfo/index.vue b/src/views/mes/prodInputScanInfo/index.vue new file mode 100644 index 0000000..afdffba --- /dev/null +++ b/src/views/mes/prodInputScanInfo/index.vue @@ -0,0 +1,354 @@ + + + diff --git a/src/views/mes/prodOutputScanInfo/index.vue b/src/views/mes/prodOutputScanInfo/index.vue new file mode 100644 index 0000000..5990a37 --- /dev/null +++ b/src/views/mes/prodOutputScanInfo/index.vue @@ -0,0 +1,355 @@ + + + diff --git a/src/views/mes/prodShiftChange/index.vue b/src/views/mes/prodShiftChange/index.vue new file mode 100644 index 0000000..ecea036 --- /dev/null +++ b/src/views/mes/prodShiftChange/index.vue @@ -0,0 +1,366 @@ + + +