From 1ebafbb7dc199d74178984e0ef9ececb32cca73e Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期一, 09 十二月 2024 09:55:08 +0800
Subject: [PATCH] feat:库管首页多次刷新

---
 subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue |   98 +++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 86 insertions(+), 12 deletions(-)

diff --git a/subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue b/subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
index 7e2cf8c..76ac501 100644
--- a/subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
+++ b/subPages/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="bill-of-lading-details">
 		<view class="top-banner"
-			style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
+			style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
 			<view class="top-information">
 				<view class="cutomer-name"
 					v-if="orderType == '杞叆' || orderType == '杞嚭'">鍦哄湴:{{ coalDetailsData.toFiledName || '' }}</view>
@@ -12,7 +12,7 @@
 					<view class=""
 						v-if="orderType == '杞叆' || orderType == '杞嚭'">鍦哄湴:{{ coalDetailsData.filedName || '' }}</view>
 					<view class=""
-						v-else>鍘傚尯:{{ coalDetailsData.filedName || '鏆傛棤' }}</view>
+						v-else>鍘傚尯:{{ coalDetailsData.bunkerName || '鏆傛棤' }}</view>
 				</view>
 			</view>
 			<view class="block-information">
@@ -20,7 +20,7 @@
 					<view class="basic">
 						<view class="coalName">{{ coalDetailsData.productNames || coalDetailsData.productName }}</view>
 						<view class="status-button"
-							style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/statusbutton.png') no-repeat;
+							style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/statusbutton.png') no-repeat;
 										background-size: cover;"> 
 							{{coalDetailsData.statusView||''}}
 						</view>
@@ -46,19 +46,19 @@
 					<view class="weigh-item" v-if="isShowClean">
 						<view class="item">
 							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
+								style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
 								鐨�</view>
 							<view class="num" v-if="weightObj.skin">{{  Number(weightObj.skin).toFixed(2) ||"" }}</view>
 						</view>
 						<view class="item">
 							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
+								style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
 								姣�</view>
 							<view class="num" v-if="weightObj.hair">{{  Number(weightObj.hair).toFixed(2) ||""  }}</view>
 						</view>
 						<view class="item">
 							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
+								style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
 								鍑�</view>
 							<view class="num" v-if="weightObj.clean">{{ Number(weightObj.clean).toFixed(2)  ||""  }}</view>
 						</view>
@@ -72,18 +72,32 @@
 			<view class="table">
 				<uni-table  border 
 		       id="table-box"
+			   v-if="coalDetailsData.isWeight === 1" 
 			emptyText="鏆傛棤鏇村鏁版嵁">
 					<uni-tr>
 					    <uni-th align="center" >浜у搧</uni-th>
+						 <uni-th align="center" >浜у搧绛夌骇</uni-th>
+					 	<uni-th align="center" >鍖呰绫诲瀷</uni-th>
+					  	<uni-th align="center" >璁″垝閲�</uni-th>
+						<uni-th align="center" >瀹為檯閲�</uni-th>
 						<uni-th align="center">鐨噸</uni-th>
 						<uni-th align="center">姣涢噸</uni-th>
 						<uni-th align="center">鍑�閲�</uni-th>
 					    <uni-th align="center">鎵e惃</uni-th>	
-						<uni-th align="center">浠舵暟</uni-th>		
+						<!-- <uni-th align="center">浠舵暟</uni-th>	 -->
+						<uni-th align="center">鍗曚綅</uni-th>		
 					</uni-tr>
 					<uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index">
 						<uni-td align="center">
 							<view class="name">{{ subItem.productName }}</view></uni-td>
+								<uni-td align="center">
+							<view class="name">{{ subItem.productGrade }}</view></uni-td>
+								<uni-td align="center">
+							<view class="name">{{ proType[subItem.packingType] }}</view></uni-td>
+								<uni-td align="center">
+							<view class="name">{{ subItem.planMeasure }}</view></uni-td>
+							<uni-td align="center">
+							<view class="name">{{ subItem.realityMeasure }}</view></uni-td>
 					<uni-td align='right'>
 						<view  v-if="subItem.skin">{{ Number( subItem.skin).toFixed(2)  || ''}}</view>
 					</uni-td>
@@ -97,8 +111,59 @@
 				聽   <uni-td align="right">
 					<view>{{ subItem.discount }}</view
 					></uni-td>
