list.vue 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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. uni.showModal({
  155. title: '提示',
  156. content: '您确定要提交案件',
  157. success: function (res) {
  158. if (res.confirm) {
  159. // console.log('用户点击确定');
  160. caseAppSubmit(onsubmitVal).then(res => {
  161. uni.showToast({
  162. title: '提交成功',
  163. icon: 'none',
  164. duration: 1000
  165. })
  166. uni.navigateTo({
  167. url:'/pages/handlecase/index'
  168. })
  169. })
  170. } else if (res.cancel) {
  171. // console.log('用户点击取消');
  172. }
  173. }
  174. });
  175. },
  176. // 修改
  177. modify() {
  178. uni.navigateTo({
  179. url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
  180. })
  181. },
  182. /*删除*/
  183. deleteCase() {
  184. let objValue ={
  185. id : this.defalutVal.id,
  186. batchNumber:"",
  187. caseFlowId:this.defalutVal.caseFlowId
  188. }
  189. uni.showModal({
  190. title: '提示',
  191. content: '您确定要删除案件',
  192. success: function (res) {
  193. if (res.confirm) {
  194. // console.log('用户点击确定');
  195. caseDelete(objValue).then(res =>{
  196. uni.showToast({
  197. title: '删除成功',
  198. icon: 'none',
  199. duration: 1000
  200. })
  201. uni.navigateTo({
  202. url:'/pages/handlecase/index'
  203. })
  204. })
  205. } else if (res.cancel) {
  206. // console.log('用户点击取消');
  207. }
  208. }
  209. });
  210. },
  211. },
  212. created() {
  213. }
  214. }
  215. </script>
  216. <style lang="scss" scoped>
  217. .list {
  218. padding: 15rpx;
  219. display: flex;
  220. flex-direction: column;
  221. background-color: #ffffff;
  222. border-radius: 30rpx;
  223. margin-top: 20rpx;
  224. .listItem {
  225. width: 100%;
  226. display: flex;
  227. height: 50rpx;
  228. .lable {
  229. width: 30%;
  230. }
  231. .main {
  232. width: 60%;
  233. }
  234. }
  235. .btn {
  236. margin-top: 20rpx;
  237. width: 100%;
  238. display: flex;
  239. justify-content: space-between;
  240. flex-wrap: wrap;
  241. .btnItem {
  242. height: 50rpx;
  243. background-color: #5395ff;
  244. border-radius: 10rpx;
  245. text-align: center;
  246. line-height: 50rpx;
  247. }
  248. }
  249. }
  250. </style>