From 7406be32979e90a730b5a2ac8d392892f71835d2 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 10 四月 2023 14:53:17 +0800
Subject: [PATCH] 修复称重不显示问题,优化信息提示

---
 pages/driver-page/driver-index/driver-index.vue |   36 ++++++++++++++++--------------------
 1 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue
index f45b708..037a609 100644
--- a/pages/driver-page/driver-index/driver-index.vue
+++ b/pages/driver-page/driver-index/driver-index.vue
@@ -16,7 +16,9 @@
 						<text>{{ item.carNum }}</text>
 						寮�
 					</view>
-					<view class="card-left__utils"><u-button @tap.stop="qiangDanBtn(item)" text="鎶㈠崟" type="primary" shape="circle"></u-button></view>
+					<view class="card-left__utils">
+						<u-button @tap.stop="qiangDanBtn(item)" text="鎶㈠崟" type="primary" shape="circle" v-if="item.carNum - item.taskNum !== 0"></u-button>
+					</view>
 				</template>
 				<template v-slot:right-top>
 					<view class="right-top">
@@ -65,7 +67,7 @@
 				<!-- 寰呴绾︽彁鐓ゅ崟 -->
 				<view class="daiYuYue" v-for="(item, index) in driverBillOfLoadingData.list3" :key="index">
 					<view class="daiYuYueTop">
-						<text class="tmcode">鎻愮叅鍗曠紪鍙凤細{{ item.code }}</text>
+						<view class="tmcode">鎻愮叅鍗曠紪鍙凤細{{ item.code }}</view>
 					</view>
 					<view class="daiYuYueTable">
 						<!-- <view>{{ item.deptName }}</view>
@@ -118,7 +120,7 @@
 						<view>鎺掗槦鏁帮細鏆傛棤{{}}</view>
 					</view>
 					<view class="haveYuYueBottom">
-						<text>{{ item.yuYueTime || '鏃舵' }}</text>
+						<text>{{ item.yuYueSection || '鏃舵' }}</text>
 					</view>
 				</view>
 			</view>
@@ -139,7 +141,6 @@
 	watch: {
 		indexdriverBillOfLoadingData: {
 			handler(v) {
-				console.log(v, '鍒锋柊涔嬪悗鐨勫徃鏈洪椤�');
 				this.driverBillOfLoadingData = v;
 			},
 			deep: true,
@@ -172,7 +173,6 @@
 				title: '鍔犺浇涓�...'
 			});
 			this.$reqGet('qiangDanList').then(res => {
-				console.log(res, '鍙告満棣栭〉');
 				uni.hideLoading();
 				this.driverBillOfLoadingData = res.data;
 			});
@@ -206,7 +206,7 @@
 					if (res.code == 0) {
 						this.$u.toast('鎶㈠崟鎴愬姛');
 					} else {
-						this.$u.toast(res.data ? res.data : '鎶㈠崟澶辫触');
+						this.$u.toast(res.msg ? res.msg : '鎶㈠崟澶辫触');
 					}
 				})
 				.then(() => {
@@ -290,15 +290,13 @@
 				background-color: #f5f5f5;
 				height: vww(60);
 				padding-left: vww(12);
-				line-height: vww(40);
+				line-height: vww(31);
 				border: vww(1) solid #eeeeee;
 				font-weight: 400;
-				// .tmcode {
-				// 	overflow: hidden;
-				// 	text-overflow: ellipsis;
-				// 	white-space: nowrap;
-				// 	width: 100%;
-				// }
+				.tmcode {
+					word-break: break-all;
+					width: 100%;
+				}
 			}
 			&Table {
 				.uni-table {
@@ -332,15 +330,13 @@
 				background-color: #f5f5f5;
 				height: vww(60);
 				padding-left: vww(12);
-				line-height: vww(40);
+				line-height: vww(31);
 				border: vww(1) solid #eeeeee;
 				font-weight: 400;
-				// .tmcode {
-				// 	overflow: hidden;
-				// 	text-overflow: ellipsis;
-				// 	white-space: nowrap;
-				// 	width: 100%;
-				// }
+				.tmcode {
+					word-break: break-all;
+					width: 100%;
+				}
 			}
 			&Center {
 				border: vww(1) solid #eeeeee;

--
Gitblit v1.9.1