From d40527c10a2aa2ea481e1bf85ba0ac75ade9b670 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期六, 16 九月 2023 19:57:56 +0800
Subject: [PATCH] 增加磅房忙碌提示
---
pages/login/login.vue | 3 +++
pages/tabbar-page/index-tabbar/index-tabbar.vue | 12 ++++++++++--
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 13 ++++++++++++-
store/index.js | 8 ++++++++
4 files changed, 33 insertions(+), 3 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 509e646..be7a631 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
@@ -154,6 +154,13 @@
:show="servieceShow"
cancelText="鍙栨秷"></u-action-sheet>
</view>
+ <!-- 纾呮埧蹇欑鎻愮ず寮圭獥 -->
+ <view class="">
+ <u-modal :show="wsgVisiable"
+ title="鎻愮ず"
+ :content="wsgContent"
+ @confirm="wsgContentConfirm"></u-modal>
+ </view>
</view>
</template>
@@ -252,7 +259,7 @@
clearInterval(this.interval);
},
computed: {
- ...mapState(['globalweigh', 'globalinfraredStatus']),
+ ...mapState(['globalweigh', 'globalinfraredStatus', 'wsgVisiable', 'wsgContent']),
name() {
return uni.getStorageSync('name');
},
@@ -278,6 +285,7 @@
}
},
methods: {
+ ...mapMutations(['changewsgVisiable'])
init() {
this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
if (res.code == 0) {
@@ -572,6 +580,9 @@
}
})
},
+ wsgContentConfirm() {
+ this.changewsgVisiable(false)
+ }
}
};
</script>
diff --git a/pages/login/login.vue b/pages/login/login.vue
index aef23db..53ea34c 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -141,6 +141,9 @@
this.setUserTabbar(res.data.type);
uni.setStorageSync('roleType', res.data.type);
uni.setStorageSync("userId", res.data.userId)
+ if (res.data.carNo) {
+ uni.setStorageSync("carNo", res.data.carNo)
+ }
setCustomerId(res.data.customerid);
uni.hideLoading();
//璺宠浆椤甸潰
diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue
index 2d8d92b..eba8902 100644
--- a/pages/tabbar-page/index-tabbar/index-tabbar.vue
+++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -176,7 +176,13 @@
if (uni.getStorageSync('userId') === this.messageList.appUserId) {
this.messagePushShow = true;
}
- } else {}
+ } else if (v.startsWith('wsg')) {
+ let wsgObj = JSON.parse(v.slice(5));
+ if (uni.getStorageInfoSync('carNo') === wsgObj.carNo) {
+ changewsgVisiable(true)
+ changewsgContent(wsgObj.content)
+ }
+ }
}
},
onShow() {
@@ -200,7 +206,9 @@
this.changeisconnect(true)
},
methods: {
- ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit']),
+ ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit',
+ 'changewsgVisiable', 'changewsgContent'
+ ]),
messagePage() {
uni.navigateTo({
url: '/pages/public-page/message/message'
diff --git a/store/index.js b/store/index.js
index 37a132f..3a3d5eb 100644
--- a/store/index.js
+++ b/store/index.js
@@ -143,6 +143,8 @@
'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj43.jpg',
'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj44.jpg',
],
+ wsgVisiable: false, //纾呮埧蹇欑寮圭獥鎺у埗
+ wsgContent: ''
},
mutations: {
lengthchange(state, payload) {
@@ -217,6 +219,12 @@
},
changeablePrintOut(state, payload) {
state.ablePrintOut = payload
+ },
+ changewsgVisiable(state, payload) {
+ state.wsgVisiable = payload
+ },
+ changewsgContent(state, payload) {
+ state.wsgContent = payload
}
},
actions: {
--
Gitblit v1.9.1