feat(shipping-notice): 新增货代发货通知全流程业务功能
- 新增后端完整业务支持:数据库模型、API接口、核心服务与RPA对接逻辑 - 新增前端工作台页面、路由适配与多语言国际化 - 新增Dify自定义工具OpenAPI规范、Agent配置脚本与部署文档 - 新增发货Excel模板生成脚本与默认模板 - 修复测试配置文件中的环境变量命名错误 - 更新本地开发环境变量配置
This commit is contained in:
1 parent
93e99793d8
commit
2d7bdecc43
46 files changed
+3462
-7
No files matched your search
@@ -56,8 +56,9 @@ import {
|
||||
} from 'lucide-vue-next';
|
||||
|
||||
import KbWorkspaceView from './KbWorkspaceView.vue';
|
||||
import ShippingNoticeView from './ShippingNoticeView.vue';
|
||||
import { listWorkspaceScheduleRuns, workspaceRunExcelUrl, type ScheduleRun } from '../api/schedule';
|
||||
import { Clock, Download, Search, RefreshCw } from 'lucide-vue-next';
|
||||
import { Clock, Download, Search, RefreshCw, Package } from 'lucide-vue-next';
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const msg = useMessage();
|
||||
@@ -779,7 +780,7 @@ const handleRegister = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
const activeSidebarItem = ref<'profile' | 'applications' | 'feedback' | 'updates' | 'knowledge_base' | 'schedule_runs' | 'history'>('applications');
|
||||
const activeSidebarItem = ref<'profile' | 'applications' | 'feedback' | 'updates' | 'knowledge_base' | 'schedule_runs' | 'shipping_notice' | 'history'>('applications');
|
||||
const wsScheduleFilterInputClass = 'admin-table-filter-input text-xs py-1.5 px-2';
|
||||
const isProfileLoading = ref(false);
|
||||
const isProfileSaving = ref(false);
|
||||
@@ -1040,6 +1041,10 @@ const navigateToScheduleRuns = () => {
|
||||
loadWorkspaceScheduleRuns();
|
||||
};
|
||||
|
||||
const navigateToShippingNotice = () => {
|
||||
activeSidebarItem.value = 'shipping_notice';
|
||||
};
|
||||
|
||||
const workspaceScheduleRuns = ref<ScheduleRun[]>([]);
|
||||
const workspaceScheduleLoading = ref(false);
|
||||
const wsScheduleStatusFilter = ref('all');
|
||||
@@ -1385,7 +1390,7 @@ onMounted(async () => {
|
||||
await fetchHome();
|
||||
await handleWecomDeeplinkContext();
|
||||
const viewParam = route.query.view as string;
|
||||
const validViews: string[] = ['profile', 'applications', 'feedback', 'updates', 'knowledge_base', 'schedule_runs', 'history'];
|
||||
const validViews: string[] = ['profile', 'applications', 'feedback', 'updates', 'knowledge_base', 'schedule_runs', 'shipping_notice', 'history'];
|
||||
if (viewParam && validViews.includes(viewParam)) {
|
||||
activeSidebarItem.value = viewParam as typeof activeSidebarItem.value;
|
||||
if (viewParam === 'profile' && !profileUser.value.id) {
|
||||
@@ -1626,6 +1631,14 @@ onBeforeUnmount(() => {
|
||||
<Clock class="h-4 w-4" />
|
||||
<span>{{ $t('workspace.nav.scheduleRuns') }}</span>
|
||||
</button>
|
||||
<button
|
||||
@click="navigateToShippingNotice"
|
||||
class="ws-nav-btn"
|
||||
:class="{ 'ws-nav-btn--active': activeSidebarItem === 'shipping_notice' }"
|
||||
>
|
||||
<Package class="h-4 w-4" />
|
||||
<span>{{ $t('workspace.nav.shippingNotice') }}</span>
|
||||
</button>
|
||||
<button
|
||||
@click="openGeneralFeedback"
|
||||
class="ws-nav-btn"
|
||||
@@ -1998,6 +2011,10 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-else-if="activeSidebarItem === 'shipping_notice'">
|
||||
<ShippingNoticeView :embedded="true" />
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<div v-if="wecomEntryHint" class="rounded-2xl border border-blue-200 bg-blue-50 px-4 py-3 text-sm text-blue-700">
|
||||
{{ wecomEntryHint }}
|
||||
|
||||
Reference in new issue
Block a user