Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

pastInquiries.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <div class="cell clearfix">
  8. <el-input size="small" style="width:150px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
  9. class="filter-item"/>
  10. <el-button size="small" style="margin:0 10px;" class="filter-item" type="primary" @click="searchAction">搜索
  11. </el-button>
  12. <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange"
  13. :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date"
  14. placeholder="选择日期时间" align="right"></el-date-picker>
  15. </div>
  16. <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
  17. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  18. <el-table-column align="center" label="序号" width="60" type="index">
  19. <!--<template slot-scope="scope">{{ scope.$index +1 }}</template>-->
  20. </el-table-column>
  21. <el-table-column align="center" prop="name" label="姓名" width="100">
  22. <template slot-scope="scope">{{ scope.row.patient.name }}</template>
  23. </el-table-column>
  24. <el-table-column align="center" prop="name" label="处方日期" width="110">
  25. <template slot-scope="scope"> {{getTimes(scope.row.record_date)}}</template>
  26. </el-table-column>
  27. <!--<el-table-column align="center" prop="name" label="患者类型">-->
  28. <!--<template slot-scope="scope">{{}}</template>-->
  29. <!--</el-table-column>-->
  30. <el-table-column align="center" prop="name" label="处方号">
  31. <template slot-scope="scope">{{scope.row.prescription_number}}</template>
  32. </el-table-column>
  33. <el-table-column align="center" prop="name" label="开立医生">
  34. <template slot-scope="scope">{{scope.row.doctor}}</template>
  35. </el-table-column>
  36. <el-table-column align="center" prop="name" label="诊断">
  37. <template slot-scope="scope">{{ scope.row.diagnosis }}</template>
  38. </el-table-column>
  39. <el-table-column align="center" prop="name" label="状态">
  40. <template slot-scope="scope">
  41. <div v-if=" scope.row.prescription_status == 1">新建</div>
  42. <div v-if=" scope.row.prescription_status == 2">待结算</div>
  43. <div v-if=" scope.row.prescription_status == 3">已结算</div>
  44. <div v-if=" scope.row.prescription_status == 4">已退费</div>
  45. </template>
  46. </el-table-column>
  47. <el-table-column align="center" prop="name" label="操作" width="100">
  48. <template slot-scope="scope">
  49. <el-button size="mini" type="primary" @click="handerShowDetail(scope.row)">详情</el-button>
  50. </template>
  51. </el-table-column>
  52. </el-table>
  53. <el-pagination
  54. @size-change="handleSizeChange"
  55. @current-change="handleCurrentChange"
  56. :page-sizes="[10, 50, 100]"
  57. :page-size="10"
  58. background
  59. style="margin-top:20px;float: right"
  60. layout="total, sizes, prev, pager, next, jumper"
  61. :total="total"
  62. >
  63. </el-pagination>
  64. <inquiries-detail ref="inquiriesDetail"></inquiries-detail>
  65. </div>
  66. </div>
  67. </template>
  68. <script>
  69. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  70. import inquiriesDetail from './components/inquiriesDetail'
  71. import { getHisPrescriptionList } from '@/api/his/his'
  72. import { uParseTime } from '@/utils/tools'
  73. export default {
  74. components: {
  75. BreadCrumb,
  76. inquiriesDetail
  77. },
  78. data() {
  79. return {
  80. crumbs: [
  81. { path: false, name: '门诊医生站' },
  82. { path: false, name: '既往查询' }
  83. ],
  84. tableData: [{
  85. date: '2016-05-02',
  86. name: '王小虎',
  87. address: '上海市普陀区金沙江路 1518 弄'
  88. }, {
  89. date: '2016-05-04',
  90. name: '王小虎',
  91. address: '上海市普陀区金沙江路 1517 弄'
  92. }, {
  93. date: '2016-05-01',
  94. name: '王小虎',
  95. address: '上海市普陀区金沙江路 1519 弄'
  96. }, {
  97. date: '2016-05-03',
  98. name: '王小虎',
  99. address: '上海市普陀区金沙江路 1516 弄'
  100. }]
  101. }
  102. },
  103. methods: {
  104. getTimes(time) {
  105. return uParseTime(time, "{y}-{m}-{d}");
  106. },
  107. handerShowDetail(row) {
  108. console.log(row)
  109. this.$refs.inquiriesDetail.show(row.id)
  110. }, getHisPrescriptionList() {
  111. getHisPrescriptionList().then(response => {
  112. if (response.data.state == 0) {
  113. this.$message.error(response.data.msg)
  114. return false
  115. } else {
  116. this.tableData = response.data.data.order
  117. }
  118. })
  119. }
  120. }, created() {
  121. this.getHisPrescriptionList()
  122. }
  123. }
  124. </script>