From 34e6d3a803c50fc30c7cded69658562a437afaf5 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期四, 28 七月 2022 21:02:15 +0800
Subject: [PATCH] '日计划样式'

---
 pages/jihua/jihua.vue |   81 +++++++++++++++++++++++++++-------------
 1 files changed, 54 insertions(+), 27 deletions(-)

diff --git a/pages/jihua/jihua.vue b/pages/jihua/jihua.vue
index d3532e3..34e16c3 100644
--- a/pages/jihua/jihua.vue
+++ b/pages/jihua/jihua.vue
@@ -15,12 +15,12 @@
 				<view v-if="isTomJihua == '鍏ㄩ儴'">
 					<view class="main-block-box" v-for="(item,index) in fyData" :key="item.id">
 						<view class="jihua-main-line">
-							<view class="name">瀹㈡埛鍚嶇О锛歿{item.customerName}}</view>
+							<view class="name">瀹㈡埛鍚嶇О锛歿{item.customerName || ''}}</view>
 						</view>
 						<view class="jihua-main-line">
 							<view class="main-flex">
-							   <view>鐓ょ锛歿{ item.coalName}}</view>
-							   <view>鍓╀綑閲忥細{{ item.executiveSurplus}}</view>
+							   <view>鐓ょ锛歿{ item.coalName || ''}}</view>
+							   <view>鍓╀綑閲忥細{{ item.executiveSurplus || ''}}</view>
 							</view>
 						</view>
 						<view class="jihua-main-line">
@@ -28,44 +28,48 @@
 								<view class="carNum-box">
 									<view>璁″垝杞︽暟锛�</view>
 									<u--input
-									    focus
 									    placeholder="璇疯緭鍏ュ彂杩愯溅鏁�"
 									    border="surround"
 									    v-model="item.numPlan"
 									    @change="inputChange"
 									  ></u--input>
 								</view>
-								<view>瀹為檯鍙戣溅鏁帮細{{item.numReal}}</view>
+								<view>瀹為檯鍙戣溅鏁帮細{{item.numReal || ''}}</view>
 							</view>
 						</view>
 					</view>
 					<u-button class="xiugai-btn" type="primary" text="鎻愪氦" @click="dataFormSubmit"></u-button>
 				</view>
-				<view v-else>
+				<view v-if="isTomJihua == '宸茶缃殑璁″垝'">
 					<view class="main-block-box" v-for="(item,index) in fyData" :key="item.id">
 						<view class="jihua-main-line">
-							<view class="name">瀹㈡埛鍚嶇О锛歿{item.customerName}}</view>
+							<view class="name">瀹㈡埛鍚嶇О锛歿{item.customerName || ''}}</view>
 						</view>
 						<view class="jihua-main-line">
 							<view class="main-flex">
-								<view>鐓ょ锛歿{ item.order ? item.order.coalName : item.coalName}}</view>
-								<view>鍓╀綑閲忥細{{ item.order ? item.order.executiveSurplus : item.executiveSurplus}}</view>
+								<view>鐓ょ锛歿{item.order.coalName || ''}}</view>
+								<view>鍓╀綑閲忥細{{item.order.executiveSurplus || ''}}</view>
 							</view>
 						</view>
 						<view class="jihua-main-line">
 							<view class="main-flex">
 								<view class="carNum-box">
 									<view>璁″垝杞︽暟锛�</view>
-									<u--input focus placeholder="璇疯緭鍏ュ彂杩愯溅鏁�" border="surround" v-model="item.numPlan"
+									<u--input placeholder="璇疯緭鍏ュ彂杩愯溅鏁�" border="surround" v-model="item.numPlan"
 										@change="inputTotalChange(item)"></u--input>
 								</view>
-								<view>瀹為檯鍙戣溅鏁帮細{{item.order ? item.order.numReal : item.numReal}}</view>
+								<view>瀹為檯鍙戣溅鏁帮細{{item.order.numReal || ''}}</view>
 							</view>
 						</view>
 					</view>
 					<u-button class="xiugai-btn" type="primary" text="淇敼" @click="getOrderCarNum"></u-button>
 				</view>
