index.vue 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="handlecase">
  3. <List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index"
  4. v-if="item.pendingStatus == 0" :sysType='sysType'>
  5. </List>
  6. <view class="emptyBox" v-if="caseList.length == 0">
  7. <luanqing-empty :show="true" textColor="#000"></luanqing-empty>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import List from './component/list.vue'
  13. import {
  14. respondentList,
  15. caseApplicationTj
  16. } from '../../api/handlecase/index.js'
  17. import LuanqingEmpty from "@/components/luanqing-empty.vue"
  18. export default {
  19. components: {
  20. List,
  21. 'luanqing-empty': LuanqingEmpty,
  22. },
  23. data() {
  24. return {
  25. caseList: [],
  26. pageNum: 1,
  27. pageSize: 10,
  28. sysType: null
  29. }
  30. },
  31. methods: {
  32. getList(parms) {
  33. if (this.sysType == 1) {
  34. respondentList(parms).then(res => {
  35. // this.caseList = res.rows;
  36. if (res.data) {
  37. this.caseList = res.data;
  38. } else {
  39. this.caseList = []
  40. }
  41. this.caseList.forEach(item => {
  42. switch (item.caseStatus) {
  43. case 0:
  44. item.caseStatusName = '立案申请'
  45. break;
  46. case 1:
  47. item.caseStatusName = '待缴费'
  48. break;
  49. case 2:
  50. item.caseStatusName = '待缴费确认'
  51. break;
  52. case 3:
  53. item.caseStatusName = '待确认是否应诉'
  54. break;
  55. case 4:
  56. item.caseStatusName = '待确认证据'
  57. break;
  58. case 5:
  59. item.caseStatusName = '待确定是否指派仲裁员'
  60. break;
  61. case 6:
  62. item.caseStatusName = '待组庭'
  63. break;
  64. case 7:
  65. item.caseStatusName = '待组庭确定'
  66. break;
  67. case 8:
  68. item.caseStatusName = '待组庭审核'
  69. break;
  70. case 9:
  71. item.caseStatusName = '待选择仲裁方式'
  72. break;
  73. case 10:
  74. item.caseStatusName = '待开庭'
  75. break;
  76. case 11:
  77. item.caseStatusName = '待生成仲裁文书'
  78. break;
  79. case 12:
  80. item.caseStatusName = '待确认仲裁文书'
  81. break;
  82. case 13:
  83. item.caseStatusName = '待仲裁文书用印'
  84. break;
  85. case 14:
  86. item.caseStatusName = '待仲裁文书用印审核'
  87. break;
  88. case 15:
  89. item.caseStatusName = '待仲裁文书送达'
  90. break;
  91. case 16:
  92. item.caseStatusName = '待案件归档'
  93. break;
  94. }
  95. })
  96. })
  97. } else if (this.sysType == 2) {
  98. parms.miniProgressFlag = 1;
  99. caseApplicationTj(parms).then(res => {
  100. // this.caseList = res.rows;
  101. if (res.rows) {
  102. this.caseList = res.rows;
  103. } else {
  104. this.caseList = []
  105. }
  106. })
  107. }
  108. },
  109. // 触底
  110. onReachBottom() {
  111. if (this.caseList.length < 1) {
  112. return
  113. }
  114. let obj = {
  115. pageNum: this.pageNum,
  116. pageSize: this.pageSize,
  117. caseStatus: 4
  118. }
  119. obj.pageNum = obj.pageNum + 1
  120. this.getList(obj)
  121. }
  122. },
  123. onShow() {
  124. this.sysType = uni.getStorageSync('sysType');
  125. let obj = {}
  126. if (this.sysType == 1) {
  127. obj = {
  128. pageNum: this.pageNum,
  129. pageSize: this.pageSize,
  130. caseStatus: 4
  131. }
  132. } else if (this.sysType == 2) {
  133. obj = {
  134. pageNum: this.pageNum,
  135. pageSize: this.pageSize,
  136. }
  137. }
  138. this.getList(obj)
  139. },
  140. // onLoad() {
  141. // let obj = {
  142. // pageNum: this.pageNum,
  143. // pageSize: this.pageSize,
  144. // caseStatus:4
  145. // }
  146. // this.getList(obj)
  147. // }
  148. }
  149. </script>
  150. <style lang="scss">
  151. .handlecase {
  152. .caseList {
  153. // height: 360rpx;
  154. // background-color: #ffffff;
  155. // border-radius: 30rpx;
  156. // margin-top: 20rpx;
  157. }
  158. }
  159. </style>