From a275a98671a1da9b4c4c6929812ddd71d82d7d79 Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 6 Aug 2026 11:40:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(stocking):=20=E7=BB=88=E7=89=88=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=BA=E7=89=B9=E6=9D=83=E7=94=A8=E6=88=B7=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E3=80=8C=E5=85=A8=E9=83=A8/=E6=88=91=E7=9A=84?= =?UTF-8?q?=E3=80=8D=E8=A7=86=E5=9B=BE=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- src/views/crmpc/stocking/final_list.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/views/crmpc/stocking/final_list.vue b/src/views/crmpc/stocking/final_list.vue index 416f5dd..384cbbc 100644 --- a/src/views/crmpc/stocking/final_list.vue +++ b/src/views/crmpc/stocking/final_list.vue @@ -5,6 +5,15 @@ 创建备货单 -->
+ + 我的 + 全部 + ([]) const timelineDialogVisible = ref(false) @@ -227,6 +237,14 @@ orderData: {} as OrderData }) const { hasAuth } = useAuth() + const userStore = useUserStore() + // 仅 userId=73 的特权用户可切换「全部/我的」 + const canViewAll = computed(() => userStore.getUserInfo.userId === 73) + const viewScope = ref<'all' | 'self'>('self') + const onScopeChange = () => { + pagination.currentPage = 1 + getList() + } function statusClass(status: any) { if (status === 'rejected') return 'status-lost' @@ -278,8 +296,9 @@ const params = { current: currentPage, size: pageSize, - is_final: 1, // 只获取备货单,非终版 - keyword: keyword.value + is_final: 1, // 终版 + keyword: keyword.value, + view_scope: viewScope.value } const { records, current, size, total } = await CrmService.getStockList(params)