1. 配送仓库

This commit is contained in:
李琦
2026-07-18 10:22:36 +08:00
parent 5ff6f0d837
commit 47a829c1b1
17 changed files with 1208 additions and 200 deletions

View File

@@ -0,0 +1,15 @@
/**
* 在线处方诊所名追加「is_online 为 1/2/3问诊/复诊等),线下 0 不加
*/
export function formatStoreNameWithHu(
storeName: string | null | undefined,
isOnline: number | string | null | undefined,
): string {
const name = String(storeName ?? '').trim();
if (!name) return '';
const online = Number(isOnline);
if (online === 1 || online === 2 || online === 3) {
return name.endsWith('(互)') ? name : `${name}(互)`;
}
return name;
}