2025-08-17 13:24:36 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
2025-08-19 13:52:25 +08:00
|
|
|
import {h, onMounted, ref} from "vue";
|
2025-08-17 22:39:59 +08:00
|
|
|
import {
|
|
|
|
|
SearchOutlined
|
|
|
|
|
} from '@ant-design/icons-vue'
|
2025-08-19 13:52:25 +08:00
|
|
|
import request from '#/utils/request.ts';
|
2025-08-17 13:24:36 +08:00
|
|
|
const columns = [
|
|
|
|
|
// {
|
|
|
|
|
// title: '发票代码',
|
|
|
|
|
// dataIndex: 'invoiceCode',
|
|
|
|
|
// key: 'invoiceCode',
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: '发票号码',
|
|
|
|
|
dataIndex: 'invoiceNumber',
|
|
|
|
|
key: 'invoiceNumber',
|
|
|
|
|
},
|
2025-08-18 17:54:29 +08:00
|
|
|
{
|
|
|
|
|
title: '销方名称',
|
|
|
|
|
dataIndex: 'sellerName',
|
|
|
|
|
key: 'sellerName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '销方税号',
|
|
|
|
|
dataIndex: 'sellerTaxNumber',
|
|
|
|
|
key: 'sellerTaxNumber',
|
|
|
|
|
},
|
2025-08-17 13:24:36 +08:00
|
|
|
{
|
|
|
|
|
title: '不含税金额',
|
|
|
|
|
dataIndex: 'invoiceAmountPreTax',
|
|
|
|
|
key: 'invoiceAmountPreTax',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '税额',
|
|
|
|
|
dataIndex: 'invoiceTax',
|
|
|
|
|
key: 'invoiceTax',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '价税合计',
|
|
|
|
|
dataIndex: 'totalAmount',
|
|
|
|
|
key: 'totalAmount',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '开票日期',
|
|
|
|
|
dataIndex: 'invoiceDate',
|
|
|
|
|
key: 'invoiceDate',
|
|
|
|
|
},
|
2025-08-18 17:54:29 +08:00
|
|
|
|
2025-08-17 13:24:36 +08:00
|
|
|
{
|
|
|
|
|
title: '查验结果',
|
2025-08-19 13:52:25 +08:00
|
|
|
dataIndex: 'verify_status',
|
|
|
|
|
key: 'verify_status',
|
2025-08-17 13:24:36 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '查验次数',
|
|
|
|
|
dataIndex: 'inspectionAmount',
|
|
|
|
|
key: 'inspectionAmount',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '查验时间',
|
|
|
|
|
dataIndex: 'verify_time',
|
|
|
|
|
key: 'verify_time',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
]
|
2025-08-17 22:39:59 +08:00
|
|
|
// 数据
|
2025-08-17 13:24:36 +08:00
|
|
|
let data = ref( [])
|
2025-08-17 22:39:59 +08:00
|
|
|
|
|
|
|
|
let searchParams = ref({
|
|
|
|
|
page: 1,
|
2025-08-19 13:52:25 +08:00
|
|
|
pageSize: 100,
|
|
|
|
|
current: 1,
|
|
|
|
|
params: {
|
|
|
|
|
verify_status: 'success',
|
|
|
|
|
value: null,
|
2025-08-17 22:39:59 +08:00
|
|
|
}
|
|
|
|
|
});
|
2025-08-18 22:19:28 +08:00
|
|
|
|
|
|
|
|
const getList = () => {
|
|
|
|
|
request.post("/listInvoice", {
|
2025-08-19 13:52:25 +08:00
|
|
|
verify_status : 'success'
|
2025-08-18 22:19:28 +08:00
|
|
|
}).then(( res ) => {
|
|
|
|
|
console.log(res)
|
2025-08-19 13:52:25 +08:00
|
|
|
data.value = res.data
|
2025-08-18 22:19:28 +08:00
|
|
|
})
|
|
|
|
|
}
|
2025-08-19 13:52:25 +08:00
|
|
|
onMounted(() => {
|
|
|
|
|
getList()
|
|
|
|
|
})
|
2025-08-17 13:24:36 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-08-17 22:39:59 +08:00
|
|
|
<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="销售方">
|
2025-08-19 13:52:25 +08:00
|
|
|
<a-input v-model="searchParams.params.value"></a-input>
|
2025-08-17 22:39:59 +08:00
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item label="验证结果">
|
2025-08-19 13:52:25 +08:00
|
|
|
<a-radio-group v-model:value="searchParams.params.verify_status">
|
|
|
|
|
<a-radio-button value="success">正常</a-radio-button>
|
|
|
|
|
<a-radio-button value="faild">异常</a-radio-button>
|
2025-08-17 22:39:59 +08:00
|
|
|
</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>
|
2025-08-17 13:24:36 +08:00
|
|
|
<a-table :columns="columns" :data-source="data">
|
2025-08-19 13:52:25 +08:00
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
|
<template v-if="column.key === 'verify_status'">
|
|
|
|
|
<a-tag v-if="record.verify_status === 'success'" color="green">正常</a-tag>
|
|
|
|
|
<a-tag v-if="record.verify_status === 'fail'" color="red">异常</a-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
2025-08-17 13:24:36 +08:00
|
|
|
</a-table>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2025-08-17 22:39:59 +08:00
|
|
|
.table-operations {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
2025-08-17 13:24:36 +08:00
|
|
|
|
2025-08-17 22:39:59 +08:00
|
|
|
.table-operations > button {
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
}
|
2025-08-17 13:24:36 +08:00
|
|
|
</style>
|