dev
This commit is contained in:
parent
fef85d7395
commit
c312fc3fda
|
|
@ -68,7 +68,7 @@ const emit = defineEmits(['clickItem', 'changeTab'])
|
||||||
const datePickerRef = ref()
|
const datePickerRef = ref()
|
||||||
const clickTab = (item: any) => {
|
const clickTab = (item: any) => {
|
||||||
curStatus.value = item.status
|
curStatus.value = item.status
|
||||||
emit('changeTab')
|
emit('changeTab',item.status)
|
||||||
curItem.value = {}
|
curItem.value = {}
|
||||||
}
|
}
|
||||||
const setDate = function () {
|
const setDate = function () {
|
||||||
|
|
@ -142,8 +142,11 @@ const initStatusList = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const clickLi = (item: any, showBox: any = true) => {
|
const clickLi = (item: any, showBox: any = true) => {
|
||||||
|
if (!item){
|
||||||
|
return
|
||||||
|
}
|
||||||
curItem.value = item
|
curItem.value = item
|
||||||
if (item != null && item.status == 1 && showBox) {
|
if ( item.status == 1 && showBox) {
|
||||||
ElMessageBox.confirm(`您将要接诊:${item.name}`, "提示", {
|
ElMessageBox.confirm(`您将要接诊:${item.name}`, "提示", {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,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) return
|
if (!item) return
|
||||||
curRegister.value = item
|
curRegister.value = item
|
||||||
registerId.value = item.id
|
registerId.value = item.id
|
||||||
|
|
@ -126,13 +125,15 @@ const clickItem = (item: any) => {
|
||||||
formData.value.diagType = Number(formData.value.diagType)
|
formData.value.diagType = Number(formData.value.diagType)
|
||||||
patientRegistration.value = res.patientRegistration
|
patientRegistration.value = res.patientRegistration
|
||||||
getOrderTotalPrice()
|
getOrderTotalPrice()
|
||||||
|
const diagnosisList = JSON.parse(formData.value.diagnosisDetail)
|
||||||
|
const nList = formData.value.diagnosisSummary.split(',')
|
||||||
|
caseRef.value?.initDiagnosisSearch(diagnosisList,nList);
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
const diagnosisList = JSON.parse(item.diagnosisMedicalRecord.diagnosisDetail)
|
|
||||||
const nList = item.diagnosisMedicalRecord.diagnosisSummary.split(',')
|
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
caseRef.value?.initDiagnosisSearch(diagnosisList,nList);
|
|
||||||
medicalHistoryRef.value?.init(patientId.value);
|
medicalHistoryRef.value?.init(patientId.value);
|
||||||
patientCardRef.value?.init(curRegister.value?.id)
|
patientCardRef.value?.init(curRegister.value?.id)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue