list.vue 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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="modify">修改</button>
  45. <!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
  46. <button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
  47. <button class="btnItem" type="primary" size="mini" v-for="(item) in buttonList" :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. } from '@/api/handlecase/index.js'
  60. export default {
  61. data() {
  62. return {
  63. buttonList: []
  64. }
  65. },
  66. props: {
  67. defalutVal: {
  68. type: Object,
  69. default: () => {}
  70. },
  71. sysType: {
  72. type: Number,
  73. default: () => {}
  74. }
  75. },
  76. methods: {
  77. // 案件详情以及操作
  78. caseDetail() {
  79. uni.navigateTo({
  80. url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
  81. })
  82. },
  83. clickPay() {
  84. uni.navigateTo({
  85. url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
  86. })
  87. },
  88. // 修改
  89. modify(){
  90. uni.redirectTo({
  91. url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
  92. })
  93. },
  94. /**查询按钮列表 */
  95. getButtonList() {
  96. queryCaseFlowInfo({
  97. pageNum: 1,
  98. pageSize: 100000
  99. }).then(res => {
  100. res.rows.forEach(item => {
  101. if (item.id != 11 && item.id != 17) {
  102. this.buttonList.push(item)
  103. }
  104. });
  105. })
  106. },
  107. },
  108. created() {
  109. this.getButtonList()
  110. }
  111. }
  112. </script>
  113. <style lang="scss" scoped>
  114. .list {
  115. padding: 15rpx;
  116. display: flex;
  117. flex-direction: column;
  118. background-color: #ffffff;
  119. border-radius: 30rpx;
  120. margin-top: 20rpx;
  121. .listItem {
  122. width: 100%;
  123. display: flex;
  124. height: 50rpx;
  125. .lable {
  126. width: 30%;
  127. }
  128. .main {
  129. width: 60%;
  130. }
  131. }
  132. .btn {
  133. margin-top: 20rpx;
  134. width: 100%;
  135. display: flex;
  136. justify-content: space-between;
  137. flex-wrap: wrap;
  138. .btnItem {
  139. height: 50rpx;
  140. background-color: #5395ff;
  141. border-radius: 10rpx;
  142. text-align: center;
  143. line-height: 50rpx;
  144. }
  145. }
  146. }
  147. </style>