更新
This commit is contained in:
parent
7f92c0aeff
commit
f49a277258
@ -57,12 +57,65 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="x-box">
|
||||
<view class="bottomx" @click="xling = true">
|
||||
<uni-icons type="compose" color="#0D2E8D" size="16"></uni-icons>
|
||||
<text>添加检测信息</text>
|
||||
<view style="background-color: white">
|
||||
<view class="box-top">
|
||||
<view style=" width: 100%;">
|
||||
<view class="steps-container">
|
||||
<view
|
||||
v-for="(item, index) in detailData.workNodes"
|
||||
:key="index"
|
||||
class="step-item"
|
||||
>
|
||||
<!-- 圆形图标 -->
|
||||
<view
|
||||
class="step-circle"
|
||||
:class="{'circle-blue': item.type === '1', 'circle-yellow': item.type === '0'}">
|
||||
</view>
|
||||
<!-- 项目信息 -->
|
||||
<view class="step-content">{{ item.projectName }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="" style="margin-bottom: 10px" v-for="(item,index) in detailData.stepInfos" :key="index">
|
||||
|
||||
<view class="p_titel" style="display: flex;justify-content: space-between;">
|
||||
<view style="margin-right: -15px; display: flex; ">
|
||||
<view class="qiu_">{{ index + 1 }}</view>
|
||||
<view style="margin-left: 10px">
|
||||
<view class="jc_title">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
<view class="jc_name">施工人员:
|
||||
{{ item.nickname }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="times" v-if="!item.updateTime">{{ item.createTime }}</text>
|
||||
<view class="times" v-else style="text-align: center">
|
||||
{{ item.createTime }}
|
||||
<view>至</view>
|
||||
{{ item.updateTime }}
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="p_box"
|
||||
v-if="detailData.stepInfos && (index+1 <detailData.stepInfos.length || (item.images.length > 0 || item.content))">
|
||||
|
||||
<view class="g_hui" v-if="item.images.length > 0 || item.content">
|
||||
<view style="margin-bottom: 10px; box-sizing: border-box;" v-if="item.content">{{ item.content }}</view>
|
||||
<view style="display: flex" v-if="item.images">
|
||||
<u-album :urls="item.imageList" :singleSize="70"></u-album>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="x-box">
|
||||
<view class="dix">
|
||||
<view class="h-title">开始时间:</view>
|
||||
@ -126,7 +179,9 @@
|
||||
<view class="top-anniu">
|
||||
<uni-icons type="paperplane-filled" color="#ffffff" size="24"></uni-icons>
|
||||
</view>
|
||||
<view v-if="item.distance >=1000" class="ddaa">{{(item.distance/1000).toFixed(2)}} <text class="xhei">km</text> </view>
|
||||
<view v-if="item.distance >=1000" class="ddaa">{{ (item.distance / 1000).toFixed(2) }}
|
||||
<text class="xhei">km</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-x="true" class="box-bottom">
|
||||
@ -149,6 +204,7 @@
|
||||
import config from '@/config'
|
||||
import request from '../../utils/request';
|
||||
import upload from '@/utils/upload.js'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -161,6 +217,7 @@
|
||||
detailData: {},
|
||||
inspectionInfoId: '',
|
||||
stepInfo: {isPass: "0"},
|
||||
baseImageUrl: this.$baseImageUrl,
|
||||
lei: '请选择车辆类型',
|
||||
columns: [],
|
||||
cph: '',
|
||||
@ -186,19 +243,19 @@
|
||||
this.getindex()
|
||||
this.getlist()
|
||||
},
|
||||
onReachBottom() {
|
||||
console.log("分页")
|
||||
if (this.pageNum >= this.totalPages) {
|
||||
uni.showToast({
|
||||
title: '没有下一页数据',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.pageNum++
|
||||
console.log(222)
|
||||
this.getlist()
|
||||
}
|
||||
},
|
||||
// onReachBottom() {
|
||||
// console.log("分页")
|
||||
// if (this.pageNum >= this.totalPages) {
|
||||
// uni.showToast({
|
||||
// title: '没有下一页数据',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// } else {
|
||||
// this.pageNum++
|
||||
// console.log(222)
|
||||
// this.getlist()
|
||||
// }
|
||||
// },
|
||||
methods: {
|
||||
async getlist() {
|
||||
let that = this
|
||||
@ -334,13 +391,32 @@
|
||||
async getindex() {
|
||||
|
||||
let res = await request({
|
||||
url:'/appInspection/order/inspectionDetail',
|
||||
// url:'/appInspection/order/inspectionDetail',
|
||||
url: '/partnerOwn/partner/inspectionDetail',
|
||||
method: 'get',
|
||||
params: {
|
||||
inspectionInfoId: this.inspectionInfoId
|
||||
}
|
||||
})
|
||||
this.detailData = res.data
|
||||
this.detailData.stepInfos.forEach(item => {
|
||||
// 检查 item.images 是否为有效的字符串
|
||||
if (typeof item.images === 'string' && item.images.trim() !== '') {
|
||||
// 将里面的images转为数组
|
||||
item.images = item.images.split(',');
|
||||
// 使用map方法处理每个图片路径,转换为对象格式
|
||||
item.images = item.images.map(image => this.baseImageUrl + "/" + image);
|
||||
|
||||
// 将处理后的图片列表赋值给imageList
|
||||
item.imageList = item.images;
|
||||
} else {
|
||||
// 如果 item.images 不是有效的字符串,设置为空数组
|
||||
item.images = [];
|
||||
item.imageList = [];
|
||||
}
|
||||
|
||||
// 输出最终结果
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
@ -424,6 +500,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
@ -444,18 +521,22 @@
|
||||
padding-bottom: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.t-title {
|
||||
font-size: 17px;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.t-left {
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.t-you {
|
||||
height: 100%;
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.x-box {
|
||||
width: 95%;
|
||||
margin: 10px auto;
|
||||
@ -468,12 +549,14 @@
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
}
|
||||
|
||||
.di-bottom {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.bottomx {
|
||||
margin: 0 auto;
|
||||
width: 225px;
|
||||
@ -486,6 +569,7 @@
|
||||
justify-content: center;
|
||||
color: #0D2E8D;
|
||||
}
|
||||
|
||||
.touxiang {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
@ -494,6 +578,7 @@
|
||||
margin: 10px auto;
|
||||
|
||||
}
|
||||
|
||||
.sanniu {
|
||||
width: 105px;
|
||||
height: 35px;
|
||||
@ -508,6 +593,7 @@
|
||||
line-height: 15px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.annniu {
|
||||
width: 90%;
|
||||
height: 45px;
|
||||
@ -522,6 +608,7 @@
|
||||
line-height: 15px;
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
.banniu {
|
||||
width: 20%;
|
||||
height: 30px;
|
||||
@ -534,9 +621,11 @@
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.box {
|
||||
|
||||
}
|
||||
|
||||
.zdxdbt {
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
@ -546,10 +635,12 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.dix {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.box-dis {
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
@ -557,6 +648,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.shop-img {
|
||||
width: 125px;
|
||||
height: 125px;
|
||||
@ -564,6 +656,7 @@
|
||||
overflow: hidden;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.dis-hui {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -573,12 +666,14 @@
|
||||
color: #999999;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.h-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.box-top {
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
@ -588,6 +683,7 @@
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.t-input {
|
||||
width: 90%;
|
||||
margin: 20px auto;
|
||||
@ -597,6 +693,7 @@
|
||||
padding: 2px 5px;
|
||||
|
||||
}
|
||||
|
||||
.on-input {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -604,6 +701,7 @@
|
||||
align-items: center;
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
.on-inputx {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -611,6 +709,7 @@
|
||||
align-items: center;
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
.bottom-input {
|
||||
border-top: 1px solid #F4F4F4;
|
||||
box-sizing: border-box;
|
||||
@ -619,21 +718,25 @@
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.o-left {
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.o-right {
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.o-zui {
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.popup-box {
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
@ -642,6 +745,7 @@
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.sousuo {
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
@ -655,10 +759,12 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
input {
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.list-box {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
@ -666,12 +772,14 @@
|
||||
box-sizing: border-box;
|
||||
|
||||
}
|
||||
|
||||
.list_scroll {
|
||||
height: 100%; // 需设置高度
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
}
|
||||
|
||||
.list-qiu {
|
||||
width: 95%;
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
@ -681,12 +789,14 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tel {
|
||||
margin-left: 5px;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.bd-tel {
|
||||
width: 100%;
|
||||
border-top: 1px solid #EEEEEE;
|
||||
@ -698,6 +808,7 @@
|
||||
color: #0D2E8D;
|
||||
|
||||
}
|
||||
|
||||
.imgs-warp {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -705,16 +816,19 @@
|
||||
justify-content: space-between;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.imgss {
|
||||
width: 32%;
|
||||
height: 110px;
|
||||
overflow: hidden;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.anniu {
|
||||
box-sizing: border-box;
|
||||
padding: 2px 10px;
|
||||
@ -728,6 +842,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.an {
|
||||
box-sizing: border-box;
|
||||
padding: 2px 10px;
|
||||
@ -741,70 +856,84 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sshi {
|
||||
width: 40%;
|
||||
height: 115px;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.dil {
|
||||
box-sizing: border-box;
|
||||
background-color: #F6F6F6;
|
||||
padding: 0px 12px;
|
||||
}
|
||||
|
||||
.lan {
|
||||
color: #0D2E8D;
|
||||
}
|
||||
|
||||
.dis {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dix {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.d-box {
|
||||
background: #FFFFFF;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
// margin-top: 10px;
|
||||
}
|
||||
|
||||
.box-top {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.touxiang {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
border-radius: 8px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.bjimg {
|
||||
width: 255px;
|
||||
height: 236px;
|
||||
margin: 0px auto;
|
||||
margin-top: 100px;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.top-tile {
|
||||
width: 80%;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.da {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
@ -817,6 +946,7 @@
|
||||
color: #FF9600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.top-anniu {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
@ -829,6 +959,7 @@
|
||||
color: white;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.box-cont {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -836,38 +967,45 @@
|
||||
align-items: center;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.sanyuan {
|
||||
margin-top: 5px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dda {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.ddaa {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.xhui {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.xbox {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.xhei {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.box-bottom {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
@ -877,6 +1015,7 @@
|
||||
// align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.santu {
|
||||
width: 32%;
|
||||
display: inline-block;
|
||||
@ -884,15 +1023,18 @@
|
||||
margin-top: 15px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.simg {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
overflow: hidden;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.ming {
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
@ -903,11 +1045,13 @@
|
||||
color: #333333;
|
||||
margin: 0px auto;
|
||||
}
|
||||
|
||||
.jus {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
color: #FF571A;
|
||||
}
|
||||
|
||||
.c-top {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
@ -918,6 +1062,7 @@
|
||||
align-items: center;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.c-t-input {
|
||||
width: 80%;
|
||||
background-color: #F0F0F0;
|
||||
@ -929,6 +1074,7 @@
|
||||
padding: 0px 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.c-title {
|
||||
font-size: 18px;
|
||||
font-weight: bold
|
||||
@ -960,6 +1106,7 @@
|
||||
height: calc(100vh);
|
||||
background: rgba(0, 0, 0, 0.2)
|
||||
}
|
||||
|
||||
.nbian {
|
||||
padding-top: 45px;
|
||||
}
|
||||
@ -972,6 +1119,7 @@
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.x-ing {
|
||||
width: 100%;
|
||||
background: white;
|
||||
@ -1034,4 +1182,92 @@
|
||||
color: #0D2E8D;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.steps-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap; /* 自动换行 */
|
||||
justify-content: space-between; /* 均匀分布 */
|
||||
gap: 10px; /* 控制横向和纵向间距 */
|
||||
}
|
||||
|
||||
.step-item {
|
||||
display: flex;
|
||||
align-items: center; /* 图标和文字垂直居中对齐 */
|
||||
width: 31%; /* 每行展示三个 */
|
||||
text-align: left;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.step-circle {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(to right, #F1F1F1, #858899);
|
||||
box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.3);
|
||||
flex-shrink: 0;
|
||||
margin-right: 5px; /* 圆点和文字的间距 */
|
||||
}
|
||||
|
||||
.circle-blue {
|
||||
background: linear-gradient(to right, #80BCFF, #0174F6) !important;
|
||||
box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.circle-yellow {
|
||||
background: linear-gradient(to right, #FFD78C, #FFB323) !important;
|
||||
}
|
||||
|
||||
.step-content {
|
||||
font-size: 16px;
|
||||
line-height: 20px; /* 与图标高度对齐 */
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.p_titel {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jc_title {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.jc_name {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #9AA0B0;
|
||||
}
|
||||
|
||||
.times {
|
||||
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #999999;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.p_box {
|
||||
position: relative;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
//border-left: 1px dashed #DEE1EA;
|
||||
border-left: 1px dashed #0d2e8d;
|
||||
|
||||
}
|
||||
|
||||
.g_hui {
|
||||
background: #F4F5F8;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user