diff --git a/src/api/device/equTeam.js b/src/api/device/equTeam.js new file mode 100644 index 0000000..1bd5d5d --- /dev/null +++ b/src/api/device/equTeam.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备班组维护列表 +export function listEquTeam(query) { + return request({ + url: '/device/equTeam/list', + method: 'get', + params: query + }); +} + +// 查询设备班组维护详细 +export function getEquTeam(id) { + return request({ + url: '/device/equTeam/' + id, + method: 'get' + }); +} + +// 新增设备班组维护 +export function addEquTeam(data) { + return request({ + url: '/device/equTeam', + method: 'post', + data: data + }); +} + +// 修改设备班组维护 +export function updateEquTeam(data) { + return request({ + url: '/device/equTeam', + method: 'put', + data: data + }); +} + +// 删除设备班组维护 +export function delEquTeam(id) { + return request({ + url: '/device/equTeam/' + id, + method: 'delete' + }); +} diff --git a/src/api/device/faultReport.js b/src/api/device/faultReport.js index 81cb245..a89c5ea 100644 --- a/src/api/device/faultReport.js +++ b/src/api/device/faultReport.js @@ -70,9 +70,9 @@ export function checkFaultReport(data) { } // 查询报修人员列表 -export function getPersonList(query) { +export function getRepairPersonList(query) { return request({ - url: '/device/faultReport/getPersonList', + url: '/device/faultReport/getRepairPersonList', method: 'get', params: query }); diff --git a/src/api/device/repairOrder.js b/src/api/device/repairOrder.js index c096c36..42ef4d8 100644 --- a/src/api/device/repairOrder.js +++ b/src/api/device/repairOrder.js @@ -52,4 +52,22 @@ export function applyOutsource(data) { }); } +//填写维修记录 +export function writeRepairOrder(data) { + return request({ + url: '/device/repairOrder/write', + method: 'post', + data: data + }); +} + +// 查询维修人员列表 +export function getMaintenancePersonList(query) { + return request({ + url: '/device/repairOrder/getMaintenancePersonList', + method: 'get', + params: query + }); +} + diff --git a/src/views/device/equTeam/index.vue b/src/views/device/equTeam/index.vue new file mode 100644 index 0000000..e55295c --- /dev/null +++ b/src/views/device/equTeam/index.vue @@ -0,0 +1,442 @@ + + + diff --git a/src/views/device/equTeam/selectSinglePerson.vue b/src/views/device/equTeam/selectSinglePerson.vue new file mode 100644 index 0000000..34ade19 --- /dev/null +++ b/src/views/device/equTeam/selectSinglePerson.vue @@ -0,0 +1,182 @@ + + + diff --git a/src/views/device/faultReport/selectSinglePerson.vue b/src/views/device/faultReport/selectSinglePerson.vue index 68cf559..05f59b1 100644 --- a/src/views/device/faultReport/selectSinglePerson.vue +++ b/src/views/device/faultReport/selectSinglePerson.vue @@ -60,7 +60,7 @@ + + + diff --git a/src/views/device/repairOrder/selectSinglePerson.vue b/src/views/device/repairOrder/selectSinglePerson.vue index ceef074..11fe0a9 100644 --- a/src/views/device/repairOrder/selectSinglePerson.vue +++ b/src/views/device/repairOrder/selectSinglePerson.vue @@ -38,9 +38,10 @@ - - + + +