From 455c1c14f7474eb599fdc14dffb0975a13825522 Mon Sep 17 00:00:00 2001 From: yinq Date: Mon, 24 Feb 2025 11:28:37 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=B7=BB=E5=8A=A0=E6=A8=A1=E5=85=B7?= =?UTF-8?q?=E6=8D=A2=E6=A8=A1=E8=AE=A1=E5=88=92=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8D=A2=E6=A8=A1=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/mouldChangePlan/index.ts | 77 ++++ src/api/mes/mouldChangePlan/types.ts | 186 +++++++++ src/views/mes/mouldChangePlan/index.vue | 504 ++++++++++++++++++++++++ src/views/mes/planInfo/addPlan.vue | 420 ++++++++++++++++++++ 4 files changed, 1187 insertions(+) create mode 100644 src/api/mes/mouldChangePlan/index.ts create mode 100644 src/api/mes/mouldChangePlan/types.ts create mode 100644 src/views/mes/mouldChangePlan/index.vue create mode 100644 src/views/mes/planInfo/addPlan.vue diff --git a/src/api/mes/mouldChangePlan/index.ts b/src/api/mes/mouldChangePlan/index.ts new file mode 100644 index 0000000..31613e6 --- /dev/null +++ b/src/api/mes/mouldChangePlan/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MouldChangePlanVO, MouldChangePlanForm, MouldChangePlanQuery } from '@/api/mes/mouldChangePlan/types'; + +/** + * 查询模具换模计划列表 + * @param query + * @returns {*} + */ + +export const listMouldChangePlan = (query?: MouldChangePlanQuery): AxiosPromise => { + return request({ + url: '/mes/mouldChangePlan/list', + method: 'get', + params: query + }); +}; + +/** + * 查询模具换模计划详细 + * @param mouldChangePlanId + */ +export const getMouldChangePlan = (mouldChangePlanId: string | number): AxiosPromise => { + return request({ + url: '/mes/mouldChangePlan/' + mouldChangePlanId, + method: 'get' + }); +}; + +/** + * 新增模具换模计划 + * @param data + */ +export const addMouldChangePlan = (data: MouldChangePlanForm) => { + return request({ + url: '/mes/mouldChangePlan', + method: 'post', + data: data + }); +}; + +/** + * 修改模具换模计划 + * @param data + */ +export const updateMouldChangePlan = (data: MouldChangePlanForm) => { + return request({ + url: '/mes/mouldChangePlan', + method: 'put', + data: data + }); +}; + +/** + * 删除模具换模计划 + * @param mouldChangePlanId + */ +export const delMouldChangePlan = (mouldChangePlanId: string | number | Array) => { + return request({ + url: '/mes/mouldChangePlan/' + mouldChangePlanId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询模具换模计划列表 + * @param query + * @returns {*} + */ +export function getProdMouldChangePlanList(query) { + return request({ + url: '/mes/mouldChangePlan/getProdMouldChangePlanList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/mouldChangePlan/types.ts b/src/api/mes/mouldChangePlan/types.ts new file mode 100644 index 0000000..0f4e131 --- /dev/null +++ b/src/api/mes/mouldChangePlan/types.ts @@ -0,0 +1,186 @@ +export interface MouldChangePlanVO { + /** + * 主键标识 + */ + mouldChangePlanId: string | number; + + /** + * 生产计划ID + */ + planId: string | number; + + /** + * 计划时间 + */ + planDate: string; + + /** + * 班次ID + */ + shiftId: string | number; + + /** + * 模具ID + */ + mouldId: string | number; + + /** + * 物料ID;成品ID + */ + materialId: string | number; + + /** + * 机台ID + */ + machineId: string | number; + + /** + * 模号(L左模 R右模) + */ + modelCode: string; + + /** + * 计划状态(0未执行 1已执行) + */ + planStatus: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface MouldChangePlanForm extends BaseEntity { + /** + * 主键标识 + */ + mouldChangePlanId?: string | number; + + /** + * 生产计划ID + */ + planId?: string | number; + + /** + * 计划时间 + */ + planDate?: string; + + /** + * 班次ID + */ + shiftId?: string | number; + + /** + * 模具ID + */ + mouldId?: string | number; + + /** + * 物料ID;成品ID + */ + materialId?: string | number; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 模号(L左模 R右模) + */ + modelCode?: string; + + /** + * 计划状态(0未执行 1已执行) + */ + planStatus?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface MouldChangePlanQuery extends PageQuery { + + /** + * 主键标识 + */ + mouldChangePlanId?: string | number; + + /** + * 生产计划ID + */ + planId?: string | number; + + /** + * 计划时间 + */ + planDate?: string; + + /** + * 班次ID + */ + shiftId?: string | number; + + /** + * 模具ID + */ + mouldId?: string | number; + + /** + * 物料ID;成品ID + */ + materialId?: string | number; + + /** + * 机台ID + */ + machineId?: string | number; + + /** + * 模号(L左模 R右模) + */ + modelCode?: string; + + /** + * 计划状态(0未执行 1已执行) + */ + planStatus?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/mes/mouldChangePlan/index.vue b/src/views/mes/mouldChangePlan/index.vue new file mode 100644 index 0000000..67093f5 --- /dev/null +++ b/src/views/mes/mouldChangePlan/index.vue @@ -0,0 +1,504 @@ + + + diff --git a/src/views/mes/planInfo/addPlan.vue b/src/views/mes/planInfo/addPlan.vue new file mode 100644 index 0000000..2d072b6 --- /dev/null +++ b/src/views/mes/planInfo/addPlan.vue @@ -0,0 +1,420 @@ + + +