distribution-detail.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <style>
  2. .table-body {
  3. padding: 20px;
  4. background-color: #fff;
  5. }
  6. .input-item {
  7. display: inline-block;
  8. width: 250px;
  9. margin: 0 0 20px;
  10. }
  11. .input-item .el-input__inner {
  12. border-right: 0;
  13. }
  14. .input-item .el-input__inner:hover {
  15. border: 1px solid #dcdfe6;
  16. border-right: 0;
  17. outline: 0;
  18. }
  19. .input-item .el-input__inner:focus {
  20. border: 1px solid #dcdfe6;
  21. border-right: 0;
  22. outline: 0;
  23. }
  24. .input-item .el-input-group__append {
  25. background-color: #fff;
  26. border-left: 0;
  27. width: 10%;
  28. padding: 0;
  29. }
  30. .input-item .el-input-group__append .el-button {
  31. padding: 0;
  32. }
  33. .input-item .el-input-group__append .el-button {
  34. margin: 0;
  35. }
  36. .table-body .el-button {
  37. padding: 0 !important;
  38. border: 0;
  39. margin: 0 5px;
  40. }
  41. .form-body {
  42. background-color: #fff;
  43. margin-bottom: 20px;
  44. }
  45. .el-tabs__header {
  46. background-color: #fff;
  47. }
  48. .el-tabs__item {
  49. width: 100px;
  50. text-align: center;
  51. }
  52. .el-table th>.cell {
  53. color: #333;
  54. font-weight: bold;
  55. font-size: 14px;
  56. }
  57. .el-table__footer-wrapper,
  58. .el-table__header-wrapper {
  59. border-bottom: 1.4px solid #D6D6D6;
  60. }
  61. .flex-y-center {
  62. display: -webkit-box;
  63. display: -webkit-flex;
  64. display: flex;
  65. -webkit-box-align: center;
  66. -webkit-align-items: center;
  67. -ms-flex-align: center;
  68. -ms-grid-row-align: center;
  69. align-items: center;
  70. }
  71. .flex-x-center {
  72. display: -webkit-box;
  73. display: -webkit-flex;
  74. /* #ifndef APP-NVUE */
  75. display: flex;
  76. /* #endif */
  77. -webkit-box-pack: center;
  78. -webkit-justify-content: center;
  79. -ms-flex-pack: center;
  80. justify-content: center;
  81. }
  82. </style>
  83. <div id="app" v-cloak>
  84. <el-card shadow="never" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
  85. <div slot="header">
  86. <div>
  87. <span>分销明细</span>
  88. <!-- <div style="float: right">
  89. <el-button type="primary" size="small" style="padding: 9px 15px !important;" @click="add">
  90. </el-button>
  91. </div> -->
  92. </div>
  93. </div>
  94. <div class="table-body">
  95. <div class="input-item">
  96. <el-input @keyup.enter.native="search" size="small" placeholder="请输入订单编号/会员昵称" v-model="keyword" clearable @clear="search">
  97. <el-button slot="append" icon="el-icon-search" @click="search"></el-button>
  98. </el-input>
  99. </div>
  100. <el-table v-loading="listLoading" :data="list" stripe style="width: 100%">
  101. <el-table-column label="ID" prop="id" min-width="80" align="center">
  102. <template slot-scope="scope">
  103. <div size="small">{{scope.row.id}}</div>
  104. </template>
  105. </el-table-column>
  106. <el-table-column label="结算时间" prop="created_at" min-width="80" align="center">
  107. <template slot-scope="scope">
  108. <div size="small" v-if="scope.row.created_at != 0">{{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}</div>
  109. <div size="small" v-else>--</div>
  110. </template>
  111. </el-table-column>
  112. <el-table-column label="订单编号" prop="orderno" min-width="80" align="center">
  113. <template slot-scope="scope">
  114. <div size="small">{{scope.row.orderno}}</div>
  115. </template>
  116. </el-table-column>
  117. <el-table-column label="会员信息" prop="nickname" min-width="80" align="center">
  118. <template slot-scope="scope">
  119. <div size="small" v-if="scope.row.avatar_url" class="flex-y-center flex-x-center">
  120. <com-image style="border-radius: 22px;" width='45px' height='45px' :src=scope.row.avatar_url></com-image>
  121. </div>
  122. <div size="small" v-else class="flex-y-center flex-x-center">
  123. <com-image style="border-radius: 22px;" width='45px' height='45px'></com-image>
  124. </div>
  125. <div size="small" class="flex-y-center flex-x-center">
  126. <span size="small" v-if="scope.row.nickname">昵称:{{scope.row.nickname}}</span>
  127. <span size="small" v-else>昵称:--</span>
  128. </div>
  129. <div size="small" class="flex-y-center flex-x-center">
  130. <span size="small" v-if="scope.row.mobile">手机:{{scope.row.mobile}}</span>
  131. <span size="small" v-else>手机:--</span>
  132. </div>
  133. <!-- <div size="small" v-if="scope.row.avatar_url">
  134. <com-image style="border-radius: 22px;" width='45px' height='45px' :src=scope.row.avatar_url></com-image>
  135. </div>
  136. <div style="position: relative;top:-30px;left:0px;" size="small" v-if="scope.row.nickname">{{scope.row.nickname}}</div>
  137. <div style="position: relative;top:-30px;left:15px;" size="small" v-else>--</div> -->
  138. </template>
  139. </el-table-column>
  140. <el-table-column label="分销信息" prop="distribution_level" min-width="80" align="center">
  141. <template slot-scope="scope">
  142. <div size="small">分销等级:{{scope.row.distribution_level}}</div>
  143. </template>
  144. </el-table-column>
  145. <el-table-column label="订单金额" prop="real_pay" min-width="80" align="center">
  146. <template slot-scope="scope">
  147. <div size="small">{{scope.row.real_pay}}</div>
  148. </template>
  149. </el-table-column>
  150. <el-table-column label="结算金额" prop="commission" min-width="100" align="center">
  151. <template slot-scope="scope">
  152. <div size="small">{{scope.row.commission}}</div>
  153. </template>
  154. </el-table-column>
  155. <el-table-column label="订单状态" prop="order_status_text" min-width="100" align="center">
  156. <template slot-scope="scope">
  157. <div size="small">{{scope.row.order_status_text}}</div>
  158. </template>
  159. </el-table-column>
  160. <el-table-column label="结算状态" prop="send_text" min-width="100" align="center">
  161. <template slot-scope="scope">
  162. <div size="small">{{scope.row.send_text}}</div>
  163. </template>
  164. </el-table-column>
  165. </el-table>
  166. <div style="text-align: right;margin: 20px 0;">
  167. <el-pagination @current-change="pagination" background layout="prev, pager, next" :page-count="pageCount"></el-pagination>
  168. </div>
  169. </div>
  170. </el-card>
  171. </div>
  172. <script>
  173. const app = new Vue({
  174. el: '#app',
  175. data() {
  176. return {
  177. status: 0,
  178. list: [],
  179. keyword: '',
  180. listLoading: false,
  181. page: 1,
  182. pageCount: 0,
  183. // dialogFormVisible : false, //充值弹窗
  184. lableLoading: false,
  185. btnLoading: false,
  186. addStatus: 1, //默认是增加
  187. // selectIndex : 0, //充值item的索引
  188. selectRow: {},
  189. form: {
  190. user_id: null,
  191. username: '',
  192. mobile: '',
  193. co_name: '',
  194. score: 0,
  195. content: ''
  196. },
  197. rules: {
  198. add_money: [{
  199. required: true,
  200. message: '请输入金额',
  201. trigger: 'change'
  202. }, ],
  203. },
  204. };
  205. },
  206. methods: {
  207. search() {
  208. this.page = 1;
  209. this.getList();
  210. },
  211. pagination(currentPage) {
  212. let self = this;
  213. self.page = currentPage;
  214. self.getList();
  215. },
  216. // 0.1 获取卡券列表
  217. getList() {
  218. let self = this;
  219. self.listLoading = true;
  220. request({
  221. params: {
  222. r: 'plugin/course/admin/income-log/list',
  223. page: self.page,
  224. keyword: this.keyword
  225. },
  226. method: 'get',
  227. }).then(e => {
  228. self.listLoading = false;
  229. self.list = e.data.data.list;
  230. self.pageCount = e.data.data.page_count;
  231. }).catch(e => {
  232. console.log(e);
  233. });
  234. }
  235. },
  236. mounted: function() {
  237. this.getList();
  238. }
  239. });
  240. </script>