StatementList.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <template>
  2. <div class="dashboard-container">
  3. <div class="tableBox">
  4. <div class="block">
  5. <div class="blockCon">
  6. <div class="selectDns"></div>
  7. <el-input v-model="formData.recordNum" class="width150" placeholder="病案号"></el-input>
  8. <span class="kong"></span>
  9. <el-date-picker v-model="formData.startTime" type="date" format="yyyy 年 MM 月 dd 日" value-format="yyyyMMdd" placeholder="开始日期"></el-date-picker>
  10. <el-date-picker
  11. v-model="formData.endTime"
  12. type="date"
  13. style="margin-left: 10px"
  14. format="yyyy 年 MM 月 dd 日"
  15. value-format="yyyyMMdd"
  16. placeholder="结束日期"
  17. ></el-date-picker>
  18. <span class="kong"></span>
  19. <el-button @click="funQuery">查询</el-button>
  20. <el-button type="text" @click="goto('/SettlementList/StatementListquery')">更多查询条件</el-button>
  21. <el-button type="primary" icon="el-icon-download" class="export-btn">导出数据</el-button>
  22. </div>
  23. </div>
  24. <Title :title="'医保结算单病案数量'" />
  25. <el-table :data="tableData" style="width: 100%" border>
  26. <el-table-column type="index" label="序号"></el-table-column>
  27. <el-table-column prop="AAA30" label="住院号码"></el-table-column>
  28. <el-table-column prop="AAA28" label="病案号">
  29. <template slot-scope="scope">
  30. <span class="blue" @click="funGoto(scope.row.MED_REC_ID)">
  31. <template>
  32. <div>
  33. {{ scope.row.AAA28 }}
  34. </div>
  35. </template>
  36. </span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column prop="AAA01" label="患者姓名"></el-table-column>
  40. <el-table-column prop="AAA02C" label="性别"></el-table-column>
  41. <el-table-column prop="AAA04" label="年龄"></el-table-column>
  42. <el-table-column prop="AAA29" label="住院次数"></el-table-column>
  43. <el-table-column prop="AAA26C" label="医保类型"></el-table-column>
  44. <el-table-column prop="AAC11N" label="出院科室"></el-table-column>
  45. <el-table-column prop="ADA01" label="总费用"></el-table-column>
  46. <el-table-column prop="ICD9_NAME" label="主诊断"></el-table-column>
  47. <el-table-column prop="AAC04" label="实际住院(天)"></el-table-column>
  48. <el-table-column prop="ATTEND_GRP_NAME" label="主诊组"></el-table-column>
  49. <!-- <el-table-column prop="address" label="责任医生"> </el-table-column> -->
  50. <el-table-column prop="AEM01C" label="离院方式"></el-table-column>
  51. <el-table-column prop="AAB06C" label="入院途径"></el-table-column>
  52. </el-table>
  53. <!-- 分页控制 -->
  54. <mPagination v-if="tableData && tableData.length !== 0" :data="paginationData" @pageChangeEvent="pageHasChanged"></mPagination>
  55. </div>
  56. </div>
  57. </template>
  58. <script>
  59. import Title from '@/components/Title';
  60. import { mapGetters } from 'vuex';
  61. import mPagination from '@/components/m-pagination';
  62. export default {
  63. name: 'Dashboard',
  64. components: {
  65. Title,
  66. mPagination,
  67. },
  68. computed: {
  69. ...mapGetters(['name']),
  70. },
  71. data() {
  72. return {
  73. formData: {
  74. rangeDate: [],
  75. recordNum: '',
  76. },
  77. tableData: [],
  78. // 分页数据
  79. paginationData: {
  80. total: 10,
  81. currentPage: 1,
  82. pageSize: 10,
  83. },
  84. };
  85. },
  86. mounted() {
  87. this.funQuery();
  88. },
  89. methods: {
  90. funGoto(val) {
  91. this.storageSet('getData', val);
  92. this.goto('SetDetails');
  93. },
  94. funDel() {
  95. this.formData1.seniorList.pop();
  96. },
  97. funAdd() {
  98. this.formData1.seniorList.push({
  99. key: '',
  100. value: '',
  101. type: '1',
  102. });
  103. },
  104. pageHasChanged() {
  105. this.funQuery();
  106. },
  107. funQuery() {
  108. //查询
  109. let pramse = {
  110. source:1,
  111. AAC01: this.formData.rangeDate, //出院时间
  112. AAA28: this.formData.recordNum,
  113. page: this.paginationData.currentPage, //页码
  114. limit: this.paginationData.pageSize, //条数
  115. };
  116. this.$axios.post('/qualityList', pramse).then(res => {
  117. console.log(res);
  118. this.paginationData.total = res.data.count;
  119. this.tableData = res.data.list;
  120. });
  121. },
  122. reset() {
  123. // 重置数据
  124. if (this.choice == 0) {
  125. Object.assign(this.$data.formData, this.$options.data().formData);
  126. } else {
  127. Object.assign(this.$data.formData, this.$options.data().formData);
  128. }
  129. },
  130. },
  131. };
  132. </script>
  133. <style scoped>
  134. ::v-deep.el-pagination.is-background .btn-next,
  135. ::v-deep.el-pagination.is-background .btn-prev,
  136. ::v-deep.el-pagination.is-background .el-pager li {
  137. margin: 0 5px;
  138. background-color: #fff;
  139. color: #606266;
  140. min-width: 30px;
  141. border-radius: 2px;
  142. border: 1px solid #dfe3f3;
  143. line-height: 27px;
  144. }
  145. ::v-deep.el-pagination.is-background .el-pager li:not(.disabled).active {
  146. background: #7e8bab;
  147. }
  148. ::v-deep.el-table .el-table__row td {
  149. color: #7e8bab;
  150. border-bottom: 1px solid #f4f4f4;
  151. }
  152. ::v-deep.el-table .el-table__header tr th:first-child {
  153. border-radius: 10px 0px 0px 10px;
  154. }
  155. ::v-deep.el-table .el-table__header tr th:last-child {
  156. border-radius: 0px 10px 10px 0px;
  157. }
  158. ::v-deep.el-table .el-table__header tr th {
  159. background: #f1f6ff;
  160. color: #13171e;
  161. border-bottom: 0px;
  162. }
  163. </style>
  164. <style lang="scss" scoped>
  165. .tableBox {
  166. background: #fff;
  167. padding: 19px;
  168. border-radius: 5px;
  169. font-size: 12px;
  170. }
  171. .block {
  172. background: #fff;
  173. border-radius: 5px;
  174. padding: 20px 30px;
  175. margin-bottom: 20px;
  176. .fBtn {
  177. display: flex;
  178. align-items: center;
  179. justify-content: center;
  180. }
  181. .bnh {
  182. margin-bottom: 20px;
  183. }
  184. .barBtn {
  185. display: flex;
  186. align-items: center;
  187. justify-content: center;
  188. }
  189. .selects {
  190. width: 100%;
  191. }
  192. .rowsa {
  193. margin-bottom: 20px;
  194. }
  195. }
  196. .tableBox {
  197. background: #fff;
  198. padding: 19px;
  199. border-radius: 5px;
  200. }
  201. .dashboard {
  202. &-container {
  203. margin: 30px;
  204. }
  205. &-text {
  206. font-size: 30px;
  207. line-height: 46px;
  208. }
  209. }
  210. .pind {
  211. padding: 0 20px;
  212. }
  213. .pind10 {
  214. padding: 0 5px;
  215. }
  216. .width150 {
  217. width: 200px;
  218. }
  219. .width300 {
  220. width: 295px;
  221. }
  222. .width500 {
  223. width: 645px;
  224. }
  225. .width90 {
  226. width: 90px;
  227. }
  228. .blue {
  229. color: #185da6;
  230. }
  231. .block {
  232. background: #fff;
  233. display: flex;
  234. align-items: center;
  235. border-radius: 5px;
  236. height: 75px;
  237. padding-left: 34px;
  238. margin-bottom: 20px;
  239. .blockCon {
  240. display: flex;
  241. align-items: center;
  242. .selectDns {
  243. span {
  244. margin-right: 5px;
  245. }
  246. }
  247. .demonstration {
  248. margin-left: 10px;
  249. }
  250. .pickers {
  251. margin-left: 5px;
  252. }
  253. .lsxd {
  254. margin-left: 20px;
  255. }
  256. .ins {
  257. width: 150px;
  258. margin: 0 10px;
  259. }
  260. }
  261. .sc {
  262. background: #185da6;
  263. color: #fff;
  264. }
  265. }
  266. .kong {
  267. padding: 0 10px;
  268. }
  269. </style>