index.html 8.0 KB

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