business.php 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <div id="app" v-cloak>
  2. <el-card shadow="never" style="border:0;" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
  3. <div slot="header">
  4. <div>
  5. <span>认证记录</span>
  6. </div>
  7. </div>
  8. <div class="table-body">
  9. <el-form :inline="true" :model="searchData" class="demo-form-inline">
  10. <el-col :span="24">
  11. <el-form-item label="会员ID">
  12. <el-input v-model="searchData.user_id" placeholder="会员ID"></el-input>
  13. </el-form-item>
  14. <el-form-item label="会员名称/手机号">
  15. <el-input v-model="searchData.real_name" placeholder="会员名称/手机号"></el-input>
  16. </el-form-item>
  17. <el-form-item label="企业名称">
  18. <el-input v-model="searchData.business_name" placeholder="企业名称"></el-input>
  19. </el-form-item>
  20. </el-col>
  21. <el-form-item>
  22. <el-button type="primary" @click="onSubmit">查询</el-button>
  23. <el-button @click="resetForm">重置</el-button>
  24. </el-form-item>
  25. </el-form>
  26. <!-- 用户信息 -->
  27. <template>
  28. <el-table ref="multipleTable" :data="user_list" @selection-change="handleSelectionChange">
  29. <el-table-column prop="user_id" label="会员ID" align="center"></el-table-column>
  30. <el-table-column label="基本信息" width="300">
  31. <template slot-scope="scope">
  32. <div class="user_img" flex="cross:center">
  33. <el-image class="default-avatar" :src="scope.row.avatar_url">
  34. <div slot="error" class="image-slot">
  35. <com-image src="resources/img/mall/default_avatar_url.png"></com-image>
  36. </div>
  37. </el-image>
  38. <div class="table-info-text">
  39. <div style="color:#000;">昵称:{{scope.row.nickname}}</div>
  40. <div style="color:#000;">用户名:{{scope.row.username}}</div>
  41. </div>
  42. </div>
  43. </template>
  44. </el-table-column>
  45. <el-table-column label="法人姓名" align="center">
  46. <template slot-scope="scope">
  47. <div>
  48. {{scope.row.auth.real_name}}
  49. </div>
  50. </template>
  51. </el-table-column>
  52. <el-table-column label="法人身份证号" align="center" width="200">
  53. <template slot-scope="scope">
  54. <div>
  55. {{scope.row.id_no}}
  56. </div>
  57. </template>
  58. </el-table-column>
  59. <el-table-column label="手机号" prop="mobile" align="center" >
  60. <template slot-scope="scope">
  61. <div>{{scope.row.detail.mobile}}</div>
  62. </template>
  63. </el-table-column>
  64. <el-table-column label="企业名称" align="center" width="200">
  65. <template slot-scope="scope">
  66. <div>
  67. {{scope.row.detail.business_name}}
  68. </div>
  69. </template>
  70. </el-table-column>
  71. <el-table-column label="营业执照" align="center">
  72. <template slot-scope="scope">
  73. <div>
  74. {{scope.row.detail.business_code}}
  75. </div>
  76. </template>
  77. </el-table-column>
  78. <el-table-column label="状态" align="center">
  79. <template slot-scope="scope">
  80. <div v-if="scope.row.check_status == 2">
  81. 已拒绝
  82. </div>
  83. <div v-if="scope.row.check_status == 0">
  84. 待审核
  85. </div>
  86. <div v-if="scope.row.check_status == 1">
  87. 已通过
  88. </div>
  89. </template>
  90. </el-table-column>
  91. <el-table-column label="申请时间" align="center">
  92. <template slot-scope="scope">
  93. <div>
  94. {{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}
  95. </div>
  96. </template>
  97. </el-table-column>
  98. <el-table-column label="审核时间" align="center">
  99. <template slot-scope="scope">
  100. <div>
  101. {{scope.row.check_at|dateTimeFormat('Y-m-d H:i:s')}}
  102. </div>
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="操作" align="center">
  106. <template slot-scope="scope">
  107. <el-button v-if="scope.row.check_status == 0" @click="navDetail(scope.row.id)" type="text" size="mini">审核</el-button>
  108. <el-button v-else @click="navDetail(scope.row.id)" type="text" size="mini">查看</el-button>
  109. </template>
  110. </el-table-column>
  111. </el-table>
  112. </template>
  113. <!-- 分页 -->
  114. <el-row type="flex" class="page" justify="end">
  115. <el-pagination @current-change="pagination" background layout="prev, pager, next" :page-count="pageCount" v-if="user_list"></el-pagination>
  116. </el-row>
  117. </div>
  118. </el-card>
  119. </div>
  120. <script>
  121. const app = new Vue({
  122. el: '#app',
  123. data() {
  124. return {
  125. searchData: {
  126. user_id: '',
  127. user_mobile: '',
  128. user_name: '',
  129. status: '',
  130. business_name:'',
  131. },
  132. user_list: [],
  133. pageCount: 0,
  134. page: 1,
  135. currentPage: null,
  136. listLoading: false,
  137. btnLoading: false,
  138. checked: false,
  139. type: '',
  140. sort: '',
  141. };
  142. },
  143. methods: {
  144. handleSelectionChange(val) {
  145. this.select_order = val
  146. },
  147. // 全选
  148. allSelect() {
  149. if (this.checked) {
  150. this.goods_list.forEach(function(item, index) {
  151. if (!item.storage) {
  152. item.is_select = true
  153. }
  154. })
  155. } else {
  156. this.goods_list.forEach(function(item, index) {
  157. item.is_select = false
  158. })
  159. }
  160. },
  161. //搜索
  162. onSubmit() {
  163. this.page = 1
  164. this.getOrderList()
  165. },
  166. pagination(currentPage) {
  167. this.page = currentPage
  168. this.getOrderList()
  169. },
  170. navDetail(id){
  171. this.$navigate({
  172. r: 'real-auth/user/business-detail',
  173. id:id,
  174. })
  175. },
  176. getOrderList() {
  177. this.listLoading = true;
  178. var param = {
  179. r: 'real-auth/user/business',
  180. page: this.page,
  181. limit: 20
  182. }
  183. Object.assign(param, param, this.searchData)
  184. request({
  185. params: param,
  186. }).then(e => {
  187. if (e.data.code === 0) {
  188. this.user_list = e.data.data.list
  189. this.pageCount = e.data.data.page_count
  190. this.currentPage = e.data.data.pagination.current_page
  191. } else {
  192. this.$message.error(e.data.msg)
  193. }
  194. this.listLoading = false
  195. }).catch(e => {
  196. this.listLoading = false
  197. })
  198. },
  199. //重置
  200. resetForm() {
  201. this.searchData = {
  202. user_id: '',
  203. user_mobile: '',
  204. user_name: '',
  205. business_name:'',
  206. }
  207. },
  208. },
  209. mounted: function() {
  210. this.page = getQuery('page') ? getQuery('page') : 1
  211. this.getOrderList()
  212. },
  213. });
  214. </script>
  215. <style>
  216. .table-body {
  217. padding: 20px;
  218. background-color: #fff;
  219. }
  220. .input-item {
  221. display: inline-block;
  222. width: 150px;
  223. margin: 0 0 20px;
  224. margin-right: 10px;
  225. }
  226. .input-item .el-input__inner {
  227. border-right: 1px solid #dcdfe6;
  228. }
  229. .input-item .el-input__inner:hover {
  230. border: 1px solid #dcdfe6;
  231. border-right: 0;
  232. outline: 0;
  233. }
  234. .input-item .el-input__inner:focus {
  235. border: 1px solid #dcdfe6;
  236. border-right: 0;
  237. outline: 0;
  238. }
  239. .input-item .el-input-group__append {
  240. background-color: #fff;
  241. border-left: 0;
  242. width: 10%;
  243. padding: 0;
  244. }
  245. .input-item .el-input-group__append .el-button {
  246. padding: 0;
  247. }
  248. .input-item .el-input-group__append .el-button {
  249. margin: 0;
  250. }
  251. .select {
  252. float: left;
  253. width: 100px;
  254. margin-right: 10px;
  255. }
  256. .el-table th>.cell {
  257. color: #333;
  258. font-weight: bold;
  259. font-size: 14px;
  260. }
  261. .el-table__footer-wrapper,
  262. .el-table__header-wrapper {
  263. border-bottom: 1.4px solid #D6D6D6;
  264. }
  265. .search-sort {
  266. display: inline-block;
  267. margin: 0px 10px;
  268. cursor: pointer;
  269. color: rgb(51, 51, 51);
  270. }
  271. .caret-wrapper {
  272. display: inline-flex;
  273. flex-direction: column;
  274. align-items: center;
  275. height: 25px;
  276. width: 11px;
  277. vertical-align: middle;
  278. cursor: pointer;
  279. overflow: initial;
  280. position: relative;
  281. }
  282. .caret-top {
  283. border: 5px solid transparent;
  284. margin: 1px 0;
  285. border-bottom-color: rgb(51, 51, 51);
  286. }
  287. .caret-bottom {
  288. border: 5px solid transparent;
  289. margin: 1px 0;
  290. border-top-color: rgb(51, 51, 51);
  291. }
  292. .active {
  293. border-top-color: rgb(41, 186, 156);
  294. }
  295. .ellipsis {
  296. font-size: .14rem;
  297. color: #333;
  298. overflow: hidden;
  299. text-overflow: ellipsis;
  300. }
  301. .goods-wrapper {
  302. border: 2px solid #CCCCCC;
  303. display: inline-block
  304. }
  305. .goods-select {
  306. border: 2px solid #bb730c;
  307. }
  308. .goods-price {
  309. text-align: center;
  310. }
  311. .goods-price .number {
  312. color: red;
  313. font-weight: 600;
  314. font-size: .18rem;
  315. }
  316. .goods-price .title {
  317. padding: 5px 0;
  318. color: #999;
  319. ;
  320. font-size: .1rem;
  321. font-weight: 600;
  322. }
  323. .bottom-price .title {
  324. padding: 5px 0;
  325. color: #8b8888;
  326. ;
  327. font-size: .1rem;
  328. }
  329. .bottom-price .number {
  330. color: #ff5100;
  331. font-size: .1rem;
  332. }
  333. .goods-action {
  334. margin-top: 0.8rem;
  335. }
  336. .goods-action .title {
  337. color: #0634aa;
  338. }
  339. .bottom-active {
  340. border-bottom-color: rgb(186, 41, 92);
  341. }
  342. .top-active {
  343. border-top-color: rgb(186, 41, 92);
  344. }
  345. .price {
  346. white-space: nowrap;
  347. }
  348. .goods-image {
  349. display: flex;
  350. justify-content: center;
  351. }
  352. .page {
  353. padding: 10px 0;
  354. }
  355. .table-info-img-text {
  356. justify-content: center;
  357. }
  358. .user_img{
  359. position: relative;
  360. margin-right: 8px;
  361. }
  362. .default-avatar{
  363. width: 50px;
  364. height: 50px;
  365. border-radius: 50%;
  366. margin-right: 8px;
  367. }
  368. .uer-nickname {
  369. flex: 1;
  370. }
  371. </style>