| | |
| | | //新增设备档案 |
| | | export function addDocument(data) { |
| | | return request({ |
| | | url: "/deviceDocuments/addDocument", |
| | | url: "/documents/add", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | |
| | | // 获取相关文档数据的api-更新 |
| | | export function updateDocument(data) { |
| | | return request({ |
| | | url: "/deviceDocuments/updateDocument", |
| | | url: "/documents/updateDocument", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | |
| | | //删除设备档案 |
| | | export function deleteDocumentById(query) { |
| | | return request({ |
| | | url: "/deviceDocuments/deleteDocumentById", |
| | | url: "/documents/delete", |
| | | method: "delete", |
| | | params: query, |
| | | }); |
| | |
| | | } |
| | | |
| | | //查询设备档案列表 |
| | | export function getAllDocuments(query) { |
| | | export function getListByDId(query) { |
| | | return request({ |
| | | url: `/deviceDocuments/getAllDocuments`, |
| | | url: '/documents/getListByDId', |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | params: query, |
| | | }); |
| | | } |
| | | //设备预约接口 |
| | | // 设备运行总览-根据id获取设备故障数据 |
| | | export function device(query) { |
| | | return request({ |
| | | url: "/api/device-faults/device", |
| | | url: "/deviceFaults/device", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | //设备验收中四个table表格的删除功能 |
| | | export function deleteIncidentReportAll(query) { |
| | | return request({ |
| | | url: "/incident-report/deleteIncidentReportAll", |
| | | url: "/incidentReport/deleteIncidentReportAll", |
| | | method: "delete", |
| | | params: query, |
| | | }); |
| | | } |
| | | //设备验收中四个table表格的删除功能 |
| | | export function deleteIncidentReport(query) { |
| | | return request({ |
| | | url: "/incidentReport/deleteIncidentReport", |
| | | method: "delete", |
| | | params: query, |
| | | }); |
| | |
| | | //设备验收 保存,提交,驳回,通过接口 |
| | | export function saveIncidentReportData(query) { |
| | | return request({ |
| | | url: "/incident-report/saveIncidentReportData", |
| | | url: "/incidentReport/saveIncidentReportData", |
| | | method: "post", |
| | | data: query, |
| | | }); |
| | |
| | | //设备验收 保存,提交,驳回,通过接口 |
| | | export function incidentReportPage(query) { |
| | | return request({ |
| | | url: "/incident-report/incidentReportPage", |
| | | url: "/incidentReport/incidentReportPage", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | //设备验收 保存,提交,驳回,通过接口 |
| | | export function getShowIncidentReport(query) { |
| | | return request({ |
| | | url: "/incident-report/getShowIncidentReport", |
| | | url: "/incidentReport/getShowIncidentReport", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | //设备验收导出 |
| | | export function incidentReportExport(query) { |
| | | return request({ |
| | | url: "/incident-report/incidentReportExport", |
| | | url: "/incidentReport/incidentReportExport", |
| | | method: "get", |
| | | params: query, |
| | | responseType: "blob" |