refactor(webapp): 重构发票验证功能

- 修改基础 URL为本地地址
- 优化发票验证和列表查询逻辑
- 更新数据库结构和查询语句
- 改进前端发票管理页面,增加验证结果展示
- 修复后端发票列表接口,支持 JSON 请求
This commit is contained in:
liuxiaoqing
2025-08-19 13:52:25 +08:00
parent c22a509633
commit 1e24287327
10 changed files with 59 additions and 71 deletions
@@ -107,7 +107,7 @@ const emit= defineEmits(['update:formState'])
const fileType = ref<string>('img')
onMounted(() => {
alert(props.filePath)
// alert(props.filePath)
if(props.filePath){
fileType.value = props.filePath.split('.').pop() ==='pdf'?'pdf':'img'
request.get('/recognize?filePath='+encodeURIComponent(props.filePath)).then((res) => {