123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <template>
- <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
- <cus-header title='运维服务' bgColor="transparent" :showback="false"></cus-header>
- <image class="topbg" :src="imgBase+'operation/top_bg.png'" mode="widthFix"></image>
- <div class="order">
- <div class="pre">
- <div class="top">
- <div class="left">
- <p>本月巡检次数</p>
- <p>{{5}}/{{40}}</p>
- </div>
- <div class="right">
- <p>异常:<span>{{0}}</span></p>
- <p>正常:<span>{{40}}</span></p>
- </div>
- </div>
- <div class="bottom">
- <div class="jd" :style="{'width':10+'%'}"></div>
- </div>
- </div>
- <div class="pre">
- <div class="top">
- <div class="left">
- <p>故障工单</p>
- <p>{{14}}/{{28}}</p>
- </div>
- <div class="right">
- <p>已解决:<span>{{5}}</span></p>
- <p>未解决:<span>{{40}}</span></p>
- </div>
- </div>
- <div class="bottom">
- <div class="jd green" :style="{'width':50+'%'}"></div>
- </div>
- </div>
- </div>
- <div class="menu">
- <div class="pre" @tap="turnPage('/pagesOperation/record/add')">
- <image :src="imgBase+'operation/menu_xjtd.png'" mode="widthFix"></image>
- <p>巡检提单</p>
- </div>
- <div class="pre" @tap="turnPage('/pagesOperation/record/index')">
- <image :src="imgBase+'operation/menu_xjjl.png'" mode="widthFix"></image>
- <p>巡检记录</p>
- </div>
- <div class="pre" @tap="turnPage('/pagesOperation/repair/index')">
- <image :src="imgBase+'operation/menu_gzbx.png'" mode="widthFix"></image>
- <p>故障报修</p>
- </div>
- <div class="pre" @tap="turnPage('/pagesOperation/workorder/index')">
- <image :src="imgBase+'operation/menu_gzgd.png'" mode="widthFix"></image>
- <p>故障工单</p>
- </div>
- </div>
- <div class="list">
- <div class="title">
- <div class="left">故障工单</div>
- <div class="right" @tap="turnPage('/pagesOperation/workorder/index')">
- <span>更多</span>
- <image :src="imgBase+'operation/arrow_right.png'" mode="widthFix"></image>
- </div>
- </div>
- <div class="boxs">
- <div class="item" v-for="(item,index) in [1,2]" :key="index">
- <div class="left">
- <div class="name">长鑫科技集团股份有限公司</div>
- <p>故障类型<span>{{'类型1'}}</span></p>
- <p>故障描述<span>{{'巡检任务'}}</span></p>
- <p>故障时间<span>{{'2025-03-28 13:00'}}</span></p>
- </div>
- <div class="right">
- <div class="top" :class="{'djj':index===0,'yjj':index===1}">{{index===0?'待解决':'已解决'}}</div>
- <div class="bottom" @tap="toDetail(item)">查看</div>
- </div>
- </div>
- </div>
- </div>
- </view>
- </template>
- <script>
- export default {
- data(){
- return {
-
-
- }
- },
- methods:{
- turnPage(url){
- if(!url) return
- uni.navigateTo({ url })
- },
- toDetail(item){
- uni.navigateTo({
- url:'/pagesOperation/workorder/detail?id='+item?.id
- })
- }
- }
- }
- </script>
- <style scoped lang="less">
- .page{
- padding: 0 24rpx 40rpx;
- background: #F5F8FA;
- box-sizing: border-box;
-
- .topbg{
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 0;
- }
-
- .order{
- display: flex;
- justify-content: space-between;
- position: relative;
- margin-top: 218rpx;
- .pre{
- width: calc(50% - 9rpx);
- background: rgba(255,255,255,0.7);
- border-radius: 12rpx;
- border: 2rpx solid #FFFFFF;
- padding: 30rpx 20rpx;
- box-sizing: border-box;
- .top{
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left{
- p{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #657588;
- line-height: 24rpx;
- &:last-child{
- font-family: DINAlternate, DINAlternate;
- font-weight: bold;
- font-size: 36rpx;
- color: #333333;
- line-height: 36rpx;
- margin-top: 20rpx;
- }
- }
- }
- .right{
- p{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 20rpx;
- color: #657588;
- position: relative;
- padding-left: 16rpx;
- &::before{
- content: '';
- width: 10rpx;
- height: 10rpx;
- background: #FEA400;
- border-radius: 50%;
- position: absolute;
- left: 0;
- top: 50%;
- margin-top: -5rpx;
- }
- &:last-child{
- margin-top: 20rpx;
- &::before{
- background: #DDE0E6;
- }
- }
- span{
- color: #1D2129;
- }
- }
- }
- }
- .bottom{
- width: 100%;
- height: 6rpx;
- background: #DFE5EE;
- border-radius: 3rpx;
- margin-top: 24rpx;
- position: relative;
- .jd{
- height: 6rpx;
- background: #FEA400;
- border-radius: 3rpx;
- position: absolute;
- left: 0;
- top: 0;
- &.green{
- background: #31D1D6;
- }
- }
- }
- }
- }
-
- .menu{
- padding: 38rpx 0;
- background: #FFFFFF;
- border-radius: 12rpx;
- margin-top: 20rpx;
- display: flex;
- position: relative;
- .pre{
- width: 25%;
- display: flex;
- flex-direction: column;
- align-items: center;
- image{
- width: 64rpx;
- height: 64rpx;
- }
- p{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #4E5969;
- line-height: 30rpx;
- text-align: center;
- margin-top: 18rpx;
- }
- }
- }
-
- .list{
- margin-top: 49rpx;
- .title{
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left{
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 36rpx;
- color: #1D2129;
- line-height: 50rpx;
- }
- .right{
- display: flex;
- align-items: center;
- span{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 26rpx;
- color: #86909C;
- line-height: 26rpx;
- }
- image{
- width: 24rpx;
- height: 24rpx;
- margin-left: 13rpx;
- }
- }
- }
- .boxs{
- margin-top: 36rpx;
- .item{
- background: #FFFFFF;
- box-shadow: inset 0rpx -1rpx 0rpx 0rpx #ECEEF5;
- padding: 36rpx 27rpx;
- display: flex;
- .left{
- width: calc(100% - 115rpx);
- padding-right: 20rpx;
- box-sizing: border-box;
- .name{
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 30rpx;
- color: #1D2129;
- line-height: 42rpx;
- text-align: left;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- p{
- margin-top: 36rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 26rpx;
- color: #86909C;
- line-height: 26rpx;
- span{
- color: #1D2129;
- margin-left: 64rpx;
- }
- }
- }
- .right{
- width: 115rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .top{
- width: 104rpx;
- height: 48rpx;
- border-radius: 6rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 26rpx;
- line-height: 48rpx;
- text-align: center;
- &.djj{
- color: #FEA400;
- background: rgba(254,164,0,0.08);
- }
- &.yjj{
- color: #05C17F;
- background: rgba(20,204,140,0.08);
- }
- }
- .bottom{
- width: 115rpx;
- height: 64rpx;
- background: #2E69EB;
- border-radius: 16rpx;
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 28rpx;
- color: #FFFFFF;
- line-height: 64rpx;
- text-align: center;
- }
- }
- }
- }
- }
- }
- </style>
|