|
@@ -3,13 +3,30 @@
|
|
|
<div v-for="item in records" :key="item.hisOrdNum">
|
|
<div v-for="item in records" :key="item.hisOrdNum">
|
|
|
<van-cell
|
|
<van-cell
|
|
|
:title="item.visitDeptName + ' | ' + item.doctorName"
|
|
:title="item.visitDeptName + ' | ' + item.doctorName"
|
|
|
- :label="item.chargeDate"
|
|
|
|
|
is-link
|
|
is-link
|
|
|
center
|
|
center
|
|
|
@click="toDetail(item)"
|
|
@click="toDetail(item)"
|
|
|
>
|
|
>
|
|
|
<template #default>
|
|
<template #default>
|
|
|
- <div style="color: orangered">¥ {{ item.amount }}</div>
|
|
|
|
|
|
|
+ <div v-if="item.dzfpShow" style="display: flex">
|
|
|
|
|
+ <div
|
|
|
|
|
+ style="color: #4498ed; text-decoration: underline;
|
|
|
|
|
+ width: 60%;height: 100%;text-align: center;
|
|
|
|
|
+ background: rgba(0,0,0,.1);border-radius: 2px"
|
|
|
|
|
+ @click.stop="onClickDzfp(item)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 电子发票
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="color: orangered; width: 40%; text-align: right">
|
|
|
|
|
+ ¥ {{ item.amount }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-else style="color: orangered;">
|
|
|
|
|
+ ¥ {{ item.amount }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ {{ item.chargeDate }}
|
|
|
</template>
|
|
</template>
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
@@ -20,6 +37,7 @@ import {computed, ref} from 'vue'
|
|
|
import {useRouter} from 'vue-router'
|
|
import {useRouter} from 'vue-router'
|
|
|
import empty from '@/assets/empty.png'
|
|
import empty from '@/assets/empty.png'
|
|
|
import {getMzPaidList} from '@/api/pay-mz-fee'
|
|
import {getMzPaidList} from '@/api/pay-mz-fee'
|
|
|
|
|
+import {getDzfpDownloadUrl} from "@/utils/dzfp";
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const records = ref([])
|
|
const records = ref([])
|
|
@@ -45,6 +63,11 @@ function confirmDateRange(patientId, range) {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function onClickDzfp(item) {
|
|
|
|
|
+ item.hisOrdNum = '290509-4_726_1'
|
|
|
|
|
+ getDzfpDownloadUrl(item.hisOrdNum)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
defineExpose({confirmDateRange})
|
|
defineExpose({confirmDateRange})
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|