From 638b7884cdc4ce6f62b7d17921acd2b518fe0a9a Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 7 Jan 2025 16:18:54 +0800 Subject: [PATCH] =?UTF-8?q?update=20add=E5=B7=A5=E8=89=BA=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/baseRoute/index.ts | 77 +++++++ src/api/mes/baseRoute/types.ts | 116 +++++++++++ src/api/mes/baseRouteProcess/index.ts | 77 +++++++ src/api/mes/baseRouteProcess/types.ts | 86 ++++++++ src/views/mes/baseRoute/index.vue | 284 ++++++++++++++++++++++++++ 5 files changed, 640 insertions(+) create mode 100644 src/api/mes/baseRoute/index.ts create mode 100644 src/api/mes/baseRoute/types.ts create mode 100644 src/api/mes/baseRouteProcess/index.ts create mode 100644 src/api/mes/baseRouteProcess/types.ts create mode 100644 src/views/mes/baseRoute/index.vue diff --git a/src/api/mes/baseRoute/index.ts b/src/api/mes/baseRoute/index.ts new file mode 100644 index 0000000..6bdf79b --- /dev/null +++ b/src/api/mes/baseRoute/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseRouteVO, BaseRouteForm, BaseRouteQuery } from '@/api/mes/baseRoute/types'; + +/** + * 查询工艺路线列表 + * @param query + * @returns {*} + */ + +export const listBaseRoute = (query?: BaseRouteQuery): AxiosPromise => { + return request({ + url: '/mes/baseRoute/list', + method: 'get', + params: query + }); +}; + +/** + * 查询工艺路线详细 + * @param routeId + */ +export const getBaseRoute = (routeId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseRoute/' + routeId, + method: 'get' + }); +}; + +/** + * 新增工艺路线 + * @param data + */ +export const addBaseRoute = (data: BaseRouteForm) => { + return request({ + url: '/mes/baseRoute', + method: 'post', + data: data + }); +}; + +/** + * 修改工艺路线 + * @param data + */ +export const updateBaseRoute = (data: BaseRouteForm) => { + return request({ + url: '/mes/baseRoute', + method: 'put', + data: data + }); +}; + +/** + * 删除工艺路线 + * @param routeId + */ +export const delBaseRoute = (routeId: string | number | Array) => { + return request({ + url: '/mes/baseRoute/' + routeId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询工艺路线列表 + * @param query + * @returns {*} + */ +export function getBaseRouteList(query) { + return request({ + url: '/mes/baseRoute/getBaseRouteList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/baseRoute/types.ts b/src/api/mes/baseRoute/types.ts new file mode 100644 index 0000000..1981220 --- /dev/null +++ b/src/api/mes/baseRoute/types.ts @@ -0,0 +1,116 @@ +export interface BaseRouteVO { + /** + * 工艺路线ID + */ + routeId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 工艺路线名称 + */ + routeName: string; + + /** + * 工艺路线说明 + */ + routeDesc: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface BaseRouteForm extends BaseEntity { + /** + * 工艺路线ID + */ + routeId?: string | number; + + /** + * 工艺路线名称 + */ + routeName?: string; + + /** + * 工艺路线说明 + */ + routeDesc?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface BaseRouteQuery extends PageQuery { + + /** + * 工艺路线ID + */ + routeId?: string | number; + + /** + * 工艺路线名称 + */ + routeName?: string; + + /** + * 工艺路线说明 + */ + routeDesc?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/baseRouteProcess/index.ts b/src/api/mes/baseRouteProcess/index.ts new file mode 100644 index 0000000..9826a90 --- /dev/null +++ b/src/api/mes/baseRouteProcess/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseRouteProcessVO, BaseRouteProcessForm, BaseRouteProcessQuery } from '@/api/mes/baseRouteProcess/types'; + +/** + * 查询工艺路线组成信息列表 + * @param query + * @returns {*} + */ + +export const listBaseRouteProcess = (query?: BaseRouteProcessQuery): AxiosPromise => { + return request({ + url: '/mes/baseRouteProcess/list', + method: 'get', + params: query + }); +}; + +/** + * 查询工艺路线组成信息详细 + * @param routeProcessId + */ +export const getBaseRouteProcess = (routeProcessId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseRouteProcess/' + routeProcessId, + method: 'get' + }); +}; + +/** + * 新增工艺路线组成信息 + * @param data + */ +export const addBaseRouteProcess = (data: BaseRouteProcessForm) => { + return request({ + url: '/mes/baseRouteProcess', + method: 'post', + data: data + }); +}; + +/** + * 修改工艺路线组成信息 + * @param data + */ +export const updateBaseRouteProcess = (data: BaseRouteProcessForm) => { + return request({ + url: '/mes/baseRouteProcess', + method: 'put', + data: data + }); +}; + +/** + * 删除工艺路线组成信息 + * @param routeProcessId + */ +export const delBaseRouteProcess = (routeProcessId: string | number | Array) => { + return request({ + url: '/mes/baseRouteProcess/' + routeProcessId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询工艺路线组成信息列表 + * @param query + * @returns {*} + */ +export function getBaseRouteProcessList (query) { + return request({ + url: '/mes/baseRouteProcess/getBaseRouteProcessList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/baseRouteProcess/types.ts b/src/api/mes/baseRouteProcess/types.ts new file mode 100644 index 0000000..e30a1ed --- /dev/null +++ b/src/api/mes/baseRouteProcess/types.ts @@ -0,0 +1,86 @@ +export interface BaseRouteProcessVO { + /** + * 工艺路线组成ID + */ + routeProcessId: string | number; + + /** + * 工艺路线ID + */ + routeId: string | number; + + /** + * 工序ID + */ + processId: string | number; + + /** + * 工艺路线顺序 + */ + processOrder: number; + + /** + * 备注 + */ + remark: string; + +} + +export interface BaseRouteProcessForm extends BaseEntity { + /** + * 工艺路线组成ID + */ + routeProcessId?: string | number; + + /** + * 工艺路线ID + */ + routeId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 工艺路线顺序 + */ + processOrder?: number; + + /** + * 备注 + */ + remark?: string; + +} + +export interface BaseRouteProcessQuery extends PageQuery { + + /** + * 工艺路线组成ID + */ + routeProcessId?: string | number; + + /** + * 工艺路线ID + */ + routeId?: string | number; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 工艺路线顺序 + */ + processOrder?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/mes/baseRoute/index.vue b/src/views/mes/baseRoute/index.vue new file mode 100644 index 0000000..6484b2b --- /dev/null +++ b/src/views/mes/baseRoute/index.vue @@ -0,0 +1,284 @@ + + +