index.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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"
  22. ></el-date-picker>
  23. </label>
  24. </div>
  25. <div class="searchDiv pb20 pr20">
  26. <label class="c-333 c-f14">数据范围:</label>
  27. <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
  28. <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  29. </el-select>
  30. </div>
  31. <div class="searchDiv pb20 pr20">
  32. <label class="c-333 c-f14">地区:</label>
  33. <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
  34. <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  35. </el-select>
  36. </div>
  37. <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
  38. <label class="c-333 c-f14">社区:</label>
  39. <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
  40. <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
  41. </el-select>
  42. </div>
  43. <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
  44. <label class="c-333 c-f14">团队:</label>
  45. <el-select class="formWidth" v-model="form.team" placeholder="请选择">
  46. <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
  47. </el-select>
  48. </div>
  49. <div class="searchDiv pb20">
  50. <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
  51. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  52. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  53. </div>
  54. </div>
  55. <el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="code" lazy :load="load" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
  56. <!-- <el-table-column type="index" min-width="60" label="序号"></el-table-column> -->
  57. <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
  58. <template slot-scope="scope">
  59. <span
  60. @click="openDialog(scope.row, item.prop)"
  61. :class="`${['totalNum', 'dailyNum', 'inScreenNum', 'lRiskNum', 'mRiskNum', 'hRiskNum', 'uhRiskNum', 'ehRiskNum','messageTimes'].includes(item.prop)&&scope.row.code?'pointer c-409eff':''}`"
  62. >
  63. {{scope.row[item.prop]}}
  64. </span>
  65. </template>
  66. </el-table-column>
  67. </el-table>
  68. <el-dialog :visible.sync="visible" :title="title" @close="closeDialog" width="1200px">
  69. <el-form inline size="mini">
  70. <el-form-item label="居民姓名:">
  71. <el-input v-model="query.name" placeholder="请输入居民姓名查询"></el-input>
  72. </el-form-item>
  73. <el-form-item label="签约医院:">
  74. <el-input v-model="query.signHospitalName" placeholder="请输入签约医院查询"></el-input>
  75. </el-form-item>
  76. <el-form-item label="签约医生:">
  77. <el-input v-model="query.signDoctorName" placeholder="请输入签约医生查询"></el-input>
  78. </el-form-item>
  79. <template v-if="title=='个案数据列表'">
  80. <el-form-item label="性别:">
  81. <el-select v-model="query.sex">
  82. <el-option label="全部" value=""></el-option>
  83. <el-option label="男" value="1"></el-option>
  84. <el-option label="女" value="2"></el-option>
  85. </el-select>
  86. </el-form-item>
  87. <el-form-item label="手机号码:">
  88. <el-input v-model="query.mobile" placeholder="请输入手机号码查询"></el-input>
  89. </el-form-item>
  90. <el-form-item label="证件号码:">
  91. <el-input v-model="query.idcard" placeholder="请输入证件号码查询"></el-input>
  92. </el-form-item>
  93. <el-form-item label="评估等级:">
  94. <el-select v-model="query.screenResultCode">
  95. <el-option label="全部" value=""></el-option>
  96. <el-option label="低危" value="5"></el-option>
  97. <el-option label="中危" value="4"></el-option>
  98. <el-option label="高危" value="3"></el-option>
  99. <el-option label="极高危" value="2"></el-option>
  100. <el-option label="超高危" value="1"></el-option>
  101. </el-select>
  102. </el-form-item>
  103. </template>
  104. <template v-else>
  105. <el-form-item label="提醒类型:">
  106. <el-select v-model="remind" disabled>
  107. <el-option label="评估提醒" value=""></el-option>
  108. </el-select>
  109. </el-form-item>
  110. </template>
  111. <el-form-item label="数据范围:">
  112. <el-select v-model="query.range" disabled>
  113. <el-option v-for="item in rangeOptions" :value="item.value" :label="item.label" :key="item.value"></el-option>
  114. </el-select>
  115. </el-form-item>
  116. <el-form-item label="地区:" v-if="query.range == 'town'">
  117. <el-select v-model="query.area" disabled>
  118. <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
  119. </el-select>
  120. </el-form-item>
  121. <el-form-item label="社区:" v-if="query.range == 'hospital'">
  122. <el-select v-model="query.hospital" disabled>
  123. <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
  124. </el-select>
  125. </el-form-item>
  126. <el-form-item label="团队:" v-if="query.range == 'team'">
  127. <el-select v-model="query.team" disabled>
  128. <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
  129. </el-select>
  130. </el-form-item>
  131. <el-form-item>
  132. <el-button type="primary" @click="dialogSearchFn">查询</el-button>
  133. <el-button type="warning" @click="dialogExportFn" :disabled="dialogExportLoading">导出</el-button>
  134. <span @click="dialogReset" style="color: #676a6c; cursor: pointer">清除筛选条件</span>
  135. </el-form-item>
  136. </el-form>
  137. <el-table :data="dialogTableData" border v-loading="dialogLoading">
  138. <el-table-column type="index" label="序号"></el-table-column>
  139. <el-table-column v-for="item in dialogHeader" :label="item.label" :prop="item.prop" :key="item.prop" :render-header="renderHeader">
  140. <template slot-scope="scope">
  141. <span :class="`${item.prop=='name'||item.prop == 'patientName'?'pointer c-409eff':''}`" @click="seePatientDetail(scope.row, item.prop)">{{scope.row[item.prop]}}</span>
  142. </template>
  143. </el-table-column>
  144. <el-table-column label="操作" v-if="title== '评估随访消息推送明细'">
  145. <template slot-scope="scope">
  146. <el-button type="text" @click="previewMess(scope.row)">查看</el-button>
  147. </template>
  148. </el-table-column>
  149. </el-table>
  150. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  151. <el-pagination
  152. @current-change="handleCurrentChange"
  153. @size-change="handleSizeChange"
  154. :current-page.sync="page"
  155. :page-size="size"
  156. :page-sizes="[10, 20, 50]"
  157. layout="total, sizes, prev, pager, next, jumper"
  158. :total="total"
  159. ></el-pagination>
  160. </div>
  161. </el-dialog>
  162. <el-dialog title="消息提醒" :visible.sync="messageVisible" @close="closeMessageDialog" width="540px">
  163. <div v-html="messInfo"></div>
  164. <span slot="footer" class="dialog-footer">
  165. <el-button @click="messageVisible = false">取消</el-button>
  166. </span>
  167. </el-dialog>
  168. </div>