From 861126eb21cb2ad937449d6a012f225a5fccad38 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 30 十月 2023 16:09:12 +0800 Subject: [PATCH] 验质员称重明细页面,计算净重bugfix --- pages/driver-page/driver-index/driver-index.vue | 36 +++++++++++++++++++++--------------- 1 files changed, 21 insertions(+), 15 deletions(-) diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue index 095cf35..f188b68 100644 --- a/pages/driver-page/driver-index/driver-index.vue +++ b/pages/driver-page/driver-index/driver-index.vue @@ -97,13 +97,18 @@ icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" + text="鏆傛棤鏁版嵁" v-if="driverBillOfLoadingData.list3 ? (driverBillOfLoadingData.list3.length == 0 ? true : false) : true"></u-empty> <view class="appointment-form"> <view class="appointment-form-item" v-for="(item, index) in driverBillOfLoadingData.list3" - :key="index"> + :key="index" + @click="list3CardIconClick(item)" + > + <view class="main-divider"></view> + <view class="orderCode">璁㈠崟鍙凤細{{ item.orderCode }}</view> <view class="first-line"> <view class="main-information"> <view class="sign">瑁�</view> @@ -175,6 +180,7 @@ icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" + text="鏆傛棤鏁版嵁" v-if="driverBillOfLoadingData.list2 ? (driverBillOfLoadingData.list2.length == 0 ? true : false) : true"></u-empty> <view class="appointment-form"> <view class="appointment-form-item" @@ -182,6 +188,7 @@ :key="index" @click="list3CardIconClick(item)"> <view class="main-divider"></view> + <view class="orderCode">璁㈠崟鍙凤細{{ item.orderCode }}</view> <view class="first-line"> <view class="main-information"> <view class="sign">瑁�</view> @@ -248,7 +255,7 @@ <!-- 鍥剧墖棰勮寮瑰嚭妗� --> <view class="previewImage-container"> <previewImage ref="previewImage" - :imgs="TourImgList" + :imgs="driverTourImgList" :saveBtn='false'></previewImage> </view> </view> @@ -262,6 +269,7 @@ import { onlineurl } from '@/api/request.js' import { BaseUrl } from '@/api/publicInterface.js' import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; + import { mapState } from 'vuex' export default { components: { combinedTitle, @@ -283,6 +291,7 @@ }, }, computed: { + ...mapState(['driverTourImgList']), roleType() { return uni.getStorageSync('roleType'); }, @@ -304,17 +313,14 @@ customerId: '', coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚', '楠岃川瀹屾垚'], onlineurl, - TourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj1.jpg', - 'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj2.jpg', - 'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj3.jpg', - 'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj4.jpg', - 'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj5.jpg', - 'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj6.jpg', - 'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj7.jpg' - ], phone: "", isFirstLogin: true //鏄惁鏄涓�娆$櫥褰� }; + }, + mounted() { + // this.TourImgList = TourImgList + this.getLogOn() + }, onShow() { this.init(); @@ -330,7 +336,6 @@ }, init() { this.qiangDanList(); - this.getLogOn() }, // 鍙告満棣栭〉鍒楄〃 qiangDanList() { @@ -413,7 +418,6 @@ uni.request({ url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`, success: res => { - console.log(res, '鏃ュ織'); // res.data.data 涓�1 浠h〃绗竴娆$櫥褰� 涓�0鍙栨秷瀛︿範鎸囧紩 涓�2 浠h〃瀛樺湪 if (res.data.data === 1) { this.noobTour() @@ -768,18 +772,20 @@ .appointment-form-item { @include formItem; - height: vww(220); + height: vww(240); justify-content: space-between; overflow: hidden; - .main-divider { width: 560rpx; height: 1rpx; background: #e3e3e3; position: absolute; - top: 122rpx; + top: 200rpx; left: 128rpx; } + .orderCode{ + padding: 10px; + } .first-line { position: relative; -- Gitblit v1.9.1