fix: inbound_summary 页面 v-if 从不存在权限码 inbound_summary:view 改为菜单权限 inbound_summary

This commit is contained in:
yueli
2026-07-21 10:11:13 +08:00
parent 01122a58f3
commit d7d7d65a4f

View File

@ -1,5 +1,5 @@
<template>
<div v-if="userStore.hasPermission('inbound_summary:view')" class="app-container">
<div v-if="userStore.hasPermission('inbound_summary')" class="app-container">
<div class="filter-container">
<CompanySelector v-model="listQuery.company" @change="handleFilter" style="margin-right: 10px;" />
@ -141,14 +141,9 @@ const fetchData = async () => {
}
const res = await getInboundSummaryList(params)
console.log('[inbound_summary] res.data:', res.data)
if (res.data) {
list.value = res.data.items || []
total.value = res.data.total || 0
console.log('[inbound_summary] list.value 长度:', list.value.length, 'total:', total.value)
if (list.value.length > 0) {
console.log('[inbound_summary] 第一条:', JSON.stringify(list.value[0]))
}
}
} catch (error) {
console.error('获取入库记录失败', error)