From f8ef4a612205b6f5210d873a102b2248dfba4ead Mon Sep 17 00:00:00 2001
From: wk
Date: 星期五, 09 八月 2024 13:48:03 +0800
Subject: [PATCH] feat:头像更改

---
 pages/customer-page/customer-index/customer-index.vue |   64 +++++++++++++++++++------------
 1 files changed, 39 insertions(+), 25 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 0de4f52..d337d74 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -8,9 +8,9 @@
 					style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain">
 				</view>
 					<!-- 鑷富閰嶉�佺晫闈� -->
-				<view class="self-deliver">
+				<view class="self-deliver" v-if="personnelType === 1">
 					<view class="self-deliver_text">
-						鍒涘缓鏃ヨ鍒掕鍗�
+						鍒涘缓鏃ヨ鍒掕鍗� 
 					</view>
 					<view class="self-deliver_btn">
 						<u-button text="鍘诲垱寤�"
@@ -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">
@@ -62,7 +62,7 @@
 						<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>
@@ -98,7 +98,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 +127,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 +135,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>
@@ -172,9 +172,7 @@
 </template>
 
 <script>
-	import card from '@/components/card/card.vue';
 	import combinedTitle from '@/components/combined-title/combined-title.vue';
-	import { customerId } from '@/utils/status';
 	export default {
 		props: {
 			orderPlanDataStore: {
@@ -183,7 +181,6 @@
 			}
 		},
 		components: {
-			card,
 			combinedTitle
 		},
 		watch: {
@@ -203,6 +200,7 @@
 		data() {
 			return {
 				orderPlanData: [],
+				personnelType:'', // 鐢ㄦ埛绫诲瀷
 				show: false, // 棰嗗彇鏀跺彂鍗曞脊鍑烘
 				receiveNum: null,
 				getOrderNum: {
@@ -236,6 +234,7 @@
 			init() {
 				this.GetOrderPlan();
 				this.getJhOrderPlanDataPage();
+				this.getType();
 			},
 			// 鑾峰彇鍙戣繍璁″垝鍒楄〃
 			GetOrderPlan() {
@@ -343,24 +342,36 @@
 			// 锛堥《閮級鍙戣繍璁″垝璇︽儏
 			cardBodyClick(v) {
 				uni
-					.navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
+					.navigateTo({ url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
 			},
 			// 鐐瑰嚮鍘嗗彶鏀跺彂鍗曡幏鍙栬鎯�
 			faYundetail(v) {
 				uni.navigateTo({
-					url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&productNames=${v.productNames || v.productName}&deptName=${v.deptName}`
+					url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&productNames=${v.productNames || v.productName}&deptName=${v.deptName}`
 				});
 			},
 			// 杞彂
 			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}` });
 			},
 			// 鑷富閰嶉��
 			selfDeliver() {
 				uni.navigateTo({
-					url: '/pages/customer-page/addDailyPlan/addDailyPlan'
+					url: '/subPages/addDailyPlan/addDailyPlan'
+				})
+			},
+			//鑾峰彇鐢ㄦ埛鏍囪瘑
+			getType(){
+				this.$reqGetId('getPersonnelType',uni.getStorageSync('customerId')).then(res=>{
+					console.log(res,'ressss')
+					if(res.code === 0){
+					  this.personnelType = res.data.personnelType;
+					}else{
+						this.personnelType = '';
+					}
 				})
 			}
 		}
@@ -457,7 +468,7 @@
 
 			.second {
 				width: 100%;
-				height: 31rpx;
+				height: vw(80);
 				font-size: 30rpx;
 				font-weight: 300;
 				color: #515151;
@@ -466,8 +477,8 @@
 				justify-content: flex-start;
 
 				.coal-name {
-					min-width: vww(30);
-					height: vww(20);
+					width: 70%;
+					height: vww(50);
 					margin-right: vww(21);
 				}
 
@@ -537,8 +548,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;
@@ -576,7 +587,7 @@
 							}
 
 							.dispatch {
-								margin-left: vww(12);
+								// margin-left: vww(12);
 								min-width: vww(50);
 							}
 
@@ -601,13 +612,15 @@
 
 					.second-line {
 						width: 100%;
-						height: vww(30);
+						height: vww(90);
 						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;
@@ -615,6 +628,7 @@
 							color: #515151;
 							position: relative;
 							display: flex;
+							margin-top: 20rpx;
 							align-items: center;
 
 							.black-bar {
@@ -645,8 +659,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;
@@ -657,7 +671,7 @@
 
 					.fourth-line {
 						width: 100%;
-						height: vww(30);
+						height: vww(40);
 						@include flex;
 						justify-content: flex-start;
 						position: relative;

--
Gitblit v1.9.1