From 9b0f733eecba99b33f4e415f9fddd42394f6c0d5 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期三, 09 十月 2024 14:45:07 +0800
Subject: [PATCH] feat:门卫

---
 pages/doorkeeper-page/doorkeeper-index/exit-index.vue |  116 ++++++++++++++++++++++++++++++----------------------------
 1 files changed, 60 insertions(+), 56 deletions(-)

diff --git a/pages/doorkeeper-page/doorkeeper-index/exit-index.vue b/pages/doorkeeper-page/doorkeeper-index/exit-index.vue
index d17e2c0..60e9f2d 100644
--- a/pages/doorkeeper-page/doorkeeper-index/exit-index.vue
+++ b/pages/doorkeeper-page/doorkeeper-index/exit-index.vue
@@ -73,61 +73,62 @@
 				</view>
 			</view>
 			</u-collapse-item>
-						</u-collapse>
-						<u-collapse
-								ref="myCollapse"
-								>
-								 <u-collapse-item
-								 ref="collapseHeights"
-								 name='3'
-								class="collItem"
-								:title="'涓存椂鍏ュ満杞﹁締'">	
-						<view style="position: relative;top: -40px;">
-							<u-empty mode="data"
-								icon="http://cdn.uviewui.com/uview/empty/data.png"
-								textSize="30"
-								iconSize="1000"
-								text="鏆傛棤杞﹁締"
-								v-if="driverTemporaryEntry.length == 0"></u-empty>
+			</u-collapse>
+			<u-collapse
+					ref="myCollapse"
+					>
+					 <u-collapse-item
+					 ref="collapseHeights"
+					 name='3'
+					class="collItem"
+					:title="'涓存椂鍑哄満杞﹁締'">	
+			<view style="position: relative;top: -40px;">
+				<u-empty mode="data"
+					icon="http://cdn.uviewui.com/uview/empty/data.png"
+					textSize="30"
+					iconSize="1000"
+					text="鏆傛棤杞﹁締"
+					v-if="driverTemporaryEntry.length == 0"></u-empty>
+			</view>
+			<view class="collection-form">
+				<view class="collection-form-item"
+					v-for="(item, index) in driverTemporaryEntry"
+					:key="index">
+					<view class="second-line">
+						<view class="coal-name">
+							<view class="dispatch-dept">{{ item.carNo || ''  }}</view>
+							<view class="black-bar"></view>
+							<view class="dispatch">{{ item.tempEntrancePlan.driver ||'' }}</view>
+							<view class="black-bar"></view>
+							<text>{{ item.tempEntrancePlan.phone || '' }}</text>
 						</view>
-						<view class="collection-form">
-							<view class="collection-form-item"
-								v-for="(item, index) in driverTemporaryEntry"
-								:key="index">
-								<view class="second-line">
-									<view class="coal-name">
-										<view class="dispatch-dept">{{ item.carNo || ''  }}</view>
-										<view class="black-bar"></view>
-										<view class="dispatch">{{ item.driver ||'' }}</view>
-										<view class="black-bar"></view>
-										<text>{{ item.phone || '' }}</text>
-									</view>
-								</view>
-								<view class="third-line">
-									<view class="time-icon">
-										<view
-											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="send-date">{{ item.sendDate }} {{ item.startTime || '' }}-{{item.endTime || ""}}</view>
-								</view>
-								<view class="first-line">
-									<view class="dispatch-receive">
-										<view class="point-number">
-											<text class="order-type">{{ item.coalName?limitString(item.coalName,20,'...'):'' || '' }}</text>
-										</view>
-										<view class="black-bar"></view>
-										<view class="dispatch-dept">{{ item.remark || ''  }}</view>
-									</view>
-								</view>
-								<view class="fourth-line">
-									<view class="forward"
-										@click.stop="yuYueLiShBtnClick(item)">
-										<view class="button-image">妫�鏌�</view>
-									</view>
-								</view>
+					</view>
+					<view class="third-line">
+						<view class="time-icon">
+							<view
+								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="send-date">{{ item.tempEntrancePlan.sendDate }} {{ item.tempEntrancePlan.startTime || '' }}-{{item.tempEntrancePlan.endTime || ""}}</view>
+					</view>
+					<view class="first-line">
+						<view class="dispatch-receive">
+							<view class="dispatch-dept">{{ item.tempEntrancePlan.coalName || ''  }}</view>
+							<view class="black-bar"></view>
+							<view class="dispatch">{{ item.tempEntrancePlan.customerName ||'' }}</view>
+						</view>
+						<view class="point-number">
+							<text class="order-type">{{ item.tempEntrancePlan.productNames?limitString(item.tempEntrancePlan.productNames,20,'...'):'' || '' }}</text>
+						</view>
+					</view>
+					<view class="fourth-line">
+						<view class="forward"
+							@click.stop="yuYueLiShBtnClick(item)">
+							<view class="button-image">妫�鏌�</view>
+						</view>
+					</view>
+				</view>
+			</view>
 			</u-collapse-item>
 			</u-collapse>
 			<u-collapse
@@ -283,6 +284,7 @@
 		},
 		data() {
 			return {
+				door:'',
 				temporaryPlanId:"",
 				show: false, // 寮瑰嚭鍏ㄩ儴棰嗗彇鎻愮ず
 				showModal:false,
@@ -304,6 +306,7 @@
 			}
 		},
 		onShow() {
+			this.door=uni.getStorageSync('door', this.door)
 			this.init();
 		},
 		methods: {
@@ -422,7 +425,7 @@
 				});
 				
 				if(!this.carNo){
-					this.$reqGet('getCheckTaskCoal',{flag:1}).then(res => {
+					this.$reqGet('getCheckTaskCoal',{flag:1,door:this.door}).then(res => {
 						uni.hideLoading();
 						this.driverBillOfLoadingData = res.data;
 						uni.stopPullDownRefresh();
@@ -435,7 +438,7 @@
 						this.handleOpenChange();
 					});
 				}else{
-					this.$reqGet('getCheckTaskCoal',{flag:1,carNo:this.carNo}).then(res => {
+					this.$reqGet('getCheckTaskCoal',{flag:1,carNo:this.carNo,door:this.door}).then(res => {
 						uni.hideLoading();
 						this.driverBillOfLoadingData = res.data;
 						uni.stopPullDownRefresh();
@@ -449,14 +452,14 @@
 					});
 				}
 				if(!this.carNo){
-					this.$reqGet('getAlreadyCheckTaskCoal',{flag:1}).then(res => {
+					this.$reqGet('getAlreadyCheckTaskCoal',{flag:1,door:this.door}).then(res => {
 						uni.hideLoading();
 						this.driverBillOfLoadingDatas = res.data;
 						uni.stopPullDownRefresh();
 						this.handleOpenChange();
 					});
 				}else{
-					this.$reqGet('getAlreadyCheckTaskCoal',{flag:1,carNo:this.carNo}).then(res => {
+					this.$reqGet('getAlreadyCheckTaskCoal',{flag:1,carNo:this.carNo,door:this.door}).then(res => {
 						uni.hideLoading();
 						this.driverBillOfLoadingDatas = res.data;
 						uni.stopPullDownRefresh();
@@ -522,6 +525,7 @@
 		}
 	}
 	::v-deep.appointment {
+		margin-bottom:  vww(100);
 		.appointment-description {
 			margin: vww(8) 0;
 			color: #fd1446;

--
Gitblit v1.9.1