车间能级提升-智能设备管理系统
baoshiwei
2025-06-09 df64c34d92cbe8501bbbfe837bc491a47452c0b6
eims-ui-mobile/src/pages/home/index.vue
@@ -61,7 +61,7 @@
          <template #title>
            <view class="flex items-center menu-title-box">
              <view class="menu-indicator"></view>
              <view class="ml-1 text-xs">数据总览</view>
              <view class="ml-1 text-sm">数据总览</view>
            </view>
          </template>
          <view class="flex flex-row justify-around">
@@ -85,7 +85,7 @@
          <template #title>
            <view class="flex items-center menu-title-box">
              <view class="menu-indicator"></view>
              <view class="ml-1 text-xs">快捷操作</view>
              <view class="ml-1 text-sm">快捷操作</view>
            </view>
          </template>
          <wd-grid :column="4">
@@ -95,6 +95,7 @@
              v-for="(item, index) in commonMenu"
              :key="item.id"
              @click.stop="goItemPage(item)"
              v-show="!(isLeader() && item.custom)"
            >
              <image class="slot-img text-center" :src="item.icon" />
              <text>{{ item.name }}</text>
@@ -107,7 +108,7 @@
          <template #title>
            <view class="flex items-center menu-title-box">
              <view class="menu-indicator"></view>
              <view class="ml-1 text-xs">设备管理</view>
              <view class="ml-1 text-sm">设备管理</view>
            </view>
          </template>
          <wd-grid :column="4">
@@ -129,7 +130,7 @@
          <template #title>
            <view class="flex items-center menu-title-box">
              <view class="menu-indicator"></view>
              <view class="ml-1 text-xs">台账相关</view>
              <view class="ml-1 text-sm">台账相关</view>
            </view>
          </template>
          <wd-grid :column="4">
@@ -161,6 +162,7 @@
import { receiveOrderRepair } from '@/service/mobile'
import { useToast, useMessage } from 'wot-design-uni'
import { ref } from 'vue'
import {isLeader} from "@/utils/RoleUtils";
const message = useMessage()
const toast = useToast()
@@ -212,7 +214,11 @@
  } else {
    switch (item.name) {
      case '接单维修':
        handleSelectReq()
        if (isLeader()) {
          toast.info('请登录维修工账号接单')
        } else {
          handleSelectReq()
        }
        break
    }
  }