This commit is contained in:
ChenQiuYu 2025-05-26 14:34:07 +08:00
parent e9a3464f62
commit 08738c3559
7 changed files with 43 additions and 44 deletions

View File

@ -1,42 +1,47 @@
export enum apiConfig{ export enum apiConfig {
/** /**
* *
*/ */
"ManagerUserLogin"="manager/user/login",//登录 "ManagerUserLogin" = "manager/user/login",//登录
"signIn"="sign/in",//签到 "signIn" = "sign/in",//签到
"signOut"="sign/out",//签退 "signOut" = "sign/out",//签退
"managerUserVerify"="manager/user/verify",//获取用户信息 "managerUserVerify" = "manager/user/verify",//获取用户信息
/** /**
* *
*/ */
"registrationList"="registration/list",//挂号列表 "RegistrationList" = "registration/list",//挂号列表
"RegistrationAdd" = "registration/add",//添加挂号
"RegistrationEdit" = "registration/edit",//修改挂号
/** /**
* *
*/ */
"RegistrationDetail" ="medical/record/getDetailByRegisId",//详情 "RegistrationChangeStatus" = "registration/changeStatus",//挂号状态
"RegistrationList" ="registration/getListByType",//患者列表 "MedicalDetailByRegisId" = "medical/record/getDetailByRegisId",//患者详情
"RegistrationChangeStatus"="registration/changeStatus", "RegistrationListByType" = "registration/getListByType",//患者列表
"StatisticsGetTipCount" = "statistics/getTipCount",//患者状态数量
"MedicalRecordSave" = "medical/record/save",//保存接诊信息
"SocialDiagnoseSearch" = "social/diagnose/search",//接诊详情
/** /**
* *
*/ */
"OrganizationMemberSave"="organization/member/save",//添加 编辑成员信息 "OrganizationMemberSave" = "organization/member/save",//添加 编辑成员信息
"OrganizationMemberSearch"="organization/member/search",//搜索成员 "OrganizationMemberSearch" = "organization/member/search",//搜索成员
"OrganizationSectionAllList"="organization/section/allList",//获取所有科室列表 "OrganizationSectionAllList" = "organization/section/allList",//获取所有科室列表
"OrganizationSectionListByMemberId"="organization/section/listByMemberId",//获取当前成员所属科室列表 "OrganizationSectionListByMemberId" = "organization/section/listByMemberId",//获取当前成员所属科室列表
"OrganizationMemberListBySectionId"="organization/member/listBySectionId",//获取当前科室的所有医生列表 "OrganizationMemberListBySectionId" = "organization/member/listBySectionId",//获取当前科室的所有医生列表
/** /**
* *
*/ */
"GoodsDisableSale"="goods/goods/disableSale", "GoodsDisableSale" = "goods/goods/disableSale",
"GoodsEnableSale"="goods/goods/enableSale", "GoodsEnableSale" = "goods/goods/enableSale",
/** /**
* *
*/ */
"ChargeListChargeLog"="charge/listChargeLog",//查询收费记录 "ChargeListChargeLog" = "charge/listChargeLog",//查询收费记录
"RecordGetChargeQueue"="medical/record/getChargeQueue"//查询收费记录 "RecordGetChargeQueue" = "medical/record/getChargeQueue"//查询收费记录
} }

View File

