diff --git a/.env.prod b/.env.prod index 1a6841b0..7243794d 100644 --- a/.env.prod +++ b/.env.prod @@ -4,7 +4,7 @@ NODE_ENV=production VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://192.168.5.119:48081' +VITE_BASE_URL='http://192.168.5.119:48081' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 VITE_UPLOAD_TYPE=server diff --git a/src/api/mes/task/index.ts b/src/api/mes/task/index.ts index 6ea315de..42eef4f8 100644 --- a/src/api/mes/task/index.ts +++ b/src/api/mes/task/index.ts @@ -43,6 +43,7 @@ export interface TaskDetailVO { arriveDate: Date // 到达时间 barCode: string // 条码 attachment: string // 附件 + taskDetailId: string } // 生产任务单 API export const TaskApi = { diff --git a/src/api/mes/zjproduct/index.ts b/src/api/mes/zjproduct/index.ts new file mode 100644 index 00000000..e928986a --- /dev/null +++ b/src/api/mes/zjproduct/index.ts @@ -0,0 +1,45 @@ +import request from '@/config/axios' + +// 质量管理-质检参数 VO +export interface ZjProductVO { + id: number // ID + type: string // 工序 + name: string // 名称 + unit: string // 单位 + upperVal: number // 上限值 + lowerVal: number // 下限值 + remark: string // 备注 +} + +// 质量管理-质检参数 API +export const ZjProductApi = { + // 查询质量管理-质检参数分页 + getZjProductPage: async (params: any) => { + return await request.get({ url: `/mes/zj-product/page`, params }) + }, + + // 查询质量管理-质检参数详情 + getZjProduct: async (id: number) => { + return await request.get({ url: `/mes/zj-product/get?id=` + id }) + }, + + // 新增质量管理-质检参数 + createZjProduct: async (data: ZjProductVO) => { + return await request.post({ url: `/mes/zj-product/create`, data }) + }, + + // 修改质量管理-质检参数 + updateZjProduct: async (data: ZjProductVO) => { + return await request.put({ url: `/mes/zj-product/update`, data }) + }, + + // 删除质量管理-质检参数 + deleteZjProduct: async (id: number) => { + return await request.delete({ url: `/mes/zj-product/delete?id=` + id }) + }, + + // 导出质量管理-质检参数 Excel + exportZjProduct: async (params) => { + return await request.download({ url: `/mes/zj-product/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/erp/stock/warehouse/WarehouseForm.vue b/src/views/erp/stock/warehouse/WarehouseForm.vue index ea88a18c..597c169d 100644 --- a/src/views/erp/stock/warehouse/WarehouseForm.vue +++ b/src/views/erp/stock/warehouse/WarehouseForm.vue @@ -25,7 +25,7 @@ - + diff --git a/src/views/mes/machine/MachineComponentForm.vue b/src/views/mes/machine/MachineComponentForm.vue index bf33c1de..f166d211 100644 --- a/src/views/mes/machine/MachineComponentForm.vue +++ b/src/views/mes/machine/MachineComponentForm.vue @@ -201,8 +201,8 @@ - - + +