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