This commit is contained in:
ChenQiuYu 2025-05-13 09:54:57 +08:00
parent dfa2b25f4f
commit 78e9cef909
3 changed files with 26 additions and 7 deletions

View File

@ -70,7 +70,6 @@ const clickTab = (item: any) => {
curStatus.value = item.status curStatus.value = item.status
emit('changeTab') emit('changeTab')
curItem.value = {} curItem.value = {}
} }
const setDate = function () { const setDate = function () {
if (datePickerRef.value) { if (datePickerRef.value) {
@ -99,7 +98,6 @@ const itemId = defineModel()
onMounted(() => { onMounted(() => {
selectedDate.value = getCurrentDate() selectedDate.value = getCurrentDate()
initStatusList() initStatusList()
curItem.value = itemId
if (curStatus.value == 1) { if (curStatus.value == 1) {
init() init()
} }
@ -117,8 +115,15 @@ const init = async () => {
endTime: getEndOfDay(new Date(selectedDate.value)) endTime: getEndOfDay(new Date(selectedDate.value))
} }
}, {catch_error: true}); }, {catch_error: true});
list.value = data.list list.value = data.list
if (itemId.value != null) {
list.value.forEach((item: any, index: any) => {
if (item.id == itemId.value) {
clickLi(item, false)
}
})
}
} catch (e) { } catch (e) {
} finally { } finally {
@ -138,7 +143,7 @@ const initStatusList = () => {
} }
const clickLi = (item: any, showBox: any = true) => { const clickLi = (item: any, showBox: any = true) => {
curItem.value = item curItem.value = item
if (item!=null&&item.status == 1 && showBox) { if (item != null && item.status == 1 && showBox) {
ElMessageBox.confirm(`您将要接诊${item.name}`, "提示", { ElMessageBox.confirm(`您将要接诊${item.name}`, "提示", {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -225,6 +230,7 @@ watch(() => selectedDate.value, (newValue, oldValue) => {
position: relative; position: relative;
margin: 16px 0; margin: 16px 0;
padding: 0 16px; padding: 0 16px;
.search-icon { .search-icon {
position: absolute; position: absolute;
left: 32px; left: 32px;
@ -234,6 +240,7 @@ watch(() => selectedDate.value, (newValue, oldValue) => {
height: 16px; // height: 16px; //
z-index: 1; z-index: 1;
} }
.search-input { .search-input {
width: 100%; width: 100%;
height: 42px; height: 42px;
@ -255,9 +262,11 @@ watch(() => selectedDate.value, (newValue, oldValue) => {
display: flex; display: flex;
min-height: 0; min-height: 0;
flex-direction: column; flex-direction: column;
ul { ul {
flex: 1; flex: 1;
min-height: 0; min-height: 0;
.list-item { .list-item {
height: 48px; height: 48px;
display: flex; display: flex;
@ -269,9 +278,11 @@ watch(() => selectedDate.value, (newValue, oldValue) => {
color: rgba(34, 42, 57, 0.7); color: rgba(34, 42, 57, 0.7);
font-style: normal; font-style: normal;
cursor: pointer; cursor: pointer;
span { span {
display: flex; display: flex;
align-items: center; align-items: center;
.avatar { .avatar {
width: 26px; width: 26px;
height: 26px; height: 26px;

View File

@ -110,6 +110,14 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="费用类型">
<el-form-item prop="type">
<el-select v-model="edit_data.type">
<el-option label="普通" :value="1"></el-option>
<el-option label="医保" :value="2"></el-option>
</el-select>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="备注"> label="备注">
<el-form-item> <el-form-item>

View File

@ -110,11 +110,10 @@ const patientCardRef = ref()
const patientRegistration = ref<any>({}) const patientRegistration = ref<any>({})
const clickItem = (item: any) => { const clickItem = (item: any) => {
curRegister.value = item curRegister.value = item
if(!item)return if (!item) return
registerId.value = item.id registerId.value = item.id
itemId.value = item.id itemId.value = item.id
patientId.value = item.patientInfoId patientId.value = item.patientInfoId
if (item.status == 2) { if (item.status == 2) {
initFormData() initFormData()
} }
@ -132,7 +131,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)
}) })
} }
@ -145,6 +144,7 @@ const cancelReception = () => {
const changeTab = (e: any) => { const changeTab = (e: any) => {
initFormData() initFormData()
patientRegistration.value = {} patientRegistration.value = {}
itemId.value = null
nextTick(() => { nextTick(() => {
medicalHistoryRef.value?.clearList(); medicalHistoryRef.value?.clearList();
}) })