list.vue 5.2KB

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