From ba4baca76d4476d0bad710a7d2816a5f6909a7fc Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期二, 14 三月 2023 18:43:46 +0800 Subject: [PATCH] (微信一键登录,登录界面完善)(注册,司机上传图片接口)(提煤单详情页的优化,呼叫客服测试环境完成)(称重详情的页面,以及接口对接) --- pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue | 71 ++++++++++++++++++----------------- 1 files changed, 37 insertions(+), 34 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue b/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue index 0115454..286b841 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue @@ -3,13 +3,13 @@ <view class="driver" style="background:url(../../../../../static/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;"> <view class="driver-coalOne">鐢靛瓙鎻愮叅鍗�</view> <view class="driver-coalTwo"> - <view class="">涓滃簽鐭垮寳浜�</view> - <view class="">1/3鐒�</view> - <view class="">鍐�A37U98</view> + <view class="">{{ coalData.deptName || '鏆傛棤鎵�灞炵熆' }}</view> + <view class="">{{ coalData.coalName || '鏆傛棤鐓ょ' }}</view> + <view class="">{{ coalData.carNo || '鏆傛棤杞︾墝' }}</view> </view> <view class="driver-coalThree"> - <view class="">鏃槼鐒﹀寲鏈夐檺璐d换鍏徃</view> - <view class="">2022骞�8鏈�28鏃� 15:00:56</view> + <view class="">{{ coalData.customerName || '鏆傛棤鍗曚綅' }}</view> + <view class="">{{ coalData.yuYueTime || '鏆傛棤鏃堕棿' }}</view> </view> <view class="driver-coalFour"><image src="@/static/logo.gif" mode=""></image></view> </view> @@ -17,36 +17,40 @@ </template> <script> - export default { - onLoad(value) { - console.log('椤甸潰鍔犺浇', value); - if (value.orderPlanId) { - this.orderPlanId = value.orderPlanId; - } - }, - data() { - return { - orderPlanId: null - }; - }, - onShow() { - this.init(); - }, - methods: { - init() { - this.getTakeCoal(); - }, - // 鑾峰彇鎻愮叅鍗曡鎯� - getTakeCoal() { - this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => { - console.log('鑾峰彇鎻愮叅鍗曡鎯�', res); - }); - } - /** - * @desc 绛夊緟鍙栫叅鍗曟帴鍙� - * */ +export default { + onLoad(value) { + console.log('椤甸潰鍔犺浇', value); + if (value.orderPlanId) { + this.orderPlanId = value.orderPlanId; } + }, + data() { + return { + orderPlanId: null, + coalData: {} + }; + }, + onShow() { + this.init(); + }, + methods: { + init() { + this.getTakeCoal(); + }, + // 鑾峰彇鎻愮叅鍗曡鎯� + getTakeCoal() { + this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => { + console.log('鑾峰彇鎻愮叅鍗曡鎯�', res); + if (res.code == 0) { + this.coalData = res.data[0]; + } + }); + } + /** + * @desc 绛夊緟鍙栫叅鍗曟帴鍙� + * */ } +}; </script> <style lang="scss" scoped> @@ -103,4 +107,3 @@ } } </style> - -- Gitblit v1.9.1