From 837c21ced9ed0aafe17a7c0c16975a1b6731eb9d Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 07 七月 2023 11:30:37 +0800
Subject: [PATCH] 验质功能修改,websocket优化

---
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |   49 +++++++++++--------------------------------------
 1 files changed, 11 insertions(+), 38 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
index 3ef21f0..8b6e600 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="bill-of-lading-details">
 		<view class="top-banner"
-			style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
+			:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/loadingbanner.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 		</view>
 		<view class="top-information">
 			<view class="cutomer-name"
@@ -21,8 +21,7 @@
 				<view class="basic">
 					<view class="coalName">{{ coalDetailsData.coalName||'' }}</view>
 					<view class="status-button"
-						style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/statusbutton.png') no-repeat;
-										background-size: cover;">
+						:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/statusbutton.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 						{{ coalStatus[coalDetailsData.statusWeigh] || '' }}
 					</view>
 				</view>
@@ -45,39 +44,7 @@
 		</view>
 
 		<!--  绉伴噸鍘嗗彶-->
-		<view class="weigh-history"
-			v-if="showWeigh.length!==0">
-			<view class="block-main">
-				<view class="weigh-item"
-					v-for='item in showWeigh'
-					:key="item.id">
-					<view class="weigh-time">
-						<u-tag :text="item.createTime.slice(-8,-3)"
-							plain></u-tag>
-					</view>
-					<view class="item-block">
-						<view class="item">
-							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
-								鐨�</view>
-							<view class="num">{{ item.skin }}</view>
-						</view>
-						<view class="item">
-							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
-								姣�</view>
-							<view class="num">{{ item.hair }}</view>
-						</view>
-						<view class="item">
-							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
-								鍑�</view>
-							<view class="num">{{ item.clean }}</view>
-						</view>
-					</view>
-				</view>
-			</view>
-		</view>
+		<weigh-item :list="showWeigh"></weigh-item>
 		<!-- 鏃堕棿绾� -->
 		<view class="timeLine">
 			<u-steps :current="dayRZ.length - 1"
@@ -153,9 +120,14 @@
 </template>
 
 <script>
+	import { onlineurl } from '@/api/request.js'
 	import { webSocketUrl } from '@/api/request.js';
 	import { mapState, mapMutations } from 'vuex';
+	import weighItem from '@/components/weighItem.vue'
 	export default {
+		components: {
+			weighItem
+		},
 		onLoad(value) {
 			this.orderPlanId = value.orderPlanId;
 			this.yyId = value.yyId;
@@ -195,7 +167,7 @@
 					openId: null,
 					openName: ''
 				},
-				coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚'], // 鐘舵��
+				coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚', '楠岃川瀹屾垚'], // 鐘舵��
 				weighHouseCode: '',
 				// 鏀剧┖寮圭獥鎺у埗鍙橀噺
 				evacuationModalShow: false,
@@ -227,7 +199,8 @@
 				completeOutSaleShow: false,
 				overTmWaixiao: null,
 				// 鍒よ缃戠粶鐘舵�侊紝
-				normalCode: true
+				normalCode: true,
+				onlineurl,
 			};
 		},
 		onShow() {

--
Gitblit v1.9.1