From 346237405871aba82e73386fdb5f0078df37db53 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期一, 23 九月 2024 17:39:14 +0800
Subject: [PATCH] update 供应商的批量打印和刷新问题

---
 pages/home/supplier-home.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index 60b4b2b..234e6b6 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -111,12 +111,12 @@
 			<view class="tj-panel  pink flex1"
 				@click="goto('/pages/order/order-delivery?status=PENDING&range=today',true)">
 				<view class="name">今日待配送</view>
-				<view class="title">{{tj.deliverCount||0}}单</view>
+				<view class="title">{{tj.deliverCount||0}}扎</view>
 			</view>
 			<view class="tj-panel green flex1"
 				@click="goto('/pages/order/order-delivery?range=today',true)">
 				<view class="name green">今日配送汇总</view>
-				<view class="title">{{tj.deliverTotal||0}}单</view>
+				<view class="title">{{tj.deliverTotal||0}}扎</view>
 			</view>
 		</view>
 		<view class="m-t-12" @click="getNoticeMore">
@@ -167,7 +167,7 @@
 					</view>
 					<view class="order-desc tg">加价配置</view>
 				</view>
-				<view class="nav row margin-tb" @click="goto('/sub_pages/supplier/order-sale/order-sale',true)">
+				<view class="nav row margin-tb" @click="goto('/pages/order/order-sale/order-sale',true)">
 					<view class="img-c">
 						<image class="icon margin-bottom order-icon shlp"
 							src="/static/images/supplier/user/user-icon-shlp.png" mode="scaleToFill" />
@@ -238,6 +238,7 @@
 		},
 		async onPullDownRefresh() {
 			await this.$store.dispatch('getCurrentInfo')
+			await getTj(true)
 			uni.stopPullDownRefresh()
 		},
 		onLoad(options) {
@@ -245,7 +246,7 @@
 			const urlcode = options.url && decodeURIComponent(options.url) || ''
 		},
 		onShow() {
-			this.getTj()
+			this.getTj(true)
 		},
 		created() {
 			//公告
@@ -430,10 +431,10 @@
 					},
 				})
 			},
-			getTj() {
+			getTj(refresh=false) {
 				// /api/supplier/delivery	
 
-				if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) {
+				if (this.currentInfo.id && (this.currentInfo.id !== this.cacheUserId || refresh)) {
 					this.cacheUserId = this.currentInfo.id
 					let that = this
 					setTimeout(() => {

--
Gitblit v1.9.3