后台按查看权限收紧菜单与「只看自己」数据范围;跨境整车报价填表更稳,协商中顺延不再误报销售超时。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-10-11 13:04:09 +08:00
co-authored by Cursor
parent ae818f26b1
commit b070a9b7a7
23 changed files with 1383 additions and 498 deletions
@@ -19,6 +19,12 @@ import {
import ProtoIcon from "/@/views/inquiry/components/ProtoIcon.vue";
import AdminModal from "/@/views/inquiry/components/AdminModal.vue";
import AdminPagination from "/@/views/inquiry/components/AdminPagination.vue";
import { usePermission } from "/@/hooks/web/usePermission";
import { InquiryBtnPerm } from "/@/views/inquiry/shared/inquiryPagePerms";
const { hasPermission } = usePermission();
/** 账号新建/编辑/删除/重置密码均属 edit 权限 */
const canEditAccount = () => hasPermission(InquiryBtnPerm.accountEdit);
const rows = ref<AccountRow[]>([]);
const loading = ref(false);
@@ -299,7 +305,7 @@ function removeAccount(row: AccountRow) {
<button type="button" class="btn btn-secondary" disabled title="导出待后续开放">
<ProtoIcon name="download" :size="14" />导出
</button>
<button type="button" class="btn btn-primary" @click="openCreate">
<button v-if="canEditAccount()" type="button" class="btn btn-primary" @click="openCreate">
<ProtoIcon name="plus" :size="14" />新建账号
</button>
</div>
@@ -369,7 +375,7 @@ function removeAccount(row: AccountRow) {
<td>
<div class="account-row-actions">
<button
v-if="!row.isSuperAdmin"
v-if="canEditAccount() && !row.isSuperAdmin"
class="link-action"
type="button"
@click="openEdit(row)"
@@ -378,6 +384,7 @@ function removeAccount(row: AccountRow) {
</button>
<!-- 超管只隐藏编辑/删除;重置密码仍可用。不展示「不可编辑」占位文案 -->
<button
v-if="canEditAccount()"
class="link-action link-muted"
type="button"
@click="resetPassword(row)"
@@ -385,7 +392,7 @@ function removeAccount(row: AccountRow) {
重置密码
</button>
<button
v-if="!row.isSuperAdmin"
v-if="canEditAccount() && !row.isSuperAdmin"
class="link-action link-danger"
type="button"
@click="removeAccount(row)"