From a51be53fb61ae5b2c5310ee696a603121bf022f9 Mon Sep 17 00:00:00 2001
From: wws <18630710203@163.com>
Date: Mon, 23 Oct 2023 11:46:29 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=85=BB=E8=AE=A1=E5=88=92=E5=88=9D?=
=?UTF-8?q?=E5=A7=8B=E5=8C=96=E3=80=81=E5=B7=A1=E6=A3=80=E5=B7=A5=E5=8D=95?=
=?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/device/deviceOrder.js | 44 ++
src/api/device/upkeepPlan.js | 44 ++
src/views/device/deviceOrder/index.vue | 608 ++++++++++++++++++++++
src/views/device/upkeepPlan/index.vue | 670 +++++++++++++++++++++++++
4 files changed, 1366 insertions(+)
create mode 100644 src/api/device/deviceOrder.js
create mode 100644 src/api/device/upkeepPlan.js
create mode 100644 src/views/device/deviceOrder/index.vue
create mode 100644 src/views/device/upkeepPlan/index.vue
diff --git a/src/api/device/deviceOrder.js b/src/api/device/deviceOrder.js
new file mode 100644
index 00000000..e6fc322c
--- /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 00000000..63a88bd1
--- /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 00000000..84d0aabe
--- /dev/null
+++ b/src/views/device/deviceOrder/index.vue
@@ -0,0 +1,608 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.planLoopEnd, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.orderStart, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.orderEnd, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue
new file mode 100644
index 00000000..b2211a5e
--- /dev/null
+++ b/src/views/device/upkeepPlan/index.vue
@@ -0,0 +1,670 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.planLoopEnd, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+