|
@@ -1,8 +1,7 @@
|
|
|
<template>
|
|
|
<xc-dialog-v2 title="退费详细"
|
|
|
v-model="modelValue"
|
|
|
- width="100%"
|
|
|
- @closed="emit('update:modelValue',false)">
|
|
|
+ width="100%">
|
|
|
<page-layer>
|
|
|
<template #header>
|
|
|
数量:{{ chargeAmount }} 金额: {{
|
|
@@ -89,6 +88,7 @@ import {conversionRefundFlag, costState} from "@/utils/computed";
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
import PageLayer from "@/layout/PageLayer";
|
|
|
import {refund} from "@/api/hospitalization-costs/hospitalization-costs-api";
|
|
|
+import {useModel} from "vue";
|
|
|
|
|
|
const props = defineProps({
|
|
|
modelValue: {
|
|
@@ -108,6 +108,8 @@ const props = defineProps({
|
|
|
|
|
|
const emit = defineEmits(['uncheck', 'update:modelValue', 'refreshFee'])
|
|
|
|
|
|
+const modelValue = useModel(props, 'modelValue', emit)
|
|
|
+
|
|
|
const chargeAmount = ref(0)
|
|
|
const chargeFee = ref(0)
|
|
|
const groupNo = ref('73')
|
|
@@ -132,7 +134,7 @@ const confirmRefund = (flag) => {
|
|
|
}
|
|
|
await refund(data)
|
|
|
emit('refreshFee')
|
|
|
- emit('update:modelValue', false)
|
|
|
+ modelValue.value = false
|
|
|
}).catch(() => {
|
|
|
|
|
|
});
|
|
@@ -142,7 +144,7 @@ const deleteData = async (data, index) => {
|
|
|
await emit('uncheck', data)
|
|
|
props.list.splice(index, 1)
|
|
|
if (props.list.length === 0) {
|
|
|
- emit('update:modelValue', false)
|
|
|
+ modelValue.value = false
|
|
|
}
|
|
|
calculatedAmount()
|
|
|
}
|