index.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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-radio v-model="form.isSign" label="1">是</el-radio>
  27. <el-radio v-model="form.isSign" label="0">否</el-radio>
  28. </div>
  29. <div class="searchDiv pb20 pr20">
  30. <label class="c-333 c-f14">居民姓名:</label>
  31. <el-input v-model="form.name" placeholder="请输入居民姓名查询"></el-input>
  32. </div>
  33. <div class="searchDiv pb20 pr20">
  34. <label class="c-333 c-f14">就诊类型:</label>
  35. <el-select v-model="form.eventType" clearable>
  36. <el-option label="门诊" value="1"></el-option>
  37. <el-option label="住院" value="2"></el-option>
  38. </el-select>
  39. </div>
  40. <div class="searchDiv pb20 pr20">
  41. <label class="c-333 c-f14">数据范围:</label>
  42. <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
  43. <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  44. </el-select>
  45. </div>
  46. <div class="searchDiv pb20 pr20">
  47. <label class="c-333 c-f14">地区:</label>
  48. <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
  49. <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  50. </el-select>
  51. </div>
  52. <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
  53. <label class="c-333 c-f14">社区:</label>
  54. <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
  55. <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
  56. </el-select>
  57. </div>
  58. <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
  59. <label class="c-333 c-f14">团队:</label>
  60. <el-select class="formWidth" v-model="form.team" placeholder="请选择">
  61. <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
  62. </el-select>
  63. </div>
  64. <div class="searchDiv pb20">
  65. <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
  66. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  67. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  68. </div>
  69. </div>
  70. <el-table :data="tableData" style="width: 100%" v-loading="loading">
  71. <el-table-column type="index" min-width="60" label="序号"></el-table-column>
  72. <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
  73. <template slot-scope="scope">{{scope.row[item.prop]}}</template>
  74. </el-table-column>
  75. </el-table>
  76. <el-pagination
  77. @current-change="handleCurrentChange"
  78. @size-change="handleSizeChange"
  79. :current-page.sync="page"
  80. :page-size="size"
  81. :page-sizes="[10, 20, 50]"
  82. layout="total, sizes, prev, pager, next, jumper"
  83. :total="total"
  84. class="pagination"></el-pagination>
  85. </div>