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 @@