feat: 新增发票冲销明细公共组件与独立页面路由
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<basic-container>
|
||||
<section-card title="发票冲销明细">
|
||||
<invoice-write-off-table :biz-type="bizType" :biz-id="bizId" />
|
||||
</section-card>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import InvoiceWriteOffTable from '@/components/invoice-write-off-table/main.vue';
|
||||
|
||||
/**
|
||||
* 发票冲销明细独立页(不挂菜单,供其他页面 $router 跳转引用)
|
||||
* 用法:$router.push({ path: '/payment/invoice-write-off', query: { bizType: 'invoice_apply', bizId: id } })
|
||||
*/
|
||||
export default {
|
||||
name: 'InvoiceWriteOff',
|
||||
components: { InvoiceWriteOffTable },
|
||||
computed: {
|
||||
bizType() {
|
||||
return String(this.$route.query.bizType || 'invoice_apply');
|
||||
},
|
||||
bizId() {
|
||||
return this.$route.query.bizId || null;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user