dev
This commit is contained in:
parent
8d887ff36b
commit
9681209450
|
|
@ -130,6 +130,7 @@ const showTooltip = ref(false);
|
||||||
const goodsDetail = defineModel<any>();
|
const goodsDetail = defineModel<any>();
|
||||||
const delGoods = (item: any) => {
|
const delGoods = (item: any) => {
|
||||||
goodsDetail.value = goodsDetail.value.filter((i: any) => i.id != item.id)
|
goodsDetail.value = goodsDetail.value.filter((i: any) => i.id != item.id)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const goodsSearchApi = "goods/goods/search";
|
const goodsSearchApi = "goods/goods/search";
|
||||||
|
|
@ -237,6 +238,8 @@ const getHilistInfo = (item: any) => {
|
||||||
}
|
}
|
||||||
const colosInfo = () => {
|
const colosInfo = () => {
|
||||||
hilistInfo.value = {}
|
hilistInfo.value = {}
|
||||||
|
getTotalPrice()
|
||||||
|
emit('totalPriceChange')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
<el-descriptions-item label="民族">
|
<el-descriptions-item label="民族">
|
||||||
{{ antysList.find((item: any) => item.id == listItem.nation)?.name}}
|
{{ antysList.find((item: any) => item.id == listItem.nation)?.name}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="就诊时间">{{
|
<el-descriptions-item label="上次就诊时间">{{
|
||||||
formatListTime(listItem.lastVisitTime)
|
formatListTime(listItem.lastVisitTime)
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -97,18 +97,23 @@ const save = () => {
|
||||||
diagnosisMedicalRecord: medicalRecord,
|
diagnosisMedicalRecord: medicalRecord,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!formData.value.diagnosisDetail || JSON.parse(formData.value.diagnosisDetail).length == 0) {
|
||||||
|
ElMessage.error("请填写诊断信息")
|
||||||
|
} 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(null, 2);
|
medicalQueueRef.value?.changeCurItemOrStatus(null, 2);
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const totalAmount = ref(0)
|
const totalAmount = ref(0)
|
||||||
const medicalHistoryRef = ref()
|
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) => {
|
||||||
if (!item){
|
|
||||||
initFormData()
|
initFormData()
|
||||||
|
if (!item) {
|
||||||
medicalHistoryRef.value?.clearList();
|
medicalHistoryRef.value?.clearList();
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -131,7 +136,7 @@ const clickItem = (item: any) => {
|
||||||
getOrderTotalPrice()
|
getOrderTotalPrice()
|
||||||
const diagnosisList = JSON.parse(formData.value.diagnosisDetail)
|
const diagnosisList = JSON.parse(formData.value.diagnosisDetail)
|
||||||
const nList = formData.value.diagnosisSummary.split(',')
|
const nList = formData.value.diagnosisSummary.split(',')
|
||||||
caseRef.value?.initDiagnosisSearch(diagnosisList,nList);
|
caseRef.value?.initDiagnosisSearch(diagnosisList, nList);
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -217,7 +222,15 @@ watch(() => registerId.value, (newValue) => {
|
||||||
getSeeDockerInfo(newValue)
|
getSeeDockerInfo(newValue)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(
|
||||||
|
[() => formData.value.goodsDetail, () => formData.value.itemDetail],
|
||||||
|
([newGoodsDetail, newItemDetail]) => {
|
||||||
|
if (newGoodsDetail || newItemDetail) {
|
||||||
|
getOrderTotalPrice()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{deep: true}
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.container {
|
.container {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue