feat(shipping-order): 增加客户事实、编辑窗口与正式通知创建服务

This commit is contained in:
hugo committed 2026-09-04 22:00:27 +08:00
1 parent 4e8b2f8db2
commit bffcd55b40
17 files changed
+738 -486

No files matched your search

@@ -75,7 +75,8 @@ export function useOrderProfileValueAdapter(options: UseOrderProfileValueAdapter
const profileId = computed(() => Number(toValue(options.profileId) || 0));
const saveState = computed(() => toValue(options.saveState));
const readonly = computed(() => saveState.value === 'readonly');
const loading = ref(true);
// 坐标模板不会启用该 adapter;初始状态必须是非加载,避免共享画布误显示 XFA loading。
const loading = ref(false);
const loadError = ref(false);
const lockVersion = ref(0);
const schemaFields = ref<ShippingOrderFieldConfig[]>([]);
@@ -977,7 +978,10 @@ export function useOrderProfileValueAdapter(options: UseOrderProfileValueAdapter
const enabled = computed(() => toValue(options.enabled) !== false);
watch(enabled, (isEnabled) => {
if (isEnabled && profileId.value > 0) void load();
if (isEnabled && profileId.value > 0) {
loading.value = true;
void load();
}
}, { immediate: true });
watch(diagnosticsOpen, async (open) => {