-				
+			    <!-- <u-empty
+				    v-if="fyData.length == 0"
+			    	mode="data"
+			    	icon=""
+			    >
+				</u-empty> -->
 			</div>
 		</view>
 		<!-- 鑿滃崟鏍� -->
@@ -93,7 +97,7 @@
 				info: {
 					shippingDate: this.todayDate()
 				},
-				isTomJihua: '',
+				isTomJihua: '鍏ㄩ儴',
 				editRow:'', //淇敼琛岀殑琛�
 				menuShow:false,
 			}
@@ -176,6 +180,7 @@
 					title: '姝e湪鍔犺浇...'
 				});
 				let compId = uni.getStorageSync('userInfo').compId
+				
 				let params = {
 					current: 1,
 					size: 100,
@@ -201,6 +206,7 @@
 					if (res.code == 0) {
 						if(!allList) {
 							this.fyData = res.data.records
+							console.log(this.fyData,'this.fyData=========11111111')
 						}else {
 							let l = res.data.records
 							allList.forEach(e => {
@@ -216,13 +222,17 @@
 								})
 							})
 							this.fyData = allList;
+							console.log(this.fyData,'this.fyData=========22222222')
 						}
+						console.log(this.fyData,'this.fyData=========333333333')
 						uni.hideLoading();
 					}
+				}).catch(e => {
+					uni.hideLoading();
 				})
 			},
 			tabClick(item) { //鍒囨崲浠婃棩鍜屾槑鏃�
-				console.log(item.name, 'item==========')
+				console.log(item, 'item==========')
 				if (item.index == 1) {
 					this.info.shippingDate = this.tomorrowDate()
 					if (this.isTomJihua == '宸茶缃殑璁″垝') {
@@ -263,9 +273,21 @@
 				font-size: vww(14);
 			}
 		}
-
+		.u-radio{
+			margin-right: vww(10);
+		}
+		.u-radio__text{
+			font-size: vww(14)!important;
+		}
+		.u-input {
+			height: vww(16);
+			width: vww(100);
+		}
 		.u-radio-group--row {
 			height: 100%;
+			width: 100%;
+			display: flex;
+			justify-content: right;
 		}
 
 		.u-radio__icon-wrap {
@@ -299,6 +321,7 @@
 			bottom: vww(20);
 			width: vww(200);
 			transform: translateX(-50%);
+			border-radius: vww(20);
 		}
 	}
 
@@ -306,7 +329,7 @@
 		display: flex;
 		flex-direction: column;
 		width: 100%;
-		padding: vww(0) vww(10) vww(60) vww(10);
+		padding: vww(0) vww(10) vww(70) vww(10);
 		box-sizing: border-box;
 
 		.main-inside {
@@ -326,20 +349,21 @@
 		}
 
 		.main-block-box {
-			box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
+			box-shadow: 0px 0px 8px 0px rgba(216,218,238,0.80); 
 			height: vww(120);
 			padding: vww(10);
 			box-sizing: border-box;
-			margin-top: vww(15);
-			border-radius: vww(5);
-
+			margin-top: vww(12);
+			border-radius: vww(8);
+            &:first-child{
+				margin-top: vww(5);
+			}
 			.jihua-main-line {
 				width: 100%;
 				display: flex;
 
 				view {
 					font-size: vww(14);
-					line-height: 2;
 				}
 
 				.name {
@@ -350,14 +374,17 @@
 					width: 100%;
 					display: flex;
 					justify-content: space-between;
-
+                    view{
+						font-size: vww(14);
+						line-height: vww(32);
+					}
 					.carNum-box {
 						display: flex;
-
-						.u-input {
-							height: vww(20);
-							width: vww(100);
-						}
+                        view {
+                        	font-size: vww(14);
+                            line-height: vww(32);
+                        }
+						
 					}
 				}
 			}

--
Gitblit v1.9.1