From 3a553a55e04083b54d0068fc55d3661f100ccdb5 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 6 Feb 2024 17:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=85=BB=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/onkeepOrder.js | 67 ++ pages.json | 17 +- pages/index.vue | 2 +- pages/upkeepOrder/addServiceRecord.vue | 629 ++++++++++++++++++ pages/upkeepOrder/detail.vue | 478 +++++++++++++ pages/upkeepOrder/index.vue | 230 +++++++ pages/upkeepOrder/myRepairOrder.vue | 226 +++++++ .../transfer.vue | 0 8 files changed, 1646 insertions(+), 3 deletions(-) create mode 100644 api/onkeepOrder.js create mode 100644 pages/upkeepOrder/addServiceRecord.vue create mode 100644 pages/upkeepOrder/detail.vue create mode 100644 pages/upkeepOrder/index.vue create mode 100644 pages/upkeepOrder/myRepairOrder.vue rename pages/{overhaulOrder => upkeepOrder}/transfer.vue (100%) diff --git a/api/onkeepOrder.js b/api/onkeepOrder.js new file mode 100644 index 0000000..be2e808 --- /dev/null +++ b/api/onkeepOrder.js @@ -0,0 +1,67 @@ +import request from '@/utils/request' + + +// 添加工单 +export function onkeepOrderCreate(data) { + return request({ + url: '/eam/device-maintain-order-main/create', + 'method': 'POST', + data + }) +} +// 编辑工单 +export function onkeepOrderUpdate(data) { + return request({ + url: '/eam/device-maintain-order-main/update', + 'method': 'PUT', + data + }) +} +// 报修列表 +export function onkeepOrderPage(params) { + return request({ + url: '/eam/device-maintain-order-main/getAppPage', + 'method': 'GET', + params + }) +} +// 操作工单 +export function orderClick(params) { + return request({ + url: '/eam/device-maintain-order-main/onClick', + 'method': 'GET', + params + }) +} +// 添加维修工单子项维修内容 +export function onkeepOrderDetailCreate(data) { + return request({ + url: '/eam/device-maintain-order-detail/create', + 'method': 'POST', + data + }) +} +// 编辑维修工单子项维修内容 +export function onkeepOrderDetailUpdate(data) { + return request({ + url: '/eam/device-maintain-order-detail/update', + 'method': 'PUT', + data + }) +} +// 获得维修工单子列表 +export function onkeepOrderDetailList(params) { + return request({ + url: '/eam/device-maintain-order-detail/selectListByNumber', + 'method': 'GET', + params + }) +} +// 删除维修工单子 +export function onkeepOrderDetailDelete(id) { + return request({ + url: '/eam/device-maintain-order-detail/delete?id='+id, + 'method': 'DELETE' + }) +} + diff --git a/pages.json b/pages.json index bff2335..d97e886 100644 --- a/pages.json +++ b/pages.json @@ -123,9 +123,22 @@ "navigationBarTextStyle": "white" } },{ - "path": "pages/overhaulOrder/transfer", + "path": "pages/upkeepOrder/index", "style": { - "navigationBarTitleText": "转办", + "navigationBarTitleText": "保养工单", + "navigationStyle": "custom" + } + },{ + "path": "pages/upkeepOrder/detail", + "style": { + "navigationBarTitleText": "保养工单详情", + "navigationBarBackgroundColor": "#409eff", + "navigationBarTextStyle": "white" + } + },{ + "path": "pages/upkeepOrder/addServiceRecord", + "style": { + "navigationBarTitleText": "添加保养内容", "navigationBarBackgroundColor": "#409eff", "navigationBarTextStyle": "white" } diff --git a/pages/index.vue b/pages/index.vue index 159673f..5a69341 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -69,7 +69,7 @@ - + 保养工单 diff --git a/pages/upkeepOrder/addServiceRecord.vue b/pages/upkeepOrder/addServiceRecord.vue new file mode 100644 index 0000000..68f2519 --- /dev/null +++ b/pages/upkeepOrder/addServiceRecord.vue @@ -0,0 +1,629 @@ + + + + + \ No newline at end of file diff --git a/pages/upkeepOrder/detail.vue b/pages/upkeepOrder/detail.vue new file mode 100644 index 0000000..3f6ae73 --- /dev/null +++ b/pages/upkeepOrder/detail.vue @@ -0,0 +1,478 @@ + + + + + \ No newline at end of file diff --git a/pages/upkeepOrder/index.vue b/pages/upkeepOrder/index.vue new file mode 100644 index 0000000..b153902 --- /dev/null +++ b/pages/upkeepOrder/index.vue @@ -0,0 +1,230 @@ + + + + + \ No newline at end of file diff --git a/pages/upkeepOrder/myRepairOrder.vue b/pages/upkeepOrder/myRepairOrder.vue new file mode 100644 index 0000000..06fc4f3 --- /dev/null +++ b/pages/upkeepOrder/myRepairOrder.vue @@ -0,0 +1,226 @@ + + + + + \ No newline at end of file diff --git a/pages/overhaulOrder/transfer.vue b/pages/upkeepOrder/transfer.vue similarity index 100% rename from pages/overhaulOrder/transfer.vue rename to pages/upkeepOrder/transfer.vue