From 9781baa8f00aee623b9bfcbc271d9ac84a081e78 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 2 Feb 2024 16:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95=E4=B8=BB?= =?UTF-8?q?=E5=AD=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .../device/deviceMaintenanceDetail/index.ts | 38 +- src/components/BasicForm/src/BasicForm.vue | 15 +- src/components/Detail/src/Detail.vue | 199 +++---- .../Detail/src/DetailDeviceLedger.vue | 557 ++++++++++++++++++ .../SearchTable/src/SearchTable.vue | 89 ++- src/components/SearchTableItem/index.ts | 3 + .../SearchTableItem/src/SearchTableItem.vue | 144 +++++ src/utils/disposition/tabsList.ts | 4 +- src/views/eam/device/deviceAccounts/index.vue | 16 +- .../deviceMaintenanceMain.data.ts | 94 ++- .../device/deviceMaintenanceMain/index.vue | 85 ++- 12 files changed, 1030 insertions(+), 218 deletions(-) create mode 100644 src/components/Detail/src/DetailDeviceLedger.vue create mode 100644 src/components/SearchTableItem/index.ts create mode 100644 src/components/SearchTableItem/src/SearchTableItem.vue diff --git a/.env.development b/.env.development index 5c1f646..66c440a 100644 --- a/.env.development +++ b/.env.development @@ -4,8 +4,8 @@ NODE_ENV=development VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:12080' -# VITE_BASE_URL='http://192.168.0.165:12080' +# VITE_BASE_URL='http://localhost:12080' +VITE_BASE_URL='http://192.168.0.165:12080' # 上传路径 VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload' diff --git a/src/api/eam/device/deviceMaintenanceDetail/index.ts b/src/api/eam/device/deviceMaintenanceDetail/index.ts index 4e7a8b1..9ae5b49 100644 --- a/src/api/eam/device/deviceMaintenanceDetail/index.ts +++ b/src/api/eam/device/deviceMaintenanceDetail/index.ts @@ -1,51 +1,51 @@ import request from '@/config/axios' export interface DeviceMaintenanceDetailVO { - describes: string - describes1: string - workOut: string - maintenances: string +  describes: string +  describes1: string +  workOut: string +  maintenances: string } // 查询维修工单子列表 export const getDeviceMaintenanceDetailPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return await request.post({ url: '/wms/purchasereceipt-request-detail/senior', data }) - } else { - return await request.get({ url: `/admin-api/eam/device-maintenance-detail/page`, params }) - } +  if (params.isSearch) { +    delete params.isSearch +    const data = {...params} +    return await request.post({ url: '/wms/purchasereceipt-request-detail/senior', data }) +  } else { +    return await request.get({ url: `/eam/device-maintenance-detail/page`, params }) +  } } // 查询维修工单子详情 -export const getPurchasereceiptRequestDetail = async (id: number) => { - return await request.get({ url: `/eam/device-maintenance-detail/get?id=` + id }) +export const getPurchasereceiptRequestDetail = async (id) => { +  return await request.get({ url: `/eam/device-maintenance-detail/selectListByNumber?id=` + id }) } // 新增维修工单子 export const createDeviceMaintenanceDetail = async (data: DeviceMaintenanceDetailVO) => { - return await request.post({ url: `/eam/device-maintenance-detail/create`, data }) +  return await request.post({ url: `/eam/device-maintenance-detail/create`, data }) } // 修改维修工单子 export const updateDeviceMaintenanceDetail = async (data: DeviceMaintenanceDetailVO) => { - return await request.put({ url: `/eam/device-maintenance-detail/update`, data }) +  return await request.put({ url: `/eam/device-maintenance-detail/update`, data }) } // 删除维修工单子 export const deleteDeviceMaintenanceDetail = async (id: number) => { - return await request.delete({ url: `/eam/device-maintenance-detail/delete?id=` + id }) +  return await request.delete({ url: `/eam/device-maintenance-detail/delete?id=` + id }) } // 导出维修工单子 Excel export const exportPurchasereceiptRequestDetail = async (params) => { - return await request.download({ url: `/wms/purchasereceipt-request-detail/export-excel`, params }) +  return await request.download({ url: `/wms/purchasereceipt-request-detail/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/wms/purchasereceipt-request-detail/get-import-template' }) -} \ No newline at end of file +  return request.download({ url: '/wms/purchasereceipt-request-detail/get-import-template' }) +} diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index b957c36..5dd561e 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -104,10 +104,12 @@ - + + + + diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index 21b96b7..299c107 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -1,20 +1,31 @@