From 8d61dc60466e243414d2a05106bf8cf173fb47f0 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期六, 31 八月 2024 13:48:55 +0800
Subject: [PATCH] feat:PVC增加分配数

---
 pages/customer-page/customer-index/customer-index.vue |   55 +++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 35 insertions(+), 20 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 6b4038f..01fa8bb 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -5,7 +5,7 @@
 				
 				<!-- 寰呴鍙栧拰杞彂鏀跺彂鍗� -->
 				<view class="wait-collection"
-					style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain">
+					style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain">
 				</view>
 					<!-- 鑷富閰嶉�佺晫闈� -->
 				<view class="self-deliver" v-if="personnelType === 1">
@@ -34,8 +34,8 @@
 						@click="cardBodyClick(item)">
 						<view class="first-line">
 							<view class="dispatch-receive">
-								<view class="dispatch-dept">{{ item.deptName }}</view>
-								<view class="black-bar"></view>
+								<!-- <view class="dispatch-dept">{{ item.deptName }}</view>
+								<view class="black-bar"></view> -->
 								<view class="dispatch">{{ item.filedName }}</view>
 							</view>
 							<view class="point-number">
@@ -50,7 +50,7 @@
 						</view>
 						<view class="second-line">
 							<view class="coal-name">
-								<view class="">{{ item.productNames || item.productName }}</view>
+								<view class="coal-name-tag">{{ item.productNames || item.productName }}</view>
 								<view class="black-bar"></view>
 								<view class="coal-type"
 									v-if="item.orderType">{{ item.orderType }}</view>
@@ -62,14 +62,16 @@
 						<view class="third-line">
 							<view class="time-icon">
 								<view
-									style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover">
+									style="width: 12rpx;height: 12rpx;line-height: 24rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/clock.png') no-repeat;background-size: cover">
 								</view>
 							</view>
 							<view class="send-date">{{ item.sendDate }}</view>
 						</view>
 						<view class="fourth-line">
 							<view class="receive"
-								@click.stop="receiveClick(item)">
+								@click.stop="receiveClick(item)"
+								v-if="Number(item.cars2)  <  Number(item.carNum)"
+								>
 								<view class="button-image">棰嗗彇</view>
 							</view>
 							<view class="forward"
@@ -98,7 +100,7 @@
 							:key="index"
 							@click="faYundetail(item)">
 							<view class="first">
-								<view class="">{{ item.deptName || '' }}</view>
+								<view class="">{{ item.filedName || '' }}</view>
 								<view class=""><u-icon name="arrow-right"
 										color="#999999"
 										size="40"></u-icon></view>
@@ -127,7 +129,7 @@
 							<view class="fourth">
 								<view class="fourth-icon">
 									<view
-										style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover">
+										style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/clock.png') no-repeat;background-size: cover">
 									</view>
 								</view>
 								<view class="senddate">{{ item.sendDate }}</view>
@@ -135,7 +137,7 @@
 							<view class="fourth">
 								<view class="fourth-icon">
 									<view
-										style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;">
+										style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;">
 									</view>
 								</view>
 								<view class="senddate">{{ item.orderCode }}</view>
@@ -352,9 +354,10 @@
 			},
 			// 杞彂
 			forwardClick(obj) {
+				console.log(111,obj)
 				if (obj.cars2 == 0) return this.$u.toast('璇峰厛棰嗗彇鍚庡啀杞彂');
 				uni
-					.navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}` });
+					.navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&orderType=${obj.orderType}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}&productName=${obj.productName}&customerId=${obj.customerId}`});
 			},
 			// 鑷富閰嶉��
 			selfDeliver() {
@@ -467,7 +470,7 @@
 
 			.second {
 				width: 100%;
-				height: 31rpx;
+				height: vw(80);
 				font-size: 30rpx;
 				font-weight: 300;
 				color: #515151;
@@ -476,9 +479,12 @@
 				justify-content: flex-start;
 
 				.coal-name {
-					min-width: vww(30);
-					height: vww(20);
+					width: 70%;
+					height: vww(50);
 					margin-right: vww(21);
+				    white-space: nowrap; /* 涓嶆崲琛� */  
+				   overflow: hidden; /* 瓒呭嚭闅愯棌 */  
+				   text-overflow: ellipsis; 
 				}
 
 				.order-type {
@@ -547,8 +553,8 @@
 				top: vww(-144);
 
 				.collection-form-item {
-					width: 690rpx;
-					height: 370rpx;
+					width: 700rpx;
+					height: 390rpx;
 					background: #ffffff;
 					box-shadow: 4rpx 6rpx 25rpx 0rpx rgba(73, 120, 240, 0.15);
 					border-radius: 20rpx;
@@ -586,7 +592,7 @@
 							}
 
 							.dispatch {
-								margin-left: vww(12);
+								// margin-left: vww(12);
 								min-width: vww(50);
 							}
 
@@ -611,13 +617,15 @@
 
 					.second-line {
 						width: 100%;
-						height: vww(30);
+						height: vww(50);
 						margin-left: vww(16);
 						display: flex;
 						align-items: center;
 						justify-content: flex-start;
+						    margin-bottom: 15rpx;
 
 						.coal-name {
+							width: 80%;
 							flex-grow: 1;
 							height: 30rpx;
 							font-size: 30rpx;
@@ -625,7 +633,14 @@
 							color: #515151;
 							position: relative;
 							display: flex;
+							margin-top: 20rpx;
 							align-items: center;
+							.coal-name-tag{
+								width: 70%;
+							white-space: nowrap; /* 涓嶆崲琛� */  
+							overflow: hidden; /* 瓒呭嚭闅愯棌 */  
+					   		 text-overflow: ellipsis; 
+							}
 
 							.black-bar {
 								width: 2rpx;
@@ -655,8 +670,8 @@
 						align-items: center;
 
 						.send-date {
-							margin-left: vww(14);
-							width: 148rpx;
+							margin-left: vww(5);
+							width: 170rpx;
 							height: 24rpx;
 							line-height: 24rpx;
 							font-size: 28rpx;
@@ -667,7 +682,7 @@
 
 					.fourth-line {
 						width: 100%;
-						height: vww(30);
+						height: vww(40);
 						@include flex;
 						justify-content: flex-start;
 						position: relative;

--
Gitblit v1.9.1