This commit is contained in:
ChenQiuYu 2025-05-19 13:13:10 +08:00
parent f1010aa4cb
commit 6c25d2b400
1 changed files with 4 additions and 3 deletions

View File

@ -146,6 +146,7 @@ const changeTab = (e: any) => {
patientRegistration.value = {} patientRegistration.value = {}
itemId.value = null itemId.value = null
isShowFrom.value = false isShowFrom.value = false
curRegister.value.status = e
nextTick(() => { nextTick(() => {
medicalHistoryRef.value?.clearList(); medicalHistoryRef.value?.clearList();
}) })
@ -161,14 +162,14 @@ const getOrderTotalPrice = () => {
formData.value.itemDetail?.forEach((item: any) => { formData.value.itemDetail?.forEach((item: any) => {
totalPrice += item.selectedPrice * item.selectedNum totalPrice += item.selectedPrice * item.selectedNum
}) })
console.log(totalPrice,'totalPrice') console.log(totalPrice, 'totalPrice')
formData.value.goodsDetail?.forEach((item: any) => { formData.value.goodsDetail?.forEach((item: any) => {
totalPrice += item.selectedPrice * item.selectedNum totalPrice += item.selectedPrice * item.selectedNum
}) })
console.log(totalPrice,'totalPrice') console.log(totalPrice, 'totalPrice')
formData.value.preTotalPrice = Math.round((totalPrice * 100) / 100) formData.value.preTotalPrice = Math.round((totalPrice * 100) / 100)
formData.value.totalPrice = totalPrice formData.value.totalPrice = totalPrice
console.log(formData.value.totalPrice,'formData.value.totalPrice') console.log(formData.value.totalPrice, 'formData.value.totalPrice')
} }
const caseRef = ref<any>("") const caseRef = ref<any>("")
const copyForm = (item: any) => { const copyForm = (item: any) => {