From f65de6ca1216569e8eb17667e1474c6d5b8b344b Mon Sep 17 00:00:00 2001 From: huangchenhao <123673748@qq.com> Date: Tue, 9 Dec 2025 17:43:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B0=E9=9B=AA=E4=B8=93=E9=A2=98App?= =?UTF-8?q?=E7=AB=AF=20=E9=9D=9E=E7=AB=99=E9=95=BF=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/Equipment/EquipmentManagement.vue | 406 +++++------------- .../src/views/Material/MaterialManagement.vue | 211 +++------ 2 files changed, 163 insertions(+), 454 deletions(-) diff --git a/packages/mobile/src/views/Equipment/EquipmentManagement.vue b/packages/mobile/src/views/Equipment/EquipmentManagement.vue index 0ec8dd2..74aa349 100644 --- a/packages/mobile/src/views/Equipment/EquipmentManagement.vue +++ b/packages/mobile/src/views/Equipment/EquipmentManagement.vue @@ -2,31 +2,17 @@
- + - {{ pendingConfirmList.length }}个设备待确认 + {{ pendingConfirmList.length + }}个设备待确认
- + }">
- + 添加设备 - +

设备信息

- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
-
- + "> + 保存
@@ -496,11 +282,23 @@ const getPendingConfirmList = async (sbmc) => { // 跳转到待确认设备页 const handleConfirm = () => { - router.push({ - name: "EquipConfirm", - params: { - data: encodeURIComponent(JSON.stringify(detailData.value)), - }, + if (detailData.value.isManager) { + router.push({ + name: "EquipConfirm", + params: { + data: encodeURIComponent(JSON.stringify(detailData.value)), + }, + }); + } else{ + handleMessage(); + } +}; + +// 弹出提示 +const handleMessage = () => { + showToast({ + type: "fail", + message: "您不是站长,无法确认设备", }); }; @@ -829,7 +627,8 @@ const handleSubmit = async () => { - \ No newline at end of file + \ No newline at end of file