From 50990537e545a8dc9cf60ee96a7c97082095169f Mon Sep 17 00:00:00 2001 From: yinq Date: Mon, 6 Jan 2025 10:51:58 +0800 Subject: [PATCH] =?UTF-8?q?update=20add=E8=BD=A6=E9=97=B4=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/baseFactoryInfo/index.ts | 14 +- src/api/mes/baseWorkshopInfo/index.ts | 62 +++++ src/api/mes/baseWorkshopInfo/types.ts | 131 +++++++++ src/views/mes/baseWorkshopInfo/index.vue | 330 +++++++++++++++++++++++ 4 files changed, 536 insertions(+), 1 deletion(-) create mode 100644 src/api/mes/baseWorkshopInfo/index.ts create mode 100644 src/api/mes/baseWorkshopInfo/types.ts create mode 100644 src/views/mes/baseWorkshopInfo/index.vue diff --git a/src/api/mes/baseFactoryInfo/index.ts b/src/api/mes/baseFactoryInfo/index.ts index bd09d9c..09ee852 100644 --- a/src/api/mes/baseFactoryInfo/index.ts +++ b/src/api/mes/baseFactoryInfo/index.ts @@ -7,7 +7,6 @@ import { BaseFactoryInfoVO, BaseFactoryInfoForm, BaseFactoryInfoQuery } from '@/ * @param query * @returns {*} */ - export const listBaseFactoryInfo = (query?: BaseFactoryInfoQuery): AxiosPromise => { return request({ url: '/mes/baseFactoryInfo/list', @@ -61,3 +60,16 @@ export const delBaseFactoryInfo = (factoryId: string | number | Array => { + return request({ + url: '/mes/baseWorkshopInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询车间信息详细 + * @param workshopId + */ +export const getBaseWorkshopInfo = (workshopId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseWorkshopInfo/' + workshopId, + method: 'get' + }); +}; + +/** + * 新增车间信息 + * @param data + */ +export const addBaseWorkshopInfo = (data: BaseWorkshopInfoForm) => { + return request({ + url: '/mes/baseWorkshopInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改车间信息 + * @param data + */ +export const updateBaseWorkshopInfo = (data: BaseWorkshopInfoForm) => { + return request({ + url: '/mes/baseWorkshopInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除车间信息 + * @param workshopId + */ +export const delBaseWorkshopInfo = (workshopId: string | number | Array) => { + return request({ + url: '/mes/baseWorkshopInfo/' + workshopId, + method: 'delete' + }); +}; diff --git a/src/api/mes/baseWorkshopInfo/types.ts b/src/api/mes/baseWorkshopInfo/types.ts new file mode 100644 index 0000000..ab86e3c --- /dev/null +++ b/src/api/mes/baseWorkshopInfo/types.ts @@ -0,0 +1,131 @@ +export interface BaseWorkshopInfoVO { + /** + * 车间ID + */ + workshopId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 车间编号 + */ + workshopCode: string; + + /** + * 车间名称 + */ + workshopName: string; + + /** + * 所属工厂 + */ + factoryId: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface BaseWorkshopInfoForm extends BaseEntity { + /** + * 车间ID + */ + workshopId?: string | number; + + /** + * 车间编号 + */ + workshopCode?: string; + + /** + * 车间名称 + */ + workshopName?: string; + + /** + * 所属工厂 + */ + factoryId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface BaseWorkshopInfoQuery extends PageQuery { + + /** + * 租户编号 + */ + tenantId?: string | number; + + /** + * 车间编号 + */ + workshopCode?: string; + + /** + * 车间名称 + */ + workshopName?: string; + + /** + * 所属工厂 + */ + factoryId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/mes/baseWorkshopInfo/index.vue b/src/views/mes/baseWorkshopInfo/index.vue new file mode 100644 index 0000000..7d7cafc --- /dev/null +++ b/src/views/mes/baseWorkshopInfo/index.vue @@ -0,0 +1,330 @@ + + +