2022-03-14 09:09:10 +00:00
|
|
|
|
<template>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view class="pad-x50">
|
2022-03-16 11:40:58 +00:00
|
|
|
|
<status-nav-slot>
|
2022-03-24 08:34:50 +00:00
|
|
|
|
<view slot="leftContent" @tap="goMessage" style="width: 70px;">
|
2022-03-16 11:40:58 +00:00
|
|
|
|
<view class="home-message-box posir disac">
|
|
|
|
|
<image src="/static/public/icon-home-message.png" mode=""></image>
|
2022-04-13 12:36:32 +00:00
|
|
|
|
<view v-if="messageNumber">{{messageNumber}}</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view slot="centerContent" class="disjcac">
|
|
|
|
|
<image style="width: 156rpx;height: 38rpx;" src="/static/public/icom-home-logo.png" mode="widthFix"></image>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- #ifdef APP-PLUS -->
|
2022-03-24 08:34:50 +00:00
|
|
|
|
<view slot="rightContent" class="disac" @tap="callEv">
|
2022-03-16 11:40:58 +00:00
|
|
|
|
<image class="mar-y10" style="width: 26rpx;height: 26rpx;" src="/static/public/icon-home-phone.png" mode=""></image>
|
|
|
|
|
<view class="fon26 col3">拨打电话</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<!-- #ifdef H5 -->
|
|
|
|
|
<view slot="rightContent" class="disac" @tap="callEv">
|
|
|
|
|
<image class="mar-y10" style="width: 26rpx;height: 26rpx;" src="/static/public/icon-home-phone.png" mode=""></image>
|
|
|
|
|
<view class="fon26 col3">拨打电话</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
|
|
<view slot="rightContent" @tap="goMessage" style="width: 70px;"></view>
|
|
|
|
|
<!-- #endif -->
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</status-nav-slot>
|
|
|
|
|
<!-- <view :style="{paddingTop: statusHeight +'px'}"> -->
|
|
|
|
|
<!-- banner图 -->
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<container-subgroup-two>
|
|
|
|
|
<view slot="content" style="margin: 0 -30rpx;">
|
|
|
|
|
<image class="width100" src="/static/public/icon-home-banner.png" mode="widthFix"></image>
|
|
|
|
|
<view class="pad-zy20">
|
|
|
|
|
<!-- 项目总数、实时故障、公告 -->
|
|
|
|
|
<view class="project-notice-box">
|
|
|
|
|
<view class="disjcac pad-sx20 bbot">
|
|
|
|
|
<view class="disjcac fc width50">
|
|
|
|
|
<view class="fon26 col9">项目总数</view>
|
2022-04-13 12:36:32 +00:00
|
|
|
|
<view class="fon60 bold">{{project_count || 0}}</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class="bleft" style="height: 90rpx;"></view>
|
|
|
|
|
<view class="disjcac fc width50">
|
2022-04-12 00:50:56 +00:00
|
|
|
|
<view class="fon26 col9">实时工单</view>
|
2022-04-13 12:36:32 +00:00
|
|
|
|
<view class="fon60 bold">{{fault_count || 0}}</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view class="disac pad-s30 pad-x10">
|
|
|
|
|
<image class="mar-zy20" style="width: 64rpx;height: 27rpx;" src="/static/public/icon-home-notice.png" mode=""></image>
|
|
|
|
|
<view class="fon24 color6 mar-y20 width100 bleft pad-z20">
|
2022-04-07 10:16:05 +00:00
|
|
|
|
<!-- <lwNotice @dangGao="goNoticeDetail" :list="noticeList" :backgroundColor="'#FFFFFF'"></lwNotice> -->
|
|
|
|
|
<notice-one direction="row" :list="noticeList"></notice-one>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 客户可见 -->
|
|
|
|
|
<view v-if="role==2 || role==1">
|
|
|
|
|
<!-- 故障报修 -->
|
|
|
|
|
<view class="home-fun-box">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">故障报修</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s60 mar-x20" style="height: 58rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view @tap="goFaultRepair(index)" class="disjcac fc width25" v-for="(item,index) in repairList" :key="index">
|
|
|
|
|
<image :style="{width: [58,58,50][index]+'rpx',height:[53,56,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 数据查询 -->
|
|
|
|
|
<view class="home-fun-box" v-if="role==1">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">数据查询</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view @tap="dataQueryEv(index)" class="disjcac fc width25" v-for="(item,index) in dataQueryList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 56rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [58,58,58][index]+'rpx',height:[46,56,50][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 增值服务 -->
|
|
|
|
|
<view class="home-fun-box">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">增值服务</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s60 mar-x20" style="height: 56rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view @tap="goIncrement(index)" class="disjcac fc width25" v-for="(item,index) in incrementList" :key="index">
|
|
|
|
|
<image :style="{width: [57,52,58,51][index]+'rpx',height:[56,56,50,56][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 工程师可见 -->
|
|
|
|
|
<view v-if="role==4 || role==3">
|
2022-04-12 00:50:56 +00:00
|
|
|
|
<!-- 项目维保 -->
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view class="home-fun-box" v-if="role==4">
|
2022-04-12 00:50:56 +00:00
|
|
|
|
<view class="fun-title col3 fon28 disac bold">项目维保</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-04-06 08:05:38 +00:00
|
|
|
|
<view @tap="stayEv(item.title,item.id)" class="disjcac fc width25" v-for="(item,index) in projectRepairList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 58rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [53,52,51][index]+'rpx',height:[58,58,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view v-if="role==3">
|
|
|
|
|
<!-- 待办工单 -->
|
|
|
|
|
<view class="home-fun-box">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">待办工单</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-04-06 08:05:38 +00:00
|
|
|
|
<view @tap="stayEv(item.title,item.id)" class="disjcac fc width25" v-for="(item,index) in stayWorkOrderList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 58rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [53,48,51,58][index]+'rpx',height:[58,58,58,53][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 待办事件 -->
|
|
|
|
|
<view class="home-fun-box">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">待办事件</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-04-06 08:05:38 +00:00
|
|
|
|
<view @tap="stayEv(item.title,item.id)" class="disjcac fc width25" v-for="(item,index) in stayEventList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 58rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [58,58,50][index]+'rpx',height:[58,54,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 工单数据 -->
|
|
|
|
|
<view class="home-fun-box">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">工单数据</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-04-06 08:05:38 +00:00
|
|
|
|
<view @tap="stayEv(item.title,item.id)" class="disjcac fc width25" v-for="(item,index) in workOrderList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 60rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [59,56,58,58][index]+'rpx',height:[49,58,58,60][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 数据查询 -->
|
|
|
|
|
<view class="home-fun-box" v-if="role==3">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">数据查询</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view @tap="dataQueryEv(index)" class="disjcac fc width25" v-for="(item,index) in dataQueryList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 56rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [58,58,58][index]+'rpx',height:[46,56,50][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 结算情况 -->
|
|
|
|
|
<view class="home-fun-box" v-if="role==4">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">结算情况</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s40">
|
2022-04-06 08:05:38 +00:00
|
|
|
|
<view @tap="stayEv(item.title,item.id)" class="disjcac fc width25" v-for="(item,index) in settlementList" :key="index">
|
2022-03-30 01:04:25 +00:00
|
|
|
|
<view class="posir" style="height: 58rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image :style="{width: [58,50,58][index]+'rpx',height:[54,58,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
|
|
|
|
</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 其他 -->
|
|
|
|
|
<view class="home-fun-box">
|
|
|
|
|
<view class="fun-title col3 fon28 disac bold">其他</view>
|
2022-04-01 08:56:35 +00:00
|
|
|
|
<view class="disac mar-s60 mar-x20" style="height: 58rpx;">
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view @tap="otherEv(index)" class="disjcac fc width25" v-for="(item,index) in otherList" :key="index">
|
|
|
|
|
<image :style="{width: [58,49,58][index]+'rpx',height:[51,58,55][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
|
|
|
|
<view class="fon24 col3 mar-s10">{{item.title}}</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 解决方案 -->
|
|
|
|
|
<view class="home-solution mar-x20 pad30">
|
|
|
|
|
<view class="disjbac" @tap="goPlant(0)">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="fon30 bold" style="color: #00a2e9;">畅想智能-场景化设计</view>
|
|
|
|
|
<view class="fon34 bold col3 mar-s10">解决方案<text class="col9 mar-z10">Solution</text></view>
|
|
|
|
|
</view>
|
|
|
|
|
<image style="width: 50rpx;height: 50rpx;" src="/static/public/icon-home-solution.png" mode=""></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="mar-s30">
|
|
|
|
|
<scroll-view scroll-x>
|
|
|
|
|
<view :class="solutionList.length == 4 ? 'disjbac' : 'disac'">
|
2022-04-15 10:44:40 +00:00
|
|
|
|
<view @tap="goDetail(0,item.id)" class="posir flexs" v-for="(item,index) in solutionList" :key="index" style="width: 23%;height: 110px;" :style="{marginRight: solutionList.length != 4 ? '20rpx' : ''}">
|
|
|
|
|
<image style="width: 100%;height: 110px;" class="radius10 " :src="item.imgsrc" mode="aspectFill"></image>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<view class="posia solution-title clips1">{{item.title}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<!-- 常见故障 -->
|
|
|
|
|
<view class="bacf mar-zy20 pad-sx30 pad-zy10 radius10">
|
|
|
|
|
<view class="fon34 bold col3" @tap="goPlant(1)">常见故障<text class="col9 mar-z10">Common faults</text></view>
|
|
|
|
|
<view @tap="goDetail(1,item.id)" class="pad-sx20 bbot disjb" v-for="(item,index) in faultsList" :key="index">
|
|
|
|
|
<view class="fon28 line-h38 disjb fc" style="min-height: 160rpx;">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="col3 clips1">{{item.title}}</view>
|
|
|
|
|
<view class="fon22 col6 clips3 mar-sx10">{{item.content}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="col9">{{item.views}}人看过</view>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
<image class="flexs mar-z20" :src="item.imgsrc" style="width: 280rpx;height: 160rpx;" mode="aspectFill" lazy-load></image>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-03-28 07:35:53 +00:00
|
|
|
|
</container-subgroup-two>
|
2022-03-14 09:09:10 +00:00
|
|
|
|
<!-- 底部tab -->
|
2022-03-16 11:40:58 +00:00
|
|
|
|
<foot-tab></foot-tab>
|
2022-03-14 09:09:10 +00:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
import statusNavSlot from '@/components/status-navs/status-nav-slot.vue';
|
2022-03-14 09:09:10 +00:00
|
|
|
|
// 暂无更多组件
|
|
|
|
|
import pitera from '@/components/nothing/pitera.vue';
|
2022-03-16 11:40:58 +00:00
|
|
|
|
// 公告
|
|
|
|
|
import lwNotice from '@/components/lw-notice/lw-notice.vue';
|
2022-04-07 10:16:05 +00:00
|
|
|
|
import noticeOne from '@/components/notices/notice-one/notice-one.vue';
|
2022-03-18 00:54:51 +00:00
|
|
|
|
import footTabOne from '@/components/foot-tabs/foot-tab-one.vue';
|
2022-03-28 07:35:53 +00:00
|
|
|
|
import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue';
|
2022-04-08 10:43:32 +00:00
|
|
|
|
import {getPlanType} from '@/jsFile/public-api.js';
|
2022-04-01 02:57:34 +00:00
|
|
|
|
const app = getApp();
|
2022-03-14 09:09:10 +00:00
|
|
|
|
export default {
|
|
|
|
|
components:{
|
|
|
|
|
pitera,
|
2022-03-16 11:40:58 +00:00
|
|
|
|
statusNavSlot,
|
2022-03-18 00:54:51 +00:00
|
|
|
|
lwNotice,
|
2022-03-28 07:35:53 +00:00
|
|
|
|
'foot-tab' :footTabOne,
|
2022-04-07 10:16:05 +00:00
|
|
|
|
containerSubgroupTwo,
|
|
|
|
|
noticeOne
|
2022-03-14 09:09:10 +00:00
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-04-15 10:44:40 +00:00
|
|
|
|
role: 1, // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
|
|
|
|
|
// role: uni.getStorageSync('type_id'), // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
|
2022-03-16 11:40:58 +00:00
|
|
|
|
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
|
2022-04-13 12:36:32 +00:00
|
|
|
|
messageNumber: 0 ,// 消息数量
|
2022-04-12 00:50:56 +00:00
|
|
|
|
noticeList:[{id:1,title:'2021年11月06日公司团建,维保服务暂停一天服务暂停一天服务暂停一天。一天服务暂停一天服务暂停一天。'}],//公告
|
2022-03-16 11:40:58 +00:00
|
|
|
|
// 故障报修
|
|
|
|
|
repairList:[
|
|
|
|
|
{imgsrc:'/static/public/icon-home-repair.png',title:'报修'},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-dealt.png',title:'待办'},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-urge.png',title:'催一催'},
|
|
|
|
|
],
|
|
|
|
|
// 增值服务
|
|
|
|
|
incrementList:[
|
|
|
|
|
{imgsrc:'/static/public/icon-home-patrol.png',title:'巡检'},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-maintain.png',title:'保养'},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-movingScreen.png',title:'移屏'},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-screeRemoval.png',title:'拆屏'},
|
|
|
|
|
],
|
|
|
|
|
// 其他
|
|
|
|
|
otherList:[
|
2022-04-12 00:50:56 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-largeScreen.png',title:'维保统计'},
|
2022-03-16 11:40:58 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-reportForm.png',title:'数据看板'},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-product.png',title:'新产品'},
|
|
|
|
|
],
|
|
|
|
|
// 解决方案
|
|
|
|
|
solutionList:[
|
|
|
|
|
{imgsrc:'/static/deleteImg/flying-img01.png',title:'控制室解决方案'},
|
|
|
|
|
{imgsrc:'/static/deleteImg/flying-img02.png',title:'户外屏解决方案'},
|
|
|
|
|
{imgsrc:'/static/deleteImg/flying-img03.png',title:'会议室解决方案'},
|
|
|
|
|
{imgsrc:'/static/deleteImg/flying-img04.png',title:'实体店解决方案'},
|
|
|
|
|
],
|
2022-04-12 00:50:56 +00:00
|
|
|
|
// 项目维保
|
2022-03-16 11:40:58 +00:00
|
|
|
|
projectRepairList:[
|
2022-04-06 08:05:38 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-staySingle.png',title:'待接单',num:0,id:2},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-stayImplement.png',title:'待执行',num:99,id:0},
|
2022-04-12 00:50:56 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-repairIng.png',title:'维保中',num:6,id:4},
|
2022-03-16 11:40:58 +00:00
|
|
|
|
],
|
|
|
|
|
// 工单数据
|
|
|
|
|
workOrderList:[
|
2022-04-06 08:05:38 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-abnormalSingle.png',title:'异常单',num:0,id:100},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-overdueSingle.png',title:'逾期单',num:0,id:101},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-overtime.png',title:'超时单 ',num:0,id:0},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-workOrderPool.png',title:'工单池',num:6,id:0},
|
2022-03-16 11:40:58 +00:00
|
|
|
|
],
|
|
|
|
|
// 结算情况
|
|
|
|
|
settlementList:[
|
2022-04-06 08:05:38 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-stayCollection.png',title:'待收款',num:0,id:5},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-received.png',title:'已收款',num:6,id:7},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-commission.png',title:'佣金',num:0,id:5},
|
2022-03-16 11:40:58 +00:00
|
|
|
|
],
|
|
|
|
|
// 待办工单
|
|
|
|
|
stayWorkOrderList:[
|
2022-04-06 08:05:38 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-stayImplement.png',title:'待受理',num:0,id:0},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-stayAssign.png',title:'待指派',num:6,id:0},
|
2022-04-12 00:50:56 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-stayRepair.png',title:'待维保',num:6,id:3},
|
2022-04-06 08:05:38 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-returnVisit.png',title:'待回访',num:0,id:8},
|
2022-03-16 11:40:58 +00:00
|
|
|
|
],
|
|
|
|
|
// 待办事件
|
|
|
|
|
stayEventList:[
|
2022-04-06 08:05:38 +00:00
|
|
|
|
{imgsrc:'/static/public/icon-home-stayBatch.png',title:'待审批',num:0,id:6},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-stayCollection.png',title:'待收款',num:0,id:5},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-received.png',title:'已收款',num:0,id:7},
|
2022-03-16 11:40:58 +00:00
|
|
|
|
],
|
|
|
|
|
// 数据查询
|
|
|
|
|
dataQueryList:[
|
|
|
|
|
{imgsrc:'/static/public/icon-home-checkCustomer.png',title:'查客户',num:0},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-checkProject.png',title:'查项目',num:0},
|
|
|
|
|
{imgsrc:'/static/public/icon-home-checkSparePart.png',title:'查备件',num:0},
|
|
|
|
|
],
|
|
|
|
|
// 常见故障
|
2022-03-25 02:52:52 +00:00
|
|
|
|
faultsList:[],
|
2022-04-13 12:36:32 +00:00
|
|
|
|
locationstr:'',
|
|
|
|
|
contactPhone:'',//客服联系电话
|
|
|
|
|
project_count:0,//项目数量
|
|
|
|
|
fault_count:0,//实时工单数量
|
2022-03-14 09:09:10 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2022-04-13 12:36:32 +00:00
|
|
|
|
onShow() {
|
|
|
|
|
// 调用首页信息查询事件
|
|
|
|
|
this.checkHome();
|
|
|
|
|
},
|
2022-03-14 09:09:10 +00:00
|
|
|
|
onLoad(options) {
|
|
|
|
|
// 获取当前页面url
|
|
|
|
|
this.$toolAll.tools.obtainUrl();
|
2022-03-24 08:34:50 +00:00
|
|
|
|
// 调用解决方案类型事件
|
2022-04-08 10:43:32 +00:00
|
|
|
|
this.getPlanTypeEv();
|
2022-03-24 08:34:50 +00:00
|
|
|
|
// 调用增值服务类型
|
2022-03-30 10:04:40 +00:00
|
|
|
|
this.getIncrementServiceType();
|
2022-03-25 02:52:52 +00:00
|
|
|
|
// 调用获取常见故障列表事件
|
|
|
|
|
this.getFaultsList();
|
2022-04-13 12:36:32 +00:00
|
|
|
|
|
2022-03-14 09:09:10 +00:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2022-04-13 12:36:32 +00:00
|
|
|
|
// 首页信息查询
|
|
|
|
|
checkHome(){
|
|
|
|
|
this.$requst.get('/universal/api.home/home').then(res=>{
|
|
|
|
|
if(res.code) {
|
|
|
|
|
let homeObj = res.data;
|
|
|
|
|
this.messageNumber = homeObj.message;//消息数量
|
|
|
|
|
this.contactPhone = homeObj.contact;//客服联系电话
|
|
|
|
|
this.project_count = homeObj.project_count;//项目数量
|
|
|
|
|
this.fault_count = homeObj.fault_count;//实时工单数量
|
2022-04-15 10:44:40 +00:00
|
|
|
|
// 重构公告列表
|
2022-04-13 12:36:32 +00:00
|
|
|
|
if(homeObj.notice.length) {
|
|
|
|
|
homeObj.notice.forEach(item=>{
|
|
|
|
|
let obj = {
|
|
|
|
|
id:1,
|
|
|
|
|
title:`${item.name}:${item.content}`
|
|
|
|
|
}
|
|
|
|
|
this.noticeList.push(obj);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-17 07:49:07 +00:00
|
|
|
|
goNoticeDetail(e){
|
|
|
|
|
console.log(e);
|
2022-03-22 10:15:22 +00:00
|
|
|
|
},
|
2022-03-24 08:59:02 +00:00
|
|
|
|
// 前往增值服务页面
|
|
|
|
|
goIncrement(index) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:`/pages/appreciationServe/appreciationServe?index=${index}`
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-30 01:04:25 +00:00
|
|
|
|
// 待办事件
|
2022-04-06 08:05:38 +00:00
|
|
|
|
stayEv(title,statusId) {
|
2022-03-30 01:04:25 +00:00
|
|
|
|
let url = '';
|
|
|
|
|
if(title=='佣金') {
|
|
|
|
|
url = `/pagesB/my-account/my-account?index=1`
|
|
|
|
|
} else {
|
2022-04-06 08:05:38 +00:00
|
|
|
|
url = `/pages/workOrder/workOrderLlsit?status=${title}&statusId=${statusId}`
|
2022-03-30 01:04:25 +00:00
|
|
|
|
}
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:url
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-31 09:58:34 +00:00
|
|
|
|
|
2022-03-24 08:34:50 +00:00
|
|
|
|
// 查询增值服务类型
|
|
|
|
|
getIncrementServiceType(){
|
2022-03-31 09:58:34 +00:00
|
|
|
|
this.$requst.get('/universal/api.vas/vas_type').then(res=>{
|
2022-03-24 08:34:50 +00:00
|
|
|
|
if(res.code) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 数据查询事件
|
|
|
|
|
dataQueryEv(index){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:`/pages/dataQuery/queryFunction?index=${index}`
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-23 00:47:55 +00:00
|
|
|
|
// 故障报修分类下的点击事件
|
|
|
|
|
goFaultRepair(index){
|
|
|
|
|
if(index!=2) {
|
|
|
|
|
let faultRepairUrls = [
|
|
|
|
|
'/pages/repairsPage/repairsPage',
|
|
|
|
|
'/pages/workOrder/workOrderLlsit',
|
|
|
|
|
];
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:faultRepairUrls[index]
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$toolAll.tools.showToast('已催单成功')
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-04-08 10:43:32 +00:00
|
|
|
|
// 查询解决方案的推荐方案
|
|
|
|
|
getPlanTypeEv(){
|
|
|
|
|
let params = {
|
|
|
|
|
is_recommend:1,
|
|
|
|
|
list_rows:200,
|
|
|
|
|
page:1
|
|
|
|
|
}
|
|
|
|
|
getPlanType(params).then(res=>{
|
|
|
|
|
if(res.code) {
|
|
|
|
|
this.solutionList = [];
|
|
|
|
|
res.data.data.forEach(item=>{
|
|
|
|
|
let obj = {
|
|
|
|
|
id:item.id,
|
|
|
|
|
title:item.title,
|
|
|
|
|
imgsrc: item.cover_img,
|
|
|
|
|
}
|
|
|
|
|
this.solutionList.push(obj);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-25 02:52:52 +00:00
|
|
|
|
// 获取常见故障推荐列表
|
|
|
|
|
getFaultsList(){
|
|
|
|
|
this.$requst.post('/universal/api.question/question').then(res=>{
|
|
|
|
|
if(res.code) {
|
|
|
|
|
res.data.forEach(item=>{
|
|
|
|
|
let obj = {
|
|
|
|
|
id:item.id,
|
|
|
|
|
title:item.title,
|
2022-04-08 10:43:32 +00:00
|
|
|
|
imgsrc: item.cover_img,
|
2022-03-25 02:52:52 +00:00
|
|
|
|
content:item.summary,
|
|
|
|
|
views:item.reading
|
|
|
|
|
}
|
|
|
|
|
this.faultsList.push(obj);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-22 10:15:22 +00:00
|
|
|
|
// 前往解决方案、常见故障列表
|
|
|
|
|
goPlant(index){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:`/pagesB/plan-fault/plan-fault?index=${index}`
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 前往解决方案详情、常见故障详情
|
2022-03-25 02:52:52 +00:00
|
|
|
|
goDetail(index,id) {
|
2022-03-22 10:15:22 +00:00
|
|
|
|
uni.navigateTo({
|
2022-04-08 10:43:32 +00:00
|
|
|
|
url:`/pagesB/plan-fault-product-detail/detail?index=${index}&id=${id}`
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 其他分类下的点击事件
|
|
|
|
|
otherEv(index) {
|
|
|
|
|
let otherUrls = [
|
|
|
|
|
'/pages/faultStatistics/faultStatistics',
|
|
|
|
|
'/pages/faultStatistics/projectOverview',
|
|
|
|
|
'/pagesB/new-product/new-product',
|
|
|
|
|
];
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:otherUrls[index]
|
2022-03-22 10:15:22 +00:00
|
|
|
|
})
|
|
|
|
|
},
|
2022-03-24 08:34:50 +00:00
|
|
|
|
// 前往消息列表页面
|
|
|
|
|
goMessage(){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:`/pagesB/message-center/message-center`
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 拨打电话事件
|
|
|
|
|
callEv(){
|
2022-03-30 08:22:44 +00:00
|
|
|
|
this.$toolAll.tools.countCustomer('15616330510');
|
2022-03-24 08:34:50 +00:00
|
|
|
|
}
|
2022-03-14 09:09:10 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
2022-03-16 11:40:58 +00:00
|
|
|
|
page{background-color: #f7f7f7;}
|
2022-03-14 09:09:10 +00:00
|
|
|
|
</style>
|