From d2a7a36c080546b44532579117d823a305856aa9 Mon Sep 17 00:00:00 2001 From: xusd Date: Thu, 13 Jun 2024 15:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=AF=A6=E6=83=85=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=BB=A5=E5=8F=8A=E5=A4=87=E4=BB=B6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=92=8C=E5=A4=87=E4=BB=B6=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/parts/parts.js | 18 ++ pages.json | 14 ++ pages/work/equipInfo/detailsEquipInfo.vue | 131 +++++++++++- pages/work/parts/detailsParts.vue | 164 +++++++++++++++ pages/work/parts/listParts.vue | 235 ++++++++++++++++++++++ 5 files changed, 561 insertions(+), 1 deletion(-) create mode 100644 api/parts/parts.js create mode 100644 pages/work/parts/detailsParts.vue create mode 100644 pages/work/parts/listParts.vue diff --git a/api/parts/parts.js b/api/parts/parts.js new file mode 100644 index 0000000..fbd1991 --- /dev/null +++ b/api/parts/parts.js @@ -0,0 +1,18 @@ +import request from "@/utils/request"; + +//备件库存列表 +export function getStockList(query) { + return request({ + url: "/spareparts/info/stockList", + method: "get", + params: query, + }); +} + +//备件详情 +export function getPartsDetailsByPartsId(partsId) { + return request({ + url: "/spareparts/info/" + partsId, + method: "get" + }); +} \ No newline at end of file diff --git a/pages.json b/pages.json index 84d51bd..a7d3ae1 100644 --- a/pages.json +++ b/pages.json @@ -164,6 +164,20 @@ { "navigationBarTitleText" : "设备图纸" } + }, + { + "path" : "pages/work/parts/listParts", + "style" : + { + "navigationBarTitleText" : "备件管理" + } + }, + { + "path" : "pages/work/parts/detailsParts", + "style" : + { + "navigationBarTitleText" : "备件详情" + } }], "tabBar": { "color": "#000000", diff --git a/pages/work/equipInfo/detailsEquipInfo.vue b/pages/work/equipInfo/detailsEquipInfo.vue index f4651cf..62c6a10 100644 --- a/pages/work/equipInfo/detailsEquipInfo.vue +++ b/pages/work/equipInfo/detailsEquipInfo.vue @@ -43,7 +43,42 @@ - + + + + + + + 保养记录 + + + + + + 维修记录 + + + + + + 报废记录 + + + + + + 相关备件 + + + + + + 设备图纸 + + + + + @@ -71,11 +106,105 @@ this.equipInfo = res.data; }) }, + clickDrawing() { + this.$tab.navigateTo("/pages/work/drawing/listDrawing?equipId=" + this.equipId + "&equipName=" + this + .equipInfo.equipName) + }, + clickParts() { + this.$tab.navigateTo("/pages/work/parts/listParts?equipId=" + this.equipId + "&equipName=" + this.equipInfo + .equipName) + }, + clickMaintenance() { + this.$tab.navigateTo("/pages/work/maintenance/listMaintenance?equipId=" + this.equipId + "&equipName=" + + this.equipInfo.equipName) + }, + clickService() { + this.$tab.navigateTo("/pages/work/service/listService?equipId=" + this.equipId + "&equipName=" + this + .equipInfo.equipName) + }, + clickEquipCancel() { + this.$tab.navigateTo("/pages/work/equipCancel/listEquipCancel?equipId=" + this.equipId + "&equipName=" + + this.equipInfo.equipName) + }, } } \ No newline at end of file diff --git a/pages/work/parts/listParts.vue b/pages/work/parts/listParts.vue new file mode 100644 index 0000000..63b58dc --- /dev/null +++ b/pages/work/parts/listParts.vue @@ -0,0 +1,235 @@ + + + + + \ No newline at end of file