caseNumber.vue 7.4 KB

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