From 25897f936fbabde5780dd9b4bb13ae6ee2b98bef Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 7 Feb 2024 09:32:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/device/deviceMaintenanceMain/index.ts | 2 +- src/views/eam/device/deviceMaintenanceMain/index.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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, }