From 8ad096aec81f9dca549002efb806f2bd756164ef Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 21 Jan 2025 16:17:33 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=BA=8F?= =?UTF-8?q?=E5=B7=A5=E8=89=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/technologyInfo/index.ts | 77 ++++ src/api/mes/technologyInfo/types.ts | 146 ++++++++ src/api/mes/technologyStepInfo/index.ts | 81 ++++ src/api/mes/technologyStepInfo/types.ts | 146 ++++++++ src/views/mes/technologyInfo/index.vue | 408 +++++++++++++++++++++ src/views/mes/technologyStepInfo/index.vue | 332 +++++++++++++++++ 6 files changed, 1190 insertions(+) create mode 100644 src/api/mes/technologyInfo/index.ts create mode 100644 src/api/mes/technologyInfo/types.ts create mode 100644 src/api/mes/technologyStepInfo/index.ts create mode 100644 src/api/mes/technologyStepInfo/types.ts create mode 100644 src/views/mes/technologyInfo/index.vue create mode 100644 src/views/mes/technologyStepInfo/index.vue diff --git a/src/api/mes/technologyInfo/index.ts b/src/api/mes/technologyInfo/index.ts new file mode 100644 index 0000000..51b9e3c --- /dev/null +++ b/src/api/mes/technologyInfo/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { TechnologyInfoVO, TechnologyInfoForm, TechnologyInfoQuery } from '@/api/mes/technologyInfo/types'; + +/** + * 查询工序工艺信息列表 + * @param query + * @returns {*} + */ + +export const listTechnologyInfo = (query?: TechnologyInfoQuery): AxiosPromise => { + return request({ + url: '/mes/technologyInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询工序工艺信息详细 + * @param technologyId + */ +export const getTechnologyInfo = (technologyId: string | number): AxiosPromise => { + return request({ + url: '/mes/technologyInfo/' + technologyId, + method: 'get' + }); +}; + +/** + * 新增工序工艺信息 + * @param data + */ +export const addTechnologyInfo = (data: TechnologyInfoForm) => { + return request({ + url: '/mes/technologyInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改工序工艺信息 + * @param data + */ +export const updateTechnologyInfo = (data: TechnologyInfoForm) => { + return request({ + url: '/mes/technologyInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除工序工艺信息 + * @param technologyId + */ +export const delTechnologyInfo = (technologyId: string | number | Array) => { + return request({ + url: '/mes/technologyInfo/' + technologyId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询工序工艺信息列表 + * @param query + * @returns {*} + */ +export function getProdTechnologyInfoList (query) { + return request({ + url: '/mes/technologyInfo/getProdTechnologyInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/technologyInfo/types.ts b/src/api/mes/technologyInfo/types.ts new file mode 100644 index 0000000..e61b07e --- /dev/null +++ b/src/api/mes/technologyInfo/types.ts @@ -0,0 +1,146 @@ +export interface TechnologyInfoVO { + /** + * 主键标识 + */ + technologyId: string | number; + + /** + * 工序ID + */ + processId: string | number; + + /** + * 物料ID + */ + materialId: string | number; + + /** + * 机台类型(1类一 2类二) + */ + machineType: string; + + /** + * 工艺类型(1量产 2限产) + */ + technologyType: string; + + /** + * 工艺版本 + */ + technologyVersion: string; + + /** + * 硫化标准时间(秒) + */ + standardTime: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface TechnologyInfoForm extends BaseEntity { + /** + * 主键标识 + */ + technologyId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 物料ID + */ + materialId?: string | number; + + /** + * 机台类型(1类一 2类二) + */ + machineType?: string; + + /** + * 工艺类型(1量产 2限产) + */ + technologyType?: string; + + /** + * 工艺版本 + */ + technologyVersion?: string; + + /** + * 硫化标准时间(秒) + */ + standardTime?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface TechnologyInfoQuery extends PageQuery { + + /** + * 主键标识 + */ + technologyId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 物料ID + */ + materialId?: string | number; + + /** + * 机台类型(1类一 2类二) + */ + machineType?: string; + + /** + * 工艺类型(1量产 2限产) + */ + technologyType?: string; + + /** + * 工艺版本 + */ + technologyVersion?: string; + + /** + * 硫化标准时间(秒) + */ + standardTime?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/technologyStepInfo/index.ts b/src/api/mes/technologyStepInfo/index.ts new file mode 100644 index 0000000..f7fdf91 --- /dev/null +++ b/src/api/mes/technologyStepInfo/index.ts @@ -0,0 +1,81 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { + TechnologyStepInfoVO, + TechnologyStepInfoForm, + TechnologyStepInfoQuery +} from '@/api/mes/technologyStepInfo/types'; + +/** + * 查询工艺步序信息列表 + * @param query + * @returns {*} + */ + +export const listTechnologyStepInfo = (query?: TechnologyStepInfoQuery): AxiosPromise => { + return request({ + url: '/mes/technologyStepInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询工艺步序信息详细 + * @param stepId + */ +export const getTechnologyStepInfo = (stepId: string | number): AxiosPromise => { + return request({ + url: '/mes/technologyStepInfo/' + stepId, + method: 'get' + }); +}; + +/** + * 新增工艺步序信息 + * @param data + */ +export const addTechnologyStepInfo = (data: TechnologyStepInfoForm) => { + return request({ + url: '/mes/technologyStepInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改工艺步序信息 + * @param data + */ +export const updateTechnologyStepInfo = (data: TechnologyStepInfoForm) => { + return request({ + url: '/mes/technologyStepInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除工艺步序信息 + * @param stepId + */ +export const delTechnologyStepInfo = (stepId: string | number | Array) => { + return request({ + url: '/mes/technologyStepInfo/' + stepId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询工艺步序信息列表 + * @param query + * @returns {*} + */ +export function getProdTechnologyStepInfoList(query) { + return request({ + url: '/mes/technologyStepInfo/getProdTechnologyStepInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/technologyStepInfo/types.ts b/src/api/mes/technologyStepInfo/types.ts new file mode 100644 index 0000000..138527f --- /dev/null +++ b/src/api/mes/technologyStepInfo/types.ts @@ -0,0 +1,146 @@ +export interface TechnologyStepInfoVO { + /** + * 主键标识 + */ + stepId: string | number; + + /** + * 工艺ID + */ + technologyId: string | number; + + /** + * 步序编号 + */ + stepCode: number; + + /** + * 步序名称 + */ + stepName: string; + + /** + * 步序时间(秒) + */ + stepTime: number; + + /** + * 步序参数 + */ + stepParameter: string; + + /** + * 阀门状态 + */ + valueState: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface TechnologyStepInfoForm extends BaseEntity { + /** + * 主键标识 + */ + stepId?: string | number; + + /** + * 工艺ID + */ + technologyId?: string | number; + + /** + * 步序编号 + */ + stepCode?: number; + + /** + * 步序名称 + */ + stepName?: string; + + /** + * 步序时间(秒) + */ + stepTime?: number; + + /** + * 步序参数 + */ + stepParameter?: string; + + /** + * 阀门状态 + */ + valueState?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface TechnologyStepInfoQuery extends PageQuery { + + /** + * 主键标识 + */ + stepId?: string | number; + + /** + * 工艺ID + */ + technologyId?: string | number; + + /** + * 步序编号 + */ + stepCode?: number; + + /** + * 步序名称 + */ + stepName?: string; + + /** + * 步序时间(秒) + */ + stepTime?: number; + + /** + * 步序参数 + */ + stepParameter?: string; + + /** + * 阀门状态 + */ + valueState?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/mes/technologyInfo/index.vue b/src/views/mes/technologyInfo/index.vue new file mode 100644 index 0000000..3898bbc --- /dev/null +++ b/src/views/mes/technologyInfo/index.vue @@ -0,0 +1,408 @@ + + + diff --git a/src/views/mes/technologyStepInfo/index.vue b/src/views/mes/technologyStepInfo/index.vue new file mode 100644 index 0000000..4329a07 --- /dev/null +++ b/src/views/mes/technologyStepInfo/index.vue @@ -0,0 +1,332 @@ + + +