index.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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="请选择">
  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">
  43. <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
  44. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  45. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  46. </div>
  47. </div>
  48. <el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="code" lazy :load="load" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
  49. <el-table-column v-for="item in tableHeader" :key="item.id" :label="item.label" :min-width="item.width || 140">
  50. <template slot="header" slot-scope="scope">
  51. <span>{{item.label}}</span>
  52. <el-tooltip :content="item.tip" placement="top">
  53. <i class="el-icon-question" v-if="item.tip"></i>
  54. </el-tooltip>
  55. </template>
  56. <template slot-scope="scope">
  57. <span @click="openDialog(scope.row, item.prop)" :class="getClass(scope.row, item.prop)">{{scope.row[item.prop]}}</span>
  58. </template>
  59. </el-table-column>
  60. </el-table>
  61. <el-dialog :visible.sync="dialogShow" @close="closeDialog" width="1200px" title="活动举办明细">
  62. <el-form inline size="mini">
  63. <el-form-item label="按活动年度:" v-if="yearType == 1">
  64. <el-select v-model="chooseYear" disabled>
  65. <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
  66. </el-select>
  67. </el-form-item>
  68. <el-form-item label="创建时间:" v-if="yearType == 2">
  69. <el-date-picker
  70. v-model="chooseTime"
  71. type="daterange"
  72. range-separator="至"
  73. start-placeholder="开始日期"
  74. end-placeholder="结束日期"
  75. value-format="yyyy-MM-dd"
  76. disabled></el-date-picker>
  77. </el-form-item>
  78. <el-form-item label="活动名称:">
  79. <el-input v-model="query.title" placeholder="请输入活动名称进行搜索"></el-input>
  80. </el-form-item>
  81. <el-form-item label="活动一级类别:">
  82. <el-select v-model="query.firstClassify" @change="query.secondClassify = ''">
  83. <el-option label="全部" value=""></el-option>
  84. <el-option label="健康运动" value="健康运动"></el-option>
  85. <el-option label="健康教育" value="健康教育"></el-option>
  86. <el-option label="促进业务" value="促进业务"></el-option>
  87. </el-select>
  88. </el-form-item>
  89. <el-form-item label="活动二级类别:">
  90. <el-select v-model="query.secondClassify">
  91. <el-option :label="item.label" :value="item.value" v-for="item in getSecondClassifyList(query.firstClassify)" :key="item.value"></el-option>
  92. </el-select>
  93. </el-form-item>
  94. <el-form-item label="活动状态:">
  95. <el-select v-model="query.activityStatus">
  96. <el-option label="全部" value=""></el-option>
  97. <el-option label="报名中" value="1"></el-option>
  98. <el-option label="进行中" value="2"></el-option>
  99. <el-option label="兑奖中" value="3"></el-option>
  100. <el-option label="未开始" value="4"></el-option>
  101. <el-option label="已开始" value="5"></el-option>
  102. <el-option label="已结束" value="6"></el-option>
  103. </el-select>
  104. </el-form-item>
  105. <el-form-item>
  106. <el-button type="primary" @click="searchActivityHold">查询</el-button>
  107. <el-button type="ff9526" @click="exportActivityHold" :disabled="dialogExportLoading">导出</el-button>
  108. </el-form-item>
  109. </el-form>
  110. <el-table :data="dialogTableData" border v-loading="dialogLoading">
  111. <el-table-column type="index" label="序号" width="80"></el-table-column>
  112. <el-table-column v-for="item in dialogHeader" :label="item.label" :prop="item.prop" :key="item.prop" :width="item.width || 120">
  113. <template slot-scope="scope">
  114. <span :class="`${item.prop=='title'?'pointer c-409eff':''}`" @click="previewRegisterDetail(scope.row, item.prop)">{{scope.row[item.prop]}}</span>
  115. </template>
  116. </el-table-column>
  117. </el-table>
  118. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  119. <el-pagination
  120. @current-change="handleCurrentChange($event, 1)"
  121. @size-change="handleSizeChange($event, 1)"
  122. :current-page.sync="page"
  123. :page-size="size"
  124. :page-sizes="[10, 20, 50]"
  125. layout="total, sizes, prev, pager, next, jumper"
  126. :total="total"></el-pagination>
  127. </div>
  128. </el-dialog>
  129. <el-dialog :visible.sync="dialogShow1" @close="closeDialog1" width="1200px" title="活动报名明细">
  130. <el-form inline size="mini">
  131. <el-form-item label="按活动年度:" v-if="yearType == 1">
  132. <el-select v-model="chooseYear" disabled>
  133. <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
  134. </el-select>
  135. </el-form-item>
  136. <el-form-item label="创建时间:" v-if="yearType == 2">
  137. <el-date-picker
  138. v-model="chooseTime"
  139. type="daterange"
  140. range-separator="至"
  141. start-placeholder="开始日期"
  142. end-placeholder="结束日期"
  143. value-format="yyyy-MM-dd"
  144. disabled></el-date-picker>
  145. </el-form-item>
  146. <el-form-item label="活动名称:">
  147. <el-input v-model="query1.title" placeholder="请输入活动名称进行搜索"></el-input>
  148. </el-form-item>
  149. <el-form-item label="签约机构:">
  150. <el-input v-model="query1.hospitalName" placeholder="请输入签约机构名称进行搜索"></el-input>
  151. </el-form-item>
  152. <el-form-item label="签约医生:">
  153. <el-input v-model="query1.doctorName" placeholder="请输入签约医生名称进行搜索"></el-input>
  154. </el-form-item>
  155. <el-form-item label="活动一级类别">
  156. <el-select v-model="query1.firstClassify" @change="query1.secondClassify = ''">
  157. <el-option label="全部" value=""></el-option>
  158. <el-option label="健康运动" value="健康运动"></el-option>
  159. <el-option label="健康教育" value="健康教育"></el-option>
  160. <el-option label="促进业务" value="促进业务"></el-option>
  161. </el-select>
  162. </el-form-item>
  163. <el-form-item label="活动二级类别">
  164. <el-select v-model="query1.secondClassify">
  165. <el-option :label="item.label" :value="item.value" v-for="item in getSecondClassifyList(query1.firstClassify)" :key="item.value"></el-option>
  166. </el-select>
  167. </el-form-item>
  168. <el-form-item>
  169. <el-button type="primary" @click="searchActivityRegistry">查询</el-button>
  170. <el-button type="ff9526" @click="exportActivityRegistry" :disabled="dialogExportLoading1">导出</el-button>
  171. </el-form-item>
  172. </el-form>
  173. <el-table :data="dialogTableData1" border v-loading="dialogLoading1">
  174. <el-table-column type="index" label="序号" :width="70"></el-table-column>
  175. <el-table-column v-for="item in dialogHeader1" :label="item.label" :prop="item.prop" :key="item.prop" :min-width="item.width || 100">
  176. <template slot-scope="scope">
  177. <span>{{scope.row[item.prop]}}</span>
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  182. <el-pagination
  183. @current-change="handleCurrentChange($event, 2)"
  184. @size-change="handleSizeChange($event, 2)"
  185. :current-page.sync="page1"
  186. :page-size="size1"
  187. :page-sizes="[10, 20, 50]"
  188. layout="total, sizes, prev, pager, next, jumper"
  189. :total="total1"></el-pagination>
  190. </div>
  191. </el-dialog>
  192. </div>