From 17427143356e8a410552cb44120a02eb6eb35540 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 17 七月 2023 15:44:22 +0800
Subject: [PATCH] 增加销类型称重判断逻辑
---
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue | 38 +++++++++++--------
pages/driver-page/drvier-my/drvier-my.vue | 13 ++----
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 8 ++--
store/index.js | 2
4 files changed, 32 insertions(+), 29 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 7837438..f68f8af 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
@@ -5,15 +5,15 @@
</view>
<view class="top-information">
<view class="cutomer-name"
- v-if="orderType == '杞叆' || orderType == '杞嚭'">鐓ゅ満:{{ coalDetailsData.toFiledName || '' }}</view>
+ v-if="orderType == '杞叆' || orderType == '杞嚭'">浠撳簱:{{ coalDetailsData.toFiledName || '' }}</view>
<view class="cutomer-name"
v-else>瀹㈡埛:{{ coalDetailsData.customerName || '' }}</view>
<view class="fild-name">
- <view class="">鐭垮満:{{ coalDetailsData.deptName || '鏆傛棤' }}</view>
+ <view class="">鍩哄湴:{{ coalDetailsData.deptName || '鏆傛棤' }}</view>
<view class=""
- v-if="orderType == '杞叆' || orderType == '杞嚭'">鐓ゅ満:{{ coalDetailsData.filedName || '' }}</view>
+ v-if="orderType == '杞叆' || orderType == '杞嚭'">浠撳簱:{{ coalDetailsData.filedName || '' }}</view>
<view class=""
- v-else>鐓ゅ満:{{ coalDetailsData.filedName || '鏆傛棤' }}</view>
+ v-else>浠撳簱:{{ coalDetailsData.filedName || '鏆傛棤' }}</view>
</view>
</view>
<view class="block-information">
diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
index f83188c..f294eaf 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -85,23 +85,16 @@
{{ currentClean}}
</view>
</view>
- <view class="main-information">
+ <!-- <view class="main-information">
<view class="prefix">璁㈠崟浣欓噺:</view>
<view class="suffix">{{ weighList.orderSurplus || 0 }}</view>
- </view>
+ </view> -->
</view>
</view>
<!-- 绉伴噸鍘嗗彶-->
<weigh-item :list="weighHistory"></weigh-item>
<view class="three">
- <!-- 鏀剧┖ -->
- <u-button type="primary"
- text="鏀剧┖"
- plain
- @click="evacuation"
- throttleTime="500"
- :disabled="!isEvacuation"></u-button>
- <!-- 澶栭攢璁㈠崟绉扮毊鏃讹紝杩斿洖鍔犲噺鍚ㄦ寜閽疆鐏般�傜О姣涙椂鍙敤.澶栬喘璁㈠崟锛屼笉鍑虹幇杩斿洖鍔犲噺鍚ㄧ殑鎸夐挳 -->
+ <!-- .澶栬喘璁㈠崟锛屼笉鍑虹幇杩斿洖鍔犲噺鍚ㄧ殑鎸夐挳 -->
<u-button type="primary"
text="纭畾绉伴噸"
:disabled="realTimeWeigh == 0 || globalinfraredStatus || isweigh ||globalWarning"
@@ -121,6 +114,14 @@
loadingText="纭"
:disabled="isweigh||realTimeWeigh == 0"
v-if='canUnload'></u-button>
+ <!-- 鏀剧┖ -->
+ <u-button type="primary"
+ text="鏀剧┖"
+ plain
+ @click="evacuation"
+ throttleTime="500"
+ :disabled="!isEvacuation"></u-button>
+
</view>
<!-- 鏀剧┖寮圭獥 -->
<view class="evacuationModal">
@@ -233,8 +234,7 @@
this.temporaryWeighObj.skin = newV;
} else {
this.temporaryWeighObj.hair = newV;
- this.isweigh = Number(this.currentClean) > this.weighList.orderSurplus || Number(this
- .currentClean) < 0;
+ this.isweigh = Number(this.currentClean) < 0;
}
} else if (this.weighList.orderType == '澶栬喘' || this.weighList.orderType == '鍐呰喘' || this.weighList
.orderType == '杞叆') {
@@ -287,11 +287,15 @@
return this.weighList.tmTaskCoalItems ? this.weighList.tmTaskCoalItems : []
},
currentHair() {
+ if (this.weighList.orderType == '澶栭攢' || this.weighList.orderType == '鍐呴攢' || this.weighList.orderType ==
+ '杞嚭') {
+ return this.temporaryWeighObj.hair ? this.temporaryWeighObj.hair : ''
+ }
return this.temporaryWeighObj.hair ? this.temporaryWeighObj.hair : this.showWeigh.skin ? (this.showWeigh
.skin || '') : (this.showWeigh.hair || '')
},
currentSkin() {
- return this.temporaryWeighObj.skin || ''
+ return this.temporaryWeighObj.skin ? this.temporaryWeighObj.skin : (this.showWeigh.skin || '')
},
currentClean() {
if (!this.currentSkin) return ''
@@ -299,7 +303,8 @@
.orderType == '杞叆') {
return (this.currentHair - this.currentSkin).toFixed(2)
} else {
- return !this.showWeigh.skin ? this.currentSkin : (this.currentHair - this.currentSkin).toFixed(2)
+ return !this.showWeigh.skin ? this.currentSkin : (this.currentHair - this.currentSkin) > 0 ? (this
+ .currentHair - this.currentSkin).toFixed(2) : ''
}
}
@@ -744,15 +749,16 @@
.three {
margin: 0 auto vww(5);
+ margin-bottom: vww(60);
width: 96%;
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
+ grid-template-columns: repeat(auto-fit, minmax(140rpx, 1fr));
justify-content: center;
gap: vww(10);
color: #939393;
.u-button {
- width: vww(90);
+ width: vww(70);
}
}
diff --git a/pages/driver-page/drvier-my/drvier-my.vue b/pages/driver-page/drvier-my/drvier-my.vue
index 7f7ece3..dcb8171 100644
--- a/pages/driver-page/drvier-my/drvier-my.vue
+++ b/pages/driver-page/drvier-my/drvier-my.vue
@@ -495,16 +495,19 @@
});
this.$reqGet('getUserEntity').then(res => {
uni.hideLoading();
- this.userInfo = res.data;
+ this.editUserInfo = this.userInfo = res.data;
+ this.editUserInfo.password = ""
uni.setStorageSync('carImg', this.userInfo.carImg);
uni.setStorageSync('drivingImg', this.userInfo.drivingImg);
uni.setStorageSync('bodyofcarJpg', this.userInfo.bodyofcarJpg)
if (this.fileList1.length == 0) {
+
this.fileList1.push({
url: `${BaseUrl}${this.userInfo.carImg}`
- });
+ })
}
if (this.fileList2.length == 0) {
+ if (!this.userInfo.drivingImg) return
this.fileList2.push({
url: `${BaseUrl}${this.userInfo.drivingImg}`
});
@@ -524,12 +527,6 @@
});
}
}
- Object.keys(this.editUserInfo).map(item => {
- if (res.data[item]) {
- this.editUserInfo[item] = res.data[item];
- this.editUserInfo.password = ''
- }
- });
});
},
// 淇敼鎸夐挳鐐瑰嚮
diff --git a/store/index.js b/store/index.js
index e9c61e3..c689bdd 100644
--- a/store/index.js
+++ b/store/index.js
@@ -262,7 +262,7 @@
})
commit('changereconnectNum', 1)
dispatch('reconnect')
- } else if (state.connectNum > 6 && state.globalisLogin) {
+ } else if (state.connectNum >= 6 && state.globalisLogin) {
commit('changereconnectNum', 1)
uni.showToast({
title: '缃戠粶寮傚父,璇风◢鍚庨噸璇�',
--
Gitblit v1.9.1