From 65d1e61e0546a5a7b42381b1f11a5ad6ed2ce145 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期六, 29 六月 2024 13:50:15 +0800
Subject: [PATCH] feta:道路指引

---
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |  450 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 412 insertions(+), 38 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
index 81f6902..d9f67c7 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -7,21 +7,21 @@
 				fontSize='36'></u-notice-bar>
 			<view class="top-information">
 				<view class="cutomer-name"
-					v-if="orderType == '杞叆' || orderType == '杞嚭'">鐓ゅ満:{{ coalDetailsData.toFiledName || '' }}</view>
+					v-if="orderType == '杞叆' || orderType == '杞嚭'">鍦哄湴:{{ coalDetailsData.toFiledName || '' }}</view>
 				<view class="cutomer-name"
 					v-else>瀹㈡埛:{{ coalDetailsData.customerName || '' }}</view>
 				<view class="fild-name">
 					<view class="">鐭垮満:{{ coalDetailsData.deptName || '鏆傛棤' }}</view>
 					<view class=""
-						v-if="orderType == '杞叆' || orderType == '杞嚭'">鐓ゅ満:{{ coalDetailsData.filedName || '' }}</view>
+						v-if="orderType == '杞叆' || orderType == '杞嚭'">鍦哄湴:{{ coalDetailsData.filedName || '' }}</view>
 					<view class=""
-						v-else>鐓ゅ満:{{ coalDetailsData.filedName || '鏆傛棤' }}</view>
+						v-else>浠撳簱:{{ coalDetailsData.filedName || '鏆傛棤' }}</view>
 				</view>
 			</view>
 			<view class="block-information">
 				<view class="block-main">
 					<view class="basic">
-						<view class="coalName">{{ coalDetailsData.coalName }}</view>
+						<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;
 										background-size: cover;">
@@ -34,7 +34,9 @@
 								size="40"></u-icon></view>
 						<view class="send-date">{{ coalDetailsData.sendDate }}</view>
 					</view>
-					<view class="coal-code">鎻愮叅鍗曠紪鍙�:&nbsp;&nbsp;{{ coalDetailsData.code || '' }}</view>
+					<view class="coal-code">绫诲瀷:&nbsp;&nbsp;{{ coalDetailsData.orderType || '' }}</view>
+					<view class="coal-code">鏀跺彂鍗曠紪鍙�:&nbsp;&nbsp;{{ coalDetailsData.code || '' }}</view>
+					<view class="coal-code">杞︾墝鍙�:&nbsp;&nbsp;{{ coalDetailsData.carNo || '' }}</view>
 					<view class="order-code"
 						v-if="!isSpecial">
 						璁㈠崟缂栧彿:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ coalDetailsData.orderCode || '' }}</view>
@@ -42,28 +44,79 @@
 						style="color: #475bfd;"
 						@click="streamView"
 						v-show="timeLineStatus===9">
-						鏌ョ湅瀹炴椂杞﹁締
+						鏌ョ湅瑁呰浇鎯呭喌
 					</view>
-					<view class="weigh-item">
+					<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;">
 								鐨�</view>
-							<view class="num">{{ coalDetailsData.skin||"" }}</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;">
 								姣�</view>
-							<view class="num">{{ coalDetailsData.hair||""  }}</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;">
 								鍑�</view>
-							<view class="num">{{ coalDetailsData.clean||""  }}</view>
+							<view class="num" v-if="weightObj.clean">{{ Number(weightObj.clean).toFixed(2)  ||""  }}</view>
 						</view>
 					</view>
+				</view>
+			</view>
+		</view>
+		<!-- 瀛愯彍鍗� ---琛ㄦ牸 -->
+		<view class="sub-table">
+			<view class="first-line"><combined-title title="浜у搧淇℃伅"></combined-title></view>
+			<view class="table">
+				<uni-table  border 
+		       id="table-box"
+			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">鎵e惃</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='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.discount }}</view
+					></uni-td>
+					   <uni-td align="right">
+					<view>{{ subItem.productQuantity }}</view
+					></uni-td>
+				</uni-tr>
+				</uni-table>
+			</view>
+			<!-- 璇疯緭鍏ラ泦瑁呯鍙� -->
+			<view class="codeBox" v-if="coalDetailsData.isContainerNum">
+				<text>闆嗚绠卞彿:</text>
+				<view class="inp">
+					<u--input
+						placeholder="璇疯緭鍏ラ泦瑁呯鍙�"
+						v-model="coalDetailsData.containerNumber"
+					></u--input>
+				</view>
+				<view>
+					<u-button type="primary" text="纭畾" @click="enterClick"></u-button>
 				</view>
 			</view>
 		</view>
