index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <div id="app" class="jtbc">
  2. <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
  3. <div class="searchDiv pb20 pr20">
  4. <label class="c-333 c-f14">
  5. <el-radio v-model="yearType" label="1">按下转年份:</el-radio>
  6. <el-select v-model="chooseYear" class="formWidth wd160">
  7. <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
  8. </el-select>
  9. </label>
  10. </div>
  11. <div class="searchDiv pb20 pr20">
  12. <label class="c-333 c-f14" style="display: flex; align-items: center">
  13. <el-radio v-model="yearType" label="2">自定义下转时间:</el-radio>
  14. <el-date-picker
  15. v-model="chooseTime"
  16. type="daterange"
  17. range-separator="至"
  18. start-placeholder="开始日期"
  19. end-placeholder="结束日期"
  20. value-format="yyyy-MM-dd"
  21. ></el-date-picker>
  22. </label>
  23. </div>
  24. <div class="searchDiv pb20">
  25. <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
  26. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  27. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  28. </div>
  29. </div>
  30. <el-table :data="tableData" style="width: 100%" v-loading="loading" empty-text="暂无数据">
  31. <el-table-column type="index" min-width="60" label="序号"></el-table-column>
  32. <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
  33. <template slot-scope="scope">
  34. <span :class="`${['idcard','hospitalName'].includes(item.prop)&&scope.row.code?'pointer c-409eff':''}`" @click="openDialog(scope.row, item.prop)">
  35. {{scope.row[item.prop]}}
  36. </span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column :label="item.label" v-for="(item,index) in tableHeaderChildren" :key="index" align="center">
  40. <el-table-column :label="el.label" :min-width="el.width" v-for="el in item.children" :key="el.prop">
  41. <template slot-scope="scope">
  42. <span :class="`${['vd1Num','v2Num','vd3Num','v4Num'].includes(el.prop)&&scope.row.code?'pointer c-409eff':''}`" @click="openDialog(scope.row, el.prop)">
  43. {{scope.row[el.prop]}}
  44. </span>
  45. </template>
  46. </el-table-column>
  47. </el-table-column>
  48. </el-table>
  49. <!-- 详情 -->
  50. <el-dialog :visible.sync="visible" :title="title" @close="closeDialog" width="1200px">
  51. <el-form inline size="mini">
  52. <el-form-item label="居民姓名:">
  53. <el-input v-model="query.name" placeholder="请输入居民姓名查询"></el-input>
  54. </el-form-item>
  55. <el-form-item label="手机号码:">
  56. <el-input v-model="query.signHospitalName" placeholder="请输入手机号码查询"></el-input>
  57. </el-form-item>
  58. <el-form-item label="管理医生:">
  59. <el-input v-model="query.signDoctorName" placeholder="请输入管理医生查询"></el-input>
  60. </el-form-item>
  61. <el-form-item label="管理医院:">
  62. <el-select v-model="query.remind" disabled>
  63. <el-option label="和平县医院" value=""></el-option>
  64. </el-select>
  65. </el-form-item>
  66. <el-form-item label="服务方式:">
  67. <el-select v-model="query.serve" disabled>
  68. <el-option label="全部" value=""></el-option>
  69. </el-select>
  70. </el-form-item>
  71. <el-form-item>
  72. <el-button type="primary" @click="dialogSearchFn">查询</el-button>
  73. <el-button type="warning" @click="dialogExportFn" :disabled="dialogExportLoading">导出</el-button>
  74. <span @click="dialogReset" style="color: #676a6c; cursor: pointer">清除筛选条件</span>
  75. </el-form-item>
  76. </el-form>
  77. <el-table :data="dialogTableData" v-loading="dialogLoading" border>
  78. <el-table-column type="index" label="序号"></el-table-column>
  79. <el-table-column v-for="item in dialogHeader" :label="item.label" :prop="item.prop" :render-header="renderHeader">
  80. <template slot-scope="scope">
  81. <span :class="`${item.prop =='name'?'pointer c-409eff':''}`" @click="seePatientDetail(scope.row, item.prop)">{{scope.row[item.prop]}}</span>
  82. </template>
  83. </el-table-column>
  84. </el-table>
  85. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  86. <el-pagination
  87. @current-change="handleCurrentChange"
  88. @size-change="handleSizeChange"
  89. :current-page.sync="page"
  90. :page-size="size"
  91. :page-sizes="[10, 20, 50]"
  92. layout="total, sizes, prev, pager, next, jumper"
  93. :total="total"
  94. ></el-pagination>
  95. </div>
  96. </el-dialog>
  97. <el-dialog title="消息提醒内容" :visible.sync="messageVisible" @close="closeMessageDialog" width="540px">
  98. <div v-html="messTxt"></div>
  99. <span slot="footer" class="dialog-footer">
  100. <el-button @click="messageVisible = false">取消</el-button>
  101. </span>
  102. </el-dialog>
  103. <el-pagination
  104. @current-change="handleCurrentChange"
  105. @size-change="handleSizeChange"
  106. :current-page.sync="page"
  107. :page-size="size"
  108. :page-sizes="[10, 20, 50]"
  109. layout="total, sizes, prev, pager, next, jumper"
  110. :total="total"
  111. class="pagination"
  112. ></el-pagination>
  113. </div>