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