From 6ba1c5a9f73604edb005212b7fed058e185ce295 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 18 七月 2024 16:38:41 +0800 Subject: [PATCH] featL库管首页样式更新 --- pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue | 35 ++++++++++++++++++++++------------- 1 files changed, 22 insertions(+), 13 deletions(-) diff --git a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue index f14f369..16a1810 100644 --- a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue +++ b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue @@ -11,10 +11,10 @@ </view> <view class="middle-container"> <view class="dept-name"> - {{ deptName }} - <text v-show="deptName">({{ coalName }})</text> + {{ !pageType ? deptName : customerName }} + <text v-show="deptName">({{ productNames || productName}})</text> </view> - <view class="dept-num"> + <view class="dept-num" v-if="!pageType"> <text style="font-size: 46rpx; font-weight: 400; color: #FFFFFF; @@ -30,7 +30,7 @@ </view> </view> <view class="bottom-container"> - <view class="bottom-block"> + <view class="bottom-block" v-if="!pageType"> <view class="bottom-content" v-for="(item, index) in orderPlanDetail.huodaiList" :key="index"> @@ -60,11 +60,11 @@ </view> </view> <view class="block-top"> - <combined-title title="鎻愮叅鍗曞巻鍙�"></combined-title> + <combined-title title="鏀跺彂鍗曞巻鍙�"></combined-title> <view class="total"> 鎬诲噣閲� - <text>{{ total.toFixed(2) || 0 }}</text> - </view> + <text>{{ Number(total).toFixed(2) || 0 }}</text> + </view> </view> <view class="main-banner"> <view class="empty-pointer" @@ -86,11 +86,11 @@ <view class="second-line"> <view class="line-content"> <view class="line-content_text">鍑�閲�</view> - <view class="line-content_num">{{ item.clean.toFixed(2) || 0 }}</view> + <view class="line-content_num">{{ Number(item.clean) .toFixed(2) || 0 }}</view> </view> <view class="line-content"> <view class="line-content_text">浣欓噺</view> - <view class="line-content_num">{{ item.allowance.toFixed(2) || 0 }}</view> + <view class="line-content_num">{{ Number(item.orderSurplus).toFixed(2) || 0 }}</view> </view> </view> </view> @@ -114,21 +114,29 @@ this.cars2 = value.cars2 ? value.cars2 : null; this.deptName = value.deptName; this.coalName = value.coalName; + this.productName = value.productNames; + this.customerName = value.customerName; this.carNum = value.carNum ? value.carNum : null console.log(value, '鍙戣繍璁″垝鍙傛暟'); + if(value.roleType && value.roleType === '5'){ + this.pageType = true; // 琛ㄧず鏄簱绠★紝闅愯棌鏌愪簺鍏冪礌 + } }, data() { return { orderPlanId: null, orderCode: null, + customerName:'', orderPlanDetail: {}, - coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅浠�', '鍑虹叅浠�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', + pageType:false, // 椤甸潰鏄剧ずdom鍒ゆ柇鏉′欢 + coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ヤ粨搴�', '鍑轰粨搴�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', '杩涘叆鍦洪櫌', '寮傚父瀹℃牳涓�', '杩斿洖鍔犲噺鍚�', '瓒呮椂', '鎵撳嵃涓�', '鎵撳嵃涓�', '濉啓' ], yyDailyList: [], // 棰嗗彇鏁伴噺 cars2: '', coalName: '', + productName:'', deptName: '', total: 0, carNum: '' @@ -145,7 +153,7 @@ }, showMore(item) { uni.navigateTo({ - url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}` + url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}&orderType=${item.orderType}` }); }, init() { @@ -164,6 +172,7 @@ this.total = this.yyDailyList.reduce((prev, cur) => { return prev + cur.clean; }, 0); + console.log(this.total,'total') } else { this.total = 0; } @@ -221,7 +230,7 @@ @include flex margin-left: vww(10); .top-title { - width: 226rpx; + width: 250rpx; height: 36rpx; font-size: 38rpx; font-weight: normal; @@ -324,7 +333,7 @@ justify-content: center; .main-block { - width: 690rpx; + width: 90%; background: #ffffff; box-shadow: 4rpx 6rpx 51rpx 0rpx rgba(73, 120, 240, 0.11); border-radius: 20rpx; -- Gitblit v1.9.1