diff --git a/src/api/device/deviceOrder.js b/src/api/device/deviceOrder.js new file mode 100644 index 0000000..e6fc322 --- /dev/null +++ b/src/api/device/deviceOrder.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询计划工单列表 +export function listDeviceOrder(query) { + return request({ + url: '/device/deviceOrder/list', + method: 'get', + params: query + }); +} + +// 查询计划工单详细 +export function getDeviceOrder(orderId) { + return request({ + url: '/device/deviceOrder/' + orderId, + method: 'get' + }); +} + +// 新增计划工单 +export function addDeviceOrder(data) { + return request({ + url: '/device/deviceOrder', + method: 'post', + data: data + }); +} + +// 修改计划工单 +export function updateDeviceOrder(data) { + return request({ + url: '/device/deviceOrder', + method: 'put', + data: data + }); +} + +// 删除计划工单 +export function delDeviceOrder(orderId) { + return request({ + url: '/device/deviceOrder/' + orderId, + method: 'delete' + }); +} diff --git a/src/api/device/upkeepPlan.js b/src/api/device/upkeepPlan.js new file mode 100644 index 0000000..63a88bd --- /dev/null +++ b/src/api/device/upkeepPlan.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询保养计划列表 +export function listUpkeepPlan(query) { + return request({ + url: '/device/upkeepPlan/list', + method: 'get', + params: query + }); +} + +// 查询保养计划详细 +export function getUpkeepPlan(planId) { + return request({ + url: '/device/upkeepPlan/' + planId, + method: 'get' + }); +} + +// 新增保养计划 +export function addUpkeepPlan(data) { + return request({ + url: '/device/upkeepPlan', + method: 'post', + data: data + }); +} + +// 修改保养计划 +export function updateUpkeepPlan(data) { + return request({ + url: '/device/upkeepPlan', + method: 'put', + data: data + }); +} + +// 删除保养计划 +export function delUpkeepPlan(planId) { + return request({ + url: '/device/upkeepPlan/' + planId, + method: 'delete' + }); +} diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue new file mode 100644 index 0000000..84d0aab --- /dev/null +++ b/src/views/device/deviceOrder/index.vue @@ -0,0 +1,608 @@ + + + diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue new file mode 100644 index 0000000..b2211a5 --- /dev/null +++ b/src/views/device/upkeepPlan/index.vue @@ -0,0 +1,670 @@ + + +