refactor(webapp): 更新项目配置和功能
- 修改基础 URL为本地开发环境 - 更新数据库文件路径 - 调整发票报销流程,增加"完成"按钮 - 优化发票列表页面,添加搜索功能 - 新增发票复核页面 - 更新文件上传逻辑,使用动态 URL
This commit is contained in:
@@ -59,7 +59,8 @@ const formState = ref<string>('');
|
||||
<a-space>
|
||||
<a-button type="default" v-if="current > 0" @click="previousPage">上一步</a-button>
|
||||
<a-button type="primary" v-if="current < items.length-1 " @click="nextPage">下一步</a-button>
|
||||
<a-button type="primary" v-if="current == items.length-1" @click="saveReport">完成</a-button>
|
||||
<a-button type="primary" v-if="current == items.length-1" @click="saveReport">报销</a-button>
|
||||
<a-button type="dashed" v-if="current == items.length-1" @click="saveReport">完成</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -4,6 +4,7 @@ import {ref} from "vue";
|
||||
import {
|
||||
UploadOutlined
|
||||
} from '@ant-design/icons-vue';
|
||||
import {baseURL} from "../../utils/baseurl.ts";
|
||||
const fileList1 = ref<UploadProps['fileList']>([]);
|
||||
const props = defineProps({ filePath: String });
|
||||
const emit= defineEmits(['update:filePath'])
|
||||
@@ -45,7 +46,7 @@ const handleUpload = (options: any) => {
|
||||
};
|
||||
|
||||
// 发送请求到服务器
|
||||
xhr.open('POST', 'http://192.168.8.146:5000/upload');
|
||||
xhr.open('POST', baseURL+'/upload');
|
||||
xhr.send(formData);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
import {ref} from "vue";
|
||||
|
||||
import {h,ref} from "vue";
|
||||
import {
|
||||
SearchOutlined
|
||||
} from '@ant-design/icons-vue'
|
||||
const columns = [
|
||||
// {
|
||||
// title: '发票代码',
|
||||
@@ -60,14 +62,53 @@ const columns = [
|
||||
}
|
||||
|
||||
]
|
||||
// 数据
|
||||
let data = ref( [])
|
||||
|
||||
let searchParams = ref({
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
data: {
|
||||
status: '1'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="table-operations">
|
||||
<a-row :gutter="20" >
|
||||
<a-col :span="22" :align="'end'" offset="2">
|
||||
<a-form v-model:value="searchParams" layout="inline">
|
||||
<a-form-item label="开票时间">
|
||||
<a-range-picker></a-range-picker>
|
||||
</a-form-item>
|
||||
<a-form-item label="销售方">
|
||||
<a-input></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="验证结果">
|
||||
<a-radio-group v-model:value="searchParams.data.status">
|
||||
<a-radio-button value="1">正常</a-radio-button>
|
||||
<a-radio-button value="2">异常</a-radio-button>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-button type="primary" :icon="h(SearchOutlined)">搜索</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
<a-table :columns="columns" :data-source="data">
|
||||
</a-table>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.table-operations {
|
||||
margin-bottom: 16px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.table-operations > button {
|
||||
margin-right: 8px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -1 +1 @@
|
||||
export const baseURL = "http://192.168.8.146:5000"
|
||||
export const baseURL = "http://127.0.0.1:5555"
|
||||
Reference in New Issue
Block a user