From 1314133a0eac1ac6f05b69d81bd8c3ad9fe2b81a Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 20 六月 2024 10:21:43 +0800 Subject: [PATCH] feat:司机查看称重详情去掉查看出场时间 --- pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue | 107 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 98 insertions(+), 9 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue b/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue index c92a057..318a689 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue @@ -35,6 +35,18 @@ <view class="">{{ item.orderCode ||''}}</view> </view> </view> + <view class="second-line"> + + <text class="car-num " style="font-size: 28rpx;">渚涘簲鍟嗭細{{ item.customerName }}</text> + + </view> + <!-- 娣诲姞鍒涘缓鏃堕棿 --> + <view class="second-line"> + + <text class="car-num " style="font-size: 28rpx;">鍒涘缓鏃堕棿锛�</text> + + <view style="font-size: 28rpx;">{{ item.createTime }}</view> + </view> <view class="third-line"> <view class="time-icon"> <view @@ -50,7 +62,7 @@ </view> </view> <view class="send-date">{{ item.sendDate }}</view> - </view> + </view> <view class="fourth-line"> <view class="forward" @click.stop="validateClick(item)" @@ -86,6 +98,19 @@ <view class="coal-name">{{ item.coalName || '' }}</view> <view class="order-type">{{ item.orderType || '' }}</view> </view> + <!-- 娣诲姞鍒涘缓鏃堕棿 --> + <view class="third"> + <view class="third-line"> + <view class="time-icon"> + <text class="car-num " style="font-size: 28rpx;">鍒涘缓鏃堕棿锛�</text> + </view> + + <view style="font-size: 28rpx;">{{ item.createTime }}</view> + </view> + </view> + <view class="third"> + <text class="car-num " style="font-size: 28rpx;">渚涘簲鍟嗭細{{ item.customerName }}</text> + </view> <view class="third"> <view class="third-line"> <view @@ -117,15 +142,44 @@ <view class="white-block"></view> </scroll-view> </view> - <view style="height: 160rpx;width: 100%;"> - - </view> - <tab-bar :current="1"></tab-bar> + <!-- <view style="height: 160rpx;width: 100%;"> + 111111 + </view> --> + <!-- 鍥剧墖棰勮寮瑰嚭妗� --> + <view class="previewImage-container"> + <view class="previewImage-container"> + <previewImage ref="previewImage" + :imgs="qualityTourImgList" + :saveBtn='false'></previewImage> + </view> + </view> + <view class="noob-tour" + v-if="roleType===4&&isFirstLogin"> + <combined-title title="鎿嶄綔鎸囧紩"></combined-title> + <u-cell-group> + <u-cell title="鏂版墜鎸囧紩" + name='1' + :clickable="true" + @click="noobTour"> + <u-badge type="primary" + value="01" + slot='icon'></u-badge> + <u-icon slot="value" + name="arrow-right" + size="30" + color="#b8b8b8"></u-icon> + </u-cell> + </u-cell-group> + </view> + <tab-bar :current="0"></tab-bar> </view> </template> <script> import { onlineurl } from '@/api/request.js' + import { mapState } from 'vuex' + import { BaseUrl } from '@/api/publicInterface.js' + import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; export default { data() { return { @@ -138,19 +192,31 @@ // 鏄惁鏄剧ず鏇村鏁版嵁 showMoreData: false, total: null, + isFirstLogin:false, onlineurl, }; }, + components:{ + previewImage + }, computed: { + ...mapState(['customerTourImgList','qualityTourImgList']), roleType() { return uni.getStorageSync('roleType') } + }, + mounted() { + this.getLogOn(); }, onShow() { this.GetOrderPlan() this.qualityInspectionHistory() }, methods: { + init(){ + this.GetOrderPlan() + this.qualityInspectionHistory() + }, GetOrderPlan() { uni.showLoading({ title: '鍔犺浇涓�...' }); this.$reqGet('qualityInspection').then(res => { @@ -209,7 +275,29 @@ uni.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}&flag=${true}` }) - } + }, + noobTour(v) { + this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality1.jpg') + }, + getLogOn() { + this.$reqGet('getUserEntity').then(res => { + this.phone = res.data.phone + }).then(() => { + uni.request({ + url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`, + success: res => { + // res.data.data 涓�1 浠h〃绗竴娆$櫥褰� 涓�0鍙栨秷瀛︿範鎸囧紩 涓�2浠h〃瀛樺湪 + if (res.data.data === 1) { + this.noobTour() + } else if (res.data.data === 2) { + this.isFirstLogin = true + } else { + this.isFirstLogin = false + } + } + }); + }) + }, }, } </script> @@ -223,12 +311,13 @@ } .main { + width: 100%; - margin: 0 auto; + margin: 30px auto; } .scroll-Y { - height: 900rpx; + height: 100%; .more_text { color: #333; @@ -340,7 +429,7 @@ .collection-form-item { width: 690rpx; - height: 320rpx; + height: 350rpx; background: #ffffff; box-shadow: 4rpx 6rpx 25rpx 0rpx rgba(73, 120, 240, 0.15); border-radius: 20rpx; -- Gitblit v1.9.1