|
@@ -0,0 +1,386 @@
|
|
|
+<template>
|
|
|
+ <view class="order-detail-container">
|
|
|
+ <view class="detail-top-container">
|
|
|
+ <view :class="currIndex == 1 ? 'detail-top-left-active' : 'detail-top-left'" @click="tabHandle(1)">
|
|
|
+ 故障信息
|
|
|
+ </view>
|
|
|
+ <view :class="currIndex == 2 ? 'detail-top-left-active' : 'detail-top-left'" @click="tabHandle(2)">
|
|
|
+ 处理过程
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-content" v-if="currIndex == 1">
|
|
|
+ <view class="order-detail-info">
|
|
|
+ <view class="order-detail-title">
|
|
|
+ <view class="order-detail-level">
|
|
|
+ {{level == 1 ? '一级故障' : (level == 2 ? '二级故障' : '三级故障')}}
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-name">
|
|
|
+ 故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称故障名称
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-time">
|
|
|
+ {{'发生时间: ' + '2023-10-22 12:21:21'}}
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-site">
|
|
|
+ <view class="order-detail-status">
|
|
|
+ 分析中...
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-site-text">
|
|
|
+ 三江换电站
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-fault-describe">
|
|
|
+ <view class="fault-describe-container">
|
|
|
+ <view class="fault-describe-title">
|
|
|
+ 问题记录
|
|
|
+ </view>
|
|
|
+ <view class="fault-describe-remark">
|
|
|
+ 点击图片可查看保存大图
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-swiper">
|
|
|
+ <u-swiper :list="imgList" @click="imageHandle"></u-swiper>
|
|
|
+ </view>
|
|
|
+ <view class="order-problem-container">
|
|
|
+ <view class="problem-title">
|
|
|
+ <view class="problem-icon">?</view>
|
|
|
+ <view class="problem-title-text">
|
|
|
+ 问题记录
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="problem-text">
|
|
|
+ 充电机无法充电,由于温度过高当前已断电请及时处理情况很严重,目前无法自自行解决。
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-basic">
|
|
|
+ <view class="order-detail-basic-title">
|
|
|
+ <view class="basic-title-text">
|
|
|
+ 详细信息
|
|
|
+ </view>
|
|
|
+ <view class="basic-title-show" v-if="isShowMore" @click="showHandle">
|
|
|
+ 收起
|
|
|
+ <u-icon name="arrow-up"></u-icon>
|
|
|
+ </view>
|
|
|
+ <view class="basic-title-show" v-if="!isShowMore" @click="showHandle">
|
|
|
+ 展开
|
|
|
+ <u-icon name="arrow-down"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="basic-items" v-if="isShowMore">
|
|
|
+ <view class="basic-item">
|
|
|
+ <view class="basic-item-title">
|
|
|
+ 设备名称
|
|
|
+ </view>
|
|
|
+ <view class="basic-item-text">
|
|
|
+ PLC
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="basic-item">
|
|
|
+ <view class="basic-item-title">
|
|
|
+ 设备编号
|
|
|
+ </view>
|
|
|
+ <view class="basic-item-text">
|
|
|
+ PLC
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="basic-item">
|
|
|
+ <view class="basic-item-title">
|
|
|
+ 上报人
|
|
|
+ </view>
|
|
|
+ <view class="basic-item-text">
|
|
|
+ PLC
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="basic-item">
|
|
|
+ <view class="basic-item-title">
|
|
|
+ 联系方式
|
|
|
+ </view>
|
|
|
+ <view class="basic-item-text">
|
|
|
+ PLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLCPLC
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-detail-content" v-if="currIndex == 2">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default{
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ //当前选中下标
|
|
|
+ currIndex: 1,
|
|
|
+ level: 1,
|
|
|
+ //是否收起详细信息
|
|
|
+ isShowMore: true,
|
|
|
+ imgList: [
|
|
|
+ {
|
|
|
+ image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
|
|
|
+ title: '昨夜星辰昨夜风,画楼西畔桂堂东'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
|
|
|
+ title: '身无彩凤双飞翼,心有灵犀一点通'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
|
|
|
+ title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ //tab选择
|
|
|
+ tabHandle(type) {
|
|
|
+ this.currIndex = type;
|
|
|
+ },
|
|
|
+ //点击图片
|
|
|
+ imageHandle(data) {
|
|
|
+ let list = [];
|
|
|
+ this.imgList.forEach(item => {
|
|
|
+ list.push(item.image)
|
|
|
+ })
|
|
|
+ uni.previewImage({
|
|
|
+ urls: list,
|
|
|
+ current: this.imgList[data].image
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //是否收起/展开详细信息
|
|
|
+ showHandle() {
|
|
|
+ this.isShowMore = !this.isShowMore
|
|
|
+ },
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .order-detail-container {
|
|
|
+ background: linear-gradient(180deg, #9CC1FA 2%, #78B1FE 15%, #E5EEFD 76%, #F7F8FA 100%);
|
|
|
+ height: 100vh;
|
|
|
+ position: relative;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
|
|
+ padding-top: 15rpx;
|
|
|
+ .detail-top-container {
|
|
|
+ display: flex;
|
|
|
+ margin: 0rpx 30rpx;
|
|
|
+ .detail-top-left-active {
|
|
|
+ height: 90rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ line-height: 90rpx;
|
|
|
+ width: 50%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-family: PingFang SC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #1D2129;
|
|
|
+ border-radius: 16rpx 16rpx 0rpx 0rpx;
|
|
|
+ }
|
|
|
+ .detail-top-left {
|
|
|
+ height: 72rpx;
|
|
|
+ background: #E8F3FF;
|
|
|
+ line-height: 72rpx;
|
|
|
+ width: 50%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Medium, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #1D2129;
|
|
|
+ border-radius: 16rpx 16rpx 0rpx 0rpx;
|
|
|
+ margin-top: 18rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-detail-content {
|
|
|
+ .order-detail-info {
|
|
|
+ background: #FFFFFF;
|
|
|
+ padding: 30rpx;
|
|
|
+ margin: 0 30rpx;
|
|
|
+ border-radius: 0rpx 0rpx 16rpx 16rpx;
|
|
|
+ min-height: 220rpx;
|
|
|
+ .order-detail-title {
|
|
|
+ display: flex;
|
|
|
+ .order-detail-level {
|
|
|
+ font-size: 20rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #F53F3F;
|
|
|
+ line-height: 36rpx;
|
|
|
+ width: 96rpx;
|
|
|
+ height: 36rpx;
|
|
|
+ background: #FFECE8;
|
|
|
+ border-radius: 4rpx 4rpx 4rpx 4rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .order-detail-name {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #1D2129;
|
|
|
+ line-height: 36rpx;
|
|
|
+ margin-left: 24rpx;
|
|
|
+ width: calc(100% - 120rpx);
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-detail-time {
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #86909C;
|
|
|
+ line-height: 28rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ }
|
|
|
+ .order-detail-site {
|
|
|
+ display: flex;
|
|
|
+ position: relative;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ .order-detail-status {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #3F8CFF;
|
|
|
+ line-height: 36rpx;
|
|
|
+ }
|
|
|
+ .order-detail-site-text {
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #86909C;
|
|
|
+ line-height: 36rpx;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-detail-fault-describe {
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ padding: 30rpx;
|
|
|
+ margin: 30rpx;
|
|
|
+ .fault-describe-container {
|
|
|
+ display: flex;
|
|
|
+ .fault-describe-title {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #1E2128;
|
|
|
+ line-height: 36px;
|
|
|
+ text-align: left;
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ .fault-describe-remark {
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #C9CDD4;
|
|
|
+ line-height: 36px;
|
|
|
+ flex: 1;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-detail-swiper {
|
|
|
+ margin-top: 30rpx;
|
|
|
+ }
|
|
|
+ .order-problem-container {
|
|
|
+ margin-top: 30rpx;
|
|
|
+ .problem-title {
|
|
|
+ display: flex;
|
|
|
+ .problem-icon {
|
|
|
+ height: 36rpx;
|
|
|
+ width: 36rpx;
|
|
|
+ border: 1rpx solid #C9CDD4;
|
|
|
+ border-radius: 50%;
|
|
|
+ margin-right: 10rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #C9CDD4;
|
|
|
+ line-height: 36rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .problem-title-text {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #C9CDD4;
|
|
|
+ line-height: 36rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .problem-text {
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #1D2129;
|
|
|
+ line-height: 40rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-detail-basic {
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ padding: 30rpx;
|
|
|
+ margin: 0rpx 30rpx 30rpx;
|
|
|
+ .order-detail-basic-title {
|
|
|
+ display: flex;
|
|
|
+ .basic-title-text {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #1E2128;
|
|
|
+ line-height: 36rpx;
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ .basic-title-show {
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #C9CDD4;
|
|
|
+ line-height: 36rpx;
|
|
|
+ flex: 1;
|
|
|
+ text-align: right;
|
|
|
+ margin-right: 5rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .basic-items {
|
|
|
+ margin-top: 30rpx;
|
|
|
+ .basic-item {
|
|
|
+ display: flex;
|
|
|
+ height: 100rpx;
|
|
|
+ .basic-item-title {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #86909C;
|
|
|
+ line-height: 100rpx;
|
|
|
+ width: 200rpx;
|
|
|
+ }
|
|
|
+ .basic-item-text {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #1D2129;
|
|
|
+ line-height: 100rpx;
|
|
|
+ flex: 1;
|
|
|
+ text-align: right;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|