123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <view class="list">
  3. <view class="listItem">
  4. <view class="lable">
  5. 案件编号:
  6. </view>
  7. <view class="main">
  8. {{defalutVal.caseNum}}
  9. </view>
  10. </view>
  11. <view class="listItem" v-if="sysType == 1">
  12. <view class="lable">
  13. 申请人姓名:
  14. </view>
  15. <view class="main">
  16. {{defalutVal.applicantName}}
  17. </view>
  18. </view>
  19. <view class="listItem" v-if="sysType == 2">
  20. <view class="lable">
  21. 申请人姓名:
  22. </view>
  23. <view class="main">
  24. {{defalutVal.applicationName}}
  25. </view>
  26. </view>
  27. <view class="listItem" style="margin-top:22rpx">
  28. <view class="lable">
  29. 被申请人姓名:
  30. </view>
  31. <view class="main">
  32. {{defalutVal.respondentName}}
  33. </view>
  34. </view>
  35. <view class="listItem">
  36. <view class="lable">
  37. 案件状态:
  38. </view>
  39. <view class="main">
  40. {{defalutVal.caseStatusName}}
  41. </view>
  42. </view>
  43. <view class="btn" v-if="sysType == 2">
  44. <!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
  45. <button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
  46. <button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
  47. :key="item.id"
  48. v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
  49. <!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
  50. <button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
  51. <button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
  52. <button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button> -->
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import {
  58. queryCaseFlowInfo,
  59. caseAppSubmit
  60. } from '@/api/handlecase/index.js'
  61. export default {
  62. data() {
  63. return {
  64. }
  65. },
  66. props: {
  67. defalutVal: {
  68. type: Object,
  69. default: () => {}
  70. },
  71. sysType: {
  72. type: Number,
  73. default: () => {}
  74. },
  75. buttonList: {
  76. type: Array,
  77. default: () => {}
  78. }
  79. },
  80. methods: {
  81. /**点击列表按钮*/
  82. clickType(type) {
  83. if (type == 1) {
  84. // 提交案件
  85. this.onsubmitRow()
  86. } else if (type == 2) {
  87. // 缴费
  88. this.clickPay()
  89. } else if (type == 3 || type == 45) {
  90. // 确认缴费
  91. } else if (type == 4) {
  92. // 受理分配
  93. } else if (type == 5) {
  94. // 选择调解员
  95. this.caseDetail()
  96. } else if (type == 6) {
  97. // 核实调解员
  98. } else if (type == 7) {
  99. // 确认调解员
  100. } else if (type == 8) {
  101. // 确定调解时间
  102. } else if (type == 9) {
  103. // 调解
  104. } else if (type == 10) {
  105. // 确认调解书
  106. } else if (type == 11) {
  107. // 签名
  108. } else if (type == 12) {
  109. // 用印申请
  110. } else if (type == 13) {
  111. // 用印
  112. } else if (type == 14) {
  113. // 归档
  114. } else if (type == 15) {
  115. // 申请人签收
  116. } else if (type == 16) {
  117. // 被申请人签收
  118. } else if (type == 17) {
  119. //结束
  120. } else if (type == 44) {
  121. // 被申请人缴费
  122. this.clickPay()
  123. }
  124. },
  125. // 案件详情以及操作
  126. caseDetail() {
  127. uni.navigateTo({
  128. url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
  129. })
  130. },
  131. clickPay() {
  132. uni.navigateTo({
  133. url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
  134. })
  135. },
  136. /**提交案件*/
  137. onsubmitRow() {
  138. caseAppSubmit().then(res => {
  139. uni.showToast({
  140. title: '成功',
  141. icon: 'none',
  142. duration: 1000
  143. })
  144. this.$emit("getList");
  145. })
  146. },
  147. },
  148. created() {
  149. // this.getButtonList()
  150. }
  151. }
  152. </script>
  153. <style lang="scss" scoped>
  154. .list {
  155. padding: 15rpx;
  156. display: flex;
  157. flex-direction: column;
  158. background-color: #ffffff;
  159. border-radius: 30rpx;
  160. margin-top: 20rpx;
  161. .listItem {
  162. width: 100%;
  163. display: flex;
  164. height: 50rpx;
  165. .lable {
  166. width: 30%;
  167. }
  168. .main {
  169. width: 60%;
  170. }
  171. }
  172. .btn {
  173. margin-top: 20rpx;
  174. width: 100%;
  175. display: flex;
  176. justify-content: space-between;
  177. flex-wrap: wrap;
  178. .btnItem {
  179. height: 50rpx;
  180. background-color: #5395ff;
  181. border-radius: 10rpx;
  182. text-align: center;
  183. line-height: 50rpx;
  184. }
  185. }
  186. }
  187. </style>