index.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <div class="app-container">
  3. <!-- 顶部操作区域 -->
  4. <div class="filter-container">
  5. <div class="filter-control">
  6. <span>机构ID:</span>
  7. <el-input
  8. v-model="listQuery.clubId"
  9. style="width: 120px"
  10. placeholder="机构ID"
  11. clearable
  12. maxlength="10"
  13. @keyup.enter.native="getList"
  14. @clear="getList"
  15. />
  16. </div>
  17. <div class="filter-control">
  18. <span>机构名称:</span>
  19. <el-input
  20. v-model="listQuery.name"
  21. placeholder="机构名称"
  22. clearable
  23. @keyup.enter.native="getList"
  24. @clear="getList"
  25. />
  26. </div>
  27. <div class="filter-control">
  28. <span>手机号:</span>
  29. <el-input
  30. v-model="listQuery.bindMobile"
  31. placeholder="手机号"
  32. maxlength="11"
  33. clearable
  34. @keyup.enter.native="getList"
  35. @clear="getList"
  36. />
  37. </div>
  38. <div class="filter-control">
  39. <span>联系人:</span>
  40. <el-input
  41. v-model="listQuery.linkMan"
  42. placeholder="联系人名称"
  43. clearable
  44. @keyup.enter.native="getList"
  45. @clear="getList"
  46. />
  47. </div>
  48. <div class="filter-control">
  49. <el-button type="primary" @click="getList"> 查询 </el-button>
  50. </div>
  51. </div>
  52. <!-- 列表 -->
  53. <el-table v-loading="isLoading" :data="list" border style="width: 100%" height="660">
  54. <el-table-column prop="clubId" fixed label="机构ID" align="center" width="80" />
  55. <el-table-column prop="name" fixed label="机构名称" align="center" />
  56. <el-table-column prop="linkMan" label="联系人" align="center" />
  57. <el-table-column prop="spName" label="服务商名称" align="center" />
  58. <el-table-column prop="contractMobile" label="手机号" align="center">
  59. <template slot-scope="{ row }">
  60. {{ row.contractMobile ? row.contractMobile : '---' }}
  61. </template>
  62. </el-table-column>
  63. <el-table-column prop="status" label="机构状态" align="center" width="100">
  64. <template slot-scope="{ row }">
  65. <el-tag v-if="row.status === 1" type="warning" size="small">待审核</el-tag>
  66. <el-tag v-if="row.status === 90" type="success" size="small">已上线</el-tag>
  67. <el-tag v-if="row.status === 91" type="info" size="small">已下线</el-tag>
  68. <el-tag v-if="row.status === 92" type="danger" size="small">审核未通过</el-tag>
  69. <el-tag v-if="row.status === 93" type="warning" size="small">已确认</el-tag>
  70. <el-tag v-if="row.status === 94" type="danger" size="small">已冻结</el-tag>
  71. </template>
  72. </el-table-column>
  73. <el-table-column prop="userIdentity" label="机构级别" align="center">
  74. <template slot-scope="{ row }">
  75. <template v-if="row.userIdentity === '4'">
  76. <el-tag v-if="row.userIdentity === '4' && row.svipUserFlag === 1" type="success" size="small">个人机构(超级会员)</el-tag>
  77. <el-tag v-else type="info" size="small">个人机构(普通会员)</el-tag>
  78. </template>
  79. <template v-if="row.userIdentity === '2'">
  80. <el-tag v-if="row.userIdentity === '2' && row.svipUserFlag ===1" type="success" size="small">资质机构(超级会员)</el-tag>
  81. <el-tag v-if="row.userIdentity === '2' && row.svipUserFlag !==1 && !row.medicalPracticeLicenseImg" type="warning" size="small">资质机构(高级会员)</el-tag>
  82. <el-tag v-if="row.userIdentity === '2' && row.svipUserFlag !==1 && row.medicalPracticeLicenseImg" type="danger" size="small">资质机构(医美会员)</el-tag>
  83. </template>
  84. </template>
  85. </el-table-column>
  86. <el-table-column prop="addTime" label="注册时间" align="center">
  87. <template slot-scope="{ row }">
  88. {{ row.addTime ? row.addTime : '---' }}
  89. </template>
  90. </el-table-column>
  91. </el-table>
  92. <!-- 页码 -->
  93. <pagination
  94. :total="total"
  95. :page-sizes="[10, 20, 30, 100]"
  96. :page-size="20"
  97. :page.sync="listQuery.pageNum"
  98. :limit.sync="listQuery.pageSize"
  99. @pagination="providersClubList"
  100. />
  101. </div>
  102. </template>
  103. <script>
  104. import { providersClubList } from '@/api/serviceSettlement/service'
  105. import pickerOptions from '@/utils/time-picker.js'
  106. export default {
  107. name: 'CustomerList',
  108. filters: {},
  109. data() {
  110. return {
  111. isLoading: true,
  112. pickerOptions,
  113. time: [],
  114. time1: [],
  115. listQuery: {
  116. spId: this.$route.query.serviceProviderId,
  117. clubId: '',
  118. name: '',
  119. bindMobile: '',
  120. linkMan: '',
  121. pageNum: 1,
  122. pageSize: 20
  123. },
  124. list: [],
  125. total: 0,
  126. shopDialogVisible: false,
  127. dialogFormVisible: false,
  128. renewCustome: {
  129. id: '',
  130. status: ''
  131. },
  132. rules: {
  133. status: [{ required: true, message: '请设置统计状态', trigger: 'blur' }]
  134. }
  135. }
  136. },
  137. computed: {},
  138. created() {
  139. this.getList()
  140. },
  141. mounted() {},
  142. methods: {
  143. // 获取行为记录列表
  144. getList() {
  145. this.list = []
  146. this.isLoading = true
  147. this.listQuery.pageNum = 1
  148. this.providersClubList()
  149. },
  150. // 获取机构列表
  151. async providersClubList() {
  152. try {
  153. const res = await providersClubList(this.listQuery)
  154. this.list = res.data.results
  155. this.total = res.data.totalRecord
  156. this.isLoading = false
  157. } catch (error) {
  158. console.log(error)
  159. }
  160. },
  161. // 操作
  162. handleRecordDetail(type, row) {
  163. switch (type) {
  164. case 1: // 咨询记录
  165. this.$router.push({
  166. path: '/user/consult/list',
  167. query: { clubName: row.name, clubId: row.clubId }
  168. })
  169. break
  170. case 2: // 行为记录
  171. this.$router.push({
  172. path: '/user/record-list',
  173. query: { type: 'first', corporateName: row.name, clubId: row.clubId }
  174. })
  175. break
  176. case 3: // 机构画像
  177. this.$router.push({
  178. path: '/user/club-portrait',
  179. query: { clubName: row.name, clubId: row.clubId }
  180. })
  181. break
  182. }
  183. }
  184. }
  185. }
  186. </script>
  187. <style>
  188. .avatar-uploader .el-upload {
  189. border: 1px dashed #d9d9d9;
  190. border-radius: 6px;
  191. cursor: pointer;
  192. position: relative;
  193. overflow: hidden;
  194. float: left;
  195. }
  196. .uploader-tips {
  197. position: absolute;
  198. bottom: 0;
  199. left: 160px;
  200. line-height: 28px;
  201. color: red;
  202. margin: 0;
  203. }
  204. </style>