Kaynağa Gözat

fix: 在添加本人为就诊人时,需要提前拉取授权

carver 2 yıl önce
ebeveyn
işleme
d4c6847a91

+ 5 - 0
antbuilder/industry/hospitalV2/components/edit-patient/index.js

@@ -13,6 +13,7 @@ import history from "../../utils/history";
 import loadOcr from "../../utils/loadOcr";
 import getEncryptStr from "../../utils/getEncryptStr";
 import { reportCmPV_YL } from "../../utils/cloudMonitorHelper";
+import { getSubscribeAuth } from "../../../../core/utils/ywtService";
 const caIcon =
 	"https://gw.alipayobjects.com/mdn/rms_373ab8/afts/img/A*w6MrS5tmnFAAAAAAAAAAAAAAARQnAQ";
 const bookIcon =
@@ -331,6 +332,10 @@ Component(
 						await createCard(form);
 					} else {
 						msg = "就诊人添加成功";
+						await getSubscribeAuth();
+						if (form.relationShip === "本人") {
+							await getSubscribeAuth();
+						}
 						await createPatient(form);
 					}
 					this.goNav(routeState);