From 5386f47f55ecb9ad2189998f9dda6d682b6be7e0 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 12 九月 2023 13:56:43 +0800 Subject: [PATCH] 修改空数据提示 --- pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue | 62 ++++++++++++++++++++----------- 1 files changed, 40 insertions(+), 22 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 fa9da5f..c92a057 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 @@ -1,11 +1,12 @@ <template> <view class="main"> - <view style="position: relative;top: -120px;"> + <view> <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" - v-if="!orderPlanData"></u-empty> + text="鏆傛棤鏁版嵁" + v-if="orderPlanData.length===0"></u-empty> </view> <view class="collection-form"> <view class="collection-form-item" @@ -29,10 +30,15 @@ v-if="item.orderType">{{ item.orderType||'' }}</view> </view> </view> + <view class="second-line"> + <view class="coal-name"> + <view class="">{{ item.orderCode ||''}}</view> + </view> + </view> <view class="third-line"> <view class="time-icon"> <view - style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carNO.png') no-repeat;background-size: cover"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carNO.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> </view> </view> <view class="car-num">{{ item.carNo||''}}</view> @@ -40,7 +46,7 @@ <view class="third-line"> <view class="time-icon"> <view - style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> </view> </view> <view class="send-date">{{ item.sendDate }}</view> @@ -55,7 +61,7 @@ </view> </view> <view class="history-numbers"> - <combined-title title="鍘嗗彶鎻愮叅鍗�"></combined-title> + <combined-title title="鍘嗗彶楠岃川瀹屾垚"></combined-title> <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @@ -64,13 +70,14 @@ icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" + text="鏆傛棤鏁版嵁" v-if="historyCoalData.length==0"></u-empty> <view class="history-information" v-for="(item, index) in historyCoalData" :key="index" @click="faYundetail(item)"> <view class="first"> - <view class="">{{ item.deptName || '' }}</view> + <view class="">{{ item.filedName || '' }}</view> <view class=""><u-icon name="arrow-right" color="#999999" size="40"></u-icon></view> @@ -81,25 +88,17 @@ </view> <view class="third"> <view class="third-line"> - <view class="third-line_text">棰嗗彇鏁�:</view> - <view class="third-line_num">{{ item.cars2 }}</view> - </view> - <view class="third-line"> - <view class="third-line_text">鍓╀綑鏁�:</view> + <view + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carNO.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> + </view> <view class="third-line_num" - v-if="roleType == 1">{{ item.carNumSurplus1 }}</view> - <view class="third-line_num" - v-else-if="roleType == 2">{{ item.carNumSurplus }}</view> - </view> - <view class="third-line"> - <view class="third-line_text">鎻愮叅鍗曚釜鏁�:</view> - <view class="third-line_num">{{ item.tmCount }}</view> + style=" color: #303030;">{{ item.carNo }}</view> </view> </view> <view class="fourth"> <view class="fourth-icon"> <view - style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> </view> </view> <view class="senddate">{{ item.sendDate }}</view> @@ -107,7 +106,7 @@ <view class="fourth"> <view class="fourth-icon"> <view - style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carnNUm.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> </view> </view> <view class="senddate">{{ item.orderCode }}</view> @@ -126,6 +125,7 @@ </template> <script> + import { onlineurl } from '@/api/request.js' export default { data() { return { @@ -137,7 +137,8 @@ pageCurrent: 1, // 鏄惁鏄剧ず鏇村鏁版嵁 showMoreData: false, - total: null + total: null, + onlineurl, }; }, computed: { @@ -188,7 +189,7 @@ this.pageCurrent++; this.qualityInspectionHistory(); }, - //fix 鐐瑰嚮鎻愮叅鍗曡繑鍥炰細澧炲姞閲嶅鏁版嵁 + //fix 鐐瑰嚮閫氱煡鍗曡繑鍥炰細澧炲姞閲嶅鏁版嵁 ArrSet(Arr, id) { var obj = {}; const arrays = Arr.reduce((setArr, item) => { @@ -197,9 +198,16 @@ }, []); return arrays; }, + // 楠岃川閫夋嫨 validateClick(item) { uni.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}` + }) + }, + // 鍘嗗彶 + faYundetail(item) { + uni.navigateTo({ + url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}&flag=${true}` }) } }, @@ -219,6 +227,16 @@ margin: 0 auto; } + .scroll-Y { + height: 900rpx; + + .more_text { + color: #333; + font-size: 24rpx; + text-align: center; + } + } + .history-numbers { width: 100%; position: relative; -- Gitblit v1.9.1