zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
  <div>
    <el-table
      v-loading="listLoading"
      :data="tableData"
      fit
      stripe
      highlight-current-row
      style="width: 100%;"
      size="small"
    >
      <el-table-column label=" " type="index" align="center" width="50px"> </el-table-column>
      <el-table-column prop="financialtypeCn" label="财务数据类型" width="180"> </el-table-column>
      <el-table-column prop="begintime" label="开始时间" width="180"> </el-table-column>
      <el-table-column prop="endtime" label="截止时间" width="180"> </el-table-column>
      <el-table-column prop="operatingreceipt" label="营业收入" width="180"> </el-table-column>
      <el-table-column prop="netprofit" label="净利润" width="180"> </el-table-column>
      <el-table-column prop="nonnetprofit" label="扣非净利润" width="180"> </el-table-column>
      <el-table-column prop="netassets" label="净资产" width="180"> </el-table-column>
      <el-table-column prop="netoperatingcashflow" label="经营性现金流净额" width="180"> </el-table-column>
      <el-table-column prop="externalguaranteeamount" label="对外担保金额" width="180"> </el-table-column>
      <el-table-column prop="totalassets" label="总资产" width="180"> </el-table-column>
      <el-table-column prop="totalliability" label="总负债" width="180"> </el-table-column>
      <el-table-column prop="assetsliabilities" label="资产负债率(%)" width="180"> </el-table-column>
    </el-table>
    <pagination
      v-show="total > 1"
      :total="total"
      :page.sync="listQuery.currentPage"
      :limit.sync="listQuery.pageSize"
      @pagination="initTable"
    />
  </div>
</template>
 
<script>
import { qryEnpFinancialData } from '@/api/area/enterprise'
import Pagination from '@/components/Pagination'
export default {
  props: ['objectNo', 'objectType'],
  components: { Pagination },
  data: function() {
    return {
      // 分页
      tableData: [],
      listLoading: true,
      total: 0,
      listQuery: {
        currentPage: 1,
        pageSize: 10
      }
    }
  },
  created() {
    this.initTable()
  },
  methods: {
    async initTable() {
      let params = {
        objectno: this.objectNo,
        objecttype: this.objectType
      }
      Object.assign(params, this.listQuery)
      let res = await qryEnpFinancialData(params)
      this.tableData = res.result.records
      this.total = res.result.total
      this.listLoading = false
    }
  }
}
</script>
 
<style scoped></style>