defectNumber.vue 6.8 KB

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