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',