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 @@ + + +