diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts deleted file mode 100644 index 493fbba..0000000 --- a/src/views/business/schedule/task/task-interface.ts +++ /dev/null @@ -1,166 +0,0 @@ -// 任务列表查询条件 -export interface ITaskQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} - -// 我的检测/部门检测查询条件 -export interface ILabQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - measureStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} -// 任务列表-返回值 -export interface ITaskList { - orderId: string // 委托书编号 - sampleId: string // 样品唯一标识 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: number // 是否加急 - isUrgentName?: string // 是否加急 - requireOverTime: string // 应检完时间 - sampleBelong: string // 样品属性 - sampleBelongName: string // 样品属性 - currentMeasureState: string // 当前检定环节 - currentMeasureStateName: string // 当前检定环节 - alreadyCertifications: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - distributeState: string // 分发性质-初次分发、退回分发 - handOutProperty: string // 分发性质-初次分发、退回分发 -} - -// 实验室检测/我的检测列表 -export interface IlabMeasureList extends ITaskList { - id: string // 实验室检测id - measurePersonId: string // 检测人id - measureSegmentId: string // 检测部门id -} - -// 全部检测流程节点 -export interface ISchedule { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 - distributePerson: string // 分配人 - distributeTime: string // 分配时间 - startTime: string // 检定开始时间 - overTime: string // 检定完成时间 -} -// 检测流程节点 -export interface IScheduleSet { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 -} -// 退回流程节点 -export interface IScheduleBack { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications?: number // 应出具证书总数 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 -} - -// 样品检测信息 -export interface ISampleMeasure { - id: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - customerAddress: string // 委托方地址 - measureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - abc: string // ABC - measurePeriod: string // 检定周期 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - measureType: string // 检定方式 - measureTypeName: string // 检定方式 - measureLastTime?: string // 检定日期 - validDeadline: string // 有效日期 - powerVoltage: string // 电源电压 - sampleBelong: string // 样品所属 - sampleBelongName: string // 样品所属 - remark: string // 备注 -} - -export interface ITaskDetail { - measureContent: string // 检定项目 - measureProcessList: ISchedule[] // 检定流程 - measureSendBackList: ISchedule[] // 退回信息 - remark: string // 备注 - orderId: string // 委托单id - orderCode: string // 委托单编号 - certifications: string // 证书类别 - planDeliverTime: string // 预约送达时间 - requireOverTime: string // 要求检完时间 - specialRequire: string // 客户特殊要求 - deliverer: string // 送检人 - delivererTel: string // 送检人联系方式 -} - -// 退回 -export interface ISendBack { - id: string // 实验室检测id - measurePersonId: string // 检定人员id - measureSegmentId: string // 检定环节,实验室id - operateReason: string // 退回原因 - orderId: string // 委托书id - sampleId: string // 样品id -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts deleted file mode 100644 index 493fbba..0000000 --- a/src/views/business/schedule/task/task-interface.ts +++ /dev/null @@ -1,166 +0,0 @@ -// 任务列表查询条件 -export interface ITaskQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} - -// 我的检测/部门检测查询条件 -export interface ILabQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - measureStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} -// 任务列表-返回值 -export interface ITaskList { - orderId: string // 委托书编号 - sampleId: string // 样品唯一标识 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: number // 是否加急 - isUrgentName?: string // 是否加急 - requireOverTime: string // 应检完时间 - sampleBelong: string // 样品属性 - sampleBelongName: string // 样品属性 - currentMeasureState: string // 当前检定环节 - currentMeasureStateName: string // 当前检定环节 - alreadyCertifications: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - distributeState: string // 分发性质-初次分发、退回分发 - handOutProperty: string // 分发性质-初次分发、退回分发 -} - -// 实验室检测/我的检测列表 -export interface IlabMeasureList extends ITaskList { - id: string // 实验室检测id - measurePersonId: string // 检测人id - measureSegmentId: string // 检测部门id -} - -// 全部检测流程节点 -export interface ISchedule { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 - distributePerson: string // 分配人 - distributeTime: string // 分配时间 - startTime: string // 检定开始时间 - overTime: string // 检定完成时间 -} -// 检测流程节点 -export interface IScheduleSet { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 -} -// 退回流程节点 -export interface IScheduleBack { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications?: number // 应出具证书总数 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 -} - -// 样品检测信息 -export interface ISampleMeasure { - id: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - customerAddress: string // 委托方地址 - measureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - abc: string // ABC - measurePeriod: string // 检定周期 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - measureType: string // 检定方式 - measureTypeName: string // 检定方式 - measureLastTime?: string // 检定日期 - validDeadline: string // 有效日期 - powerVoltage: string // 电源电压 - sampleBelong: string // 样品所属 - sampleBelongName: string // 样品所属 - remark: string // 备注 -} - -export interface ITaskDetail { - measureContent: string // 检定项目 - measureProcessList: ISchedule[] // 检定流程 - measureSendBackList: ISchedule[] // 退回信息 - remark: string // 备注 - orderId: string // 委托单id - orderCode: string // 委托单编号 - certifications: string // 证书类别 - planDeliverTime: string // 预约送达时间 - requireOverTime: string // 要求检完时间 - specialRequire: string // 客户特殊要求 - deliverer: string // 送检人 - delivererTel: string // 送检人联系方式 -} - -// 退回 -export interface ISendBack { - id: string // 实验室检测id - measurePersonId: string // 检定人员id - measureSegmentId: string // 检定环节,实验室id - operateReason: string // 退回原因 - orderId: string // 委托书id - sampleId: string // 样品id -} diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue deleted file mode 100644 index 547ee3e..0000000 --- a/src/views/business/schedule/task/taskEdit.vue +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts deleted file mode 100644 index 493fbba..0000000 --- a/src/views/business/schedule/task/task-interface.ts +++ /dev/null @@ -1,166 +0,0 @@ -// 任务列表查询条件 -export interface ITaskQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} - -// 我的检测/部门检测查询条件 -export interface ILabQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - measureStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} -// 任务列表-返回值 -export interface ITaskList { - orderId: string // 委托书编号 - sampleId: string // 样品唯一标识 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: number // 是否加急 - isUrgentName?: string // 是否加急 - requireOverTime: string // 应检完时间 - sampleBelong: string // 样品属性 - sampleBelongName: string // 样品属性 - currentMeasureState: string // 当前检定环节 - currentMeasureStateName: string // 当前检定环节 - alreadyCertifications: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - distributeState: string // 分发性质-初次分发、退回分发 - handOutProperty: string // 分发性质-初次分发、退回分发 -} - -// 实验室检测/我的检测列表 -export interface IlabMeasureList extends ITaskList { - id: string // 实验室检测id - measurePersonId: string // 检测人id - measureSegmentId: string // 检测部门id -} - -// 全部检测流程节点 -export interface ISchedule { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 - distributePerson: string // 分配人 - distributeTime: string // 分配时间 - startTime: string // 检定开始时间 - overTime: string // 检定完成时间 -} -// 检测流程节点 -export interface IScheduleSet { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 -} -// 退回流程节点 -export interface IScheduleBack { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications?: number // 应出具证书总数 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 -} - -// 样品检测信息 -export interface ISampleMeasure { - id: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - customerAddress: string // 委托方地址 - measureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - abc: string // ABC - measurePeriod: string // 检定周期 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - measureType: string // 检定方式 - measureTypeName: string // 检定方式 - measureLastTime?: string // 检定日期 - validDeadline: string // 有效日期 - powerVoltage: string // 电源电压 - sampleBelong: string // 样品所属 - sampleBelongName: string // 样品所属 - remark: string // 备注 -} - -export interface ITaskDetail { - measureContent: string // 检定项目 - measureProcessList: ISchedule[] // 检定流程 - measureSendBackList: ISchedule[] // 退回信息 - remark: string // 备注 - orderId: string // 委托单id - orderCode: string // 委托单编号 - certifications: string // 证书类别 - planDeliverTime: string // 预约送达时间 - requireOverTime: string // 要求检完时间 - specialRequire: string // 客户特殊要求 - deliverer: string // 送检人 - delivererTel: string // 送检人联系方式 -} - -// 退回 -export interface ISendBack { - id: string // 实验室检测id - measurePersonId: string // 检定人员id - measureSegmentId: string // 检定环节,实验室id - operateReason: string // 退回原因 - orderId: string // 委托书id - sampleId: string // 样品id -} diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue deleted file mode 100644 index 547ee3e..0000000 --- a/src/views/business/schedule/task/taskEdit.vue +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/task/taskList.vue b/src/views/business/schedule/task/taskList.vue deleted file mode 100644 index 461c518..0000000 --- a/src/views/business/schedule/task/taskList.vue +++ /dev/null @@ -1,314 +0,0 @@ - - - - - diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts deleted file mode 100644 index 493fbba..0000000 --- a/src/views/business/schedule/task/task-interface.ts +++ /dev/null @@ -1,166 +0,0 @@ -// 任务列表查询条件 -export interface ITaskQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} - -// 我的检测/部门检测查询条件 -export interface ILabQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - measureStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} -// 任务列表-返回值 -export interface ITaskList { - orderId: string // 委托书编号 - sampleId: string // 样品唯一标识 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: number // 是否加急 - isUrgentName?: string // 是否加急 - requireOverTime: string // 应检完时间 - sampleBelong: string // 样品属性 - sampleBelongName: string // 样品属性 - currentMeasureState: string // 当前检定环节 - currentMeasureStateName: string // 当前检定环节 - alreadyCertifications: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - distributeState: string // 分发性质-初次分发、退回分发 - handOutProperty: string // 分发性质-初次分发、退回分发 -} - -// 实验室检测/我的检测列表 -export interface IlabMeasureList extends ITaskList { - id: string // 实验室检测id - measurePersonId: string // 检测人id - measureSegmentId: string // 检测部门id -} - -// 全部检测流程节点 -export interface ISchedule { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 - distributePerson: string // 分配人 - distributeTime: string // 分配时间 - startTime: string // 检定开始时间 - overTime: string // 检定完成时间 -} -// 检测流程节点 -export interface IScheduleSet { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 -} -// 退回流程节点 -export interface IScheduleBack { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications?: number // 应出具证书总数 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 -} - -// 样品检测信息 -export interface ISampleMeasure { - id: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - customerAddress: string // 委托方地址 - measureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - abc: string // ABC - measurePeriod: string // 检定周期 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - measureType: string // 检定方式 - measureTypeName: string // 检定方式 - measureLastTime?: string // 检定日期 - validDeadline: string // 有效日期 - powerVoltage: string // 电源电压 - sampleBelong: string // 样品所属 - sampleBelongName: string // 样品所属 - remark: string // 备注 -} - -export interface ITaskDetail { - measureContent: string // 检定项目 - measureProcessList: ISchedule[] // 检定流程 - measureSendBackList: ISchedule[] // 退回信息 - remark: string // 备注 - orderId: string // 委托单id - orderCode: string // 委托单编号 - certifications: string // 证书类别 - planDeliverTime: string // 预约送达时间 - requireOverTime: string // 要求检完时间 - specialRequire: string // 客户特殊要求 - deliverer: string // 送检人 - delivererTel: string // 送检人联系方式 -} - -// 退回 -export interface ISendBack { - id: string // 实验室检测id - measurePersonId: string // 检定人员id - measureSegmentId: string // 检定环节,实验室id - operateReason: string // 退回原因 - orderId: string // 委托书id - sampleId: string // 样品id -} diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue deleted file mode 100644 index 547ee3e..0000000 --- a/src/views/business/schedule/task/taskEdit.vue +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/task/taskList.vue b/src/views/business/schedule/task/taskList.vue deleted file mode 100644 index 461c518..0000000 --- a/src/views/business/schedule/task/taskList.vue +++ /dev/null @@ -1,314 +0,0 @@ - - - - - diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index 01525f3..6d0c8cf 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -26,7 +26,8 @@ select.value = selectp } const type = computed(() => { - return tablistData.value.filter(item => item.title === select.value)[0]?.id || '2' + console.log(tablistData.value.filter(item => item.title === select.value)[0]?.id, '123123123123') + return tablistData.value.filter(item => item.title === select.value)[0]?.id || '0' }) diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts deleted file mode 100644 index 493fbba..0000000 --- a/src/views/business/schedule/task/task-interface.ts +++ /dev/null @@ -1,166 +0,0 @@ -// 任务列表查询条件 -export interface ITaskQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} - -// 我的检测/部门检测查询条件 -export interface ILabQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - measureStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} -// 任务列表-返回值 -export interface ITaskList { - orderId: string // 委托书编号 - sampleId: string // 样品唯一标识 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: number // 是否加急 - isUrgentName?: string // 是否加急 - requireOverTime: string // 应检完时间 - sampleBelong: string // 样品属性 - sampleBelongName: string // 样品属性 - currentMeasureState: string // 当前检定环节 - currentMeasureStateName: string // 当前检定环节 - alreadyCertifications: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - distributeState: string // 分发性质-初次分发、退回分发 - handOutProperty: string // 分发性质-初次分发、退回分发 -} - -// 实验室检测/我的检测列表 -export interface IlabMeasureList extends ITaskList { - id: string // 实验室检测id - measurePersonId: string // 检测人id - measureSegmentId: string // 检测部门id -} - -// 全部检测流程节点 -export interface ISchedule { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 - distributePerson: string // 分配人 - distributeTime: string // 分配时间 - startTime: string // 检定开始时间 - overTime: string // 检定完成时间 -} -// 检测流程节点 -export interface IScheduleSet { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 -} -// 退回流程节点 -export interface IScheduleBack { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications?: number // 应出具证书总数 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 -} - -// 样品检测信息 -export interface ISampleMeasure { - id: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - customerAddress: string // 委托方地址 - measureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - abc: string // ABC - measurePeriod: string // 检定周期 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - measureType: string // 检定方式 - measureTypeName: string // 检定方式 - measureLastTime?: string // 检定日期 - validDeadline: string // 有效日期 - powerVoltage: string // 电源电压 - sampleBelong: string // 样品所属 - sampleBelongName: string // 样品所属 - remark: string // 备注 -} - -export interface ITaskDetail { - measureContent: string // 检定项目 - measureProcessList: ISchedule[] // 检定流程 - measureSendBackList: ISchedule[] // 退回信息 - remark: string // 备注 - orderId: string // 委托单id - orderCode: string // 委托单编号 - certifications: string // 证书类别 - planDeliverTime: string // 预约送达时间 - requireOverTime: string // 要求检完时间 - specialRequire: string // 客户特殊要求 - deliverer: string // 送检人 - delivererTel: string // 送检人联系方式 -} - -// 退回 -export interface ISendBack { - id: string // 实验室检测id - measurePersonId: string // 检定人员id - measureSegmentId: string // 检定环节,实验室id - operateReason: string // 退回原因 - orderId: string // 委托书id - sampleId: string // 样品id -} diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue deleted file mode 100644 index 547ee3e..0000000 --- a/src/views/business/schedule/task/taskEdit.vue +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/task/taskList.vue b/src/views/business/schedule/task/taskList.vue deleted file mode 100644 index 461c518..0000000 --- a/src/views/business/schedule/task/taskList.vue +++ /dev/null @@ -1,314 +0,0 @@ - - - - - diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index 01525f3..6d0c8cf 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -26,7 +26,8 @@ select.value = selectp } const type = computed(() => { - return tablistData.value.filter(item => item.title === select.value)[0]?.id || '2' + console.log(tablistData.value.filter(item => item.title === select.value)[0]?.id, '123123123123') + return tablistData.value.filter(item => item.title === select.value)[0]?.id || '0' }) diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index aff3ce4..92dbf63 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -17,7 +17,7 @@ deviceNo: '', startTime: '', endTime: '', - type: '', + type: props.type, }) // 查询时间段范围 const TimeRanges = ref() @@ -56,11 +56,13 @@ const editRef = ref() // 新增 const add = () => { - editRef.value.initDialog('create', { type: searchQuery.type }) + console.log(props.type, 'searchQuery.type') + editRef.value.initDialog('create', { type: props.type }) } // 编辑 const edit = (row: any) => { - editRef.value.initDialog('update', row) + console.log(props.type, 'searchQuery.type') + editRef.value.initDialog('update', { ...row, type: props.type }) } // 删除 const del = (row: any) => { diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0ec0f43..710b837 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -43,8 +43,11 @@ // 删除 配电网 export function deleteElectricityList(id: any) { return request({ - url: `${api.electricityDelete}?id=${id}`, + url: `${api.electricityDelete}`, method: 'post', + data: { + id, + }, }) } // 光伏/楼宇/电动车管理列表 @@ -74,8 +77,11 @@ // 删除 光伏/楼宇/电动车管 export function deleteMonitorStation(id: any) { return request({ - url: `${api.monitorStationdDelete}?id=${id}`, + url: `${api.monitorStationdDelete}`, method: 'post', + data: { + id, + }, }) } // 设备管理列表 @@ -105,7 +111,10 @@ // 删除 设备管理 export function deleteDeviceList(id: any) { return request({ - url: `${api.deviceDelete}?id=${id}`, + url: `${api.deviceDelete}`, method: 'post', + data: { + id, + }, }) } diff --git a/src/api/approval.ts b/src/api/approval.ts new file mode 100644 index 0000000..68d4e20 --- /dev/null +++ b/src/api/approval.ts @@ -0,0 +1,32 @@ +// 审批接口 +import request from './index' +const approvalType: { [key: string]: string } = { + agree: '/approval/operate/agree', + refuse: '/approval/operate/refuse', + reject: '/approval/operate/reject', +} +// 审批操作接口 +export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { + return request({ + url: approvalType[type], + method: 'post', + data, + }) +} + +// 取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 查询审批记录 +export function fetchApproval(processId: string) { + return request({ + url: '/approval/operate/approvalLog', + method: 'get', + params: { processId }, + }) +} diff --git a/src/api/business/lab/cert.ts b/src/api/business/lab/cert.ts new file mode 100644 index 0000000..261cad3 --- /dev/null +++ b/src/api/business/lab/cert.ts @@ -0,0 +1,51 @@ +/** + * 证书打印 +*/ +import request from '../../index' +import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' + +// 证书打印列表 +export function getCertList(data: ICertPrintSearch) { + return request({ + url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 发起申请 +export function submitApproval(data: ICertInitiate) { + return request({ + url: '/business/certificatePrint/submitApproval', + method: 'post', + data, + }) +} + +// 同意 +export function agreeCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/agree', + method: 'post', + data, + }) +} + +// 拒绝 +export function refuseCert(data: ICertApprove) { + return request({ + url: '/business/certificatePrint/refuse', + method: 'post', + data, + }) +} + +// 证书导出 +export function exportCert(data: ICertExport) { + return request({ + url: '/business/certificatePrint/export', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts new file mode 100644 index 0000000..b67ab35 --- /dev/null +++ b/src/api/business/lab/environmentRecord.ts @@ -0,0 +1,61 @@ +/** + * 环境记录单接口 +*/ +import request from '../../index' +import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' +const prefix = '/business/environmentRecord' + +// 环境记录单列表查询-分页 +export function getEnvironmentRecordList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 环境记录单删除 +export function getEnvironmentRecordDelete(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增环境记录单 +export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 环境监测记录单-详情 +export function getEnvironmentRecordDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 环境监测记录单-编辑 +export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportEnvironmentRecord(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts new file mode 100644 index 0000000..95eb183 --- /dev/null +++ b/src/api/business/lab/primitiveLogList.ts @@ -0,0 +1,71 @@ +/** + * 原始记录接口 +*/ +import request from '../../index' +import type { IListQuery, IListQuerySample } from '@/views/business/lab/primitiveLog/primitiveLogList' +const prefix = '/business/originalRecord' + +// 列表查询 +export function getPrimitiveLogList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportPrimitiveLogList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deletePrimitiveLogList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新建 +export function addPrimitiveLog(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updatePrimitiveLog(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getPrimitiveLogDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 根据委托单id查询关联样品信息(分页) +export function getSamplesByOderId(data: IListQuerySample) { + return request({ + url: `${prefix}/samplesByOderId?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts new file mode 100644 index 0000000..cf7d249 --- /dev/null +++ b/src/api/business/lab/report.ts @@ -0,0 +1,105 @@ +/** + * 证书报告接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' +const prefix = '/business/certificateReport' + +// 列表查询 +export function getReportList(data: IListQuery) { + return request({ + url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReportList(data: Omit) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除 +export function deleteReportList(data: { id: string }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 提交 +export function submitReportList(data: { id: string; formId: string }) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 新建 +export function addReport(data: any) { + return request({ + url: `${prefix}/save`, + method: 'post', + data, + }) +} + +// 编辑--草稿箱 +export function draftUpdateReport(data: any) { + return request({ + url: `${prefix}/draftUpdate`, + method: 'post', + data, + }) +} + +// 编辑--未通过-驳回 +export function failUpdateReport(data: any) { + return request({ + url: `${prefix}/failUpdate`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function submitReport(data: object) { + return request({ + url: `${prefix}/submit`, + method: 'post', + data, + }) +} + +// 获取详情 +export function getReportDetail(data: { id: string }) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 草稿箱删除 +export function draftDeleteReport(data: { ids: Array }) { + return request({ + url: `${prefix}/batchDelete`, + method: 'post', + data, + }) +} + +// 审批删除 +export function approvalDeleteReport(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/approval/operate/delete`, + method: 'post', + data: [data], + }) +} diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts new file mode 100644 index 0000000..b21f20d --- /dev/null +++ b/src/api/business/schedule/interchangeList.ts @@ -0,0 +1,52 @@ +/** + * 设备收发接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' + +// 列表查询 +export function getInterChangeList(data: IListQuery) { + return request({ + url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportInterchangeList(data: Omit) { + return request({ + url: '/device/dispatch/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 更改状态-回退、收入、归还、无需检测 按钮 +export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/status/change', + method: 'post', + data, + }) +} + +// 根据样品id催办 +export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/rushDoProcess', + method: 'post', + data, + }) +} + +// 根据样品id终止、完成 +export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { + return request({ + url: '/device/dispatch/terminate', + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts new file mode 100644 index 0000000..574d62e --- /dev/null +++ b/src/api/business/schedule/interchangeReceipt.ts @@ -0,0 +1,71 @@ +/** + * 设备交接单 +*/ +import request from '../../index' +import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' +const prefix = '/business/interchange' + +// 列表查询 +export function getReceiptList(data: IListQuery) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportReceiptList(data: Omit) { + return request({ + url: `${prefix}/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 取消 +export function deleteReceiptList(data: { id: string }) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} + +// 新增 +export function addInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateInterchangeReceipt(data: any) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getInterchangeReceiptDetail(data: any) { + return request({ + url: `${prefix}/detail`, + method: 'post', + data, + }) +} + +// 关联委托书的且是已收入的样品的列表 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts new file mode 100644 index 0000000..b10cf2c --- /dev/null +++ b/src/api/business/schedule/order.ts @@ -0,0 +1,71 @@ +/** + * 委托书接口 +*/ +import request from '../../index' +import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' +const prefix = '/business' + +// 列表查询 +export function getOrderList(data: IListQuery) { + return request({ + url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportOrderList(data: Omit) { + return request({ + url: `${prefix}/order/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 接收 +export function receiveOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/receive`, + method: 'post', + data, + }) +} + +// 退回 +export function backOrder(data: { id: string }) { + return request({ + url: `${prefix}/order/back`, + method: 'post', + data, + }) +} + +// 新增 +export function addOrder(data: any) { + return request({ + url: `${prefix}/order/add`, + method: 'post', + data, + }) +} + +// 编辑 +export function updateOrder(data: any) { + return request({ + url: `${prefix}/order/update`, + method: 'post', + data, + }) +} + +// 详情 +export function getOrderDetail(data: any) { + return request({ + url: `${prefix}/order/detail`, + method: 'post', + data, + }) +} + diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts new file mode 100644 index 0000000..1c85c89 --- /dev/null +++ b/src/api/business/schedule/task.ts @@ -0,0 +1,124 @@ +/** + * 任务分发,实验室检测 +*/ +import request from '../../index' +import type { ILabQuery, ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' +const prefix = '/meter' + +// 任务分发列表查询 +export function getTaskList(data: ITaskQuery) { + return request({ + url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 任务分发详情 +export function getTaskDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/detail', + method: 'post', + data, + }) +} + +// 部门检测我的检测详情 +export function executiveDetail(data: { orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/executive/detail', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportTaskList(data: Omit) { + return request({ + url: '/business/labExecutive/handOut/listExport', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 初始化检定流程 +export function init(data: { measureContent: string; orderId: string; sampleId: string }) { + return request({ + url: '/business/labExecutive/handOut/initList', + method: 'post', + data, + }) +} + +// 收发员任务分发 +export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/execute', + method: 'post', + data, + }) +} + +// 实验室编辑实验室检测列表 +export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { + return request({ + url: '/business/labExecutive/handOut/updateList', + method: 'post', + data, + }) +} + +// 退回(待检测/检测中->退回) +export function sendBackProcess(data: ISendBack) { + return request({ + url: '/business/labExecutive/executive/sendBack', + method: 'post', + data, + }) +} + +// 分配 +export function allocate(data: { id: string; measurePersonId: string; requireCertifications: string }) { + return request({ + url: '/business/labExecutive/deptExecutive/allocate', + method: 'post', + data, + }) +} + +// 实验室收入样品 +export function takeInSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 检完样品-手动/批量 +export function overSample(data: { orderId: string; sampleId: string }[]) { + return request({ + url: `${prefix}/schedule/task/setSchedule`, + method: 'post', + data, + }) +} + +// 我的检测-列表 +export function getMyMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 部门检测-列表 +export function getDeptMeasureList(data: ILabQuery) { + return request({ + url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..c581a4e --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,60 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: '/customer/advice/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: '/customer/advice/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/customer/advice/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: '/customer/advice/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: '/customer/advice/export', + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts new file mode 100644 index 0000000..ca7d608 --- /dev/null +++ b/src/api/customer/bench.ts @@ -0,0 +1,38 @@ +/** + * 工作台 + */ +import request from '../index' +// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/customer' + +// 样品新增趋势 +export function getSampleAddData() { + return request({ + url: `${prefix}/workbench/sample/increaseTrend`, + method: 'post', + }) +} + +// 样品到期趋势 +export function getSampleExpireData() { + return request({ + url: `${prefix}/workbench/sample/expireTrend`, + method: 'post', + }) +} + +// 客户新增趋势 +export function getCustomerExpireData() { + return request({ + url: `${prefix}/workbench/increaseTrend`, + method: 'post', + }) +} + +// 优质客户名单 +export function getHighQualityCustomerList() { + return request({ + url: `${prefix}/workbench/excellentList`, + method: 'post', + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..3a258c8 --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,103 @@ +/** + * 客户管理请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 列表查询 +export function getCustomerListSimple(data: ICustomerQuery) { + return request({ + url: '/customer/listPage', + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: '/customer/delete', + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: '/customer/detail', + method: 'post', + data, + }) +} + +// 新增数据 +export function addCustomer(data: object) { + return request({ + url: '/customer/add', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateCustomer(data: object) { + return request({ + url: '/customer/update', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: '/customer/export', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 根据客户查样品id +export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查合同记录 +export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 根据客户查检定记录 +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { + return request({ + url: '/customer/fake/interface', + method: 'post', + data, + }) +} +// +export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { + return request({ + url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts new file mode 100644 index 0000000..fdcca51 --- /dev/null +++ b/src/api/customer/sampleList.ts @@ -0,0 +1,78 @@ +/** + * 样品列表接口 + */ +import request from '../index' +import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' +const prefix = '/customer' + +// 列表查询 +export function getSampleList(data: ISampleListQuery) { + return request({ + url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteSample(data: { id: string }) { + return request({ + url: `${prefix}/sample/delete`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSapmleList(data: Omit) { + return request({ + url: `${prefix}/sample/export`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 新增数据 +export function addSample(data: object) { + return request({ + url: `${prefix}/sample/add`, + method: 'post', + data, + }) +} +// 编辑数据 +export function updateSample(data: object) { + return request({ + url: `${prefix}/sample/update`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSapmleDetail(data: { id: string }) { + return request({ + url: `${prefix}/sample/detail`, + method: 'post', + data, + }) +} + +// 查询检定记录 +export function getMesureRecords(data: { customerId?: string; sampleId?: string }) { + return request({ + url: `${prefix}/sample/measureRecordsById`, + method: 'post', + data, + }) +} + +// 查询检定证书 +export function getCertification(data: { id: string }) { + return request({ + url: `${prefix}/sample/certificationBySampleId`, + method: 'post', + data, + }) +} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts new file mode 100644 index 0000000..f4792d1 --- /dev/null +++ b/src/api/device/bench.ts @@ -0,0 +1,44 @@ +// 设备借用相关接口api +import request from '../index' +const prefix = '/equipment/workbench' + +// 设备检定趋势 +export function getMeasureTrend() { + return request({ + url: `${prefix}/measureTrend`, + method: 'post', + }) +} + +// 装置检定趋势 +export function getStandardTrend() { + return request({ + url: `${prefix}/standardTrend`, + method: 'post', + }) +} + +// 本月统计数据 +export function getMonthlyStatistics() { + return request({ + url: `${prefix}/dataStatistics`, + method: 'post', + }) +} + +// 我的设备 +export function getMyEquipment() { + return request({ + url: `${prefix}/myselfEquipment`, + method: 'post', + }) +} + +// 设备台账检定提醒 +export function getStandingBookRemind() { + return request({ + url: `${prefix}/remindListPage`, + method: 'post', + }) +} + diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts new file mode 100644 index 0000000..5bd4111 --- /dev/null +++ b/src/api/device/borrow.ts @@ -0,0 +1,100 @@ +// 设备借用相关接口api +import request from '../index' +import type{ IlistQuery } from '@/views/device/borrow/borrow' + +// 设备借用申请列表 +export function getApplyList(data: IlistQuery) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 设备借用申请新建 +export function addApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用取消审批 +export function cancelApproval(data: { processInstanceId?: string; comments: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 设备借用申请详情 +export function detailApply(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用驳回后编辑 +export function failUpdate(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 状态管理提交 +export function submitApply(data: object) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用设备-借用 +export function borrowApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} + +// 设备借用-归还 +export function returnApply(data: object) { + return request({ + url: '/equipmentApply/returnEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: IlistQuery) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..f12a3bd --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,163 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} + +// 设备检修保养验收单保存 +export function addAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/addAcceptanceCheck', + method: 'post', + data, + }) +} + +// 设备检修保养验收单提交 +export function submitAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修保养验收单编辑 +export function updateAcceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/updateAcceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单详情信息 +export function acceptanceCheckInfo(data: object) { + return request({ + url: '/acceptanceCheck/acceptanceCheckInfo', + method: 'post', + data, + }) +} + +// 设备检修保养验收单审批删除 +export function deleteAcceptanceCheck(data: object) { + return request({ + url: '/acceptanceCheck/deleteEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/src/api/device/receive.ts @@ -0,0 +1,82 @@ +/** + * 设备领用接口 + */ +import request from '../index' +import type{ IlistQuery } from '@/views/device/receive/receive' +const prefix = '/equipmentApply' + +/** + * ----------------------------------设备领用申请---------------------------------- + */ + +// 列表 +export function getReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 列表导出 +export function exportReceiveApplyList(data: IlistQuery) { + return request({ + url: `${prefix}/exportList`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 列表删除 +export function delReceiveApplyList(data: { id: string; taskId: string }) { + return request({ + url: `${prefix}/deleteEquipmentApply`, + method: 'post', + data, + }) +} + +// 新建--点击保存 +export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/addEquipmentApply`, + method: 'post', + data, + }) +} +// 新建--提交 +export function submitReceiveApplyList(data: { formId: string; id: string }) { + return request({ + url: `${prefix}/submitEquipmentApply`, + method: 'post', + data, + }) +} + +// 编辑--保存 +export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { + return request({ + url: `${prefix}/updateEquipmentApply`, + method: 'post', + data, + }) +} + +// 详情 +export function getReceiveApplyListDetail(data: { id: string }) { + return request({ + url: `${prefix}/equipmentApplyInfo`, + method: 'post', + data, + }) +} + +// 领用-退领 +export function updateProcessResult(data: { id: string; processResult: string }) { + return request({ + url: `${prefix}/updateProcessResult`, + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts new file mode 100644 index 0000000..31f6b25 --- /dev/null +++ b/src/api/device/standard.ts @@ -0,0 +1,239 @@ +/** + * 标准装置请求接口 + */ +import request from '../index' +const prefix = '/meter' +// 列表查询 +export function getStandardList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListAdd(data: object) { + return request({ + url: `${prefix}/standard/add`, + method: 'post', + data, + }) +} +// 列表新增 +export function getStandardListDelete(data: object) { + return request({ + url: `${prefix}/standard/delete`, + method: 'post', + data, + }) +} + +// 详情信息 +export function getStandardListDetail(data: object) { + return request({ + url: `${prefix}/standard/detail`, + method: 'post', + data, + }) +} + +// 更新信息 +export function getStandardLisUpdate(data: object) { + return request({ + url: `${prefix}/standard/update`, + method: 'post', + data, + }) +} + +// 获取部门信息 +export function getUsersDept(data: { offset: number; limit: number }) { + return request({ + url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 获取申请列表 +export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { + return request({ + url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getStandardLisdelete(data: object) { + return request({ + url: '/standard/deleteStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 删除申请列表信息 +export function getOperateDelete(data: object) { + return request({ + url: '/standard/approval/operate/delete', + method: 'post', + data, + }) +} + +// 新建申请列表信息 +export function getStandardLisAdd(data: object) { + return request({ + url: '/standard/addStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 获取到申请列表信息 +export function getStandardLisdetali(data: object) { + return request({ + url: '/standard/standardEquipmentApplyInfo', + method: 'post', + data, + }) +} + +// 获取到到期提醒列表 +export function getRemindListPage(data: { offset: number; limit: number }) { + return request({ + url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 点击提醒 +export function setRemind(data: object) { + return request({ + url: '/meter/standard/remind', + method: 'post', + data, + }) +} + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 申请编辑 +export function updateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/updateStandardEquipmentApply', + method: 'post', + data, + }) +} + +// 批量添加标准装置底部计量人员 +export function setBatchAdd(data: object) { + return request({ + url: '/meter/standard/user/batchAdd', + method: 'post', + data, + }) +} + +// 标准装置-计量人员列表(分页) +export function getuserListPage(data: object) { + return request({ + url: '/meter/standard/user/listPage', + method: 'post', + data, + }) +} + +// 标准装置-删除计量人员 +export function getuserDelete(data: object) { + return request({ + url: '/meter/standard/user/delete', + method: 'post', + data, + }) +} + +// 标准装置-配套设备列表(分页) +export function getEquipmentListPage(data: object) { + return request({ + url: '/meter/standard/equipment/listPage', + method: 'post', + data, + }) +} + +// 添加标准配套设备 +export function getEquipmenteAdd(data: object) { + return request({ + url: '/meter/standard/equipment/add', + method: 'post', + data, + }) +} + +// 添加检定规程 +export function getRegulationAdd(data: object) { + return request({ + url: '/meter/standard/regulation/add', + method: 'post', + data, + }) +} + +// 标准装置-检定规程列表(分页) +export function getRegulationListPage(data: object) { + return request({ + url: '/meter/standard/regulation/listPage', + method: 'post', + data, + }) +} + +// 标准装置导出 +export function getExportExcel(data: object) { + return request({ + url: '/meter/standard/exportExcel', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 标准装置申请导出 +export function getExportList(data: object) { + return request({ + url: '/standard/exportList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 删除标准配套设备 +export function getEquipmentDelete(data: object) { + return request({ + url: '/meter/standard/equipment/delete', + method: 'post', + data, + }) +} + +// 批量删除计量人员 +export function getUserBatchDelete(data: object) { + return request({ + url: '/meter/standard/user/batchDelete', + method: 'post', + data, + }) +} + diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts new file mode 100644 index 0000000..0f47a88 --- /dev/null +++ b/src/api/device/standingBook.ts @@ -0,0 +1,79 @@ +// 设备台账相关接口api +import request from '../index' +import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' +// 固定资产列表(分页) +export function listPageApi(data: fixedAssetsParams) { + return request({ + url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 删除固定资产 +export function assetsDeleteApi(data: object) { + return request({ + url: '/meter/assets/delete', + method: 'post', + data, + }) +} +// 固定资产详情 +export function assetsDetailApi(data: object) { + return request({ + url: '/meter/assets/detail', + method: 'post', + data, + }) +} +// 固定资产导出到excel +export function listExportApi(data: object) { + return request({ + url: '/meter/assets/exportExcel', + method: 'post', + data, + responseType: 'blob', + }) +} +// 批量导入测量设备信息 +export function listImporttApi(data: FormData) { + return request({ + url: '/meter/assets/importMeterEquipment', + method: 'post', + data, + }) +} +// 更新固定资产 +export function assetsUpdateApi(data: object) { + return request({ + url: '/meter/assets/update', + method: 'post', + data, + }) +} +// 添加固定资产 +export function assetsAddApi(data: object) { + return request({ + url: '/meter/assets/add', + method: 'post', + data, + }) +} + +// 通过设备id查询出状态变更记录 +export function queryStateChangeLogList(data: object) { + return request({ + url: '/meter/assets/queryStateChangeLogList', + method: 'post', + data, + }) +} + +// 通过设备id查询出使用记录 +export function queryUseLogList(data: object) { + return request({ + url: '/meter/assets/queryUseLogList', + method: 'post', + data, + }) +} + diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..8bce535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,72 @@ +// 状态管理相关接口api +import request from '../index' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' + +// 设备申请列表 +export function getStatusList(data: ISearchQuery) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 状态管理新建 +export function addStatus(data: Object) { + return request({ + url: '/meter/stateManage/addStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理编辑 +export function updateStatus(data: Object) { + return request({ + url: '/meter/stateManage/updateStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理删除 +export function deleteStatus(data: { id: string | number }) { + return request({ + url: '/meter/stateManage/deleteStateManageList', + method: 'post', + data, + }) +} +// 状态管理取消 +export function cancelStatus(data: { processInstanceId: string }) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} +// 状态管理提交 +export function submitStatus(data: { id: string | number; formId: string }) { + return request({ + url: '/meter/stateManage/submitStandardEquipmentApply', + method: 'post', + data, + }) +} +// 状态管理详情 +export function detailStatus(data: object) { + return request({ + url: '/meter/stateManage/selectStateManageInfo', + method: 'post', + data, + }) +} + +// 状态管理导出 +export function exportStatus(data: object) { + return request({ + url: '/meter/stateManage/exportStateManageList', + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..768c310 --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,133 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +// export function UploadFile(fileobj: any) { +// const param = new FormData() +// param.append('file', fileobj.file) +// return request({ +// url: 'file/uploadFile', +// method: 'post', +// headers: { 'Content-Type': 'multipart/form-data' }, +// data: param, +// }) +// } +export function UploadFile(data: FormData) { + return request({ + url: 'minio/file/upload', + method: 'post', + data, + }) +} +// 导出 +export function exportFileApi(data: object) { + return request({ + url: '/meter/file/listExport', + method: 'post', + data, + responseType: 'blob', + }) +} + +// 文件审批列表(分页) +export function approvallistPageApi(data: any) { + return request({ + url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 审批详情 +export function approvallistPageDetailApi(data: object) { + return request({ + url: '/meter/file/approval/listPage', + method: 'post', + data, + }) +} + +// 取消 +export function approvalCancel(data: object) { + return request({ + url: '/approval/operate/revoke', + method: 'post', + data, + }) +} + +// 删除 +export function approvalDelete(data: object) { + return request({ + url: '/meter/file/approval/operate/delete', + method: 'post', + data, + }) +} + +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts new file mode 100644 index 0000000..faecb03 --- /dev/null +++ b/src/api/measure/measureDept.ts @@ -0,0 +1,62 @@ +// 计量组织管理接口api +import request from '../index' +import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: searchQueryType) { + return request({ + url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function deptDetailApi(data: object) { + return request({ + url: `${prefix}organize/detail`, + method: 'post', + data, + }) +} +// 导出 +export function exportApi(data: object) { + return request({ + url: `${prefix}organize/listExport`, + method: 'post', + data, + responseType: 'blob', + }) +} +// 更新 +export function updateApi(data: object) { + return request({ + url: `${prefix}organize/update`, + method: 'post', + data, + }) +} +// 获取标准装置列表 +export function standardlistPageApi(data: any) { + return request({ + url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 获取父级组织 +export function getpDeptApi(data: object) { + return request({ + url: '/meter/organize/deptInfo', + method: 'post', + data, + }) +} + +// 获取父级组织 +export function getOrganizeList(data: object) { + return request({ + url: '/meter/organize/list', + method: 'post', + data, + }) +} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts new file mode 100644 index 0000000..50cf032 --- /dev/null +++ b/src/api/measure/person.ts @@ -0,0 +1,133 @@ +// 计量人员相关接口api +import request from '../index' +import type { StaffListType } from '@/views/measure/person/person-interface' +// 计量人员列表 +export function getStaffList(data: StaffListType) { + return request({ + url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 计量人员列表-不分页 +export function getStaffListAll(data: { deptId: string; name: string }) { + return request({ + url: '/staff/getUserList', + method: 'post', + data, + }) +} +// 人员详细信息 +export function getStaffDetail(data: object) { + return request({ + url: '/staff/selectStaffInfo', + method: 'post', + data, + }) +} +// 删除人员 +export function getStaffDelete(data: object) { + return request({ + url: '/staff/deleteStaff', + method: 'post', + data, + }) +} +// 新增人员 +export function getStaffAdd(data: object) { + return request({ + url: '/staff/addStaffInfo', + method: 'post', + data, + }) +} +// 编辑人员 +export function getStaffupdate(data: object) { + return request({ + url: '/staff/updateStaffInfo', + method: 'post', + data, + }) +} +// 列表导出 +export function exportList(data: object) { + return request({ + url: '/staff/exportStaffList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 导入计量人员 +export function uploadList(data: FormData) { + return request({ + url: '/staff/batchImportStaff', + method: 'post', + data, + }) +} +// 证书记录列表 +export function getCertificateList(data: StaffListType) { + return request({ + url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 证书记录导出 +export function CertificateListList(data: object) { + return request({ + url: '/certificate/exportCertificateList', + method: 'post', + data, + responseType: 'blob', + }) +} +// 证书记录新增 +export function addCertificateList(data: object) { + return request({ + url: '/certificate/addStaffCertificate', + method: 'post', + data, + }) +} +// 获取证书记录详情 +export function getCertificateDetail(data: object) { + return request({ + url: '/certificate/queryStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录更新 +export function getCertificateUpdate(data: object) { + return request({ + url: '/certificate/updateStaffCertificateInfo', + method: 'post', + data, + }) +} +// 证书记录导入 +export function getCertificateUpload(data: FormData) { + return request({ + url: '/certificate/batchImportCertificate', + method: 'post', + data, + }) +} +// 证书过期提醒 +export function getCertificateRemind(data: object) { + return request({ + url: '/certificate/expirationReminder', + method: 'post', + data, + }) +} +// 证书记录删除 +export function getCertificateRemove(data: object) { + return request({ + url: '/certificate/deleteCertificate', + method: 'post', + data, + }) +} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts new file mode 100644 index 0000000..b30ddc9 --- /dev/null +++ b/src/api/measure/plan.ts @@ -0,0 +1,165 @@ +/** + * 培训计划请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} +// 列表查询 +export function getPlanList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 审批列表查询 +export function getapprovalList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 培训计划审批删除 +export function getApprovalDelete(data: object) { + return request({ + url: `${prefix}/train/plan/approval/operate/delete`, + method: 'post', + data, + }) +} +// 主管部门 +export function getDeptTree(params: object) { + return request({ + url: '/sys/dept/tree', + method: 'get', + params, + }) +} + +// 培训计划保存 +export function getListSave(data: object) { + return request({ + url: `${prefix}/train/plan/save`, + method: 'post', + data, + }) +} +// 培训计划保存后的提交 +export function getListSubmit(data: object) { + return request({ + url: `${prefix}/train/plan/submit`, + method: 'post', + data, + }) +} + +// 培训计划详情 +export function getListDetail(data: object) { + return request({ + url: `${prefix}/train/plan/detail`, + method: 'post', + data, + }) +} +// 培训计划更新 +export function getListUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/update`, + method: 'post', + data, + }) +} + +// 未通过-驳回编辑 +export function getListFailUpdate(data: object) { + return request({ + url: `${prefix}/train/failUpdate`, + method: 'post', + data, + }) +} + +// 草稿箱-编辑 +export function getListDraftUpdate(data: object) { + return request({ + url: `${prefix}/train/plan/draftUpdate`, + method: 'post', + data, + }) +} + +// 培训计划删除 +export function getListDelete(data: object) { + return request({ + url: `${prefix}/train/plan/delete`, + method: 'post', + data, + }) +} + +// 培训记录列表 +export function getLogList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, + method: 'post', + data, + }) +} + +// 列表编号查询 +export function getPlanIdList(data: object) { + return request({ + url: `${prefix}/train/plan/list`, + method: 'post', + data, + }) +} + +// 培训记录新建 +export function getListLogAdd(data: object) { + return request({ + url: `${prefix}/train/log/add`, + method: 'post', + data, + }) +} + +// 培训记录修改 +export function getListLogupdate(data: object) { + return request({ + url: `${prefix}/train/log/update`, + method: 'post', + data, + }) +} + +// 培训记录详情 +export function getListLogDetail(data: object) { + return request({ + url: `${prefix}/train/log/detail`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1c3ae09 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,92 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存至草稿箱 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新草稿箱文件 +export function sourceDraftUpdate(data: object) { + return request({ + url: `${prefix}/supplier/draftUpdate`, + method: 'post', + data, + }) +} +// 驳回后编辑接口 +export function updateSourceApproval(data: object) { + return request({ + url: '/meter/supplier/failUpdate', + method: 'post', + data, + }) +} + +// 导出列表 +export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue deleted file mode 100644 index 2e90deb..0000000 --- a/src/views/business/bench/bench.vue +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue deleted file mode 100644 index ff64af3..0000000 --- a/src/views/business/lab/components/environmentalDialog.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/rollbackDialog.vue b/src/views/business/lab/components/rollbackDialog.vue deleted file mode 100644 index fc787ff..0000000 --- a/src/views/business/lab/components/rollbackDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/sampleDialog.vue b/src/views/business/lab/components/sampleDialog.vue deleted file mode 100644 index 64c3ec6..0000000 --- a/src/views/business/lab/components/sampleDialog.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue deleted file mode 100644 index 6b11916..0000000 --- a/src/views/business/lab/components/selectFiles.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue deleted file mode 100644 index 1ff5620..0000000 --- a/src/views/business/lab/components/selectMeasureDevice.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue deleted file mode 100644 index 6ff117e..0000000 --- a/src/views/business/lab/components/selectSample.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue deleted file mode 100644 index bb4b98e..0000000 --- a/src/views/business/lab/components/selectTemplate.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue deleted file mode 100644 index 9f8e6fa..0000000 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/environmental/environmentalAdd.vue b/src/views/business/lab/environmental/environmentalAdd.vue deleted file mode 100644 index 8fa5759..0000000 --- a/src/views/business/lab/environmental/environmentalAdd.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue deleted file mode 100644 index 79bb1a7..0000000 --- a/src/views/business/lab/environmental/environmentalList.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - diff --git a/src/views/business/lab/environmental/environmentalList_interface.ts b/src/views/business/lab/environmental/environmentalList_interface.ts deleted file mode 100644 index e1dc2a2..0000000 --- a/src/views/business/lab/environmental/environmentalList_interface.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 查询参数 -export interface IListQuery { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - beginTime: string // 记录开始时间 - endTime: string // 记录结束时间 - offset: number // 当前页 - limit: number // 多少条 -} - -// 环境记录单list类型 -export interface IEnvironmental { - environmentCode: string // 记录单编号 - roomNumber: string // 房间号 - recorder: string // 记录人 - temperature: string // 温度(℃) - humidity: string // 湿度 - outputVoltage: string // 输出电压(V) - zeroGroundVoltage: string // 零地电压(V) - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 创建人 - id: string // 主键id -} - -// 房间号模拟下拉框数据类型 -export interface IRoomNumber { - value: string // 值 - name: string // lable - id: string -} - -// 环境记录单详情表单 -export interface IEnvironmentalDetail { - environmentCode: string // 环境记录单编号 - roomNumber: string // 房间编号 - recorder: string // 用户名 - temperature: string // 温度 - humidity: string // 湿度 - outputVoltage: string // 输出电压 - zeroGroundVoltage: string // 零地电压 - remark: string // 备注 - recordTime: string // 记录时间 - createUser: string // 记录人id - createTime: string // 创建时间 - id: string // 主键 - updateTime: string // 更新时间 -} diff --git a/src/views/business/lab/myMeasure/labMeasureEdit.vue b/src/views/business/lab/myMeasure/labMeasureEdit.vue deleted file mode 100644 index 3f4c5cc..0000000 --- a/src/views/business/lab/myMeasure/labMeasureEdit.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue deleted file mode 100644 index fbe064c..0000000 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts deleted file mode 100644 index d8b58bf..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.ts +++ /dev/null @@ -1,48 +0,0 @@ -// 列表查询接口 -export interface IListQuery { - measureCategory: string // 校验类别 - createUser: string // 创建人 - manufacturingNo: string // 出厂编号 - originalRecordCode: string // 原始记录单编号 - sampleModel: string // 样品型号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number // 当前页 - limit: number // 每页多少条 -} - -// 表格 -export interface IList { - id: string // 主键 - originalRecordCode: string // 原始记录单编号 - originalRecordName: string // 原始记录名称 - customerSampleInfo: { // 样品信息 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - manufacturingNo: string // 出厂编号 - sampleModel: string // 样品型号 - } - measureCategory: string // 校验类别 - createUser: string // 创建人 - createTime: string // 创建时间 - remark: string // 备注 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string -} - -// 所用设备表头 -export interface columnsType { - text: string // 文本 - value: string // 列值 - align: string // 是否居中、左、右 - required: Boolean // 控制表格表头红色星号 - choose: Boolean - time: Boolean - width?: string // 列宽 -} - diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue deleted file mode 100644 index 4b2730e..0000000 --- a/src/views/business/lab/primitiveLog/primitiveLogList.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - diff --git a/src/views/business/lab/primitiveLog/primitveLogAdd.vue b/src/views/business/lab/primitiveLog/primitveLogAdd.vue deleted file mode 100644 index 60385b9..0000000 --- a/src/views/business/lab/primitiveLog/primitveLogAdd.vue +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue deleted file mode 100644 index 824572f..0000000 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ /dev/null @@ -1,664 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue b/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue deleted file mode 100644 index 75f0e06..0000000 --- a/src/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue deleted file mode 100644 index 4f29225..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue deleted file mode 100644 index 0cfcb0e..0000000 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsList.vue +++ /dev/null @@ -1,388 +0,0 @@ - - - - - diff --git a/src/views/business/lab/reportOnCredentials/report_interface.ts b/src/views/business/lab/reportOnCredentials/report_interface.ts deleted file mode 100644 index d3bd94b..0000000 --- a/src/views/business/lab/reportOnCredentials/report_interface.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface IFromListInfoType { - templateName: string // 证书报告模板名称 - signName: string // 电子签章名称 - approvalSignName: string // 认可标准专用章 - originalRecordName: string // 原始记录名称 - calibrationPlace: string // 校验地点 - temperature: string // 温度 - humidity: string // 相对湿度 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - leaveNo: string // 出厂编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone: string // 委托方电话 - customerLocation: string // 委托方地址 - censorshipUser: string // 送检人 - phone: string // 送检人联系方式 - expectedDeliveryTime: string // 预计送达时间 - expectedCompletionTime: string // 预计检完时间 - verificationItems: string // 检定项目 - model: string // 型号 - taskId: string - manufacturer: string // 生产厂家 - applyEquipmentList: IApplyEquipmentList[] - fixedAssetsList: IFixedAssetsList[] - fileList: IFileList[] -} - -export interface IApplyEquipmentList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFixedAssetsList { - equipmentName: string // 设备名称 - equipmentNo: string // 设备编号 - modelNo: string // 型号 - mesureResult: string - validDate: string // 到期时间 - id: string // 主键 - equipmentId: string // 设备id - standardApplyId: string -} - -export interface IFileList { - fileName: string - choose: boolean -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 右上角菜单 -export interface MenuType { - name: string - value: any -} - -// 操作下的按钮组 -export interface IButton { - name: string - type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' - permission?: string - proxy?: string - show?: Function // 是否显示 -} - -// 证书报告列表查询条件 -export interface IListQuery { - approvalStatus: string // 审批状态 - certificateReportCode: string // 证书号 - customerName: string // 委托方名称 - measureCategory: string // 检校类别 - orderCode: string // 委托书编号 - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - formId: string - offset: number - limit: number -} - -// 证书报告列表 -export interface IList { - id: string // 主键 - certificateReportCode: string // 证书号 - certificateReportName: string // 证书名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderCode: string // 委托书编号 - measureCategory: string // 检校类别 - measurePersonId: string // 检定人员 - approvalStatus: string // 审批状态 - approvalStatusName: string // 审批状态名称 - createTime: string // 创建时间 - taskId: string // 任务id - processId: string // 流程实例id -} diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts deleted file mode 100644 index e3c72af..0000000 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ /dev/null @@ -1,121 +0,0 @@ -// 证书打印查询 -export interface ICertPrintSearch { - certificateClass: string - certificateNo: string - createUserId: number - printStatus: number | null - certificationReportCode: string // 证书编号 - orderNo: string // 委托书编号 - customerName: string // 委托方名称 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - certificateReportType: string // 证书类型 - printNum: number | '' // 打印次数 -未打印和全部用 - approvalStatus: string // 审批状态-审批查询用 - orderId: string // 委托书id - formId: string // 审批用formId - reason: string // 操作原因 - sampleId: string // 样品id - status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) - ids?: [] | null - offset: number - limit: number -} - -// 证书打印列表 -export interface ICerPrintList { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - crateUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - printStatusName: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - approvalStatus?: string // 审批状态 - approvalStatusName?: string // 审批状态 - taskId?: string // 任务id - id: string // 主键 - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书详情 -export interface ICertification { - certificationId: string // 证书id - certificationReportCode: string // 证书编号 - certificationReportName: string // 证书名称 - certificateReportType: string // 证书类型 - certificateReportTypeName: string // 证书类型 - sampleId: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderId: string // 委托书id - orderNo: string // 委托书编号 - customerNo: string // 客户编号 - customerName: string // 客户名称 - measureCatogory: string // 检校类别 - measureCatogoryName: string // 检校类别 - createUser: string // 检定人员 - createUserName: string // 检定人员 - printNum: string | number// 打印状态-打印次数 - printStatus: string // 可打印状态 0不可打印1可打印 - createTime: string // 生成时间 - calibrationMajor: string // 检校专业 - issuanceDate: string // 出具日期 - signId: string // 电子签章 - signName: string // 电子签章 - approvalSignId: string // 认可标志专用章 - approvalSignName: string // 认可标志专用章 - certificateReportFile: string // 证书报告附件 - originalRecordId: string // 原始记录id - originalRecordCode: string // 原始记录编号 - roomNumber: string // 检校地点 - temperature: string // 温度 - humidity: string // 相对湿度 - manufacturer: string // 生产厂家 - customerPhone: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 联系方式 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 预计检完时间 - mesureContent: string // 检定项目 - remark: string // 备注 -} - -// 证书导出 -export interface ICertExport { - orderId: string - reason?: string // 操作原因 - sampleId?: string // 样品id - status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5) -} - -// 证书同意/拒绝 -export interface ICertApprove { - comments: string - id?: string - taskId: string -} - -// 证书发起 -export interface ICertInitiate { - formId: string - id: string -} diff --git a/src/views/business/schedule/certPrint/certDetail.vue b/src/views/business/schedule/certPrint/certDetail.vue deleted file mode 100644 index 094078a..0000000 --- a/src/views/business/schedule/certPrint/certDetail.vue +++ /dev/null @@ -1,614 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue deleted file mode 100644 index 391931b..0000000 --- a/src/views/business/schedule/certPrint/certList.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue b/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue deleted file mode 100644 index 3d133c7..0000000 --- a/src/views/business/schedule/certPrint/components/ApprovalDialogPart.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/components/terminateDialog.vue b/src/views/business/schedule/components/terminateDialog.vue deleted file mode 100644 index d5f85a0..0000000 --- a/src/views/business/schedule/components/terminateDialog.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue deleted file mode 100644 index f1a3dd8..0000000 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchange/interchange_interface.ts b/src/views/business/schedule/interchange/interchange_interface.ts deleted file mode 100644 index e5140a4..0000000 --- a/src/views/business/schedule/interchange/interchange_interface.ts +++ /dev/null @@ -1,104 +0,0 @@ -import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - startTime: string // 预计送达开始时间 - endTime: string // 预计送达结束时间 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 样品状态 - offset: number - limit: number -} - -export interface IinterchangeList { - id: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - evaluationName: string // 出厂编号 - orderNo: string // 委托书编号 - customerId: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送检人 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - planDeliverTime: string // 预计送达时间 - deliverTime: string // 实际送达时间 - requireOverTime: string // 要求检完时间 - alreadyCertifications: string | number // 已出具证书总数 - requireCertifications: string | number // 应出具证书总数 - currentDeliver: string // 当前检定环节 - orderId: string | number // 委托书id - sampleId: string | number// 样品id -} - -// 检定记录 -export interface SimpleMeasureRecord { - orderNo: string // 委托单编号 - orderTime: string // 委托单日期 - customerCode: string // 委托人代码 - customerName: string // 委托人名称 - deliverer: string // 送检人 - deliverTime: string // 送检日期 -} - -// 检定证书 -export interface SimpleCertification { - certificationCode: string // 证书编号 - certificationName: string // 证书形成 - certificationType: string // 证书类型 - effectiveDate: string // 证书出具日期 - expirationDate: string // 证书有效期 -} - -export interface Menu { - name: string - columns: TableColumn[] - pagination: boolean - list: 'measureRecords' | 'certificationRecords' - searchFunc: Function -} - -export interface ISampleDetail { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - companyAddress: string // 委托方地址 - mesureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - ABC: string // ABC - deliverer?: string // 送检人 - delivererTel?: string // 送检人联系方式 - planDeliverTime?: string // 预计送达时间 - requireOverTime?: string // 要求检完时间 - mesureContent: string // 检定项目 - mesurePeriod: string // 检定周期 - remark: string // 备注 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - mesureType: string // 检定方式 - measureDate?: string // 检定日期 - effectiveDate?: string // 有效日期 - measureResultCode?: string // 检定结果代码 - measureResult?: string // 检定结果 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue b/src/views/business/schedule/interchangeReceipt/receiptEdit.vue deleted file mode 100644 index 1ba8293..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptEdit.vue +++ /dev/null @@ -1,890 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts b/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts deleted file mode 100644 index a657382..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList-interface.ts +++ /dev/null @@ -1,83 +0,0 @@ -// 查询参数 -export interface IListQuery { - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - startTime: string // 交接开始时间 - endTime: string // 交接结束时间 - offset: number - limit: number -} - -// 表格 -export interface IReceiptList { - id: string - interchangeCode: string // 交接单编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - reciever: string // 接收人 - deliverer: string // 送样人 - deliverTime: string // 交接时间 - remark: string // 备注 -} - -// 详情表单 -export interface IReceiptDetail { - interchangeCode: string // 交接单编号 - orderCode: string // 委托书编号 - orderId: string // 委托书id - certificationCompany: string // 证书单位名称 - certificationCompanyFex: string // 传真 - certificationCompanyEmail: string // 邮编 - certificationCompanyAddress: string // 证书单位地址 - reciever: string // 接收人 - recieverPhone: string // 接收人电话 - recieverSignFile: string // 接收人签名文件 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - fax: string // 委托方邮编 - postalCode: string // 委托邮编 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - requireOverTime: string // 完成时间 - deliverTime: string // 交接时间 - measureCategory: string // 检校类别 - secrecy: string // 保密要求 - appearance: string // 样品外观 - relyFile: string // 依据文件 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - appendixDescn: string // 附件说明 - appearance: string // 外观 - measureRequire: string // 检定要求 - isEdit?: boolean // 是否可编辑 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} - -// 查询关联委托方的并且是已收入状态的样品 -export interface ISampleListQuery { - customerId: string // 委托方id - sampleName: string // 样品名称 - sampleNo: string // 样品编号 - offset: number - limit: number -} diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue deleted file mode 100644 index 275a053..0000000 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue deleted file mode 100644 index 4ee6d72..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ /dev/null @@ -1,244 +0,0 @@ - - - - diff --git a/src/views/business/schedule/interchangeReceipt/selectSample.vue b/src/views/business/schedule/interchangeReceipt/selectSample.vue deleted file mode 100644 index efe8cf0..0000000 --- a/src/views/business/schedule/interchangeReceipt/selectSample.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue deleted file mode 100644 index afc8a7d..0000000 --- a/src/views/business/schedule/order/orderEdit.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue deleted file mode 100644 index fa8e6b0..0000000 --- a/src/views/business/schedule/order/orderList.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts deleted file mode 100644 index fd9a10b..0000000 --- a/src/views/business/schedule/order/orderList_interface.ts +++ /dev/null @@ -1,76 +0,0 @@ -// import type { TableColumn } from '@/components/NormalTable/table_interface' - -export interface IListQuery { - orderCode: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - deliverer: string // 送样人 - isUrgent: number // 是否加急 - status: number // 接收状态 - offset: number - limit: number -} - -// 表格 -export interface IOrderList { - id: string - orderCode: string // 委托书编号 - customerId: string // 委托方id - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - customerPhone?: string // 委托方电话 - customerAddress: string // 委托方地址 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - sampleCount: number | string // 样品数量 - isUrgent: number // 是否加急 - status: number // 接收状态 - createTime: string // 创建时间 - remark: string // 备注 - orderTime: string // 委托日期 - requireOverTime: string // 要求检完时间 -} - -// 详情表单 -export interface IOrderDetail { - id?: string - orderCode: string // 委托书编号 - deliverer: string // 送检人 - delivererTel: string // 送样人联系方式 - orderTime: string // 委托日期 - planDeliverTime: string // 预计送达时间 - requireOverTime: string // 要求检完时间 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - customerAddress: string // 委托方地址 - remark: string // 备注 - minioFileName: string // 附件 - isUrgent: number // 是否加急 - certifications: string // 证书类别 -} - -// 样品清单 -export interface ISampleList { - id?: string - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - powerVoltage: string // 电源电压 - appendixDescn: string // 附件说明 - measureContent: string // 检定项目 - remark: string // 备注 - isEdit?: boolean // 是否可编辑 - delId?: string // 删除id - isExistSample?: string // 是否存在样品库中 1存在、0不存在 -} - -// 字典 -export interface dictType { - id: string - name: string - value: string | number - label?: string // 基本信息添加的信息名称 -} diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue deleted file mode 100644 index 3060fe5..0000000 --- a/src/views/business/schedule/order/selectSample.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/business/schedule/task/components/chooseLab.vue b/src/views/business/schedule/task/components/chooseLab.vue deleted file mode 100644 index 2783ee2..0000000 --- a/src/views/business/schedule/task/components/chooseLab.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/lab-interface.ts b/src/views/business/schedule/task/components/lab-interface.ts deleted file mode 100644 index 02b0d1d..0000000 --- a/src/views/business/schedule/task/components/lab-interface.ts +++ /dev/null @@ -1,29 +0,0 @@ -// 查询参数类型 -export interface ILabSearchQuery { - organizeNo: string // 组织编号 - organizeName: string // 名称 - organizeType: string // 类型-3科室 - isLab: '1' // 是否是实验室 - director: string // 负责人 - meterMajor: string // 专业 - createStartTime: '' // 创建开始时间 - createEndTime: '' // 创建结束事假 -} - -// 部门返回值对象类型 -export interface ILabList { - id: string - deptId: string // 部门id - director: string // 负责人名称 - phone: string // 负责人电话 - meterMajor: string // 计量专业 - organizeNo: string // 实验室编号 - organizeName: string // 实验室名称 - measureItems: string // 全部检测能力 - pDeptId: string // 所属部门 - pDeptName: string // 所属部门 - organizeType: string // 组织类型 - remark?: string // 备注 - createTime?: string // 创建时间 - updateTime?: string // 更新时间 -} diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue deleted file mode 100644 index 1efb8a9..0000000 --- a/src/views/business/schedule/task/components/processConfig.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue deleted file mode 100644 index 31dfae4..0000000 --- a/src/views/business/schedule/task/components/processNode.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/components/processNodeAdd.vue b/src/views/business/schedule/task/components/processNodeAdd.vue deleted file mode 100644 index d7aeea0..0000000 --- a/src/views/business/schedule/task/components/processNodeAdd.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts deleted file mode 100644 index 493fbba..0000000 --- a/src/views/business/schedule/task/task-interface.ts +++ /dev/null @@ -1,166 +0,0 @@ -// 任务列表查询条件 -export interface ITaskQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - sampleStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} - -// 我的检测/部门检测查询条件 -export interface ILabQuery { - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: string // 是否加急 - sampleBelong: string // 样品属性 - measureStatus: string // 分发状态 - startTime: string // 应检定开始时间 - endTime: string // 应检定结束时间 - limit: number - offset: number -} -// 任务列表-返回值 -export interface ITaskList { - orderId: string // 委托书编号 - sampleId: string // 样品唯一标识 - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 型号 - manufacturingNo: string // 出厂编号 - orderNo: string // 委托书编号 - customerNo: string // 委托方代码 - customerName: string // 委托方名称 - isUrgent: number // 是否加急 - isUrgentName?: string // 是否加急 - requireOverTime: string // 应检完时间 - sampleBelong: string // 样品属性 - sampleBelongName: string // 样品属性 - currentMeasureState: string // 当前检定环节 - currentMeasureStateName: string // 当前检定环节 - alreadyCertifications: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - distributeState: string // 分发性质-初次分发、退回分发 - handOutProperty: string // 分发性质-初次分发、退回分发 -} - -// 实验室检测/我的检测列表 -export interface IlabMeasureList extends ITaskList { - id: string // 实验室检测id - measurePersonId: string // 检测人id - measureSegmentId: string // 检测部门id -} - -// 全部检测流程节点 -export interface ISchedule { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 - distributePerson: string // 分配人 - distributeTime: string // 分配时间 - startTime: string // 检定开始时间 - overTime: string // 检定完成时间 -} -// 检测流程节点 -export interface IScheduleSet { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications: number // 应出具证书总数 - measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消 - updateTime: string // 流程更新时间 -} -// 退回流程节点 -export interface IScheduleBack { - measurePersonId: string // 执行人 - measurePerson: string // 执行人名称 - measureSegmentId: string // 执行部门 - measureSegment: string // 执行部门名称 - executiveItem: string // 检定项目 - alreadyCertifications?: number // 已出具证书总数 - requireCertifications?: number // 应出具证书总数 - sendBackTime: string // 退回时间 - sendBackReason: string // 退回原因 - sendBackPersonId: string // 退回人 - sendBackPerson: string // 退回人 -} - -// 样品检测信息 -export interface ISampleMeasure { - id: string // 样品id - sampleNo: string // 样品编号 - sampleName: string // 样品名称 - sampleModel: string // 样品型号 - manufacturingNo: string // 出厂编号 - customerNo: string // 委托方代码 - customerId: string // 委托方id - customerName: string // 委托方名称 - phone: string // 委托方电话 - postalCode: string // 委托方邮编 - customerAddress: string // 委托方地址 - measureCategory: string // 检校类别 - manufacturer: string // 生产厂家 - manufacturerCountry: string // 厂家国别 - manufacturingDate: string // 出厂年月 - abc: string // ABC - measurePeriod: string // 检定周期 - minioFileName: string // 说明书 - labelBind: string // 标签绑定 - measureType: string // 检定方式 - measureTypeName: string // 检定方式 - measureLastTime?: string // 检定日期 - validDeadline: string // 有效日期 - powerVoltage: string // 电源电压 - sampleBelong: string // 样品所属 - sampleBelongName: string // 样品所属 - remark: string // 备注 -} - -export interface ITaskDetail { - measureContent: string // 检定项目 - measureProcessList: ISchedule[] // 检定流程 - measureSendBackList: ISchedule[] // 退回信息 - remark: string // 备注 - orderId: string // 委托单id - orderCode: string // 委托单编号 - certifications: string // 证书类别 - planDeliverTime: string // 预约送达时间 - requireOverTime: string // 要求检完时间 - specialRequire: string // 客户特殊要求 - deliverer: string // 送检人 - delivererTel: string // 送检人联系方式 -} - -// 退回 -export interface ISendBack { - id: string // 实验室检测id - measurePersonId: string // 检定人员id - measureSegmentId: string // 检定环节,实验室id - operateReason: string // 退回原因 - orderId: string // 委托书id - sampleId: string // 样品id -} diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue deleted file mode 100644 index 547ee3e..0000000 --- a/src/views/business/schedule/task/taskEdit.vue +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - diff --git a/src/views/business/schedule/task/taskList.vue b/src/views/business/schedule/task/taskList.vue deleted file mode 100644 index 461c518..0000000 --- a/src/views/business/schedule/task/taskList.vue +++ /dev/null @@ -1,314 +0,0 @@ - - - - - diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index 01525f3..6d0c8cf 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -26,7 +26,8 @@ select.value = selectp } const type = computed(() => { - return tablistData.value.filter(item => item.title === select.value)[0]?.id || '2' + console.log(tablistData.value.filter(item => item.title === select.value)[0]?.id, '123123123123') + return tablistData.value.filter(item => item.title === select.value)[0]?.id || '0' }) diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index aff3ce4..92dbf63 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -17,7 +17,7 @@ deviceNo: '', startTime: '', endTime: '', - type: '', + type: props.type, }) // 查询时间段范围 const TimeRanges = ref() @@ -56,11 +56,13 @@ const editRef = ref() // 新增 const add = () => { - editRef.value.initDialog('create', { type: searchQuery.type }) + console.log(props.type, 'searchQuery.type') + editRef.value.initDialog('create', { type: props.type }) } // 编辑 const edit = (row: any) => { - editRef.value.initDialog('update', row) + console.log(props.type, 'searchQuery.type') + editRef.value.initDialog('update', { ...row, type: props.type }) } // 删除 const del = (row: any) => { diff --git a/src/views/data/electricity/pageAdd.vue b/src/views/data/electricity/pageAdd.vue index 057fc7e..bb24931 100644 --- a/src/views/data/electricity/pageAdd.vue +++ b/src/views/data/electricity/pageAdd.vue @@ -2,13 +2,15 @@ import type { FormRules } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus' import { getDictByCode } from '@/api/system/dict' -import { addMonitorStation, updateMonitorStation } from '@/api/api/index' +import { addMonitorStation, getDeviceList, updateMonitorStation } from '@/api/api/index' const emits = defineEmits(['refresh']) const dataFormRef = ref() const dialogFormVisible = ref(false) // 对话框是否显示 const dialogStatus = ref('') // 对话框类型:create,update const isEditMode = ref(true) const areaForm = ref({ + id: '', + deviceId: '', deviceType: '', // 设备类型 deviceNo: '', // 设备编号 installLocaltion: '', // 安装位置 @@ -41,6 +43,8 @@ power: '', // 功率 uploadTime: '', // 上传时间 type: '', + id: '', + deviceId: '', } } const deviceTypeList = ref([]) @@ -51,14 +55,26 @@ console.log(res, 'res') }) } +const deviceList = ref([]) +const fetchDeviceList = () => { + getDeviceList({ offset: 1, limit: 99999 }).then((res) => { + deviceList.value = res.data.rows + }) +} +fetchDeviceList() fetchDeviceType() +watch(() => areaForm.value.deviceId, (newVal) => { + const selectDevice = deviceList.value.filter(item => item.id === newVal)[0] + areaForm.value.deviceType = selectDevice.deviceType + areaForm.value.deviceNo = selectDevice.deviceNo + areaForm.value.installLocaltion = selectDevice.installLocaltion +}) // 初始化对话框 const initDialog = (dialogStatusValue: string, row: any) => { dialogStatus.value = dialogStatusValue dialogFormVisible.value = true btnLoading.value = false if (dialogStatus.value === 'create') { // 如果是新增,清除验证 - areaForm.value.type = row.type resetForm() isEditMode.value = false nextTick(() => { @@ -69,6 +85,7 @@ areaForm.value = row isEditMode.value = true } + areaForm.value.type = row.type } defineExpose({ initDialog, @@ -79,6 +96,7 @@ dataFormRef.value.validate((valid: any) => { if (valid) { btnLoading.value = true + console.log(areaForm.value, 'areaForm.value') addMonitorStation(areaForm.value).then((response) => { if (response.code === 200) { btnLoading.value = false @@ -138,6 +156,20 @@ + + + + + + + + + -->