2025-08-17 13:24:36 +08:00
|
|
|
<template>
|
|
|
|
|
<a-layout-content>
|
2025-08-19 22:42:38 +08:00
|
|
|
<a-result
|
|
|
|
|
:status="formState.status"
|
|
|
|
|
:title="formState.cyjgxx"
|
|
|
|
|
>
|
|
|
|
|
<template #subTitle >
|
|
|
|
|
<p v-if="formState.status === 'success'">查验次数: {{formState.inspectionAmount}}</p>
|
|
|
|
|
<p v-if="formState.status === 'success'">已存入发票库</p>
|
|
|
|
|
</template>
|
|
|
|
|
</a-result>
|
2025-08-17 13:24:36 +08:00
|
|
|
</a-layout-content>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import {ref,onMounted } from 'vue';
|
|
|
|
|
import request from "../../utils/request.ts";
|
|
|
|
|
const props = defineProps({ filePath: String });
|
|
|
|
|
import {baseURL} from "../../utils/baseurl.ts";
|
|
|
|
|
|
|
|
|
|
const fileType = ref<string>('img')
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
alert(props.filePath)
|
|
|
|
|
if(props.filePath){
|
|
|
|
|
fileType.value = props.filePath.split('.').pop() ==='pdf'?'pdf':'img'
|
|
|
|
|
request.get('/verify?filePath='+encodeURIComponent(props.filePath)).then((res) => {
|
|
|
|
|
console.log(res)
|
2025-08-19 22:42:38 +08:00
|
|
|
formState.value = res.data
|
2025-08-17 13:24:36 +08:00
|
|
|
})
|
|
|
|
|
fileUrl.value = baseURL+"/"+props.filePath
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
const fileUrl = ref('')
|
|
|
|
|
|
|
|
|
|
let formState = ref({
|
2025-08-19 22:42:38 +08:00
|
|
|
status:"",
|
2025-08-17 13:24:36 +08:00
|
|
|
inspectionAmount: "",
|
|
|
|
|
cyjgxx: "",
|
|
|
|
|
verify_time: "",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.pdf{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|