@@ -71,14 +124,23 @@
 			v-if="originInfoVisible&&!isSpecial">
 			<view class="origin-info_wrapper">
 				<view class="origin-info_content">
-					<view class="first-line"><combined-title title="鍘熷彂淇℃伅"></combined-title></view>
-					<u-form :model="originInfoForm"
+					<!-- 鎶樺彔 -->
+					<zh-collapse  accordion>
+					<zh-collapse-item 
+					class="collItem">
+					<!-- title -->
+					<view slot="title">
+						<view class="first-line"><combined-title title="鍘熷彂淇℃伅"></combined-title></view>
+					</view>
+					   <view class="" slot='cont'>
+						<u-form :model="originInfoForm"
 						:rules="rules"
 						label-position="top"
 						label-width="160"
 						:label-style="{'marginLeft':'9px'}"
 						ref="originInfoRef">
-						<u-form-item prop="coalContactSkin">
+						<view v-if="coalDetailsData.isWeight">
+							<u-form-item prop="coalContactSkin">
 							<view class="second-line">
 								<view class="label-text"
 									:class="{ focusClass: isfocus1 }"><text style="color: #f56c6c;">*</text>鐨噸</view>
@@ -126,7 +188,47 @@
 								</view>
 								<view class="unit">鍚�</view>
 							</view>
-						</u-form-item>
+						</u-form-item>		
+						</view>
+						<!-- 杈撳叆鏁伴噺 -->
+						<view v-else class="table-div">
+						<uni-table 
+						 border 
+						id="table-box"
+						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-tr>
+								<uni-tr v-for="(subItem, index) in coalDetailsData.tmTaskCoalList" :key="index">
+									<uni-td align="center">
+										<view class="name">{{ subItem.productName }}</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>
+								<u--input
+								placeholder="璇疯緭鍏ヤ骇鍝佹暟閲�"
+								type='number'
+								v-model="subItem.productQuantity"
+								></u--input>
+								</view></uni-td>
+								
+							</uni-tr>
+							</uni-table>
+						</view>
+						
 						<u-form-item prop='contactPicture'>
 							<view class="label-text">
 								<text style="color: #f56c6c;">*</text>鍘熷彂纾呭崟
@@ -151,6 +253,11 @@
 							:disabled="isModifyoriginInfo"
 							:loading="submitOriginInfoLoading"></u-button>
 					</view>
+					   </view>
+					</zh-collapse-item>
+					</zh-collapse>
+					
+					
 				</view>
 			</view>
 		</view>
@@ -205,9 +312,10 @@
 					@click="cengZhongClick"
 					type="primary"
 					shape="circle"
-					:disabled="haveInputOrigin&&!isSpecial"></u-button>
+					:disabled="haveInputOrigin&&!isSpecial"
+					:loading="weighHouseLoading"></u-button>
 			</view>
-			<view class="weigh-button"
+			<!-- <view class="weigh-button"
 				v-show='ablePrintInduction&&!(coalDetailsData.skin&&coalDetailsData.hair)'>
 				<u-button text="鎵撳嵃鍏ラ棬璇�"
 					@click="printBefore('in')"
@@ -215,8 +323,8 @@
 					shape="circle"
 					:loading="enterLoading"
 					loadingText="鎵撳嵃涓�,璇风◢鍊�"></u-button>
-			</view>
-			<view class="weigh-button"
+			</view> -->
+			<!-- <view class="weigh-button"
 				v-show="ablePrintOut">
 				<u-button text="鎵撳嵃鍑洪棬璇�"
 					@click="printBefore('out')"
@@ -224,9 +332,14 @@
 					shape="circle"
 					:loading="outLoading"
 					loadingText="鎵撳嵃涓�,璇风◢鍊�"></u-button>
-			</view>
-			<view class="weigh-button"><u-button text="灞曠ず鎻愮叅鍗�"
+			</view> -->
+			<view class="weigh-button"><u-button text="灞曠ず鏀跺彂鍗�"
 					@click="showCaolPickUpBill"
