index.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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.patientName" placeholder="请输入患者姓名查询"></el-input>
  27. </div>
  28. <div class="searchDiv pb20 pr20">
  29. <label class="c-333 c-f14">签约医生:</label>
  30. <el-input v-model="form.doctorName" placeholder="请输入签约医生姓名查询"></el-input>
  31. </div>
  32. <div class="searchDiv pb20 pr20">
  33. <label class="c-333 c-f14">服务类型:</label>
  34. <el-select class="formWidth" v-model="form.serviceType">
  35. <el-option v-for="(option, index) in serviceType" :label="option.label" :value="option.value" :key="option.value"></el-option>
  36. </el-select>
  37. </div>
  38. <div class="searchDiv pb20 pr20">
  39. <label class="c-333 c-f14">数据范围:</label>
  40. <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
  41. <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  42. </el-select>
  43. </div>
  44. <div class="searchDiv pb20 pr20">
  45. <label class="c-333 c-f14">地区:</label>
  46. <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
  47. <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  48. </el-select>
  49. </div>
  50. <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
  51. <label class="c-333 c-f14">社区:</label>
  52. <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
  53. <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
  54. </el-select>
  55. </div>
  56. <div class="searchDiv pb20">
  57. <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
  58. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  59. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  60. </div>
  61. </div>
  62. <el-table :data="tableData" style="width: 100%" v-loading="loading">
  63. <el-table-column type="index" label="序号" align="center"></el-table-column>
  64. <el-table-column prop="patient_name" label="姓名" align="center"></el-table-column>
  65. <el-table-column prop="mobile" label="电话" align="center"></el-table-column>
  66. <el-table-column prop="idcard" label="身份证号码" align="center"></el-table-column>
  67. <el-table-column prop="doctor_name" label="服务医生" align="center"></el-table-column>
  68. <el-table-column prop="org_name" label="服务机构" align="center"></el-table-column>
  69. <el-table-column prop="create_time" label="签到时间" align="center"></el-table-column>
  70. <el-table-column prop="img" label="签到图片" align="center">
  71. <template slot-scope="scope">
  72. <img :src="getImgurl(scope.row.img)" style="height: 40px; width: 40px" v-if="scope.row.img" />
  73. </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>