123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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" v-if="defalutVal.caseStatusName">
  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)">{{ 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 type="primary" class="btnItem" size="mini" @tap="caseDetails">案件详情</button>
  64. <button v-if="defalutVal.caseStatus==4 && checkPermi(['caseManagement:list:examin'])" class="btnItem" 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. caseDetails(){
  156. uni.navigateTo({
  157. url:`/pages/handlecase/component/caseDetails?id=${this.defalutVal.id}`
  158. })
  159. },
  160. // 缴费
  161. clickPay(type) {
  162. uni.navigateTo({
  163. url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}&type=${type}`
  164. })
  165. },
  166. // 确认缴费
  167. confirmPayments() {
  168. uni.navigateTo({
  169. url: `/pages/handlecase/component/confirmPayment?id=${this.defalutVal.id}&caseFlowId=${this.defalutVal.caseFlowId}`
  170. })
  171. },
  172. /**提交案件*/
  173. onsubmitRow() {
  174. let onsubmitVal = {
  175. id: this.defalutVal.id,
  176. batchNumber: "",
  177. caseFlowId: this.defalutVal.caseFlowId
  178. }
  179. uni.showModal({
  180. title: '提示',
  181. content: '您确定要提交案件',
  182. success: function(res) {
  183. if (res.confirm) {
  184. // console.log('用户点击确定');
  185. caseAppSubmit(onsubmitVal).then(res => {
  186. uni.showToast({
  187. title: '提交成功',
  188. icon: 'none',
  189. duration: 1000
  190. })
  191. uni.navigateTo({
  192. url: '/pages/handlecase/index'
  193. })
  194. })
  195. } else if (res.cancel) {
  196. // console.log('用户点击取消');
  197. }
  198. }
  199. });
  200. },
  201. // 修改
  202. modify() {
  203. uni.navigateTo({
  204. url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
  205. })
  206. },
  207. /*删除*/
  208. deleteCase() {
  209. let objValue = {
  210. id: this.defalutVal.id,
  211. batchNumber: "",
  212. caseFlowId: this.defalutVal.caseFlowId
  213. }
  214. uni.showModal({
  215. title: '提示',
  216. content: '您确定要删除案件',
  217. success: function(res) {
  218. if (res.confirm) {
  219. // console.log('用户点击确定');
  220. caseDelete(objValue).then(res => {
  221. uni.showToast({
  222. title: '删除成功',
  223. icon: 'none',
  224. duration: 1000
  225. })
  226. uni.navigateTo({
  227. url: '/pages/handlecase/index'
  228. })
  229. })
  230. } else if (res.cancel) {
  231. // console.log('用户点击取消');
  232. }
  233. }
  234. });
  235. },
  236. /**申请人签收*/
  237. signMediation() {
  238. let that = this;
  239. let objValue = {
  240. caseId: this.defalutVal.id,
  241. isSignApply: 1
  242. }
  243. uni.showModal({
  244. title: '提示',
  245. content: '您确定要签收',
  246. success: function(res) {
  247. if (res.confirm) {
  248. that.signingMediationAgreement(objValue)
  249. } else if (res.cancel) {
  250. // console.log('用户点击取消');
  251. }
  252. }
  253. });
  254. },
  255. /**被申请人签收*/
  256. receivedMediation() {
  257. let that = this;
  258. let objValue = {
  259. caseId: this.defalutVal.id,
  260. isSignRespon: 1
  261. }
  262. uni.showModal({
  263. title: '提示',
  264. content: '您确定要签收',
  265. success: function(res) {
  266. if (res.confirm) {
  267. that.signingMediationAgreement(objValue)
  268. } else if (res.cancel) {
  269. // console.log('用户点击取消');
  270. }
  271. }
  272. });
  273. },
  274. /**申请人和被申请人签收调解书接口*/
  275. signingMediationAgreement(val) {
  276. msCaseSign(val).then((res) => {
  277. uni.showToast({
  278. title: '签收成功',
  279. icon: 'none',
  280. duration: 1000
  281. })
  282. uni.navigateTo({
  283. url: '/pages/handlecase/index'
  284. })
  285. });
  286. },
  287. },
  288. created() {
  289. console.log(this.defalutVal)
  290. }
  291. }
  292. </script>
  293. <style lang="scss" scoped>
  294. .list {
  295. padding: 15rpx;
  296. display: flex;
  297. flex-direction: column;
  298. background-color: #ffffff;
  299. border-radius: 30rpx;
  300. margin-top: 20rpx;
  301. .listItem {
  302. width: 100%;
  303. display: flex;
  304. height: 50rpx;
  305. .lable {
  306. width: 30%;
  307. }
  308. .main {
  309. width: 60%;
  310. }
  311. }
  312. .btn {
  313. margin-top: 20rpx;
  314. width: 100%;
  315. display: flex;
  316. justify-content: space-between;
  317. flex-wrap: wrap;
  318. .btnItem {
  319. height: 50rpx;
  320. background-color: #5395ff;
  321. border-radius: 10rpx;
  322. text-align: center;
  323. line-height: 50rpx;
  324. }
  325. }
  326. }
  327. .textHidden{
  328. width: 300rpx;
  329. text-overflow: ellipsis;
  330. overflow: hidden;
  331. white-space: nowrap;
  332. }
  333. </style>