index.vue 4.1KB

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