From e193d75257a21568a15f99b27a2a48bd7fd815f9 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期三, 22 三月 2023 17:59:06 +0800 Subject: [PATCH] 1.磅房详情(完成) 2.入场申请报错(完成) 3.签到(完成) 4.日志(完成) 5.发运计划详情(完成) --- pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 86 +++++++++++++++++++++++++++++------------- 1 files changed, 59 insertions(+), 27 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue index f914f46..fd0fc70 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue @@ -1,6 +1,24 @@ <template> <view class="bill-of-lading-details"> - <view class="bangDanMessage"><text>纾呭崟淇℃伅</text></view> + <view class="bangDanMessage"> + <view class=""> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'瀹㈡埛锛�' + coalDetailsData.customerName"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鐭垮巶锛�' + coalDetailsData.deptName"></u--text> + </view> + <view class=""> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鐨噸锛�' + coalDetailsData.skin"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'姣涢噸锛�' + coalDetailsData.hair"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鍑�閲嶏細' + coalDetailsData.clean"></u--text> + </view> + <view class=""> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'纾呭崟绫诲瀷锛�' + coalDetailsData.orderTye"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鐘舵�侊細' + coalStatus[coalDetailsData.status]"></u--text> + </view> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鐓ゅ満锛�' + coalDetailsData.filedName"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鍙戣繍鏃堕棿锛�' + coalDetailsData.sendDate"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'鎻愮叅鍗曠紪鍙凤細' + coalDetailsData.code"></u--text> + <u--text align="center" size="35" bold plain text="涓昏壊" :text="'璁㈠崟缂栧彿锛�' + coalDetailsData.orderCode"></u--text> + </view> <view class="timeLine" style="font-size: 16rpx;"> <u--text type="primary" size="30" plain text="涓昏壊" v-for="(item, index) in dayRZ" :key="index" :text="item.taskStatusDes"></u--text> </view> @@ -39,7 +57,13 @@ tmId: '', tmCode: '', carNo: '' - } + }, + getYuYueDataParams: { + deptId: '', + filedId: '', + sendDate: '' + }, + coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅鍦�', '鍑虹叅浠�'] // 鐘舵�� }; }, onShow() { @@ -63,11 +87,16 @@ this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => { if (res.code == 0) { this.coalDetailsData = res.data[0]; + // 鑾峰彇鎵�鍦ㄧ鎴垮弬鏁拌祴鍊� this.getWeightHouseObj.deptId = this.coalDetailsData.deptId; this.getWeightHouseObj.filedId = this.coalDetailsData.filedId; this.getWeightHouseObj.tmId = this.coalDetailsData.id; this.getWeightHouseObj.tmCode = this.coalDetailsData.code; this.getWeightHouseObj.carNo = this.coalDetailsData.carNo; + // 鑾峰彇鍏ュ満鐢宠鎿嶄綔鍚庣殑棰勭害鍒楄〃鐨勫弬鏁� + this.getYuYueDataParams.deptId = this.coalDetailsData.deptId; + this.getYuYueDataParams.filedId = this.coalDetailsData.filedId; + this.getYuYueDataParams.sendDate = this.coalDetailsData.sendDate; } }); }, @@ -87,17 +116,6 @@ }, // 绛惧埌 arriveClick() { - - // 鑾峰彇浣嶇疆淇℃伅 - // wx.getFuzzyLocation({ - // type: 'wgs84', - // success (res) { - // const latitude = res.latitude - // const longitude = res.longitude - // } - // }) - - uni.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock?orderPlanId=${this.orderPlanId}` }); @@ -105,7 +123,9 @@ // 鍏ュ満鐢宠 rcsqClick() { uni.navigateTo({ - url: `/pages/driver-page/appointment/appointment?takeCoalId=${this.orderPlanId}&type=鍏ュ満鐢宠&yyId=${this.yyId}` + url: `/pages/driver-page/appointment/appointment?type=鍏ュ満鐢宠&takeCoalId=${this.orderPlanId}&yyId=${this.yyId}&filedId=${this.getYuYueDataParams.filedId}&deptId=${ + this.getYuYueDataParams.deptId + }&sendDate=${this.getYuYueDataParams.sendDate}` }); }, // 鍛煎彨瀹㈡湇 @@ -121,12 +141,14 @@ cengZhongClick() { this.$reqGet('getWeighHouse', this.getWeightHouseObj).then(res => { console.log(res, '鑾峰彇纾呮埧'); - if(res.code == 0){ + if (res.code == 0) { uni.navigateTo({ - url: `/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice?takeCoalId=${this.orderPlanId}&sceneId=${res.data.id}&gateCameraId=${res.data.lastEquipmentId}&gateCameraCode=${res.data.lastEquipmentCode}&weighHouseCode=${res.data.code}` + url: `/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice?takeCoalId=${this.orderPlanId}&sceneId=${res.data.id}&gateCameraId=${ + res.data.lastEquipmentId + }&gateCameraCode=${res.data.lastEquipmentCode}&weighHouseCode=${res.data.code}` }); - }else{ - this.$u.toast('鏈湪纾呮埧锛岃鍓嶅線纾呮埧鍚庡啀璇曪紒锛�') + } else { + this.$u.toast('鏈湪纾呮埧锛岃鍓嶅線纾呮埧鍚庡啀璇曪紒锛�'); } }); } @@ -141,22 +163,32 @@ margin: 0 auto; display: flex; flex-direction: column; - .bangDanMessage { - font-size: vww(20); - font-weight: 500; border: vww(2) solid #dddddd; border-radius: vww(20); margin: vww(20); margin-bottom: vww(10); - flex: 1; - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; + height: 40%; + box-sizing: border-box; + overflow-y: overlay; //琛屼负涓� auto 鐩稿悓锛屼絾鏄粴鍔ㄦ潯缁樺埗鍦ㄥ唴瀹逛箣涓婏紝鑰屼笉鏄崰鎹┖闂淬�� + .u-text { + margin-bottom: vww(5) !important; + } + view { + margin-bottom: vww(5); + } + view:nth-of-type(1) { + display: flex; + } + view:nth-of-type(2) { + display: flex; + } + view:nth-of-type(3) { + display: flex; + } } .timeLine { - height: 45%; + height: 25%; margin: vww(20); margin-top: vww(10); margin-bottom: vww(10); -- Gitblit v1.9.1