+					type="primary"
+					shape="circle"></u-button></view>
+					<!-- 鏌ョ湅璺嚎鎸囧紩 -->
+	<view class="weigh-button"><u-button text="鏌ョ湅璺嚎鎸囧紩"
+					@click="reviewGuidelines"
 					type="primary"
 					shape="circle"></u-button></view>
 		</view>
@@ -254,6 +367,31 @@
 				:show="servieceShow"
 				cancelText="鍙栨秷"></u-action-sheet>
 		</view>
+		<u-popup :show="guideLineshow" mode="bottom"   @close="close">
+        <view style="margin-top: 35rpx;padding-left: 20rpx;">
+			<u-radio-group 
+				v-model="radioValue"
+				placement="row" 
+				@change="radioChange"
+				>
+				<u-radio label="鍦哄湴" :name="'鍦哄湴'" :labelSize="30" :size="30"></u-radio>
+				<u-radio v-for="(item,index) in wareList" :label="'浠撳簱'+(index+1)"  :name="index":labelSize="30" :size="30" ></u-radio>
+			</u-radio-group>
+
+            <div class="guidebox">
+				<u-swiper
+				v-if="guideLineshow"
+				:height="400"
+				@click="swiperClick"
+				:list="swiperList"
+				keyName="image"
+				circular
+		></u-swiper>
+		  <view>{{ activeText }}</view>
+		  <u-album :urls="swiperList"  ref="swiperAlbum" keyName="src2"></u-album>
+			</div>
+        </view>
+	</u-popup>
 		<!-- 纾呮埧蹇欑鎻愮ず寮圭獥 -->
 		<view class="">
 			<u-modal :show="wsgShow"
@@ -286,10 +424,10 @@
 			this.orderPlanId = value.orderPlanId;
 			this.yyId = value.yyId;
 			this.originInfoVisible = value.orderType === '澶栬喘'
