123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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" size="mini" v-for="(item) in buttonList" :key="item.id"
  47. v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
  48. <!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
  49. <button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
  50. <button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
  51. <button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button> -->
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. import {
  57. queryCaseFlowInfo
  58. } from '@/api/handlecase/index.js'
  59. export default {
  60. data() {
  61. return {
  62. buttonList: []
  63. }
  64. },
  65. props: {
  66. defalutVal: {
  67. type: Object,
  68. default: () => {}
  69. },
  70. sysType: {
  71. type: Number,
  72. default: () => {}
  73. }
  74. },
  75. methods: {
  76. // 案件详情以及操作
  77. caseDetail() {
  78. uni.navigateTo({
  79. url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
  80. })
  81. },
  82. clickPay() {
  83. uni.navigateTo({
  84. url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
  85. })
  86. },
  87. /**查询按钮列表 */
  88. getButtonList() {
  89. queryCaseFlowInfo({
  90. pageNum: 1,
  91. pageSize: 100000
  92. }).then(res => {
  93. res.rows.forEach(item => {
  94. if (item.id != 11 && item.id != 17) {
  95. this.buttonList.push(item)
  96. }
  97. });
  98. })
  99. },
  100. },
  101. created() {
  102. this.getButtonList()
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. .list {
  108. padding: 15rpx;
  109. display: flex;
  110. flex-direction: column;
  111. background-color: #ffffff;
  112. border-radius: 30rpx;
  113. margin-top: 20rpx;
  114. .listItem {
  115. width: 100%;
  116. display: flex;
  117. height: 50rpx;
  118. .lable {
  119. width: 30%;
  120. }
  121. .main {
  122. width: 60%;
  123. }
  124. }
  125. .btn {
  126. margin-top: 20rpx;
  127. width: 100%;
  128. display: flex;
  129. justify-content: space-between;
  130. flex-wrap: wrap;
  131. .btnItem {
  132. height: 50rpx;
  133. background-color: #5395ff;
  134. border-radius: 10rpx;
  135. text-align: center;
  136. line-height: 50rpx;
  137. }
  138. }
  139. }
  140. </style>