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