From 82fa9121ff649bb681fc55e482fe405c5ce0d4d0 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期三, 22 三月 2023 13:48:29 +0800
Subject: [PATCH] 称重界面完成(上磅计量页面完成)
---
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 108 ++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 89 insertions(+), 19 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 01ac4c9..f914f46 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,13 +1,15 @@
<template>
<view class="bill-of-lading-details">
<view class="bangDanMessage"><text>纾呭崟淇℃伅</text></view>
- <view class="timeLine" style="font-size: 16rpx;"><u-text v-for="(item, index) in dayRZ" :key="index" :text="item.taskStatusDes"></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>
<view class="utilsBox">
<view class="utils_chil utils_chilTop">
- <u-button text="绛惧埌" type="primary" @click="arriveClick"></u-button>
- <u-button text="鍏ュ満鐢宠" type="primary" @click="rcsqClick"></u-button>
- <u-button text="鏀剧┖" type="primary"></u-button>
- <u-button text="鍛煎彨瀹㈡湇" type="primary"></u-button>
+ <u-button text="绛惧埌" type="primary" plain @click="arriveClick"></u-button>
+ <u-button text="鍏ュ満鐢宠" type="primary" plain @click="rcsqClick"></u-button>
+ <u-button text="鏀剧┖" type="primary" plain></u-button>
+ <u-button text="鍛煎彨瀹㈡湇" type="primary" plain></u-button>
</view>
<view class="utils_chil"><u-button text="灞曠ず鎻愮叅鍗�" @click="showCaolPickUpBill" type="primary"></u-button></view>
<view class="utils_chil"><u-button text="涓婄璁¢噺" @click="cengZhongClick" type="primary"></u-button></view>
@@ -28,24 +30,56 @@
return {
orderPlanId: null,
yyId: null,
- dayRZ: []
+ dayRZ: [],
+ coalDetailsData: {}, // 鎻愮叅鍗曡鎯�
+ getWeightHouseObj: {
+ // 鑾峰彇鎵�鍦ㄧ鎴�
+ deptId: '',
+ filedId: '',
+ tmId: '',
+ tmCode: '',
+ carNo: ''
+ }
};
},
onShow() {
this.init();
},
+ computed: {
+ userName() {
+ return uni.getStorageSync('username');
+ },
+ openid() {
+ return uni.getStorageSync('openid');
+ }
+ },
methods: {
init() {
this.coalDayPage();
+ this.getTakeCoal();
},
- // 鏃ュ織鏌ヨ
- coalDayPage() {
- this.$reqGet('coalDayPage').then(res => {
+ // 鑾峰彇鎻愮叅鍗曡鎯�
+ getTakeCoal() {
+ this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
if (res.code == 0) {
- this.dayRZ = res.data.records;
+ 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;
}
});
},
+ // 鏃ュ織鏌ヨ
+ coalDayPage() {
+ this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
+ if (res.code == 0) {
+ this.dayRZ = res.data;
+ }
+ });
+ },
+ // 灞曠ず鎻愮叅鍗曡鎯�
showCaolPickUpBill() {
uni.navigateTo({
url: `/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill?orderPlanId=${this.orderPlanId}`
@@ -53,19 +87,49 @@
},
// 绛惧埌
arriveClick() {
- this.$reqPost('arrive', { id: this.orderPlanId }, 'params').then(res => {
- console.log(res, '绛惧埌');
+
+ // 鑾峰彇浣嶇疆淇℃伅
+ // 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}`
});
},
+ // 鍏ュ満鐢宠
rcsqClick() {
uni.navigateTo({
url: `/pages/driver-page/appointment/appointment?takeCoalId=${this.orderPlanId}&type=鍏ュ満鐢宠&yyId=${this.yyId}`
});
},
- cengZhongClick() {}
- /**
- * @desc 绛夊緟鍙栫叅鍗曟帴鍙�
- * */
+ // 鍛煎彨瀹㈡湇
+ callCustomerService() {
+ wx.join1v1Chat({
+ caller: { nickname: this.userName, openid: this.openid },
+ listener: { nickname: '瀹㈡湇', openid: 'orutI5YT0yEvARVngdsTmBpisWmw' }, // 杩欓噷鐨刼penid鏄痜yy鐨勶紝鍏呭綋鍥哄畾鐨勫鏈峯penid
+ backgroundType: 2,
+ roomType: 'voice'
+ });
+ },
+ // 绉伴噸
+ cengZhongClick() {
+ this.$reqGet('getWeighHouse', this.getWeightHouseObj).then(res => {
+ console.log(res, '鑾峰彇纾呮埧');
+ 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}`
+ });
+ }else{
+ this.$u.toast('鏈湪纾呮埧锛岃鍓嶅線纾呮埧鍚庡啀璇曪紒锛�')
+ }
+ });
+ }
}
};
</script>
@@ -81,7 +145,7 @@
.bangDanMessage {
font-size: vww(20);
font-weight: 500;
- border: vww(1) solid #dddddd;
+ border: vww(2) solid #dddddd;
border-radius: vww(20);
margin: vww(20);
margin-bottom: vww(10);
@@ -92,12 +156,18 @@
justify-content: center;
}
.timeLine {
+ height: 45%;
margin: vww(20);
margin-top: vww(10);
margin-bottom: vww(10);
- border: vww(1) solid #dddddd;
+ border: vww(2) solid #dddddd;
border-radius: vww(20);
- flex: 2;
+ padding: vww(20);
+ box-sizing: border-box;
+ overflow-y: overlay; //琛屼负涓� auto 鐩稿悓锛屼絾鏄粴鍔ㄦ潯缁樺埗鍦ㄥ唴瀹逛箣涓婏紝鑰屼笉鏄崰鎹┖闂淬��
+ .u-text {
+ margin-bottom: vww(5) !important;
+ }
}
.utilsBox {
padding: vww(20);
--
Gitblit v1.9.1