This commit is contained in:
ChenQiuYu 2025-05-23 15:55:55 +08:00
parent 0920d75472
commit cbff38576c
7 changed files with 38 additions and 39 deletions

View File

@ -146,19 +146,16 @@ $lighter-color: rgba(#4D6DE4, 0.5);
&:hover{ &:hover{
background: $lighter-color; background: $lighter-color;
} }
} }
.small-btn{ .small-btn{
display: inline-block; display: inline-block;
width: 72px;
height: 24px;
line-height: 24px;
background: $btn-color; background: $btn-color;
border-radius: 3px; border-radius: 3px;
color: #FFF; color: #FFF;
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
padding: 8px 15px;
&:hover{ &:hover{
background: $lighter-color; background: $lighter-color;
} }

View File

@ -89,6 +89,7 @@ const props = defineProps({
const init = async (code: any, psnNo: any) => { const init = async (code: any, psnNo: any) => {
if (props.disabled) { if (props.disabled) {
selectedIndex.value = 0 selectedIndex.value = 0
payType.value = 1
} }
retailOrder.value = await post("charge/getByCode", {code: code}); retailOrder.value = await post("charge/getByCode", {code: code});
if (psnNo != null) { if (psnNo != null) {

View File

@ -207,6 +207,9 @@ const clickLi = (item: any, showBox: any = true) => {
} }
const changeCurItemOrStatus = (item: any, status: any) => { const changeCurItemOrStatus = (item: any, status: any) => {
curStatus.value = status curStatus.value = status
if (item != null) {
clickLi(item);
}
init() init()
} }
defineExpose({changeCurItemOrStatus}) defineExpose({changeCurItemOrStatus})

View File

@ -134,7 +134,7 @@
:disabledDate="disabledDate" :disabledDate="disabledDate"
/> />
<el-time-select <el-time-select
v-model="time" v-model="edit_data.time"
start="08:00" start="08:00"
step="00:15" step="00:15"
end="22:00" end="22:00"
@ -227,12 +227,7 @@ import Quick from "@/components/charge/RecordsLog/Quick.vue";
import {getCurrentTime, getToday} from "@/utils/dateUtils.ts"; import {getCurrentTime, getToday} from "@/utils/dateUtils.ts";
const height = ref(570) const height = ref(570)
const certTypeList = ref<any>( const certTypeList = ref<any>([])
Object.entries(psnCertTypes)
.map(([id, name]) => ({id, name}))
.sort((a, b) => Number(a.id) - Number(b.id))
)
console.log(certTypeList.value)
const edit_data = ref<any>({ const edit_data = ref<any>({
timeList: [] timeList: []
}) })
@ -257,7 +252,7 @@ const rules = ref<any>({
{required: true, message: '请选择医生', trigger: 'blur'}, {required: true, message: '请选择医生', trigger: 'blur'},
], ],
certType: [ certType: [
{required: true, message: '请选择证件类型', trigger: 'blur'}, {required: true, message: '请选择证件类型', trigger: 'change'},
], ],
certNo: [ certNo: [
{required: true, message: '请输入证件码', trigger: 'blur'}, {required: true, message: '请输入证件码', trigger: 'blur'},
@ -279,9 +274,7 @@ const close = () => {
isBtnShow.value = true isBtnShow.value = true
time.value = '' time.value = ''
edit_data.value = { edit_data.value = {
timeList: [],
insutype: '', insutype: '',
appointmentTime: ''
} }
isShowCard.value = true isShowCard.value = true
nextTick(() => { nextTick(() => {
@ -298,24 +291,25 @@ const disabledDate = (date: Date) => {
today.setHours(0, 0, 0, 0); // 00:00:00 today.setHours(0, 0, 0, 0); // 00:00:00
return date < today; // return date < today; //
}; };
const timeList = ref<any>([])
const dateName = defineModel() const dateName = defineModel()
const save = () => { const save = () => {
if (dateName.value == '现在') { form.value.validate((v: any) => {
edit_data.value.timeList = '' if (v) {
edit_data.value.appointmentTime = '' let combinedDateTime = ''
if (edit_data.value.date == undefined || edit_data.value.time == undefined) {
combinedDateTime = ''
} else { } else {
edit_data.value.timeList.push(edit_data.value.date, time.value) combinedDateTime = `${edit_data.value.date} ${edit_data.value.time}`
edit_data.value.appointmentTime = edit_data.value.timeList.join(' ')
} }
let data = { let data = {
...edit_data.value, ...edit_data.value,
appointmentTime: combinedDateTime || '',
psnNo: socialCard.value?.data?.baseinfo.psn_no, psnNo: socialCard.value?.data?.baseinfo.psn_no,
insutype: edit_data.value.insutype || socialCard.value?.data?.insuinfo[0].insutype, insutype: edit_data.value.insutype || socialCard.value?.data?.insuinfo[0].insutype,
insuBalance: socialCard.value?.data?.insuinfo[0].balc, insuBalance: socialCard.value?.data?.insuinfo[0].balc,
} }
form.value.validate((v: any) => {
if (v) {
if (edit_data.value.id) { if (edit_data.value.id) {
post('registration/edit', { post('registration/edit', {
data: data, mdtrtCertNo: socialCard.value?.mdtrtCertNo, data: data, mdtrtCertNo: socialCard.value?.mdtrtCertNo,
@ -369,6 +363,9 @@ const socialCard: any = ref({
}) })
const quickShow = ref<any>(false) const quickShow = ref<any>(false)
const init = (doctorId: any = "", id: any = null, show: any = false) => { const init = (doctorId: any = "", id: any = null, show: any = false) => {
certTypeList.value = Object.entries(psnCertTypes)
.map(([id, name]) => ({id, name}))
.sort((a, b) => Number(a.id) - Number(b.id))
isShow.value = true isShow.value = true
quickShow.value = show quickShow.value = show
edit_data.value.organizationDoctorId = doctorId || "" edit_data.value.organizationDoctorId = doctorId || ""
@ -389,6 +386,7 @@ const multipleTable = ref<any>()
const socialCardUpdate = (e: any) => { const socialCardUpdate = (e: any) => {
isShowCard.value = false isShowCard.value = false
if (e) { if (e) {
console.log(e.data.baseinfo.psn_cert_type)
isShowCard.value = false isShowCard.value = false
edit_data.value.gender = Number(e.data.baseinfo.gend) edit_data.value.gender = Number(e.data.baseinfo.gend)
edit_data.value.name = e.data.baseinfo.psn_name edit_data.value.name = e.data.baseinfo.psn_name
@ -406,7 +404,7 @@ const socialCardUpdate = (e: any) => {
edit_data.value.name = res.list[0].name edit_data.value.name = res.list[0].name
edit_data.value.gender = res.list[0].sex edit_data.value.gender = res.list[0].sex
edit_data.value.phone = res.list[0].phone edit_data.value.phone = res.list[0].phone
edit_data.value.certType =res.list[0].certType edit_data.value.certType = res.list[0].certType
edit_data.value.certNo = res.list[0].certNo edit_data.value.certNo = res.list[0].certNo
edit_data.value.memo = res.list[0].remark edit_data.value.memo = res.list[0].remark
edit_data.value.visitType = 1 edit_data.value.visitType = 1
@ -465,6 +463,10 @@ const changeLoading = (e: any) => {
const isBtnShow = ref(true) const isBtnShow = ref(true)
const changeBtn = () => { const changeBtn = () => {
isBtnShow.value = !isBtnShow.value isBtnShow.value = !isBtnShow.value
if (isBtnShow.value) {
time.value = ''
timeList.value = []
}
} }
const handleCurrentChange = (val: any) => { const handleCurrentChange = (val: any) => {
edit_data.value.insutype = val.insutype edit_data.value.insutype = val.insutype
@ -557,9 +559,8 @@ defineExpose({init})
} }
.small-btn { .small-btn {
width: 51px;
height: 32px;
line-height: 32px;
margin-left: 5px; margin-left: 5px;
height: 32px;
line-height: 1;
} }
</style> </style>

View File

@ -225,7 +225,4 @@ defineExpose({init})
padding: 0 24px; padding: 0 24px;
} }
.small-btn {
width: 50px;
}
</style> </style>

View File

@ -104,7 +104,9 @@ const save = () => {
} else { } else {
post('medical/record/save', {data: data}).then((res: any) => { post('medical/record/save', {data: data}).then((res: any) => {
ElMessage.success("接诊完毕,请到收费页面收费") ElMessage.success("接诊完毕,请到收费页面收费")
medicalQueueRef.value?.changeCurItemOrStatus(registerId.value, 3); debugger
medicalQueueRef.value?.changeCurItemOrStatus(res, 3);
}) })
} }
} }
@ -113,7 +115,6 @@ const medicalHistoryRef = ref()
const patientCardRef = ref() const patientCardRef = ref()
const patientRegistration = ref<any>({})// const patientRegistration = ref<any>({})//
const clickItem = (item: any) => { const clickItem = (item: any) => {
initFormData()
if (!item) { if (!item) {
medicalHistoryRef.value?.clearList(); medicalHistoryRef.value?.clearList();
return return

View File

@ -104,7 +104,6 @@ import {Search} from "@element-plus/icons-vue";
const dateName = ref<any>('挂号') const dateName = ref<any>('挂号')
const selectDate = (date: any) => { const selectDate = (date: any) => {
console.log(date, 'date')
dateName.value = getActionText(date) dateName.value = getActionText(date)
} }
const getActionText = (date: string) => { const getActionText = (date: string) => {