diff --git a/src/api/device/faultReport.js b/src/api/device/faultReport.js new file mode 100644 index 00000000..cf42c1cf --- /dev/null +++ b/src/api/device/faultReport.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 查询故障报修列表 +export function listFaultReport(query) { + return request({ + url: '/device/faultReport/list', + method: 'get', + params: query + }); +} + +// 查询故障报修详细 +export function getFaultReport(orderId) { + return request({ + url: '/device/faultReport/' + orderId, + method: 'get' + }); +} + +// 新增故障报修 +export function addFaultReport(data) { + return request({ + url: '/device/faultReport', + method: 'post', + data: data + }); +} + +// 修改故障报修 +export function updateFaultReport(data) { + return request({ + url: '/device/faultReport', + method: 'put', + data: data + }); +} + +// 删除故障报修 +export function delFaultReport(orderId) { + return request({ + url: '/device/faultReport/' + orderId, + method: 'delete' + }); +} + +// 查询故障报修列表 +export function getEquipmentList(query) { + return request({ + url: '/device/faultReport/getEquipmentList', + method: 'get', + params: query + }); +} + +// 查询设备类型 +export function getEquipmentTypeList() { + return request({ + url: '/device/faultReport/getEquipmentTypeList', + method: 'get' + }); +} + diff --git a/src/views/device/faultReport/index.vue b/src/views/device/faultReport/index.vue new file mode 100644 index 00000000..8b530047 --- /dev/null +++ b/src/views/device/faultReport/index.vue @@ -0,0 +1,477 @@ + + + diff --git a/src/views/device/faultReport/single.vue b/src/views/device/faultReport/single.vue new file mode 100644 index 00000000..534d12f1 --- /dev/null +++ b/src/views/device/faultReport/single.vue @@ -0,0 +1,279 @@ + + +