|
|
|
@ -11,19 +11,19 @@ |
|
|
|
<a-row justify="space-between" > |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>发票编号:</span> |
|
|
|
<a-input/> |
|
|
|
<a-input v-model="query.invoice_number"/> |
|
|
|
</a-col> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>销方纳税人:</span> |
|
|
|
<a-input placeholder="名称/纳税人识别号"/> |
|
|
|
<a-input placeholder="名称/纳税人识别号" v-model="query.seller"/> |
|
|
|
</a-col> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>购方纳税人:</span> |
|
|
|
<a-input placeholder="名称/纳税人识别号"/> |
|
|
|
<a-input placeholder="名称/纳税人识别号" v-model="query.buy"/> |
|
|
|
</a-col> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>订单编号:</span> |
|
|
|
<a-input/> |
|
|
|
<a-input v-model="query.batchcode"/> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
<!-- <a-col :lg="8" :xl="8" :xxl="6" class="query_item" > |
|
|
|
@ -37,15 +37,16 @@ |
|
|
|
|
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>订单状态:</span> |
|
|
|
<a-select default-value="全部"> |
|
|
|
<a-select-option value="全部"> |
|
|
|
全部 |
|
|
|
</a-select-option> |
|
|
|
<a-select v-model="query.status"> |
|
|
|
<a-select-option value="">全部</a-select-option> |
|
|
|
<a-select-option value="2">待交付订单</a-select-option> |
|
|
|
<a-select-option value="3">待结算订单</a-select-option> |
|
|
|
<a-select-option value="4">已终止订单</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-col> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item query_item2"> |
|
|
|
<span>创建时间:</span> |
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD"/> |
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="query.createtime"/> |
|
|
|
</a-col> |
|
|
|
<a-col :lg="24" :xl="24" :xxl="12" class="query_item query_item1"> |
|
|
|
<a-space :size="21"> |
|
|
|
@ -61,10 +62,15 @@ |
|
|
|
<!-- <a-button type="primary" class="query_button">获 取</a-button> --> |
|
|
|
</div> |
|
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false"> |
|
|
|
<template slot="operation"> |
|
|
|
<template slot="status" slot-scope="status"> |
|
|
|
<span>{{status==2?'待交付订单':status==3?'待结算订单':'已终止订单'}}</span> |
|
|
|
</template> |
|
|
|
<template slot="operation" slot-scope="item"> |
|
|
|
<a-space :size="24"> |
|
|
|
<span class="table_operation">发票详情</span> |
|
|
|
<span class="table_operation">下载发票</span> |
|
|
|
<!-- <span class="table_operation">发票详情</span> --> |
|
|
|
<a :href="item.pdfUrl" class="table_operation" target="_blank" rel="nofollow">发票详情</a> |
|
|
|
<!-- <a :href="item.pdfUrl" class="table_operation" download="pdfUrl" @click="downloadPdfUrl(item.pdfUrl)">下载发票</a> --> |
|
|
|
<span class="table_operation" @click="downloadPdfUrl(item.id)">下载发票</span> |
|
|
|
</a-space> |
|
|
|
</template> |
|
|
|
</a-table> |
|
|
|
@ -89,10 +95,18 @@ |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import Operation from '../../Operation.vue' |
|
|
|
import {} from '../../../api/index' |
|
|
|
import {InvoiceManagementList,downloadInvoice} from '../../../api/index' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return{ |
|
|
|
query:{ |
|
|
|
invoice_number:'', |
|
|
|
seller:'', |
|
|
|
buy:'', |
|
|
|
batchcode:'', |
|
|
|
status:'', |
|
|
|
createtime:[], |
|
|
|
}, |
|
|
|
pageSizeOptions: ['10', '20', '30', '40', '50'], |
|
|
|
//一页多少条 |
|
|
|
total:500, |
|
|
|
@ -111,34 +125,34 @@ export default { |
|
|
|
// }, |
|
|
|
{ |
|
|
|
title: '生成时间', |
|
|
|
dataIndex: 'money', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'tickettime', |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '发票编号', |
|
|
|
dataIndex: 'name', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'ticketid', |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '销方纳税人名称', |
|
|
|
dataIndex: '', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'seller_name', |
|
|
|
// align:'center', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '订单编号', |
|
|
|
dataIndex: '', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'batchcode', |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
title: '纳税人识别号', |
|
|
|
dataIndex: '', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'uscc', |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '购方纳税人名称', |
|
|
|
dataIndex: '', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'name', |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
// { |
|
|
|
// title: '订单类型', |
|
|
|
@ -147,20 +161,24 @@ export default { |
|
|
|
// }, |
|
|
|
{ |
|
|
|
title: '发票金额', |
|
|
|
dataIndex: '', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'ticketmoney', |
|
|
|
width:'90px' |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '交易状态', |
|
|
|
dataIndex: '', |
|
|
|
align:'center' |
|
|
|
dataIndex: 'status', |
|
|
|
scopedSlots: { customRender: 'status' }, |
|
|
|
width:'90px' |
|
|
|
// align:'center' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
scopedSlots: { customRender: 'operation' }, |
|
|
|
align:'center' |
|
|
|
align:'center', |
|
|
|
width:'170px' |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
} |
|
|
|
}, |
|
|
|
components:{ |
|
|
|
@ -170,6 +188,9 @@ export default { |
|
|
|
this.getAllDate() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
downloadPdfUrl(id){ |
|
|
|
location.href=this.host+'/admin/order.InvoiceManagement/downloadInvoice?id='+id |
|
|
|
}, |
|
|
|
// 重置query |
|
|
|
resetQurey(){ |
|
|
|
Object.assign(this.query, this.$options.data().query) |
|
|
|
@ -184,17 +205,17 @@ export default { |
|
|
|
}else{ |
|
|
|
data.page=this.page |
|
|
|
} |
|
|
|
// getAllDate(data).then(res=>{ |
|
|
|
// // console.info(res) |
|
|
|
// if(res.code==200){ |
|
|
|
// this.data=res.data.data |
|
|
|
// this.startTotal=res.data.start |
|
|
|
// this.endTotal=res.data.end |
|
|
|
// this.total=res.data.total |
|
|
|
// }else{ |
|
|
|
// this.$message.error(res.msg); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
InvoiceManagementList(data).then(res=>{ |
|
|
|
// console.info(res) |
|
|
|
if(res.code==200){ |
|
|
|
this.data=res.data.data |
|
|
|
this.startTotal=res.data.start |
|
|
|
this.endTotal=res.data.end |
|
|
|
this.total=res.data.total |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 切换一页显示多少条 |
|
|
|
onShowSizeChange(current, pageSize){ |
|
|
|
@ -210,5 +231,8 @@ export default { |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
|
|
|
|
a:hover{ |
|
|
|
/* border-bottom: 1px solid #1890FF; */ |
|
|
|
text-decoration: underline; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|