From b8dbe52745cf670fa7405ecf6f70a1552af73b63 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 6 Mar 2025 16:37:14 +0800 Subject: [PATCH] =?UTF-8?q?update=20add=E7=94=9F=E4=BA=A7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/productPlanDetail/index.ts | 77 ++++ src/api/mes/productPlanDetail/types.ts | 433 ++++++++++++++++++ src/views/mes/productPlanDetail/index.vue | 525 ++++++++++++++++++++++ 3 files changed, 1035 insertions(+) create mode 100644 src/api/mes/productPlanDetail/index.ts create mode 100644 src/api/mes/productPlanDetail/types.ts create mode 100644 src/views/mes/productPlanDetail/index.vue diff --git a/src/api/mes/productPlanDetail/index.ts b/src/api/mes/productPlanDetail/index.ts new file mode 100644 index 0000000..e4d147c --- /dev/null +++ b/src/api/mes/productPlanDetail/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProductPlanDetailVO, ProductPlanDetailForm, ProductPlanDetailQuery } from '@/api/mes/productPlanDetail/types'; + +/** + * 查询生产信息列表 + * @param query + * @returns {*} + */ + +export const listProductPlanDetail = (query?: ProductPlanDetailQuery): AxiosPromise => { + return request({ + url: '/mes/productPlanDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询生产信息详细 + * @param planDetailId + */ +export const getProductPlanDetail = (planDetailId: string | number, workshopId: string | number): AxiosPromise => { + return request({ + url: '/mes/productPlanDetail/' + planDetailId + '/' + workshopId, + method: 'get' + }); +}; + +/** + * 新增生产信息 + * @param data + */ +export const addProductPlanDetail = (data: ProductPlanDetailForm) => { + return request({ + url: '/mes/productPlanDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改生产信息 + * @param data + */ +export const updateProductPlanDetail = (data: ProductPlanDetailForm) => { + return request({ + url: '/mes/productPlanDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除生产信息 + * @param planDetailId + */ +export const delProductPlanDetail = (planDetailId: string | number | Array) => { + return request({ + url: '/mes/productPlanDetail/' + planDetailId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询生产信息列表 + * @param query + * @returns {*} + */ +export function getProdProductPlanDetailList(query) { + return request({ + url: '/mes/productPlanDetail/getProdProductPlanDetailList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/productPlanDetail/types.ts b/src/api/mes/productPlanDetail/types.ts new file mode 100644 index 0000000..e89848e --- /dev/null +++ b/src/api/mes/productPlanDetail/types.ts @@ -0,0 +1,433 @@ +export interface ProductPlanDetailVO { + /** + * 主键标识 + */ + planDetailId: string | number; + + /** + * 明细编号 + */ + planDetailCode: string; + + /** + * 生产计划ID + */ + planId: string | number; + + /** + * 计划编号 + */ + planCode: string; + + /** + * 操作人员ID;多个人,分隔 + */ + userId: string | number; + + /** + * 操作人员名称;多个人,分隔 + */ + userName: string; + + /** + * 班次ID + */ + classesId: string | number; + + /** + * 班组ID + */ + teamId: string | number; + + /** + * 完成数量 + */ + completeAmount: number; + + /** + * 单位ID + */ + unitId: string | number; + + /** + * 单位名称 + */ + unitName: string; + + /** + * 实际开始时间 + */ + realBeginTime: string; + + /** + * 实际完成时间 + */ + realEndTime: string; + + /** + * 附件信息 + */ + attachId: string | number; + + /** + * 物料条码 + */ + materialBarcode: string; + + /** + * 流转条码;条形码 + */ + returnBarcode: string; + + /** + * 车次(顺序) + */ + trainNumber: number; + + /** + * 工装ID;托盘ID;台车ID + */ + toolingId: string | number; + + /** + * 胶囊ID + */ + capsuleId: string | number; + + /** + * 接班ID + */ + shiftChangeId: string | number; + + /** + * 半制品明细ID + */ + sfpDetailId: string | number; + + /** + * 成型明细ID + */ + formingDetailId: string | number; + + /** + * 硫化明细ID + */ + vulDetailId: string | number; + + /** + * 明细状态(1未开始 2已开始 3已完成 9异常完成) + */ + planDetailStatus: string; + + /** + * 首件标识(1是 0否) + */ + firstFlag: string; + + /** + * 报警胎标识(1是 0否) + */ + alarmFlag: string; + + /** + * 补录标识(1是 0否) + */ + suppleFlag: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface ProductPlanDetailForm extends BaseEntity { + /** + * 主键标识 + */ + planDetailId?: string | number; + + /** + * 明细编号 + */ + planDetailCode?: string; + + /** + * 生产计划ID + */ + planId?: string | number; + + /** + * 计划编号 + */ + planCode?: string; + + /** + * 操作人员ID;多个人,分隔 + */ + userId?: string | number; + + /** + * 操作人员名称;多个人,分隔 + */ + userName?: string; + + /** + * 班次ID + */ + classesId?: string | number; + + /** + * 班组ID + */ + teamId?: string | number; + + /** + * 完成数量 + */ + completeAmount?: number; + + /** + * 单位ID + */ + unitId?: string | number; + + /** + * 单位名称 + */ + unitName?: string; + + /** + * 实际开始时间 + */ + realBeginTime?: string; + + /** + * 实际完成时间 + */ + realEndTime?: string; + + /** + * 附件信息 + */ + attachId?: string | number; + + /** + * 物料条码 + */ + materialBarcode?: string; + + /** + * 流转条码;条形码 + */ + returnBarcode?: string; + + /** + * 车次(顺序) + */ + trainNumber?: number; + + /** + * 工装ID;托盘ID;台车ID + */ + toolingId?: string | number; + + /** + * 胶囊ID + */ + capsuleId?: string | number; + + /** + * 接班ID + */ + shiftChangeId?: string | number; + + /** + * 半制品明细ID + */ + sfpDetailId?: string | number; + + /** + * 成型明细ID + */ + formingDetailId?: string | number; + + /** + * 硫化明细ID + */ + vulDetailId?: string | number; + + /** + * 明细状态(1未开始 2已开始 3已完成 9异常完成) + */ + planDetailStatus?: string; + + /** + * 首件标识(1是 0否) + */ + firstFlag?: string; + + /** + * 报警胎标识(1是 0否) + */ + alarmFlag?: string; + + /** + * 补录标识(1是 0否) + */ + suppleFlag?: string; + + /** + * 备注 + */ + remark?: string; + + workshopId?: string | number; + +} + +export interface ProductPlanDetailQuery extends PageQuery { + + /** + * 主键标识 + */ + planDetailId?: string | number; + + /** + * 明细编号 + */ + planDetailCode?: string; + + /** + * 生产计划ID + */ + planId?: string | number; + + /** + * 计划编号 + */ + planCode?: string; + + /** + * 操作人员ID;多个人,分隔 + */ + userId?: string | number; + + /** + * 操作人员名称;多个人,分隔 + */ + userName?: string; + + /** + * 班次ID + */ + classesId?: string | number; + + /** + * 班组ID + */ + teamId?: string | number; + + /** + * 完成数量 + */ + completeAmount?: number; + + /** + * 单位ID + */ + unitId?: string | number; + + /** + * 单位名称 + */ + unitName?: string; + + /** + * 实际开始时间 + */ + realBeginTime?: string; + + /** + * 实际完成时间 + */ + realEndTime?: string; + + /** + * 附件信息 + */ + attachId?: string | number; + + /** + * 物料条码 + */ + materialBarcode?: string; + + /** + * 流转条码;条形码 + */ + returnBarcode?: string; + + /** + * 车次(顺序) + */ + trainNumber?: number; + + /** + * 工装ID;托盘ID;台车ID + */ + toolingId?: string | number; + + /** + * 胶囊ID + */ + capsuleId?: string | number; + + /** + * 接班ID + */ + shiftChangeId?: string | number; + + /** + * 半制品明细ID + */ + sfpDetailId?: string | number; + + /** + * 成型明细ID + */ + formingDetailId?: string | number; + + /** + * 硫化明细ID + */ + vulDetailId?: string | number; + + /** + * 明细状态(1未开始 2已开始 3已完成 9异常完成) + */ + planDetailStatus?: string; + + /** + * 首件标识(1是 0否) + */ + firstFlag?: string; + + /** + * 报警胎标识(1是 0否) + */ + alarmFlag?: string; + + /** + * 补录标识(1是 0否) + */ + suppleFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/mes/productPlanDetail/index.vue b/src/views/mes/productPlanDetail/index.vue new file mode 100644 index 0000000..ba197d1 --- /dev/null +++ b/src/views/mes/productPlanDetail/index.vue @@ -0,0 +1,525 @@ + + +