This commit is contained in:
ChenQiuYu 2025-05-23 11:21:58 +08:00
parent 8d887ff36b
commit 9681209450
3 changed files with 26 additions and 10 deletions

View File

@ -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">

View File

@ -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>

View File

@ -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
} }
@ -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 {