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