转诊方优化
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled

This commit is contained in:
李琦
2026-02-07 23:22:34 +08:00
parent 2bbd943b39
commit 8e81929bf1
2 changed files with 32 additions and 8 deletions

View File

@@ -213,10 +213,14 @@ const handleSendPrescription = async (doctorSecondSignValue = 0) => {
await prescriptionStore.fetchRegisterStoreInfo();
const canChange = prescriptionStore.canChangeStore;
const storeInfo = prescriptionStore.registerStoreInfo;
if (canChange) {
// 如果是转诊挂号自动使用承接方诊所ID不需要弹出诊所选择弹窗
if (storeInfo?.is_from_transfer === 1 && storeInfo?.delegate_store_id) {
// 转接方开处方时自动使用承接方诊所ID
await executeSendPrescription(doctorSecondSignValue, 1, storeInfo.delegate_store_id);
} else if (canChange) {
// 弹出诊所确认弹窗 - 直接从 registerStoreInfo 获取诊所信息
const storeInfo = prescriptionStore.registerStoreInfo;
storeConfirmModalApi.setData({
registerStoreName: storeInfo?.store_name || '挂号诊所',
registerStoreId: storeInfo?.store_id,