@ -40,7 +40,7 @@
<PopoverInput :disabled="props.disabled" v-model="formDate.allergyHistory" :list="allergyHistoryList"/> <PopoverInput :disabled="props.disabled" v-model="formDate.allergyHistory" :list="allergyHistoryList"/>
</el-form-item> </el-form-item>
<el-form-item label="体格检查:" v-if="!props.isShowFrom"> <el-form-item label="体格检查:" v-if="!props.isShowFrom">
<PhysiqueExamInuput :disabled="props.disabled" v-model="formDate.exam" :list="physiqueExamList"/> <PhysiqueExamInput :disabled="props.disabled" v-model="formDate.exam" :list="physiqueExamList"/>
</el-form-item> </el-form-item>
<el-form-item label="望闻问切:" v-if="formDate.diagType==1&&!props.isShowFrom"> <el-form-item label="望闻问切:" v-if="formDate.diagType==1&&!props.isShowFrom">
<PopoverInput :disabled="props.disabled" v-model="formDate.chinaAdjunctCheck" :list="chinaAdjunctCheckList"/> <PopoverInput :disabled="props.disabled" v-model="formDate.chinaAdjunctCheck" :list="chinaAdjunctCheckList"/>
@ -75,7 +75,8 @@ import {
import Panel from "@/components/common/Panel.vue"; import Panel from "@/components/common/Panel.vue";
import PopoverInput from "@/components/PopoverInput.vue"; import PopoverInput from "@/components/PopoverInput.vue";
import DiagnosisSearchInput from "@/components/outpatient/DiagnosisSearchInput.vue"; import DiagnosisSearchInput from "@/components/outpatient/DiagnosisSearchInput.vue";
import PhysiqueExamInuput from "@/components/outpatient/PhysiqueExamInuput.vue"; import PhysiqueExamInput from "@/components/outpatient/PhysiqueExamInput.vue";
import {apiConfig} from "@/assets/config/apiConfig.ts";
const props = defineProps({ const props = defineProps({
disabled: { disabled: {
@ -94,7 +95,7 @@ interface ShowConfig {
prop: string; prop: string;
} }
const diagnosisSearchApi = "social/diagnose/search" const diagnosisSearchApi = apiConfig.SocialDiagnoseSearch
const diagnosisShowConfig: ShowConfig[] = [ const diagnosisShowConfig: ShowConfig[] = [
{ {
label: "诊断名称", label: "诊断名称",

View File

@ -35,7 +35,7 @@
alt="头像"/> alt="头像"/>
<img v-if="item.gender==2" class="avatar" src="/static/images/outpatient/women.png" <img v-if="item.gender==2" class="avatar" src="/static/images/outpatient/women.png"
alt="头像"/> alt="头像"/>
<span v-if="item.isAppointment" class="iconfont icon-yuyue yuYueIcon" ></span> <span v-if="item.isAppointment" class="iconfont icon-yuyue yuYueIcon"></span>
</span> </span>
<span class="item-name">{{ item.name }}</span> <span class="item-name">{{ item.name }}</span>
<span class="item-time"> <span class="item-time">
@ -144,7 +144,7 @@ const init = async () => {
clickLi(null) clickLi(null)
loading.value = true loading.value = true
try { try {
let data: any = await post(apiConfig.RegistrationList, { let data: any = await post(apiConfig.RegistrationListByType, {
query: { query: {
status: curStatus.value, status: curStatus.value,
beginTime: selectedDate.value, beginTime: selectedDate.value,
@ -168,7 +168,7 @@ const init = async () => {
initStatusList() initStatusList()
} }
const initStatusList = () => { const initStatusList = () => {
post('statistics/getTipCount', { post(apiConfig.StatisticsGetTipCount, {
beginTime: selectedDate.value, beginTime: selectedDate.value,
endTime: getEndOfDay(new Date(selectedDate.value)) endTime: getEndOfDay(new Date(selectedDate.value))
}).then((res: any) => { }).then((res: any) => {
@ -192,12 +192,12 @@ const clickLi = (item: any, showBox: any = true) => {
return return
} }
if (action == "confirm") { if (action == "confirm") {
post('registration/changeStatus', {id: item.id, status: 2}).then((res: any) => { post(apiConfig.RegistrationChangeStatus, {id: item.id, status: 2}).then((res: any) => {
curStatus.value = 2 curStatus.value = 2
curItem.value = res curItem.value = res
initStatusList() initStatusList()
emit('clickItem', curItem.value) emit('clickItem', curItem.value)
selectedDate.value=getCurrentDate() selectedDate.value = getCurrentDate()
}) })
} }
}, },
@ -405,7 +405,8 @@ watch(() => selectedDate.value, (newValue, oldValue) => {
right: 0; right: 0;
top: 50px; top: 50px;
} }
.yuYueIcon{
.yuYueIcon {
width: 13px; width: 13px;
height: 13px; height: 13px;
position: absolute; position: absolute;

View File

@ -309,7 +309,7 @@ const save = () => {
} }
if (edit_data.value.id) { if (edit_data.value.id) {
post('registration/edit', { post(apiConfig.RegistrationEdit, {
data: data, mdtrtCertNo: socialCard.value?.mdtrtCertNo, data: data, mdtrtCertNo: socialCard.value?.mdtrtCertNo,
mdtrtCertType: socialCard.value?.mdtrtCertType mdtrtCertType: socialCard.value?.mdtrtCertType
}).then(() => { }).then(() => {
@ -317,7 +317,7 @@ const save = () => {
close() close()
}) })
} else { } else {
post('registration/add', { post(apiConfig.RegistrationAdd, {
data: data, data: data,
mdtrtCertNo: socialCard.value?.mdtrtCertNo, mdtrtCertNo: socialCard.value?.mdtrtCertNo,
mdtrtCertType: socialCard.value?.mdtrtCertType mdtrtCertType: socialCard.value?.mdtrtCertType

View File

@ -40,10 +40,10 @@
import MedicalQueue from "@/components/outpatient/MedicalQueue.vue"; import MedicalQueue from "@/components/outpatient/MedicalQueue.vue";
import MedicalHistory from "@/components/outpatient/MedicalHistory.vue"; import MedicalHistory from "@/components/outpatient/MedicalHistory.vue";
import Case from "@/components/outpatient/Case.vue"; import Case from "@/components/outpatient/Case.vue";
import {ref, watch, nextTick, onMounted} from "vue"; import {ref, watch, nextTick} from "vue";
import Settlement from "@/components/outpatient/Settlement.vue"; import Settlement from "@/components/outpatient/Settlement.vue";
import {post} from "@/utils/request.ts"; import {post} from "@/utils/request.ts";
import {type Action, ElMessage, ElMessageBox} from "element-plus"; import {ElMessage} from "element-plus";
import {apiConfig} from "@/assets/config/apiConfig.ts"; import {apiConfig} from "@/assets/config/apiConfig.ts";
import PatientCard from "@/components/charge/PatientCard.vue"; import PatientCard from "@/components/charge/PatientCard.vue";
import ServiceDetail from "@/components/common/service/ServiceDetail.vue"; import ServiceDetail from "@/components/common/service/ServiceDetail.vue";
@ -52,8 +52,6 @@ import GoodsDetail from "@/components/common/goods/GoodsDetail.vue";
const curRegister = ref<any>() const curRegister = ref<any>()
const registerId = ref() const registerId = ref()
const patientId = ref() const patientId = ref()
const itemDetail = ref([])
const goodsList = ref([])
const formData = ref<any>({ const formData = ref<any>({
diagType: 0, diagType: 0,
itemDetail: [], itemDetail: [],
@ -102,7 +100,7 @@ const save = () => {
if (!formData.value.diagnosisDetail || JSON.parse(formData.value.diagnosisDetail).length == 0) { if (!formData.value.diagnosisDetail || JSON.parse(formData.value.diagnosisDetail).length == 0) {
ElMessage.error("请填写诊断信息") ElMessage.error("请填写诊断信息")
} else { } else {
post('medical/record/save', {data: data}).then((res: any) => { post(apiConfig.MedicalRecordSave, {data: data}).then((res: any) => {
ElMessage.success("接诊完毕,请到收费页面收费") ElMessage.success("接诊完毕,请到收费页面收费")
debugger debugger
medicalQueueRef.value?.changeCurItemOrStatus(res, 3); medicalQueueRef.value?.changeCurItemOrStatus(res, 3);
@ -110,7 +108,6 @@ const save = () => {
}) })
} }
} }
const totalAmount = ref(0)
const medicalHistoryRef = ref() const medicalHistoryRef = ref()
const patientCardRef = ref() const patientCardRef = ref()
const patientRegistration = ref<any>({})// const patientRegistration = ref<any>({})//
@ -127,7 +124,7 @@ const clickItem = (item: any) => {
initFormData() initFormData()
} }
if (item.status == 3) { if (item.status == 3) {
post(apiConfig.RegistrationDetail, { post(apiConfig.MedicalDetailByRegisId, {
regisId: item.id regisId: item.id
}).then((res: any) => { }).then((res: any) => {
formData.value = res.diagnosisMedicalRecord formData.value = res.diagnosisMedicalRecord
@ -142,9 +139,7 @@ const clickItem = (item: any) => {
}) })
} }
nextTick(() => { nextTick(() => {
medicalHistoryRef.value?.init(patientId.value); medicalHistoryRef.value?.init(patientId.value);
patientCardRef.value?.init(curRegister.value?.id) patientCardRef.value?.init(curRegister.value?.id)
}) })

View File

@ -91,8 +91,6 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import {nextTick, onMounted, ref} from 'vue' import {nextTick, onMounted, ref} from 'vue'
import Picker from "@/components/Picker.vue";
import Mask from "@/components/common/Mask.vue";
import Edit from "@/components/registration/Edit.vue"; import Edit from "@/components/registration/Edit.vue";
import List from "@/components/registration/List.vue"; import List from "@/components/registration/List.vue";
import {post} from "@/utils/request"; import {post} from "@/utils/request";
@ -101,7 +99,6 @@ import Calendar from "@/components/common/Calendar.vue";
import Panel from "@/components/common/Panel.vue"; import Panel from "@/components/common/Panel.vue";
import {apiConfig} from "@/assets/config/apiConfig.ts"; import {apiConfig} from "@/assets/config/apiConfig.ts";
import {Search} from "@element-plus/icons-vue"; import {Search} from "@element-plus/icons-vue";
import {ElMessage} from "element-plus";
const dateName = ref<any>('挂号') const dateName = ref<any>('挂号')
const selectDate = (date: any) => { const selectDate = (date: any) => {
@ -161,7 +158,7 @@ const getPatientList = async () => {
listLoading.value = true listLoading.value = true
id.value = null id.value = null
try { try {
const data: any = await post(apiConfig.registrationList, { const data: any = await post(apiConfig.RegistrationList, {
page: page.value, page: page.value,
size: size.value, size: size.value,
startDate: selectedDate.value[0], startDate: selectedDate.value[0],