-			if (value.overTmWaixiao) {
-				this.overTmWaixiao = value.overTmWaixiao
-				this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao
-			}
+			// if (value.overTmWaixiao) {
+			// 	this.overTmWaixiao = value.overTmWaixiao
+			// 	this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao
+			// }
 			this.fileList1 = []
 			this.changeglobalIsFirstWeighing(1)
 			if (this.globalIsFirstWeighing === 1) {
@@ -322,10 +460,23 @@
 		},
 		data() {
 			return {
+				swiperList:[],
 				orderPlanId: null,
+				radioValue:'鍦哄湴',
+				tmTaskCoalList:[],
+				currentNum:0,
+				guideLineshow:false,
 				yyId: null,
 				dayRZ: [],
-				coalDetailsData: {}, // 鎻愮叅鍗曡鎯�
+				activeText:'',
+				activeObj:{
+					affiliationId:'',
+					type:2,
+				},
+				wareList:[],
+				coalDetailsData: {
+					tmTaskCoalList:[]
+				}, // 鎻愮叅鍗曡鎯�
 				currentPageCoalStatus: 0, // 褰撳墠椤甸潰鎻愮叅鍗曠姸鎬�
 				// 鑾峰彇鎵�鍦ㄧ鎴垮弬鏁�
 				getWeightHouseObj: {
@@ -412,12 +563,14 @@
 				timeout: '0',
 				wsgShow: false,
 				timeLineStatus: null,
+
 				timeLineEqCode: '',
 				originInfoNotice: '濉啓鍘熷彂淇℃伅鍚庡彲涓婄璁¢噺',
 				submitOriginInfoLoading: false,
 				ischeckedDefault: 0,
 				isSpecial: null, //1 鏄壒娈� 0涓嶆槸鐗规畩
 				printerType: '', //鍒ゆ柇鎵撳嵃鐨勬槸鍑洪棬璇佽繕鏄叆闂ㄨ瘉 
+				weighHouseLoading: false
 			};
 		},
 		watch: {
@@ -454,9 +607,25 @@
 				return this.correctStatus !== 3
 			},
 			coalContactClean() {
+				if(this.coalDetailsData.isWeight){
 				let xx = BigNumber(this.originInfoForm.coalContactHair ? this.originInfoForm.coalContactHair : 0)
 				let yy = BigNumber(this.originInfoForm.coalContactSkin ? this.originInfoForm.coalContactSkin : 0)
 				return xx.minus(yy).toNumber() > 0 ? xx.minus(yy).toNumber().toFixed(2) : 0
+				}else{
+					//鏁伴噺
+					if(!this.coalDetailsData.tmTaskCoalList.length){
+						return false
+					}else{
+						const reslut = this.coalDetailsData.tmTaskCoalList.find(item=>!item.productQuantity);
+						console.log(reslut);
+						if(reslut){
+							return false
+						}else{
+							return true
+						}
+					}
+				}
+				
 			},
 			currentTime() {
 				let currentDate = new Date();
@@ -474,6 +643,35 @@
 			},
 			isNeedOrigin() {
 				return uni.getStorageSync('isNeedOrigin')
+			},
+			//鏄惁灞曠ず鐨瘺鍑�
+			isShowClean(){
+				let  flag = true;
+				console.log(this.coalDetailsData.tmTaskCoalList)
+				const tempArr = this.coalDetailsData.tmTaskCoalList.filter(item=> item.isWeight === 1);
+				if(!tempArr.length ){
+					return false; //濡傛灉閮芥病鏈夎繑鍥炲亣
+				} else {
+					flag = 	 tempArr.every(obj => obj['skin'] !== null && obj['clean'] !== null && obj['hair'] !== null );
+					console.log(flag,'f;ag')
+				   return flag;
+				}
+				
+			},
+			//鐨瘺鍑�
+			weightObj(){
+				const index = 0;//涓嬫爣浣� 锛岃鍙栫鍑犵粍鐨勭毊姣涘噣锛�,榛樿鏈�鍚庝竴缁�;
+				const tempArr = this.coalDetailsData.tmTaskCoalList.filter(item=> item.isWeight === 1);
+				 const result =tempArr.find(item=>!item.skin || !item.hair || !item.clean);
+				 console.log(result,'result')
+				 if(result){
+					return result
+				 }else{
+					return  tempArr[index];
+				 }
+
+				
+
 			}
 		},
 		methods: {
@@ -526,6 +724,7 @@
 						this.orderType = this.coalDetailsData.orderType;
 						// 
 						this.isSpecial = res.data.isSpecial
+						this.wareList=res.data.bunkerIds.split(",")
 						// // 鍒ゆ柇鏄惁瀹屾垚澶栭攢璁㈠崟
 						// this.completeOutSale.orderType = this.coalDetailsData.orderType;
 						// this.completeOutSale.deptId = this.coalDetailsData.deptId;
@@ -555,12 +754,19 @@
 						this.ablePrintOut = this.coalDetailsData.hair && this.coalDetailsData.skin || this
 							.coalDetailsData.status === 6
 						// 鍘熷彂淇℃伅鍥炴樉浠ュ強鎺у埗鏄惁鍙慨鏀�
-						this.haveInputOrigin = !this.coalDetailsData.skinTwo && this.coalDetailsData.orderType ===
-							'澶栬喘'
+						const originFlag = this.coalDetailsData.tmTaskCoalList.find(item=>!item.productQuantity);
+						if(this.coalDetailsData.isWeight === 1){
+							this.haveInputOrigin = (!this.coalDetailsData.skinTwo && this.coalDetailsData.orderType ===
+							'澶栬喘')
+						}else{
+							this.haveInputOrigin = !!originFlag
+						}
+						console.log(originFlag,this.coalDetailsData.tmTaskCoalList,'origin')
 						this.deletable = this.coalDetailsData.status > 3
 						this.originInfoForm.coalContactSkin = this.coalDetailsData.skinTwo;
 						this.originInfoForm.coalContactHair = this.coalDetailsData.hairTwo;
 						this.originInfoForm.contactPicture = this.coalDetailsData.contactPicture
+						this.tmTaskCoalList = this.coalDetailsData.tmTaskCoalList;
 						if (this.coalDetailsData.contactPicture) {
 							this.fileList1 = this.coalDetailsData.contactPicture.split(',').map(v => {
 								return {
@@ -576,15 +782,24 @@
 					}
 				}).then(() => {
 					// 鍒ゆ柇褰撳墠鏃堕棿鏄惁瓒呭嚭棰勭害鏃堕棿
-					setTimeout(() => {
+					;
+					if([1, 2, 13].includes(this.coalDetailsData.status) ){
+						setTimeout(() => {
 						let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this
 							.coalDetailsData
 							.yuYueSection.slice(-5);
-						if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) {
+						// 鏈�澶х害鏉熸椂闂� maxRestrainTime
+						const maxRestrainTime = dayjs().subtract(this.coalDetailsData.flexibleTime,
+								'minute')
+							.format('YYYY-MM-DD HH:mm:ss');
+						console.log(maxRestrainTime, this.correctStatus);
+						if (dayjs(maxRestrainTime).isAfter(endTime) && this.correctStatus <= 1) {
 							// this.$u.toast('宸茶秴鍑洪绾︽椂闂�,鍙偣鍑诲叆鍦虹敵璇烽噸鏂板叆鍦�')
 							this.timeout = '1'
 						}
 					}, 1000)
+					}
+					
 				})
 			},
 			// 鏃ュ織鏌ヨ
@@ -697,8 +912,10 @@
 			// 绉伴噸
 			cengZhongClick() {
 				this.changeglobalIsFirstWeighing(2)
+				this.weighHouseLoading = true
 				this.$reqGet('getWeighHouse', this.getWeightHouseObj).then(res => {
 					console.log(res, '鑾峰彇纾呮埧');
+					this.weighHouseLoading = false
 					if (res.code == 0) {
 						this.weighData.sceneId = res.data.id;
 						this.weighData.gateCameraId = res.data.lastEquipmentId;
@@ -717,12 +934,14 @@
 							res.data.id
 						}&gateCameraId=${res.data.lastEquipmentId}&gateCameraCode=${res.data.lastEquipmentCode}&weighHouseCode=${res.data.code}&primarySkin=${
 							this.primarySkin
-						}&primaryHair=${this.primaryHair}&primaryClean=${this.primaryClean}&sceneInOut=${res.data.sceneInOut}&overTmWaixiao=${this.overTmWaixiao}`
+						}&primaryHair=${this.primaryHair}&primaryClean=${this.primaryClean}&sceneInOut=${res.data.sceneInOut}&overTmWaixiao=${this.overTmWaixiao}&deptId=${this.getWeightHouseObj.deptId }`
 						});
 					} else {
 						this.$u.toast(res.msg ? res.msg : '鏈湪纾呮埧锛岃鍓嶅線纾呮埧鍚庡啀璇曪紒锛�');
 					}
-				});
+				}).catch(() => {
+					this.weighHouseLoading = false
+				})
 			},
 			// 鏀剧┖
 			evacuation() {
@@ -937,7 +1156,8 @@
 					taskCoalCode: this.coalDetailsData.code,
 					carNo: this.coalDetailsData.carNo,
 				}
