list.vue 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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(4)
  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(9)
  127. }
  128. },
  129. // 案件详情以及操作
  130. caseDetail() {
  131. uni.navigateTo({
  132. url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
  133. })
  134. },
  135. // 缴费
  136. clickPay(type) {
  137. uni.navigateTo({
  138. url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}&type=${type}`
  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. let onsubmitVal ={
  150. id : this.defalutVal.id,
  151. batchNumber:"",
  152. caseFlowId:this.defalutVal.caseFlowId
  153. }
  154. caseAppSubmit(onsubmitVal).then(res => {
  155. uni.showToast({
  156. title: '提交成功',
  157. icon: 'none',
  158. duration: 1000
  159. })
  160. uni.navigateBack({
  161. delta: 1
  162. })
  163. //this.$emit("getList");
  164. })
  165. },
  166. // 修改
  167. modify() {
  168. uni.navigateTo({
  169. url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
  170. })
  171. },
  172. /*删除*/
  173. deleteCase() {
  174. let objValue ={
  175. id : this.defalutVal.id,
  176. batchNumber:"",
  177. caseFlowId:this.defalutVal.caseFlowId
  178. }
  179. caseDelete(objValue).then(res =>{
  180. uni.showToast({
  181. title: '删除成功',
  182. icon: 'none',
  183. duration: 1000
  184. })
  185. uni.navigateBack({
  186. delta: 1
  187. })
  188. })
  189. },
  190. },
  191. created() {
  192. }
  193. }
  194. </script>
  195. <style lang="scss" scoped>
  196. .list {
  197. padding: 15rpx;
  198. display: flex;
  199. flex-direction: column;
  200. background-color: #ffffff;
  201. border-radius: 30rpx;
  202. margin-top: 20rpx;
  203. .listItem {
  204. width: 100%;
  205. display: flex;
  206. height: 50rpx;
  207. .lable {
  208. width: 30%;
  209. }
  210. .main {
  211. width: 60%;
  212. }
  213. }
  214. .btn {
  215. margin-top: 20rpx;
  216. width: 100%;
  217. display: flex;
  218. justify-content: space-between;
  219. flex-wrap: wrap;
  220. .btnItem {
  221. height: 50rpx;
  222. background-color: #5395ff;
  223. border-radius: 10rpx;
  224. text-align: center;
  225. line-height: 50rpx;
  226. }
  227. }
  228. }
  229. </style>