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