|
|
@@ -0,0 +1,91 @@
|
|
|
+<template>
|
|
|
+ <div class="container" style="width: 99%; margin-top: 0px">
|
|
|
+ <templateTable :searchData.sync="queryFrom" :tableConfig="tableConfig" :data="pageResult" @getList="findPage" :pagination="pageData">
|
|
|
+ </templateTable>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import templateTable from '@/components/TemplateTable/index.vue'
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "sourceManagement",
|
|
|
+ components: { templateTable },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ formList: [
|
|
|
+ {
|
|
|
+ label: "开票员",
|
|
|
+ prop: "invoiceClerk",
|
|
|
+ type: 'input'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ pageResult: [], //表格数据
|
|
|
+ queryFrom: {}, //查询信息
|
|
|
+ tableConfig: {
|
|
|
+ columns: [
|
|
|
+ // 数据列
|
|
|
+ { prop: "invoiceClerk", label: "保险公司名称", type: 'text' },
|
|
|
+ {
|
|
|
+ prop: "subjects",
|
|
|
+ label: "科目", type: 'text',
|
|
|
+ },
|
|
|
+ { prop: "invCompanyName", label: "开票方", type: 'text', },
|
|
|
+
|
|
|
+ { prop: "peerCompanyName", label: "对方单位名称", type: 'text', },
|
|
|
+ { prop: "invoiceNum", label: "号码", type: 'text', },
|
|
|
+ {
|
|
|
+ prop: "invoiceDate",
|
|
|
+ label: "日期",
|
|
|
+ type: 'text',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "taxExclusivePrice",
|
|
|
+ label: "金额",
|
|
|
+ type: 'text',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ loading: true,
|
|
|
+ isPaginationShow: true,
|
|
|
+ isShowIndex: true,
|
|
|
+ operationWidth: '120',
|
|
|
+ optBtns: [
|
|
|
+ {
|
|
|
+ type: 'primary',
|
|
|
+ label: '税源管理',
|
|
|
+ type: 'text',
|
|
|
+ click: (row, index) => { return this.addSource(row) },
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ pageData: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ totalSize: 0
|
|
|
+ },
|
|
|
+ }
|
|
|
+},
|
|
|
+created() {
|
|
|
+ this.findPage()
|
|
|
+ },
|
|
|
+methods:{
|
|
|
+ findPage(data) {
|
|
|
+ this.tableConfig.loading = true;
|
|
|
+ this.$api.dict
|
|
|
+ .queryPage({ ...this.pageData, ...data })
|
|
|
+ .then((res) => {
|
|
|
+ this.tableConfig.loading = false;
|
|
|
+ this.pageResult = res.data.content;
|
|
|
+ this.pageData.pageNum = res.data.pageNum;
|
|
|
+ this.pageData.pageSize = res.data.pageSize;
|
|
|
+ this.pageData.totalSize = res.data.totalSize;
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ addSource(row){
|
|
|
+
|
|
|
+ },
|
|
|
+}
|
|
|
+
|
|
|
+}
|
|
|
+</script>
|