| | |
| | | <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"> |
| | |
| | | </view> |
| | | </wd-card> |
| | | </view> |
| | | <!-- <view class="bg-white mt-2">--> |
| | | <!-- <wd-card type="rectangle">--> |
| | | <!-- <template #title>--> |
| | | <!-- <view class="flex items-center menu-title-box">--> |
| | | <!-- <view class="menu-indicator"></view>--> |
| | | <!-- <view class="ml-1 text-sm">快捷操作</view>--> |
| | | <!-- </view>--> |
| | | <!-- </template>--> |
| | | <!-- <wd-grid :column="4">--> |
| | | <!-- <wd-grid-item--> |
| | | <!-- use-slot--> |
| | | <!-- class="flex justify-center items-center"--> |
| | | <!-- 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>--> |
| | | <!-- </wd-grid-item>--> |
| | | <!-- </wd-grid>--> |
| | | <!-- </wd-card>--> |
| | | <!-- </view>--> |
| | | <view class="bg-white mt-2"> |
| | | <wd-card type="rectangle"> |
| | | <template #title> |
| | | <view class="flex items-center menu-title-box"> |
| | | <view class="menu-indicator"></view> |
| | | <view class="ml-1 text-xs">快捷操作</view> |
| | | </view> |
| | | </template> |
| | | <wd-grid :column="4"> |
| | | <wd-grid-item |
| | | use-slot |
| | | class="flex justify-center items-center" |
| | | v-for="(item, index) in commonMenu" |
| | | :key="item.id" |
| | | @click.stop="goItemPage(item)" |
| | | > |
| | | <image class="slot-img text-center" :src="item.icon" /> |
| | | <text>{{ item.name }}</text> |
| | | </wd-grid-item> |
| | | </wd-grid> |
| | | </wd-card> |
| | | </view> |
| | | <view class="bg-white mt-2"> |
| | | <wd-card type="rectangle"> |
| | | <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"> |
| | |
| | | <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"> |
| | |
| | | import { useUserStore } from '@/store' |
| | | import { tabbarStore } from '@/components/fg-tabbar/tabbar' |
| | | import { getEquList } from '@/service/equ' |
| | | import { getRepairResList } from '@/service/repair' |
| | | import { getRepairResList, getRepairResUnfinished } from "@/service/repair"; |
| | | import { getFixtureList } from '@/service/fixture' |
| | | import { receiveOrderRepair } from '@/service/mobile' |
| | | import { useToast, useMessage } from 'wot-design-uni' |
| | |
| | | getEquList({ pageNum, pageSize }) |
| | | .then((res: any) => { |
| | | equTotal.value = res?.total || 0 |
| | | queryRepairResList() |
| | | // queryRepairResList() |
| | | queryUnFinishedRepairResList() |
| | | queryFixtureList() |
| | | paging.value.complete(true) |
| | | }) |
| | |
| | | onLoad(() => { |
| | | // getAllMenus() |
| | | queryEquList() |
| | | queryRepairResList() |
| | | queryUnFinishedRepairResList() |
| | | queryFixtureList() |
| | | }) |
| | | |
| | |
| | | }, |
| | | { |
| | | id: 2, |
| | | name: '工具列表', |
| | | icon: '/static/ico/ico16.png', |
| | | path: 'pages/fixture/fixture-list', |
| | | name: '状态变更记录', |
| | | icon: '/static/ico/ico15.png', |
| | | path: 'pages/equ-status/list', |
| | | }, |
| | | // { |
| | | // id: 2, |
| | | // name: '工具列表', |
| | | // icon: '/static/ico/ico16.png', |
| | | // path: 'pages/fixture/fixture-list', |
| | | // }, |
| | | ]) |
| | | |
| | | const inspectMenu = reactive([ |
| | |
| | | .catch((res) => {}) |
| | | } |
| | | |
| | | function queryUnFinishedRepairResList() { |
| | | getRepairResUnfinished('0,1,2') |
| | | .then((res: any) => { |
| | | console.log("res", res) |
| | | faultTotal.value = res || 0 |
| | | }) |
| | | .catch((res) => {}) |
| | | } |
| | | |
| | | function queryFixtureList() { |
| | | getFixtureList({ |
| | | page: 1, |