应用层PC端前端服务

paymentList.vue 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. size="small"
  7. :inline="true"
  8. label-width="68px"
  9. >
  10. <el-form-item label="案件编号" prop="caseNum">
  11. <el-input
  12. v-model="queryParams.caseNum"
  13. placeholder="请输入案件编号"
  14. clearable
  15. @keyup.enter.native="handleQuery"
  16. />
  17. </el-form-item>
  18. <el-form-item label="案件状态" prop="caseStatus">
  19. <el-select
  20. v-model="queryParams.caseStatus"
  21. placeholder="请选择案件状态"
  22. clearable
  23. @keyup.enter.native="handleQuery"
  24. >
  25. <el-option
  26. v-for="dict in dict.type.case_status"
  27. :key="dict.value"
  28. :label="dict.label"
  29. :value="dict.value"
  30. ></el-option>
  31. </el-select>
  32. </el-form-item>
  33. <!-- <el-form-item label="立案日期" prop="registerDate">
  34. <el-date-picker
  35. v-model="queryParams.registerDate"
  36. type="daterange"
  37. range-separator="至"
  38. start-placeholder="开始日期"
  39. end-placeholder="结束日期"
  40. >
  41. </el-date-picker>
  42. </el-form-item> -->
  43. <el-form-item>
  44. <el-button
  45. type="primary"
  46. icon="el-icon-search"
  47. size="mini"
  48. @click="handleQuery"
  49. >搜索</el-button
  50. >
  51. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  52. >重置</el-button
  53. >
  54. </el-form-item>
  55. </el-form>
  56. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  57. <el-table-column label="序号" type="index" align="center">
  58. <template slot-scope="scope">
  59. <span>{{
  60. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  61. }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column
  65. label="案件编号"
  66. align="center"
  67. prop="caseNum"
  68. :show-overflow-tooltip="true"
  69. />
  70. <el-table-column
  71. label="案件标的"
  72. align="center"
  73. prop="caseSubjectAmount"
  74. />
  75. <el-table-column
  76. label="立案日期"
  77. align="center"
  78. prop="registerDate"
  79. :show-overflow-tooltip="true"
  80. />
  81. <!-- 缴费人 -->
  82. <!-- <el-table-column label="缴费人" align="center" prop="caseArbitrator" /> -->
  83. <el-table-column label="案件状态" align="center" prop="caseStatusName">
  84. <template slot-scope="scope">
  85. <el-tag type="warning">{{ scope.row.caseStatusName }}</el-tag>
  86. </template>
  87. </el-table-column>
  88. <el-table-column
  89. label="操作"
  90. align="center"
  91. class-name="small-padding fixed-width"
  92. >
  93. <template slot-scope="scope">
  94. <el-button
  95. size="mini"
  96. type="text"
  97. icon="el-icon-zoom-in"
  98. @click="paymentconfirmationRow(scope.row)"
  99. v-hasPermi="['monitor:online:forceLogout']"
  100. >缴费确认</el-button
  101. >
  102. <el-button
  103. size="mini"
  104. type="text"
  105. icon="el-icon-edit"
  106. @click="viewpaymentformRow(scope.row)"
  107. v-hasPermi="['monitor:online:forceLogout']"
  108. >查看缴费单</el-button
  109. >
  110. </template>
  111. </el-table-column>
  112. </el-table>
  113. <pagination
  114. v-show="total > 0"
  115. :total="total"
  116. :page.sync="queryParams.pageNum"
  117. :limit.sync="queryParams.pageSize"
  118. @pagination="getList"
  119. />
  120. <!-- 缴费确认数据详情 -->
  121. <paymentdetailsDialog
  122. :openDialog="openDialog"
  123. :detailform="detailform"
  124. :title="title"
  125. :flag="flag"
  126. :getList="getList"
  127. @cancelpaymentdetails="cancelpaymentdetails"
  128. ></paymentdetailsDialog>
  129. </div>
  130. </template>
  131. <script>
  132. import {
  133. caseApplicationList,
  134. selectCaseApplicationConfirm,
  135. casePay,
  136. } from "@/api/pay/pay";
  137. import paymentdetailsDialog from "./components/paymentdetailsDialog.vue";
  138. export default {
  139. name: "paymentList",
  140. dicts: ["case_status"],
  141. components: { paymentdetailsDialog },
  142. data() {
  143. return {
  144. queryParams: {
  145. caseNum: undefined,
  146. pageNum: 1,
  147. caseStatusList: [3],
  148. registerDate: "",
  149. pageSize: 10,
  150. },
  151. // 付款二维码
  152. paySrc: "",
  153. // 遮罩层
  154. loading: false,
  155. // 总条数
  156. total: 0,
  157. // 表格数据
  158. list: [],
  159. pageNum: 1,
  160. pageSize: 10,
  161. // 弹出层标题
  162. title: "",
  163. payTitle: "",
  164. // 是否显示弹出层
  165. open: false,
  166. openPay: false,
  167. // 弹出层内容
  168. form: {},
  169. // 校验表单
  170. rules: {},
  171. dataList: [],
  172. // 支付文字
  173. payMain: "",
  174. // 支付元素显示
  175. payFlag: false,
  176. // 案件id,案件实付金额
  177. payForm: {},
  178. detailform: {}, //缴费详情数据
  179. openDialog: false, //缴费详情数据弹框
  180. flag: null,
  181. };
  182. },
  183. created() {
  184. this.getList();
  185. },
  186. methods: {
  187. /** 搜索按钮操作 */
  188. handleQuery() {
  189. this.queryParams.pageNum = 1;
  190. this.getList();
  191. },
  192. /** 重置按钮操作 */
  193. resetQuery() {
  194. this.resetForm("queryForm");
  195. this.handleQuery();
  196. },
  197. // 查询列表数据
  198. getList() {
  199. this.loading = true;
  200. caseApplicationList(this.queryParams).then((response) => {
  201. this.dataList = response.rows;
  202. this.dataList.forEach((item) => {
  203. if (item.caseStatus == 1) {
  204. item.caseStatusName = "待缴费";
  205. }
  206. if (item.arbitratMethod == "1") {
  207. item.arbitratMethodName = "视频仲裁";
  208. } else if (item.arbitratMethod == "2") {
  209. item.arbitratMethodName = "书面仲裁";
  210. }
  211. });
  212. this.total = response.total;
  213. this.loading = false;
  214. });
  215. },
  216. // 缴费确认
  217. paymentconfirmationRow(row) {
  218. // console.log("缴费确认", row);
  219. this.getDetail({ id: row.id });
  220. this.openDialog = true;
  221. this.title = "缴费确认";
  222. this.flag = 0;
  223. },
  224. // 查看缴费单
  225. viewpaymentformRow(row) {
  226. // console.log("查看缴费单", row);
  227. this.getDetail({ id: row.id });
  228. this.openDialog = true;
  229. this.title = "缴费单详情";
  230. this.flag = 1;
  231. },
  232. // 关闭弹窗
  233. cancelpaymentdetails() {
  234. this.openDialog = false;
  235. },
  236. /** 查询详情 */
  237. getDetail(parms) {
  238. selectCaseApplicationConfirm(parms).then((res) => {
  239. // console.log(res,'resesrrsrrsrrsrsr');
  240. // if (res.data.caseStatus == 2) {
  241. // res.data.caseStatusName = "待缴费确认";
  242. // }
  243. this.detailform = res.data;
  244. });
  245. },
  246. },
  247. };
  248. </script>
  249. <style lang="scss" scoped>
  250. </style>