diff --git a/dist.tar.gz b/dist.tar.gz index 3c1a7412..879a9032 100644 Binary files a/dist.tar.gz and b/dist.tar.gz differ diff --git a/src/views/store/stores/component/detail.vue b/src/views/store/stores/component/detail.vue index eac62b0c..5f5c2acc 100644 --- a/src/views/store/stores/component/detail.vue +++ b/src/views/store/stores/component/detail.vue @@ -1,142 +1,112 @@ - - - - - - - - - {{ row.current_subject_role === 'warehouse' ? '仓库方' : '货主方' }} - - - - - - {{ getAuthStatusLabel(row.auth_status) }} - - - - - {{ formatDate(row.auth_start) || '—' }} 至 {{ formatDate(row.auth_end) || '—' }} - ({{ row.remaining_days }}天) - - - - - - - {{ cfg.app_name }}({{ cfg.interface_name }}) - ERP: {{ getQimenErpDisplay(cfg) }},仓库编码: {{ cfg.qimen_warehouse_code }} - - - - - {{ row.qimen_config.app_name }}({{ row.qimen_config.interface_name }}) - ERP: {{ getQimenErpDisplay(row.qimen_config) }},仓库编码: {{ row.qimen_config.qimen_warehouse_code }} - - - 未配置 - - 未配置 - - - - {{ (row[item.prop] !== undefined && row[item.prop] !== null && row[item.prop] !== '') ? row[item.prop] : '—' }} - - + + + + + + {{ row.current_subject_role === 'warehouse' ? '仓库方' : '货主方' }} + - - - - - - - - - - - {{ cfg.app_name }}({{ cfg.interface_name }}) - ERP: {{ getQimenErpDisplay(cfg) }},仓库编码: {{ cfg.qimen_warehouse_code }} - - - - - {{ row.qimen_config.app_name }}({{ row.qimen_config.interface_name }}) - ERP: {{ getQimenErpDisplay(row.qimen_config) }},仓库编码: {{ row.qimen_config.qimen_warehouse_code }} - - - 未配置 - - 未配置 - - - {{ (row[item.prop] !== undefined && row[item.prop] !== null && row[item.prop] !== '') ? row[item.prop] : '—' }} - - + + + {{ row.auth_status_label || getAuthStatusLabel(row.auth_status) }} + - - - - - - - - - 更多详情 - - - + + + {{ row.warehouse_use_status === 1 ? '启用' : '禁用' }} + + + + + {{ row.is_auth_valid ? '有效' : '无效' }} + + + + {{ row.remaining_days > 0 ? row.remaining_days + '天' : '—' }} + + + {{ formatDate(row[field.prop]) || '—' }} + + + {{ formatDate(row.auth_start) || '—' }} ~ {{ formatDate(row.auth_end) || '—' }} + + + {{ row[field.prop] || '—' }} + + + + {{ row.has_qimen_config ? '已配置' : '未配置' }} + + + + + + + {{ cfg.app_name }} + + {{ cfg.is_enabled ? '启用' : '停用' }} + + {{ cfg.interface_name || cfg.interface_category || cfg.interface_code }} + + + ERP:{{ getQimenErpDisplay(cfg) }} + 仓库编码:{{ cfg.qimen_warehouse_code }} + + + + + + {{ row.qimen_config.app_name }} + + {{ row.qimen_config.is_enabled ? '启用' : '停用' }} + + + + ERP:{{ getQimenErpDisplay(row.qimen_config) }} + 仓库编码:{{ row.qimen_config.qimen_warehouse_code }} + + + 未配置 + + + {{ row[field.prop] || '—' }} + + + + + 暂无详情数据 \ No newline at end of file + +.qimen-info { + margin-top: 4px; + font-size: 12px; + color: #888; + display: flex; + flex-wrap: wrap; + gap: 12px; +} + +.text-muted { + color: #aaa; +} + +.empty-tip { + text-align: center; + color: #909399; + font-size: 13px; + padding: 24px 0; +} + diff --git a/src/views/store/stores/component/log.vue b/src/views/store/stores/component/log.vue index 72366c0e..127b83c9 100644 --- a/src/views/store/stores/component/log.vue +++ b/src/views/store/stores/component/log.vue @@ -1,180 +1,27 @@ - - - 刷新 - - - - - - - - - - - - - 查看报文 - - - 修改前快照 - - - - - - - - - - - - + diff --git a/src/views/store/stores/index.vue b/src/views/store/stores/index.vue index 7ba3568f..e395a50c 100644 --- a/src/views/store/stores/index.vue +++ b/src/views/store/stores/index.vue @@ -1,7 +1,8 @@ - + - - 代开户 - - - 刷新 - - - {{ balanceVisible ? '隐藏余额' : '显示余额' }} - + - + + 接口配置 + + 暂无货主数据 + - + - + + + @@ -157,7 +170,7 @@ - + 刷新 @@ -236,112 +249,26 @@ - - - + + + + + 请从上方列表中选择一项查看详情 + + + - - - - - - - - {{ detailDialog.row.current_subject_role === 'warehouse' ? '仓库方' : '货主方' }} - - - - - {{ detailDialog.row.auth_status_label || getAuthStatusLabel(detailDialog.row.auth_status) }} - - - - - {{ detailDialog.row.warehouse_use_status === 1 ? '启用' : '禁用' }} - - - - - {{ detailDialog.row.is_auth_valid ? '有效' : '无效' }} - - - - {{ detailDialog.row.remaining_days > 0 ? detailDialog.row.remaining_days + '天' : '—' }} - - - {{ formatDate(detailDialog.row[field.prop]) || '—' }} - - - {{ detailDialog.row[field.prop] || '—' }} - - - - - - {{ cfg.app_name }} - - {{ cfg.is_enabled ? '启用' : '停用' }} - - {{ cfg.interface_name || cfg.interface_category || cfg.interface_code }} - - - ERP:{{ getQimenErpDisplay(cfg) }} - 仓库编码:{{ cfg.qimen_warehouse_code }} - - - - - - {{ detailDialog.row.qimen_config.app_name }} - - {{ detailDialog.row.qimen_config.is_enabled ? '启用' : '停用' }} - - - - ERP:{{ getQimenErpDisplay(detailDialog.row.qimen_config) }} - 仓库编码:{{ detailDialog.row.qimen_config.qimen_warehouse_code }} - - - 未配置 - - - {{ detailDialog.row[field.prop] || '—' }} - - - - - - 关闭 - { detailDialog.visible = false; openPolicyDialog(detailDialog.row) }" - >策略配置 - { detailDialog.visible = false; openQimenDialog(detailDialog.row) }" - >管理奇门配置 - - - settingsStore.shortcutExpanded) +const containerHeight = computed(() => shortcutExpanded.value ? 'calc(100vh - 150px)' : 'calc(100vh - 100px)') + +const { + splitStackRef, + beginSplitDrag, + lowerPaneStyle, + upperPaneStyle, +} = useVerticalSplitPane({ defaultLowerPercent: 40 }) + +const upperPaneFullStyle = computed(() => ({ + flex: '1 1 auto', + minHeight: '0', + overflow: 'hidden', +})) + +const detailVisible = ref(true) + const loading = ref(false) const list = ref([]) const selectedRow = ref(null) @@ -990,6 +941,61 @@ const toggleBalance = () => { balanceVisible.value = !balanceVisible.value } +function toggleDetailVisible() { + detailVisible.value = !detailVisible.value +} + +const toolbarButtons = storeToolbarButtons + +const buttonLoadingMap = computed(() => ({ + loading: loading.value +})) + +const buttonDisabledMap = computed(() => ({})) + +const buttonLabelMap = computed(() => ({ + detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情', + balanceToggleLabel: balanceVisible.value ? '隐藏余额' : '显示余额' +})) + +const toolbarLayoutKey = computed(() => + JSON.stringify({ + loading: buttonLoadingMap.value, + disabled: buttonDisabledMap.value, + labels: buttonLabelMap.value + }) +) + +function resolveButtonLoading(loadingKey?: string) { + if (!loadingKey) return false + return Boolean((buttonLoadingMap.value as Record)[loadingKey]) +} + +function resolveButtonDisabled(disabledKey?: string) { + if (!disabledKey) return false + return Boolean((buttonDisabledMap.value as Record)[disabledKey]) +} + +function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) { + if (!dynamicLabelKey) return defaultLabel + return (buttonLabelMap.value as Record)[dynamicLabelKey] || defaultLabel +} + +const toolbarActionMap: Record void> = { + loadList: () => { + void loadList() + }, + openOpenAccountDialog: () => openOpenAccountDialog(), + toggleBalance: () => toggleBalance(), + toggleDetailVisible: () => toggleDetailVisible() +} + +function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) { + const handler = toolbarActionMap[action] + if (!handler) return + safeInvoke(() => handler()) +} + const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 }) const queryForm = reactive({ keyword: '' }) @@ -1321,14 +1327,6 @@ async function handleRename(row: any) { } } -// ─── 详情 ──────────────────────────────────────────────────────────────────── -const detailDialog = reactive({ visible: false, row: null as any }) - -function handleViewDetail(row: any) { - detailDialog.row = row - detailDialog.visible = true -} - // ─── 签约策略配置 ──────────────────────────────────────────────────────────── const policyDialog = reactive({ visible: false, @@ -2135,116 +2133,55 @@ onMounted(loadList)
请从上方列表中选择一项查看详情