index.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
  2. <div id="app" class="jtbc">
  3. <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
  4. <div class="searchDiv pb20 pr20">
  5. <label class="c-333 c-f14">
  6. <el-radio v-model="yearType" label="1">按服务年度:</el-radio>
  7. <el-select v-model="chooseYear" class="formWidth wd160">
  8. <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
  9. </el-select>
  10. </label>
  11. </div>
  12. <div class="searchDiv pb20 pr20">
  13. <label class="c-333 c-f14" style="display: flex; align-items: center">
  14. <el-radio v-model="yearType" label="2">自定义服务时间:</el-radio>
  15. <el-date-picker
  16. v-model="chooseTime"
  17. type="daterange"
  18. range-separator="至"
  19. start-placeholder="开始日期"
  20. end-placeholder="结束日期"
  21. value-format="yyyy-MM-dd"></el-date-picker>
  22. </label>
  23. </div>
  24. <div class="searchDiv pb20 pr20">
  25. <label class="c-333 c-f14">查床人员:</label>
  26. <el-input v-model="form.doctorName" class="formWidth wd160" placeholder="请输入医生姓名查询"></el-input>
  27. </div>
  28. <div class="searchDiv pb20">
  29. <label class="c-333 c-f14">患者姓名:</label>
  30. <el-input v-model="form.patientName" class="formWidth wd160" placeholder="请输入患者姓名查询"></el-input>
  31. </div>
  32. <div class="searchDiv pb20">
  33. <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
  34. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  35. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  36. </div>
  37. </div>
  38. <el-table :data="tableData" style="width: 100%" v-loading="loading">
  39. <el-table-column type="index" min-width="60" label="序号"></el-table-column>
  40. <el-table-column :label="item.label" v-for="item in tableHeader" :key="item.prop" :width="item.width">
  41. <template slot-scope="scope">{{scope.row[item.prop]}}</template>
  42. </el-table-column>
  43. <el-table-column label="操作" align="center">
  44. <template slot-scope="scope">
  45. <el-button type="text" @click="previewRecord(scope.row)">查看查床记录</el-button>
  46. </template>
  47. </el-table-column>
  48. </el-table>
  49. <el-pagination
  50. @current-change="handleCurrentChange"
  51. @size-change="handleSizeChange"
  52. :current-page.sync="page"
  53. :page-size="size"
  54. :page-sizes="[10, 20, 50]"
  55. layout="total, sizes, prev, pager, next, jumper"
  56. :total="total"
  57. class="pagination"></el-pagination>
  58. <el-dialog :visible.sync="dialogShow" title="查床计划" @close="closeDialog" width="750px">
  59. <div class="timeline-box">
  60. <div class="timeline" v-for="item in planList" :key="item.id">
  61. <div class="time">{{item.checkTime.substring(0,10)}}</div>
  62. <div class="circle" :class="getStatusCircleColor(item.checkPlanStatus)"></div>
  63. <div class="line"></div>
  64. <div class="name">{{item.patientName}}</div>
  65. <div class="statusName" :class="getStatusTextColor(item.checkPlanStatus)">{{item.checkPlanStatusName}}</div>
  66. </div>
  67. <div class="nodata" v-if="planList.length == 0">
  68. <img src="../../../images/nodata.png" alt="">
  69. 暂无查床计划
  70. </div>
  71. </div>
  72. </el-dialog>
  73. </div>