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