incomingTransferLog.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <template>
  2. <view class="">
  3. <public-module></public-module>
  4. <u-sticky h5-nav-height="0">
  5. <view class="headers dis a-c j-start">
  6. <u-icon name="arrow-left" color="#333" size="38" @click="back"></u-icon>
  7. <text style="margin: auto;">转入记录</text>
  8. </view>
  9. <view class="filterTime dis j-s a-c ">
  10. <view class=" dis a-c " @click="searchPopup">
  11. <text>{{pageQuery.startTime && pageQuery.endTime ? pageQuery.startTime + '-' + pageQuery.endTime : '时间筛选' }}</text>
  12. <text>▼</text>
  13. </view>
  14. <view class=" dis a-c " @click="statusFilterShow=true">
  15. <text>{{pageQuery.gradeName || "全部"}}</text>
  16. <text>▼</text>
  17. </view>
  18. </view>
  19. <view class="performance dis a-c j-c ">
  20. 共有 {{total.size}}条转入记录,累计转入{{total.totalAmount}}元
  21. </view>
  22. </u-sticky>
  23. <view class="content">
  24. <view class="item" v-for="(item, index) in transferRecords" @click="toReacors(item.id)" :key="index">
  25. <view class="info">
  26. <view class="name">{{ gradeText(item.grade) }}</view>
  27. <view class="time">{{ item.createTime }}</view>
  28. </view>
  29. <view class="amount">{{ item.amount }}</view>
  30. </view>
  31. </view>
  32. <!-- 筛选组件 -->
  33. <uni-Popup :show="statusFilterShow" @close='statusFilterShow=false' headerTitle="筛选状态" :statusList="tablist"
  34. contentType="status" @statusConfirm="statusFilterConfirm">
  35. </uni-Popup>
  36. <u-loadmore v-if="userlist.length!=0" :status="status" />
  37. <my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
  38. </view>
  39. </template>
  40. <script>
  41. import myDatePicker from '../components/todaydate-picker.vue';
  42. export default {
  43. components: {
  44. myDatePicker
  45. },
  46. data() {
  47. return {
  48. tablist: [],
  49. total: {},
  50. referrerInfo: {}, //个人信息
  51. userlist: [],
  52. pageQuery: {
  53. endTime: "",
  54. startTime: "",
  55. grade: "",
  56. gradeName: "",
  57. appStatus: '',
  58. pageNum: 1,
  59. pageSize: 10,
  60. },
  61. status: 'loadmore',
  62. totalPages: 0,
  63. parentStatus: "",
  64. transferRecords: [],
  65. statusFilterShow: false,
  66. quickOptions: [{
  67. label: "全部",
  68. value: null,
  69. },
  70. {
  71. label: "正常",
  72. value: "0",
  73. },
  74. {
  75. label: "已冻结",
  76. value: "1",
  77. },
  78. {
  79. label: "已失效",
  80. value: "2",
  81. }
  82. ],
  83. }
  84. },
  85. onReachBottom() {
  86. // if (this.pageQuery.pageNum >= this.totalPages) return;
  87. // this.status = 'loading';
  88. // this.pageQuery.pageNum = ++this.pageQuery.pageNum;
  89. // setTimeout(async () => {
  90. // let res = await this.$http.post('/newAppPartner/selectByIdList', this.pageQuery);
  91. // if (res.code == '200') {
  92. // this.userlist = [...this.userlist, ...res.data.list.records];
  93. // }
  94. // if (this.pageQuery.pageNum >= this.totalPages) this.status = 'nomore';
  95. // else this.status = 'loading';
  96. // }, 1000)
  97. },
  98. onLoad(options) {
  99. this.pageQuery.grade = options.grade;
  100. this.querydata();
  101. this.GradeListMap();
  102. },
  103. computed: {
  104. },
  105. methods: {
  106. async GradeListMap() {
  107. let res = await this.$http.get('/partner/getUserGradeListMap');
  108. if (res.code == 200) {
  109. this.tablist = res.data;
  110. this.tablist.map(val => {
  111. val.label = val.gradeName;
  112. return val;
  113. })
  114. console.log(this.tablist);
  115. }
  116. },
  117. gradeText(grade) {
  118. const gradeMap = {
  119. 1: '创始人',
  120. 2: '管理人',
  121. 3: '合伙人',
  122. 4: '工作室'
  123. }
  124. return gradeMap[grade] || ''
  125. },
  126. back() {
  127. uni.navigateBack({
  128. delta: 1, // 返回的页面数,如果是1表示返回上一页
  129. success: function() {}
  130. });
  131. },
  132. async querydata() {
  133. let res = await this.$http.post('/partnerExtractHistory/query', {
  134. ...this.pageQuery,
  135. })
  136. if (res.code == 200) {
  137. this.transferRecords = res.data.page.records;
  138. this.total = res.data.total;
  139. }
  140. },
  141. toReacors(id) {
  142. uni.navigateTo({
  143. url: "/pages/institutional/accountFreezeRecord?id=" + id + '&&grade=' + this.$route.query
  144. .grade + '&&type=2'
  145. })
  146. },
  147. //激活时间选择组件
  148. searchPopup() {
  149. this.$refs.datePicker.open()
  150. },
  151. //日期选择回调
  152. confirmPickDate(startdate, enddate) {
  153. this.pageQuery.startTime = startdate;
  154. this.pageQuery.endTime = enddate;
  155. },
  156. statusFilterConfirm(item) {
  157. console.log(item);
  158. this.pageQuery.grade = item.grade;
  159. this.pageQuery.gradeName = item.gradeName;
  160. this.querydata();
  161. this.statusFilterShow = false;
  162. },
  163. }
  164. }
  165. </script>
  166. <style lang="scss" scoped>
  167. .headers {
  168. width: 100%;
  169. z-index: 999999;
  170. padding: 30rpx;
  171. padding-top: 50px;
  172. background: linear-gradient(180deg, #D1EFFE 0%, #FFFFFF 100%);
  173. border-bottom: 1rpx solid #f2f2f2;
  174. text {
  175. font-size: 36rpx;
  176. font-weight: bold;
  177. color: #000;
  178. }
  179. .right {
  180. position: absolute;
  181. right: 30rpx;
  182. image {
  183. width: 28rpx;
  184. height: 28rpx;
  185. margin-right: 4rpx;
  186. }
  187. text {
  188. font-weight: 400;
  189. color: #000;
  190. font-size: 24rpx;
  191. }
  192. }
  193. }
  194. //业绩
  195. .performance {
  196. width: 100%;
  197. height: 60rpx;
  198. background: #EBF4FF;
  199. border-radius: 0rpx 0rpx 0rpx 0rpx;
  200. font-size: 30rpx;
  201. color: #2B67EF;
  202. }
  203. //时间筛选
  204. .filterTime {
  205. width: 100%;
  206. background: #fff;
  207. border-radius: 0rpx 0rpx 0rpx 0rpx;
  208. padding: 20rpx 30rpx;
  209. box-sizing: border-box;
  210. text:first-child {
  211. font-size: 26rpx;
  212. color: #333;
  213. }
  214. text:last-child {
  215. font-size: 19rpx;
  216. color: #666;
  217. margin-left: 4rpx;
  218. }
  219. }
  220. .content {
  221. margin: 20rpx 30rpx;
  222. box-sizing: border-box;
  223. background-color: #FFFFFF;
  224. border-radius: 10rpx 10rpx 10rpx 10rpx;
  225. padding: 30rpx;
  226. box-sizing: border-box;
  227. .item {
  228. display: flex;
  229. align-items: center;
  230. justify-content: space-between;
  231. padding: 24rpx 0 30rpx;
  232. border-bottom: 1rpx solid #eee;
  233. .info {
  234. .name {
  235. font-size: 30rpx;
  236. color: #333;
  237. }
  238. .time {
  239. font-size: 20rpx;
  240. color: #999;
  241. }
  242. }
  243. .amount {
  244. font-size: 30rpx;
  245. color: #333;
  246. font-weight: 500;
  247. }
  248. }
  249. }
  250. </style>