transferDirectionTable.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <!-- 中转流向明细统计 -->
  3. <div class="statstics-wrapper">
  4. <StatisticsHeader
  5. title="中转流向明细统计"
  6. :items="formItems"
  7. :data="formData"
  8. with-setting
  9. :withSetting="false"
  10. @export="exportup"
  11. @getFormData="getFormData"
  12. />
  13. <!-- <Tableformcp
  14. :isloadings="isloadings"
  15. :rows="12"
  16. label-width="140px"
  17. :min-height="70"
  18. width="800px"
  19. tableHeight="750"
  20. /> -->
  21. <Tableformbrs
  22. :data-id="dataId"
  23. :textShow = 'textShow'
  24. :textShowtp = 'textShowtp'
  25. upid="5"
  26. :isloadings="isloadings"
  27. :data-content="dataContent"
  28. :rows="12"
  29. label-width="140px"
  30. :min-height="70"
  31. width="800px"
  32. tableHeight="750"
  33. />
  34. </div>
  35. </template>
  36. <script>
  37. import StatisticsHeader from '../../components/statisticsHeader.vue'
  38. // import Tableformcp from "../../components/tableformcp";
  39. import Tableformbrs from '../../components/tableformbrs'
  40. import { Format } from '@/utils/validate'
  41. export default {
  42. name: 'ReportStatistics',
  43. data() {
  44. return {
  45. textShow: [],
  46. textShowtp: [],
  47. formData: {
  48. airport: '',
  49. dateTime: '',
  50. trd: [],
  51. ts: []
  52. },
  53. isloadings: 1,
  54. dataContent: [],
  55. dataId: '1846',
  56. formItems: [
  57. {
  58. prop: 'trd',
  59. inputType: 'select',
  60. placeholder: '全部',
  61. requiredWarning: '',
  62. clearable: true,
  63. multiple:true,
  64. options: [
  65. {
  66. value: 'D-D',
  67. label: 'D-D',
  68. },
  69. {
  70. value: 'D-I',
  71. label: 'D-I',
  72. },
  73. {
  74. value: 'I-I',
  75. label: 'I-I',
  76. },
  77. {
  78. value: 'I-D',
  79. label: 'I-D',
  80. },
  81. ],
  82. },
  83. {
  84. prop: 'ts',
  85. inputType: 'select',
  86. placeholder: '全部',
  87. requiredWarning: '',
  88. clearable: true,
  89. multiple:true,
  90. options: [
  91. {
  92. value: 'T2-T2',
  93. label: 'T2-T2',
  94. },
  95. {
  96. value: 'T2-T3',
  97. label: 'T2-T3',
  98. },
  99. {
  100. value: 'T3-T3',
  101. label: 'T3-T3',
  102. },
  103. {
  104. value: 'T3-T2',
  105. label: 'T3-T2',
  106. },
  107. ],
  108. },
  109. {
  110. prop: 'airport',
  111. inputType: 'select',
  112. placeholder: 'PEK',
  113. filterable: true,
  114. clearable: true,
  115. // multiple: true,
  116. disabled: true,
  117. queryId: SERVICE_ID.nodeAirport,
  118. setKey: 'a2',
  119. options: [],
  120. },
  121. {
  122. prop: 'company',
  123. inputType: 'select',
  124. placeholder: '航班分类',
  125. requiredWarning: '请先选择航班分类',
  126. clearable: true,
  127. options: [
  128. {
  129. value: '国航',
  130. label: '国航',
  131. },
  132. {
  133. value: '代理国内',
  134. label: '代理国内',
  135. },
  136. {
  137. value: '代理国际',
  138. label: '代理国际',
  139. },
  140. {
  141. value: '非代理',
  142. label: '非代理',
  143. },
  144. ],
  145. },
  146. {
  147. prop: 'timedim',
  148. inputType: 'select',
  149. placeholder: '时间维度',
  150. requiredWarning: '请先选择统计时间维度',
  151. clearable: true,
  152. options: [
  153. {
  154. value: '日',
  155. label: '按日统计',
  156. },
  157. {
  158. value: '月',
  159. label: '按月统计',
  160. },
  161. {
  162. value: '年',
  163. label: '按年统计',
  164. },
  165. ],
  166. },
  167. {
  168. prop: 'dateTime',
  169. inputType: 'datePicker',
  170. clearable: true,
  171. width: '240px',
  172. options: [],
  173. },
  174. ],
  175. }
  176. },
  177. components: {
  178. StatisticsHeader,
  179. // Tableformcp,
  180. Tableformbrs,
  181. },
  182. mounted() {
  183. this.dataContent = [
  184. '日',
  185. '日',
  186. '日',
  187. 'PEK',
  188. Format('yyyy-MM-dd', new Date()),
  189. Format('yyyy-MM-dd', new Date()),
  190. '国航',
  191. '国航',
  192. '国航',
  193. '国航',
  194. ]
  195. },
  196. methods: {
  197. getFormData(data) {
  198. this.textShow = data.trd
  199. this.textShowtp = data.ts
  200. this.dataContent = [
  201. data.timedim,
  202. data.timedim,
  203. data.timedim,
  204. 'PEK',
  205. data.dateTime[0],
  206. data.dateTime[1],
  207. data.company,
  208. data.company,
  209. data.company,
  210. data.company,
  211. ]
  212. },
  213. exportup() {
  214. this.isloadings = this.isloadings += 1
  215. },
  216. },
  217. }
  218. </script>
  219. <style lang="scss" scoped></style>