-				if (this.originInfoForm.coalContactSkin && this.originInfoForm.coalContactHair && this
+				if(this.coalDetailsData.isWeight === 1){
+					if (this.originInfoForm.coalContactSkin && this.originInfoForm.coalContactHair && this
 					.originInfoForm
 					.contactPicture) {
 					this.submitOriginInfoLoading = true
@@ -959,18 +1179,150 @@
 				} else {
 					uni.$u.toast('璇峰~鍐欏畬鏁村師鍙戜俊鎭�')
 				}
+				}else{
+						//鏁伴噺
+					form.numDtoList = this.coalDetailsData.tmTaskCoalList.map(item=>{
+						let obj  = {
+							tmId:item.id,
+							num:Number(item.productQuantity) 
+						}
+						return obj;
+					});
+					//鍒犻櫎鐨瘺鍑�
+					delete form.clean;
+					delete form.hair;
+					delete form.skin;
+					if (this.coalContactClean && this
+					.originInfoForm
+					.contactPicture) {
+					this.submitOriginInfoLoading = true;
+					console.log(form,'form')
+					this.$reqPost('appSaveContact', form, 'json').then(res => {
+						if (res.code === 0) {
+							this.$u.toast('鎻愪氦鎴愬姛')
+							this.submitOriginInfoLoading = false
+						} else {
+							this.submitOriginInfoLoading = false
+							this.$u.toast(res.msg ? res.msg : '鎻愪氦澶辫触')
+						}
+					}).then(()=>{
+							setTimeout(() => {
+							this.getTakeCoal()
+						}, 1000);
+					})
+				} else {
+					uni.$u.toast('璇峰~鍐欏畬鏁村師鍙戜俊鎭�')
+				}
+				}
+			
 			},
 			streamView() {
 				uni.navigateTo({
 					url: `/pages/public-page/driverStream/driverStream?eqCode=${this.timeLineEqCode}`
+				})
+			},
+			getguideFun(){
+				this.$reqGet('getRoute', this.activeObj).then((res)=>{
+					console.log(res,'res');
+					if(res.data.length){
+						this.swiperList = res.data[0].guideImg.split(',').map(item=>{
+							return BaseUrl + item;
+						});//鏁扮粍
+						console.log(this.swiperList,'swiperList');
+						this.activeText = res.data[0].guideText;
+					}else{
+						this.swiperList = [];
+						this.activeText = '鏆傛棤鏁版嵁'
+					}
+
+				})
+
+			},
+			reviewGuidelines(){
+				this.guideLineshow = true;
+				this.swiperList = [];
+				this.activeText = '';
+				this.activeObj.affiliationId = this.coalDetailsData.filedId; 
+				this.getguideFun();
+
+			},
+			close(){
+				this.guideLineshow = false;
+			},
+			radioChange(item){
+				console.log(111,item,this.coalDetailsData,this.wareList);
+				if(item == '鍦哄湴'){
+					this.activeObj.affiliationId = this.coalDetailsData.filedId;
+					this.activeObj.type = 2
+				}else{
+					this.activeObj.affiliationId = this.wareList.length>0?this.wareList[item]:this.coalDetailsData.deptId;
+					this.activeObj.type = 1
+				}
+				this.getguideFun();
+
+			},
+			//鎵撳紑鍥剧墖棰勮
+			swiperClick(){
+				console.log(this.$refs.swiperAlbum,'swiperAlbum')
+				this.$nextTick(()=>{
+					this.$refs.swiperAlbum.onPreviewTap();
+					this.$refs.swiperAlbum.openPage();
+				})
+			},
+			enterClick(){
+				console.log('click')
+				this.$reqPut('addContainer',{id:this.coalDetailsData.id,containerNumber:this.coalDetailsData.containerNumber},'json').then(res=>{
+					console.log(res,'res')
+					this.$u.toast('鎿嶄綔鎴愬姛')
 				})
 			}
 		}
 	};
 </script>
 
