diff --git a/src/api/eam/device/deviceMaintenanceMain/index.ts b/src/api/eam/device/deviceMaintenanceMain/index.ts index c9f08a4..b12afb2 100644 --- a/src/api/eam/device/deviceMaintenanceMain/index.ts +++ b/src/api/eam/device/deviceMaintenanceMain/index.ts @@ -34,7 +34,7 @@ export const getDeviceMaintenanceMain = async (id: number) => { // 新增维修工单主 export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { - return await request.post({ url: `/eam/device-maintenance-main/create`, data }) + return await request.post({ url: `/eam/device-maintenance-main/createPC`, data }) } // 修改维修工单主 diff --git a/src/views/eam/device/deviceMaintenanceMain/index.vue b/src/views/eam/device/deviceMaintenanceMain/index.vue index d0c0164..755fb12 100644 --- a/src/views/eam/device/deviceMaintenanceMain/index.vue +++ b/src/views/eam/device/deviceMaintenanceMain/index.vue @@ -136,6 +136,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => str = str.substring(0, str.length - 1) row['itemNumbers1'] = str row['itemNumbers'] = val + console.log(row) } } else { // const setV = {} @@ -376,7 +377,7 @@ const submitForm = async (formType, data) => { return { describes: item.describes, describes1: item.describes1, - itemNumbers: item.itemNumbers1, + itemNumbers: item.itemNumbers, maintenances: item.maintenances.join(','), workOut: item.workOut, }