From 524d3d06957178e44f50ce1401d0b164432a5750 Mon Sep 17 00:00:00 2001 From: yyy <2605810609@qq.com> Date: Fri, 7 Mar 2025 09:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E7=BB=A9=E7=BB=93=E7=AE=97=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=94=B9=E4=B8=BA=E5=8F=AA=E8=83=BD=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=99=BB=E5=BD=95=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/performanceSet/detail.vue | 7 +++-- .../components/pages/performanceSet/list.vue | 30 ++++++++++++------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/pages/components/pages/performanceSet/detail.vue b/pages/components/pages/performanceSet/detail.vue index 4e201b1..a36e4b4 100644 --- a/pages/components/pages/performanceSet/detail.vue +++ b/pages/components/pages/performanceSet/detail.vue @@ -57,6 +57,9 @@ getSalesPerformance, updateSalesPerformance } from '@/api/customer' + import { + userGetUserInfo + } from '@/api/user' import { useMainStore } from '@/store/store' @@ -110,8 +113,8 @@ if (uni.getStorageSync('userinfo')) { userInfo.value = uni.getStorageSync('userinfo') } else { - userInfo = await userGetUserInfo() - main.SET_MEMBER(userInfo) + userInfo.value = await userGetUserInfo() + main.SET_MEMBER(userInfo.value) } } diff --git a/pages/components/pages/performanceSet/list.vue b/pages/components/pages/performanceSet/list.vue index 4283346..4a8c3c3 100644 --- a/pages/components/pages/performanceSet/list.vue +++ b/pages/components/pages/performanceSet/list.vue @@ -18,10 +18,16 @@ @scroll="scroll" @scrolltolower="reachBottom"> - - - 用户名称: - {{item.nickname}} + + + + 用户名称: + {{item.nickname}} + +
+ +
日期: @@ -58,7 +64,7 @@ - 确认 +
@@ -117,6 +123,9 @@ getSalesPerformancePage, updateSalesPerformance } from '@/api/customer' + import { + userGetUserInfo + } from '@/api/user' import { formatDateTime } from '@/utils/util' @@ -261,9 +270,9 @@ }) }) - onLoad((e) => { - getCustomerList(); - isConfirmShow() + onLoad(async (e) => { + await isConfirmShow() + await getCustomerList(); }) onShow(() => { @@ -282,8 +291,8 @@ if (uni.getStorageSync('userinfo')) { userInfo.value = uni.getStorageSync('userinfo') } else { - userInfo = await userGetUserInfo() - main.SET_MEMBER(userInfo) + userInfo.value = await userGetUserInfo() + main.SET_MEMBER(userInfo.value) } } const onSubmitItem = (item) => { @@ -361,6 +370,7 @@ nickname: keyword.value, month: dealMonth.value, year: dealYear.value, + userId: userInfo.value.id }).then(res => { res.list.forEach((item, index) => { if (item.tags) {