-<style lang="scss"
-	scoped>
+<style lang="scss"	scoped>
+.codeBox{
+	height: 100rpx;
+		display: flex;
+		width: 100%;
+		justify-content: space-around;
+		align-items: center;
+	.inp{
+			border: solid 1px #ccc;
+		input{
+		
+			text-indent: 15px;
+		}
+	
+	}
+
+
+}
+.table{
+	width: 100%;
+  /deep/ .uni-table{
+	min-width: 0!important;
+	margin-left: 20rpx;
+  }
+	
+}
+	.guidebox{
+		height:600rpx;
+		padding: 20rpx
+	}
+    .indicator-num {
+        padding: 2px 0;
+        background-color: rgba(0, 0, 0, 0.35);
+        border-radius: 100px;
+        width: 35px;
+        @include flex;
+        justify-content: center;
+
+        &__text {
+             color: #FFFFFF;
+             font-size: 12px;
+         }
+    }
 	/deep/.u-steps {
 		.u-steps-item {
 			.u-steps-item__content {
@@ -1006,7 +1358,8 @@
 				width: 94%;
 				margin: 0 auto;
 				height: vww(52);
-				@include flex position: relative;
+				@include flex;
+				 position: relative;
 				flex-direction: column;
 				justify-content: space-between;
 				align-items: flex-start;
@@ -1050,7 +1403,8 @@
 				overflow: hidden;
 
 				.block-main {
-					@include flex width: 94%;
+					@include flex ;
+					width: 94%;
 					height: 336rpx;
 					margin: vww(18) vww(7) vww(11) vww(17);
 					flex-direction: column;
@@ -1160,10 +1514,28 @@
 				}
 			}
 		}
+		.sub-table{
+			width: 690rpx;
+			min-height: 300rpx;
+			margin: vww(20) vww(15) vww(13);
+			background: #ffffff;
+			box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
+			border-radius: 20rpx;
+			@include flex;
+			    flex-direction: column;
+			justify-content: center;
+			overflow: hidden;
+			position: relative;
+			top: vww(130);
+			align-items: flex-start;
+			/deep/ .uni-table{
+				min-width: 0!important;
+			}
+
+		}
 
 		.origin-info {
 			width: 690rpx;
-			height: 600rpx;
 			margin: vww(20) vww(15) vww(13);
 			background: #ffffff;
 			box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
@@ -1176,7 +1548,6 @@
 
 			&_wrapper {
 				width: 650rpx;
-				height: 600rpx;
 				@include flex;
 				flex-direction: column;
 				margin-bottom: vww(20);
@@ -1345,4 +1716,7 @@
 			}
 		}
 	}
+	::v-deep .u-album{
+		display: none!important;
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1