This commit is contained in:
许允枞 2025-03-13 14:28:38 +08:00
parent a4c1fd25b4
commit 5889251294
4 changed files with 61 additions and 31 deletions

View File

@ -45,7 +45,7 @@
<view class="wimg" v-else>
<image src="../../static/imgs/wenjian.png" mode=""></image>
</view>
<view class="">{{ item.fileName }}</view>
<view class="file-name">{{ item.fileName }}</view>
<view class="" v-if="item.warnTime">{{ item.warnTime }}</view>
<view class="" v-if="!item.warnTime" style=" visibility: hidden;">{{ '1' }}</view>
<view class="" v-if="item.count">文件数:{{ item.count }}</view>
@ -130,6 +130,16 @@ export default {
this.getlist()
},
onBackPress(options) {
//
if (options.from === 'backbutton') {
this.getback()
return true
}
//
return false;
},
onReachBottom() {
// if (this.pageNum >= this.totalPages) {
// uni.showToast({
@ -761,4 +771,12 @@ export default {
border-radius: 5px;
margin-top: 10px;
}
.file-name {
width: 100%; /* 重要:需要固定宽度 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 5px; /* 根据实际布局调整 */
}
</style>

View File

@ -118,6 +118,11 @@ export default {
onShow() {
this.getReportList();
},
onPullDownRefresh() {
this.queryParams.pageNo = 1;
this.getReportList();
uni.stopPullDownRefresh();
},
onReachBottom() {
if (this.queryParams.pageNo >= this.totalPages) {
uni.showToast({
@ -265,6 +270,7 @@ export default {
width: 90rpx;
height: 90rpx;
margin-right: 20rpx;
image {
width: 100%;
height: 100%;

View File

@ -1,14 +1,17 @@
<template>
<view class="content">
<view class="top-heder">
<view class="t-left" @click="getback()">
<uni-icons type="left" size="18"></uni-icons>
</view>
<view class="t-title">
<text>订单详情</text>
</view>
<view class="t-you"></view>
</view>
<!-- <view class="top-heder">-->
<!-- <view class="t-left" @click="getback()">-->
<!-- <uni-icons type="left" size="18"></uni-icons>-->
<!-- </view>-->
<!-- <view class="t-title">-->
<!-- <text>订单详情</text>-->
<!-- </view>-->
<!-- <view class="t-you"></view>-->
<!-- </view>-->
<headersVue titles="订单详情" style="position: static !important;">
<u-icon name="arrow-left" color="#fff" size="18"></u-icon>
</headersVue>
<view class="x-box">
<view class="box-top">
<view style="border-right: 1px solid #EEEEEE; width: 50%;">
@ -77,20 +80,20 @@
<view class="o-zui">{{ (orderInfo.payMoney + orderInfo.balance) / 100 }}</view>
</view>
<view class="on-input">
<view class="o-left" @click="showLeadMan = true">
<view class="on-input" @click="showLeadMan = true">
<view class="o-left">
<text style="color: red;font-weight: bold;text-align: center;">*</text>
引车员
<text class="xixi">点击选择</text>
</view>
<view class="o-right">
<input type="text" v-model="leadManName" placeholder="请输入引车员">
<input type="text" disabled v-model="leadManName" placeholder="请选择引车员">
</view>
</view>
<view class="on-input" @click="toSelectProject()" v-if="isInsert">
<view class="on-input" @click="toSelectProject()">
<view class="o-left">检测流程</view>
<view class="o-right">
<input type="textarea" v-model="inspectionWorkNodeStr" placeholder="点击选择检测流程">
<input type="textarea" disabled v-model="inspectionWorkNodeStr" placeholder="点击选择检测流程">
</view>
</view>
</view>
@ -129,8 +132,10 @@
<script>
import config from '@/config'
import request from '../../utils/request';
import headersVue from "@/components/header/headers.vue";
export default {
components: {headersVue},
data() {
return {
baseUrl: this.$baseUrl,
@ -373,7 +378,7 @@ image {
.sanniu {
width: 105px;
height: 35px;
background: #0D2E8D;
background: #0174F6;
border-radius: 50px;
display: flex;
align-items: center;
@ -388,7 +393,7 @@ image {
.annniu {
width: 90%;
height: 45px;
background: linear-gradient(180deg, #3F61C0 0%, #0D2E8D 100%);
background: linear-gradient(180deg, #3F61C0 0%, #0174F6 100%);
border-radius: 50px;
display: flex;
align-items: center;
@ -462,7 +467,7 @@ image {
.t-input {
width: 90%;
margin: 20px auto;
border: 1px solid #0D2E8D;
border: 1px solid #0174F6;
border-radius: 6px;
box-sizing: border-box;
padding: 2px 5px;

View File

@ -96,6 +96,7 @@
},
onShow() {
this.getValidationlist()
this.tindex = 0
},
methods: {
ting(index){