From 5b547ea6d7a419400aba853d9e59be3dc9490d34 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 29 Feb 2024 14:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=85=BB=E5=AD=90=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=BA=E6=95=B0=E5=92=8C=E9=A2=84=E8=AE=A1?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/device/deviceInspectionMain/index.ts | 1 + src/api/eam/device/deviceMaintainOrderMain/index.ts | 1 + src/api/eam/device/deviceRepair/index.ts | 2 +- .../device/deviceSpotInspectionRecordMain/index.ts | 1 + src/api/eam/mold/moldInspectionMain/index.ts | 1 + src/api/eam/mold/moldMaintainOrderMain/index.ts | 2 ++ src/api/eam/mold/moldMaintainPlan/index.ts | 1 + src/api/eam/mold/moldRepair/index.ts | 2 +- src/views/eam/device/problemSolving/index.vue | 2 +- src/views/eam/mold/moldRepair/moldRepair.data.ts | 11 +++++++++++ 10 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/api/eam/device/deviceInspectionMain/index.ts b/src/api/eam/device/deviceInspectionMain/index.ts index e57dc51..09a4ed9 100644 --- a/src/api/eam/device/deviceInspectionMain/index.ts +++ b/src/api/eam/device/deviceInspectionMain/index.ts @@ -17,6 +17,7 @@ export interface DeviceInspectionMainVO { // 查询检修工单主列表 export const getDeviceInspectionMainPage = async (params) => { + params.type = 'DEVICE' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/eam/device/deviceMaintainOrderMain/index.ts b/src/api/eam/device/deviceMaintainOrderMain/index.ts index 9318977..dbf554e 100644 --- a/src/api/eam/device/deviceMaintainOrderMain/index.ts +++ b/src/api/eam/device/deviceMaintainOrderMain/index.ts @@ -20,6 +20,7 @@ export interface DeviceMaintainOrderMainVO { } // 查询保养工单主列表 export const getDeviceMaintainOrderMainPage = async (params) => { + params.type = 'DEVICE' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/eam/device/deviceRepair/index.ts b/src/api/eam/device/deviceRepair/index.ts index 9764921..2071add 100644 --- a/src/api/eam/device/deviceRepair/index.ts +++ b/src/api/eam/device/deviceRepair/index.ts @@ -17,12 +17,12 @@ export interface DeviceRepairVO { // 查询报修申请列表 export const getDeviceRepairPage = async (params) => { + params.type = 'DEVICE' if (params.isSearch) { delete params.isSearch const data = { ...params } return await request.post({ url: '/eam/device-repair-request/senior', data }) } else { - params.type = 'DEVICE' return await request.get({ url: `/eam/device-repair-request/page`, params }) } } diff --git a/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts b/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts index 5cb5364..cbf0cd4 100644 --- a/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts +++ b/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts @@ -15,6 +15,7 @@ export interface DeviceSpotInspectionRecordMainVO { // 查询检修工单主列表 export const getDeviceSpotInspectionRecordMainPage = async (params) => { + params.type = 'DEVICE' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/eam/mold/moldInspectionMain/index.ts b/src/api/eam/mold/moldInspectionMain/index.ts index 7506fbe..1f4857e 100644 --- a/src/api/eam/mold/moldInspectionMain/index.ts +++ b/src/api/eam/mold/moldInspectionMain/index.ts @@ -17,6 +17,7 @@ export interface MoldInspectionMainVO { // 查询检修工单主列表 export const getMoldInspectionMainPage = async (params) => { + params.type = 'MOLD' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/eam/mold/moldMaintainOrderMain/index.ts b/src/api/eam/mold/moldMaintainOrderMain/index.ts index b72f3be..87a13ef 100644 --- a/src/api/eam/mold/moldMaintainOrderMain/index.ts +++ b/src/api/eam/mold/moldMaintainOrderMain/index.ts @@ -20,11 +20,13 @@ export interface MoldMaintainOrderMainVO { } // 查询保养工单主列表 export const getMoldMaintainOrderMainPage = async (params) => { + params.type = 'MOLD' if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/eam/device-maintain-job-main/senior', data }) } else { + params.type = 'MOLD' return await request.get({ url: `/eam/device-maintain-job-main/page`, params }) } } diff --git a/src/api/eam/mold/moldMaintainPlan/index.ts b/src/api/eam/mold/moldMaintainPlan/index.ts index 4de2662..cd2196e 100644 --- a/src/api/eam/mold/moldMaintainPlan/index.ts +++ b/src/api/eam/mold/moldMaintainPlan/index.ts @@ -14,6 +14,7 @@ export interface MoldMaintainPlanVO { // 查询保养计划列表 export const getMoldMaintainPlanPage = async (params) => { + params.type = 'MOLD' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/eam/mold/moldRepair/index.ts b/src/api/eam/mold/moldRepair/index.ts index e627b0d..ee85c1d 100644 --- a/src/api/eam/mold/moldRepair/index.ts +++ b/src/api/eam/mold/moldRepair/index.ts @@ -16,12 +16,12 @@ export interface MoldRepairVO { // 查询报修申请列表 export const getMoldRepairPage = async (params) => { + params.type = 'MOLD' if (params.isSearch) { delete params.isSearch const data = { ...params } return await request.post({ url: '/eam/device-repair-request/senior', data }) } else { - params.type = 'MOLD' return await request.get({ url: `/eam/device-repair-request/page`, params }) } } diff --git a/src/views/eam/device/problemSolving/index.vue b/src/views/eam/device/problemSolving/index.vue index b603df2..22ef522 100644 --- a/src/views/eam/device/problemSolving/index.vue +++ b/src/views/eam/device/problemSolving/index.vue @@ -125,7 +125,7 @@ /** 添加/修改操作 */ const basicFormRef = ref() - const openForm = (type : string, row ?: any) => { +const openForm = (type: string, row?: any) => { basicFormRef.value.open(type, row) } diff --git a/src/views/eam/mold/moldRepair/moldRepair.data.ts b/src/views/eam/mold/moldRepair/moldRepair.data.ts index 5338ff2..901bbad 100644 --- a/src/views/eam/mold/moldRepair/moldRepair.data.ts +++ b/src/views/eam/mold/moldRepair/moldRepair.data.ts @@ -181,6 +181,17 @@ export const MoldRepair = useCrudSchemas(reactive([ component: 'Select', }, }, + { + label: '图片', + field: 'upload', + isForm: true, + form: { + component: 'UploadImgs', + componentProps: { + limit:3, + } + } + }, { label: '操作', field: 'action',