门诊收费站自动填充修复 科室切换功能修复
This commit is contained in:
@@ -8,8 +8,12 @@ import com.core.common.core.domain.R;
|
||||
import com.core.common.utils.AssignSeqUtil;
|
||||
import com.core.common.utils.ChineseConvertUtils;
|
||||
import com.core.common.utils.MessageUtils;
|
||||
import com.core.common.core.domain.model.LoginUser;
|
||||
import com.core.common.utils.SecurityUtils;
|
||||
import com.core.framework.web.service.TokenService;
|
||||
import com.core.common.core.domain.model.LoginUserExtend;
|
||||
import com.core.system.service.ISysTenantService;
|
||||
import com.core.system.service.ISysUserService;
|
||||
import com.openhis.administration.domain.BizUser;
|
||||
import com.openhis.administration.domain.BizUserRole;
|
||||
import com.openhis.administration.domain.Practitioner;
|
||||
@@ -62,6 +66,12 @@ public class PractitionerAppServiceImpl implements IPractitionerAppService {
|
||||
@Resource
|
||||
private AssignSeqUtil assignSeqUtil;
|
||||
|
||||
@Resource
|
||||
private TokenService tokenService;
|
||||
|
||||
@Resource
|
||||
private ISysUserService userService;
|
||||
|
||||
/**
|
||||
* 新增用户及参与者
|
||||
*
|
||||
@@ -508,6 +518,17 @@ public class PractitionerAppServiceImpl implements IPractitionerAppService {
|
||||
}
|
||||
|
||||
iPractitionerService.updateById(practitioner);
|
||||
|
||||
// 刷新 Redis 缓存中的 LoginUser,确保后续 getInfo 接口返回新科室信息
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
LoginUserExtend loginUserExtend = userService.getLoginUserExtend(loginUser.getUserId());
|
||||
if (loginUserExtend != null) {
|
||||
loginUser.setOrgId(loginUserExtend.getOrgId());
|
||||
loginUser.getUser().setOrgId(loginUserExtend.getOrgId());
|
||||
loginUser.getUser().setOrgName(loginUserExtend.getOrgName());
|
||||
tokenService.refreshToken(loginUser);
|
||||
}
|
||||
|
||||
return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00004, new Object[] {"切换科室"}));
|
||||
}
|
||||
|
||||
|
||||
@@ -283,8 +283,7 @@ async function handleOrgSwitch(val) {
|
||||
}).then(async () => {
|
||||
try {
|
||||
await switchOrg(val);
|
||||
permissionStore.setRoutes([]);
|
||||
router.replace({path: '/redirect' + route.path});
|
||||
location.reload();
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ watch(
|
||||
queryParams.value.searchKey = newValue;
|
||||
getList();
|
||||
},
|
||||
{ immdiate: true }
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
getList();
|
||||
@@ -77,8 +77,8 @@ function getList() {
|
||||
});
|
||||
}
|
||||
|
||||
function clickRow(row) {
|
||||
emit("selsectPatient", row);
|
||||
function clickRow(params) {
|
||||
emit("selsectPatient", params.row);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -2065,8 +2065,8 @@ function loadCheckInPatientList() {
|
||||
}
|
||||
|
||||
/** 弹窗行点击处理 */
|
||||
function selectRow(row) {
|
||||
selectedCheckInPatient.value = row;
|
||||
function selectRow(params) {
|
||||
selectedCheckInPatient.value = params.row;
|
||||
}
|
||||
|
||||
/** 确认签到(一键签到:直接构建挂号参数 → 预结算 → 弹收费窗口) */
|
||||
|
||||
Reference in New Issue
Block a user