index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 in tableHeader" :min-width="item.width" :key="item.prop" :prop="item.prop">
  56. <template slot-scope="scope">
  57. <span
  58. :class="`${['totalTimes','mzTimes','zyTimes','totalNum','mzNum','zyNum'].includes(item.prop)&&scope.row.code?'pointer c-409eff':''}`"
  59. @click="openDialog(scope.row, item.prop)">
  60. {{scope.row[item.prop]}}
  61. </span>
  62. </template>
  63. </el-table-column>
  64. </el-table>
  65. <el-dialog :visible.sync="visible" :title="title" @close="closeDialog" width="1200px">
  66. <el-form inline size="mini">
  67. <el-form-item label="居民姓名:">
  68. <el-input v-model="query.patientName" placeholder="请输入居民姓名查询"></el-input>
  69. </el-form-item>
  70. <template v-if="title=='康复下转明细列表'">
  71. <el-form-item label="下转医生:">
  72. <el-input v-model="query.hospitalDoctor" placeholder="请输入下转医生查询"></el-input>
  73. </el-form-item>
  74. <el-form-item label="接收医生:">
  75. <el-input v-model="query.doctor" placeholder="请输入接收医生查询"></el-input>
  76. </el-form-item>
  77. <el-form-item label="下转状态:">
  78. <el-select v-model="query.status" placeholder="请选择">
  79. <el-option v-for="(option, index) in statusOptions" :label="option.value" :value="option.code" :key="option.code"></el-option>
  80. </el-select>
  81. </el-form-item>
  82. <el-form-item label="下转医院:">
  83. <el-select v-model="query.hospitalCode" placeholder="请选择" filterable>
  84. <el-option v-for="(option, index) in rehabilitationHospital" :label="option.value" :value="option.code" :key="option.code"></el-option>
  85. </el-select>
  86. </el-form-item>
  87. <el-form-item label="接收社区医院:">
  88. <el-select v-model="query.orgCode" placeholder="请选择" filterable>
  89. <el-option v-for="(option, index) in communityHospitals" :value="option.value" :label="option.label" :key="option.value"></el-option>
  90. </el-select>
  91. </el-form-item>
  92. <el-form-item label="档案状态:">
  93. <el-select v-model="query.archiveStatus" placeholder="请选择">
  94. <el-option v-for="(item,index) in archiveList" :value="item.code" :label="item.value" :key="item.code"></el-option>
  95. </el-select>
  96. </el-form-item>
  97. <el-form-item label="患者类型:">
  98. <el-select v-model="query.patientType" placeholder="请选择">
  99. <el-option v-for="(item,index) in inviteStatus" :value="item.value" :label="item.label" :key="item.value"></el-option>
  100. </el-select>
  101. </el-form-item>
  102. </template>
  103. <template v-else>
  104. <el-form-item label="签约医院:">
  105. <el-input v-model="query.signHospitalName" placeholder="请输入签约医院查询"></el-input>
  106. </el-form-item>
  107. <el-form-item label="手机号码:">
  108. <el-input v-model="query.mobile" placeholder="请输入手机号码查询"></el-input>
  109. </el-form-item>
  110. <el-form-item label="性别:">
  111. <el-select v-model="query.sex">
  112. <el-option label="全部" value=""></el-option>
  113. <el-option label="男" value="1"></el-option>
  114. <el-option label="女" value="2"></el-option>
  115. </el-select>
  116. </el-form-item>
  117. <el-form-item label="是否签约:">
  118. <el-select v-model="query.isSign">
  119. <el-option label="全部" value=""></el-option>
  120. <el-option label="是" value="1"></el-option>
  121. <el-option label="否" value="2"></el-option>
  122. </el-select>
  123. </el-form-item>
  124. <el-form-item label="下转类型:">
  125. <el-select v-model="query.eventType">
  126. <el-option label="全部" value=""></el-option>
  127. <el-option label="门诊" value="1"></el-option>
  128. <el-option label="住院" value="2"></el-option>
  129. </el-select>
  130. </el-form-item>
  131. </template>
  132. <el-form-item label="数据范围:">
  133. <el-select v-model="query.range" disabled>
  134. <el-option v-for="item in rangeOptions" :value="item.value" :label="item.label" :key="item.value"></el-option>
  135. </el-select>
  136. </el-form-item>
  137. <el-form-item label="地区:" v-if="query.range == 'town'">
  138. <el-select v-model="query.area" disabled>
  139. <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
  140. </el-select>
  141. </el-form-item>
  142. <el-form-item label="社区:" v-if="query.range == 'hospital'">
  143. <el-select v-model="query.hospital" disabled>
  144. <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
  145. </el-select>
  146. </el-form-item>
  147. <el-form-item label="团队:" v-if="query.range == 'team'">
  148. <el-select v-model="query.team" disabled>
  149. <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
  150. </el-select>
  151. </el-form-item>
  152. <el-form-item>
  153. <el-button type="primary" @click="dialogSearchFn">查询</el-button>
  154. <el-button type="warning" @click="dialogExportFn" :disabled="dialogExportLoading">导出</el-button>
  155. <span @click="dialogReset" style="color: #676a6c; cursor: pointer">清除筛选条件</span>
  156. </el-form-item>
  157. </el-form>
  158. <el-table :data="dialogTableData" border v-loading="dialogLoading">
  159. <el-table-column label="序号" type="index"></el-table-column>
  160. <el-table-column v-for="item in dialogHeader" :label="item.label" :render-header="renderHeader">
  161. <template slot-scope="scope">
  162. <span :class="`${item.prop=='name'?'pointer c-409eff':''}`" @click="seePatientDetail(scope.row, item.prop)">{{scope.row[item.prop]}}</span>
  163. </template>
  164. </el-table-column>
  165. <el-table-column label="操作" align="center" width="100" v-if="title=='康复下转明细列表'">
  166. <template slot-scope="scope">
  167. <el-button type="text" v-if="scope.row.status==0" @click="operation(1,scope.row)">分配</el-button>
  168. <el-button type="text" @click="operation(2,scope.row)">查看签约</el-button>
  169. <el-button type="text" v-if="scope.row.status==5" @click="operation(3,scope.row)">同步居民</el-button>
  170. <el-button type="text" v-if="scope.row.status==3" @click="operation(4,scope.row)">同步病历</el-button>
  171. </template>
  172. </el-table-column>
  173. </el-table>
  174. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  175. <el-pagination
  176. @current-change="handleCurrentChange"
  177. @size-change="handleSizeChange"
  178. :current-page.sync="page"
  179. :page-size="size"
  180. :page-sizes="[10, 20, 50]"
  181. layout="total, sizes, prev, pager, next, jumper"
  182. :total="total"></el-pagination>
  183. </div>
  184. </el-dialog>
  185. <el-dialog title="查看签约信息" :visible.sync="dialogVisible" width="70%" append-to-body>
  186. <el-table border :data="signatoryList" style="width: 100%" height="500" class="mt20">
  187. <el-table-column prop="hospitalName" label="签约社区医院" align="center"></el-table-column>
  188. <el-table-column prop="doctorName" label="签约医生" align="center"></el-table-column>
  189. <el-table-column prop="applyDate" label="签约时间" align="center"></el-table-column>
  190. <el-table-column prop="signYear" label="签约年度" align="center"></el-table-column>
  191. </el-table>
  192. </el-dialog>
  193. </div>