list.vue 8.3KB

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