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