+					   <!-- <uni-td align="right">
+					<view>{{ subItem.productQuantity }}</view
+					></uni-td> -->
+					<uni-td align="right">
+					<view>{{ subItem.productUnit }}</view
+					></uni-td>
+				</uni-tr>
+				</uni-table>
+
+				<uni-table  border 
+		       id="table-box"
+			   v-else
+			emptyText="鏆傛棤鏇村鏁版嵁">
+					<uni-tr>
+					    <uni-th align="center" >浜у搧</uni-th>
+						 <uni-th align="center" >浜у搧绛夌骇</uni-th>
+					 	<uni-th align="center" >鍖呰绫诲瀷</uni-th>
+					  	<uni-th align="center" >璁″垝閲�</uni-th>
+						<uni-th align="center" >瀹為檯閲�</uni-th>
+						<!-- <uni-th align="center">鐨噸</uni-th>
+						<uni-th align="center">姣涢噸</uni-th>
+						<uni-th align="center">鍑�閲�</uni-th> -->
+					
+						<uni-th align="center">浠舵暟</uni-th>	
+						<uni-th align="center">鍗曚綅</uni-th>		
+					</uni-tr>
+					<uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index">
+						<uni-td align="center">
+							<view class="name">{{ subItem.productName }}</view></uni-td>
+								<uni-td align="center">
+							<view class="name">{{ subItem.productGrade }}</view></uni-td>
+								<uni-td align="center">
+							<view class="name">{{ proType[subItem.packingType] }}</view></uni-td>
+								<uni-td align="center">
+							<view class="name">{{ subItem.planMeasure }}</view></uni-td>
+							<uni-td align="center">
+							<view class="name">{{ subItem.realityMeasure }}</view></uni-td>
+					<!-- <uni-td align='right'>
+						<view  v-if="subItem.skin">{{ Number( subItem.skin).toFixed(2)  || ''}}</view>
+					</uni-td>
+					<uni-td align='right'>
+						<view class="name" v-if="subItem.hair">{{ Number(subItem.hair) .toFixed(2) || '' }}</view>
+					</uni-td>
+					<uni-td align='right'>
+						<view class="name" v-if="subItem.clean">{{ Number( subItem.clean).toFixed(2) || '' }}</view>
+					</uni-td> -->
+					
+				聽  
 					   <uni-td align="right">
 					<view>{{ subItem.productQuantity }}</view
+					></uni-td>
+					<uni-td align="right">
+					<view>{{ subItem.productUnit }}</view
 					></uni-td>
 				</uni-tr>
 				</uni-table>
@@ -118,18 +183,19 @@
 			</view>
 		</view>
 		<view class="origin-info"
-			v-if="originInfoVisible">
+			v-if="originInfoVisible && isShowYuanFa">
 			<view class="origin-info_wrapper">
 				<view class="origin-info_content">
 					<!-- 鎶樺彔 -->
 						<view class="first-line"><combined-title title="鍘熷彂淇℃伅"></combined-title></view>
-					   <view class="" slot='cont'>
+			
 						<u-form :model="originInfoForm"
 						:rules="rules"
 						label-position="top"
 						label-width="160"
 						:label-style="{'marginLeft':'9px'}"
 						ref="originInfoRef">
+						
 						<view v-if="coalDetailsData.isWeight">
 							<u-form-item prop="coalContactSkin">
 							<view class="second-line">
@@ -238,7 +304,7 @@
 								:deletable="!deletable"></u-upload>
 						</u-form-item>
 					</u-form>
-					   </view>
+					  
 					
 					
 				</view>
@@ -314,6 +380,7 @@
 		data() {
 			return {
 				swiperList:[],
+					proType:['鏁h','娑叉隘鐡惰','缃愯','PVC25','PVC80','PVC1150','PVc1200'],
 				orderPlanId: null,
 				radioValue:'鍦哄湴',
 				tmTaskCoalList:[],
@@ -523,9 +590,16 @@
 					return  tempArr[index];
 				 }
 
-				
-
+			},
+			//鍒ゆ柇鏄惁灞曠ず 鍘熷彂淇℃伅
+			isShowYuanFa(){
+				if(this.coalContactClean && !this.coalDetailsData.tmTaskCoalList.length){
+					return false
+				}else{
+					return true
+				}
 			}
+			
 		},
 		methods: {
 			...mapMutations(['changewsgVisiable', 'changeisUploadimg', 'changeglobalIsFirstWeighing']),

--
Gitblit v1.9.1