FeeMeetReport.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <div class="container" style="width: 99%; margin-top: 0px">
  3. <templateTable custom :formList="formList" class="invoiceAnd" ref="templateTable" @handleResetForm="resetform"
  4. :tableConfig="tableConfig" :data="tableData" @findPage="findPage" @handleSearchList="handleSearchList" @getList="getList">
  5. <template slot="companyId">
  6. <el-select v-model="pageData.companyId" clearable placeholder="选择险种" filterable size="small">
  7. <el-option v-for="item in companyList" :key="item.id" :label="item.name"
  8. :value="item.id"></el-option>
  9. </el-select>
  10. </template>
  11. </templateTable>
  12. </div>
  13. </template>
  14. <script>
  15. import templateTable from '@/components/TemplateTable/index.vue'
  16. export default {
  17. name: 'freeMeeReport',
  18. components: { templateTable },
  19. data() {
  20. return {
  21. formList: [
  22. {
  23. name: 'companyId',
  24. label: '保险公司',
  25. type: 'slot'
  26. },
  27. {
  28. label: "时间",
  29. prop: "dateTime",
  30. type: "datePicker",
  31. },
  32. ],
  33. tableConfig: {
  34. columns: [
  35. {
  36. prop: "inscompany",
  37. label: "保险公司",
  38. type: "text"
  39. },
  40. {
  41. prop: "jqPremium",
  42. label: "交强险保费",
  43. type: "text"
  44. },
  45. {
  46. prop: "jqExportSuperviseCostsPremiums",
  47. label: "交强出口手续费",
  48. type: "text"
  49. },
  50. {
  51. prop: "jqExportOtherCostsPremiums",
  52. label: "交强出口跟单费",
  53. type: "text"
  54. },
  55. {
  56. prop: "syPremium",
  57. label: "商业险保费",
  58. type: "text"
  59. },
  60. {
  61. prop: "syExportSuperviseCostsPremiums",
  62. label: "商业出口手续费",
  63. type: "text"
  64. },
  65. {
  66. prop: "syExportOtherCostsPremiums",
  67. label: "商业出口跟单费",
  68. type: "text"
  69. },
  70. {
  71. prop: "noPremium",
  72. label: "非车险保费",
  73. type: "text"
  74. },
  75. {
  76. prop: "noExportSuperviseCostsPremiums",
  77. label: "非车出口手续费",
  78. type: "text"
  79. },
  80. {
  81. prop: "noExportOtherCostsPremiums",
  82. label: "非车出口跟单费",
  83. type: "text"
  84. },
  85. {
  86. prop: "distributingPremiums",
  87. label: "分销费用",
  88. type: "text"
  89. },
  90. {
  91. prop: "totalPremiums",
  92. label: "总和",
  93. type: "text"
  94. },
  95. ],
  96. operationWidth: '180',
  97. loading: true,
  98. showSummary: true,
  99. tableHeight: "none",
  100. // isPaginationShow: true,
  101. // optBtns: [
  102. // {
  103. // type: 'primary',
  104. // label: '编辑',
  105. // click: (row, index) => { return this.haldUpload(row) },
  106. // },
  107. // ]
  108. },
  109. tableData: [],
  110. pageData: {
  111. },
  112. companyList: [],
  113. }
  114. },
  115. created() {
  116. //获取保险公司
  117. this.$api.letter.gainTopList().then(res=>{
  118. this.companyList = res.data
  119. })
  120. this.findPage()
  121. },
  122. methods: {
  123. findPage(data) {
  124. this.tableConfig.loading = false
  125. let queryData = {...this.pageData}
  126. if (data && data.dateTime) {
  127. queryData.startTime = data.dateTime[0]
  128. queryData.endTime = data.dateTime[1]
  129. }
  130. this.$api.report.feeMeetReport(queryData).then((res) => {
  131. this.tableData = res.data
  132. })
  133. },
  134. handleSearchList(data) {
  135. this.findPage(data)
  136. },
  137. getList(data) {
  138. this.findPage(data)
  139. },
  140. resetform() {
  141. this.pageData.companyId = undefined
  142. },
  143. },
  144. }
  145. </script>
  146. <style lang="scss" scoped>
  147. .invoiceAnd >>> .el-table__body-wrapper {
  148. overflow-y: auto !important;
  149. height: auto !important;
  150. }
  151. .imageclass {
  152. max-width: 100px;
  153. max-height: 50px;
  154. text-align: center;
  155. }
  156. </style>