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