|
|
@@ -1,6 +1,61 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div>
|
|
3
|
3
|
<el-dialog :title="operateTitle" :visible="operateVisable" @close="cancel" center :distroy-on-close="true">
|
|
|
4
|
+ <el-dialog width="40%" title="缴费详情" :visible.sync="payVisible" append-to-body>
|
|
|
5
|
+ <!-- 案件总金额 -->
|
|
|
6
|
+ <h3>案件总金额:{{ form.totalFee / 100 }}</h3>
|
|
|
7
|
+ <el-descriptions :title="'订单信息' + (index + 1)" v-for="(item, index) in form.caseApplicationList"
|
|
|
8
|
+ :key="index" border>
|
|
|
9
|
+ <el-descriptions-item label="案件编号">{{
|
|
|
10
|
+ item.caseNum
|
|
|
11
|
+ }}</el-descriptions-item>
|
|
|
12
|
+ <el-descriptions-item label="申请人">{{
|
|
|
13
|
+ item.caseAppName
|
|
|
14
|
+ }}</el-descriptions-item>
|
|
|
15
|
+ <el-descriptions-item label="案件标的">{{
|
|
|
16
|
+ item.caseSubjectAmount
|
|
|
17
|
+ }}</el-descriptions-item>
|
|
|
18
|
+ <el-descriptions-item label="案件应缴费用">{{
|
|
|
19
|
+ item.feePayable
|
|
|
20
|
+ }}</el-descriptions-item>
|
|
|
21
|
+ <el-descriptions-item label="被申请人">{{
|
|
|
22
|
+ item.caseResName
|
|
|
23
|
+ }}</el-descriptions-item>
|
|
|
24
|
+ <el-descriptions-item label="申请人仲裁诉求">{{
|
|
|
25
|
+ item.arbitratClaims
|
|
|
26
|
+ }}</el-descriptions-item>
|
|
|
27
|
+ </el-descriptions>
|
|
|
28
|
+ <div class="paySelectType">
|
|
|
29
|
+ <el-radio-group v-model="paySelect" @input="changPayType">
|
|
|
30
|
+ <el-radio :label="0">线上支付</el-radio>
|
|
|
31
|
+ <el-radio :label="1">线下支付</el-radio>
|
|
|
32
|
+ </el-radio-group>
|
|
|
33
|
+ </div>
|
|
|
34
|
+ <div class="payupload">
|
|
|
35
|
+ <span>上传支付凭证:</span>
|
|
|
36
|
+ <div class="uploadBtn">
|
|
|
37
|
+ <el-upload class="upload-demo" ref="upload" :action="UploadUrl()" :headers="headers"
|
|
|
38
|
+ :data="filedata" :on-remove="handleRemove" :on-change="beforeUpload" :on-success="handlSuccess"
|
|
|
39
|
+ :file-list="fileList">
|
|
|
40
|
+ <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
41
|
+ <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
|
|
42
|
+ </el-upload>
|
|
|
43
|
+ </div>
|
|
|
44
|
+ </div>
|
|
|
45
|
+ <div class="payType" v-if="paySelect == 0">
|
|
|
46
|
+ <span>请选择支付方式:</span>
|
|
|
47
|
+ <i class="iconfont icon-weixinzhifu" @click="pay(0)"></i>
|
|
|
48
|
+ <i class="iconfont icon-zhifubao" @click="pay(1)"></i>
|
|
|
49
|
+ </div>
|
|
|
50
|
+ <div class="payImg">
|
|
|
51
|
+ <div id="qrcodeImg"></div>
|
|
|
52
|
+ </div>
|
|
|
53
|
+ <div class="payTitle">{{ payMain }}</div>
|
|
|
54
|
+ <div slot="footer" class="dialog-footer">
|
|
|
55
|
+ <el-button @click="payCancel" class="endbutton"><span>取 消</span></el-button>
|
|
|
56
|
+ <el-button @click="submitUpload" type="primary" class="endbutton"><span>确认缴费</span></el-button>
|
|
|
57
|
+ </div>
|
|
|
58
|
+ </el-dialog>
|
|
4
|
59
|
<el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
|
|
5
|
60
|
<el-table-column type="selection">
|
|
6
|
61
|
</el-table-column>
|
|
|
@@ -35,9 +90,14 @@
|
|
35
|
90
|
:limit.sync="queryParamsData.pageSize" @pagination="getcaseApply(queryParamsData)" />
|
|
36
|
91
|
<div slot="footer" class="dialog-footer">
|
|
37
|
92
|
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
|
|
38
|
|
- <el-button @click="submitBatch" type="primary" class="endbutton" :disabled="dataList.length == 0"><span>确 认</span></el-button>
|
|
|
93
|
+ <el-button @click="submitPay" type="primary" class="endbutton"
|
|
|
94
|
+ :disabled="dataList.length == 0 || batchData.length == 0"
|
|
|
95
|
+ v-if="operateStatus == 6"><span>确认缴费</span></el-button>
|
|
|
96
|
+ <el-button @click="submitBatch" type="primary" class="endbutton"
|
|
|
97
|
+ :disabled="dataList.length == 0 || batchData.length == 0" v-else><span>确 认</span></el-button>
|
|
39
|
98
|
</div>
|
|
40
|
99
|
</el-dialog>
|
|
|
100
|
+
|
|
41
|
101
|
</div>
|
|
42
|
102
|
</template>
|
|
43
|
103
|
<script>
|
|
|
@@ -47,12 +107,16 @@ import {
|
|
47
|
107
|
removeCaseApply,
|
|
48
|
108
|
submitCaseApplicationCheck
|
|
49
|
109
|
} from "@/api/caseAccess/caseEntry";
|
|
|
110
|
+import { getPayDetail,confirmPayDig } from "@/api/pay/pay";
|
|
|
111
|
+import { casePay } from "@/api/pay/pay";
|
|
|
112
|
+import QRCode from "qrcodejs2";
|
|
|
113
|
+import { getToken } from "@/utils/auth";
|
|
50
|
114
|
import { writtenHear } from "@/api/caseManagement/caseManagement.js";
|
|
51
|
115
|
import {
|
|
52
|
116
|
adjudicationCaseFile,
|
|
53
|
117
|
} from "@/api/awardManagement/awardManagement";
|
|
54
|
118
|
export default {
|
|
55
|
|
- props: ["operateVisable", "operateData", "operateTitle", 'operateStatus','queryParams'],
|
|
|
119
|
+ props: ["operateVisable", "operateData", "operateTitle", 'operateStatus', 'queryParams'],
|
|
56
|
120
|
data() {
|
|
57
|
121
|
return {
|
|
58
|
122
|
// 遮罩层
|
|
|
@@ -68,7 +132,23 @@ export default {
|
|
68
|
132
|
// 表格数据
|
|
69
|
133
|
dataList: [],
|
|
70
|
134
|
batchData: [],
|
|
71
|
|
- radio:1
|
|
|
135
|
+ radio: 1,
|
|
|
136
|
+ payVisible: false,
|
|
|
137
|
+ form: {},
|
|
|
138
|
+ paySelect: 1,//支付线上/线下
|
|
|
139
|
+ headers: {
|
|
|
140
|
+ Authorization: "Bearer " + getToken(),
|
|
|
141
|
+ },
|
|
|
142
|
+ filedata: {
|
|
|
143
|
+ annexType: 8,
|
|
|
144
|
+ },
|
|
|
145
|
+ submitForm: {
|
|
|
146
|
+ payType: 1,
|
|
|
147
|
+ payOrderList: [],
|
|
|
148
|
+ caseIds:[]
|
|
|
149
|
+ },
|
|
|
150
|
+ payMain: "",
|
|
|
151
|
+ fileList: [],
|
|
72
|
152
|
};
|
|
73
|
153
|
},
|
|
74
|
154
|
watch: {
|
|
|
@@ -77,12 +157,98 @@ export default {
|
|
77
|
157
|
if (val) {
|
|
78
|
158
|
this.getcaseApply(this.queryParamsData)
|
|
79
|
159
|
}
|
|
|
160
|
+ },
|
|
|
161
|
+ payVisible(val) {
|
|
|
162
|
+ if (val) {
|
|
|
163
|
+ this.submitForm.payOrderList = []
|
|
|
164
|
+ this.paySelect = 1;
|
|
|
165
|
+ this.fileList = [];
|
|
|
166
|
+ }
|
|
80
|
167
|
}
|
|
81
|
168
|
},
|
|
82
|
169
|
created() {
|
|
83
|
170
|
|
|
84
|
171
|
},
|
|
85
|
172
|
methods: {
|
|
|
173
|
+ UploadUrl() {
|
|
|
174
|
+ return window.location.origin + "/API/evidence/upload";
|
|
|
175
|
+ },
|
|
|
176
|
+ beforeUpload(flie, fileList) {
|
|
|
177
|
+ this.fileList = fileList;
|
|
|
178
|
+ },
|
|
|
179
|
+ handleRemove(file, fileList) {
|
|
|
180
|
+ (this.submitForm.payOrderList = []),
|
|
|
181
|
+ fileList.forEach((item) => {
|
|
|
182
|
+ console.log(item.response.data, "item");
|
|
|
183
|
+ this.submitForm.payOrderList.push({ annexId: item.response.data.annexId, annexName: item.response.data.annexName });
|
|
|
184
|
+ });
|
|
|
185
|
+ },
|
|
|
186
|
+ // 文件上传成功
|
|
|
187
|
+ handlSuccess(res, file) {
|
|
|
188
|
+ this.submitForm.payOrderList.push({
|
|
|
189
|
+ annexId: res.data.annexId,
|
|
|
190
|
+ annexName: res.data.annexName
|
|
|
191
|
+ });
|
|
|
192
|
+ },
|
|
|
193
|
+ //选择支付方式(线上,线下)
|
|
|
194
|
+ changPayType(data) {
|
|
|
195
|
+ if (data == 1) {
|
|
|
196
|
+ document.getElementById("qrcodeImg").innerHTML = "";
|
|
|
197
|
+ this.payMain = ""
|
|
|
198
|
+ }
|
|
|
199
|
+ this.submitForm.payType = data;
|
|
|
200
|
+ },
|
|
|
201
|
+ pay(val) {
|
|
|
202
|
+ if (this.form.totalFee == 0 || !this.form.totalFee) {
|
|
|
203
|
+ this.$message({
|
|
|
204
|
+ message: "此案件无需缴费",
|
|
|
205
|
+ type: "error",
|
|
|
206
|
+ });
|
|
|
207
|
+ return;
|
|
|
208
|
+ }
|
|
|
209
|
+ let payType = "";
|
|
|
210
|
+ if (val == 0) {
|
|
|
211
|
+ payType = "wxpay";
|
|
|
212
|
+ this.payMain = "请使用微信扫二维码支付";
|
|
|
213
|
+ } else if (val == 1) {
|
|
|
214
|
+ payType = "alipay";
|
|
|
215
|
+ this.payMain = "请使用支付宝扫二维码支付";
|
|
|
216
|
+ }
|
|
|
217
|
+ casePay({
|
|
|
218
|
+ totalFee: this.form.totalFee,
|
|
|
219
|
+ caseIds: this.batchData,
|
|
|
220
|
+ tradeType: "native",
|
|
|
221
|
+ platform: payType,
|
|
|
222
|
+ }).then((res) => {
|
|
|
223
|
+ this.paySrc = res.data.code_url;
|
|
|
224
|
+ this.qrcode(this.paySrc);
|
|
|
225
|
+ });
|
|
|
226
|
+ },
|
|
|
227
|
+ // 生成二维码
|
|
|
228
|
+ qrcode(url) {
|
|
|
229
|
+ // 前端根据 URL 生成微信支付二维码
|
|
|
230
|
+ document.getElementById("qrcodeImg").innerHTML = "";
|
|
|
231
|
+ return new QRCode("qrcodeImg", {
|
|
|
232
|
+ width: 200,
|
|
|
233
|
+ height: 200,
|
|
|
234
|
+ text: url,
|
|
|
235
|
+ colorDark: "#000",
|
|
|
236
|
+ colorLight: "#fff",
|
|
|
237
|
+ });
|
|
|
238
|
+ },
|
|
|
239
|
+ submitUpload() {
|
|
|
240
|
+ if (this.fileList.length < 1) {
|
|
|
241
|
+ this.$modal.msgError("请上传缴费凭证");
|
|
|
242
|
+ return
|
|
|
243
|
+ }
|
|
|
244
|
+ this.submitForm.caseIds = this.batchData;
|
|
|
245
|
+ console.log(this.submitForm,"LLLLLLLLLLLLLLLLLLLLLLLLLLLL");
|
|
|
246
|
+ confirmPayDig(this.submitForm).then(res => {
|
|
|
247
|
+ this.$modal.msgSuccess("成功");
|
|
|
248
|
+ this.payCancel();
|
|
|
249
|
+ this.getcaseApply(this.queryParamsData);
|
|
|
250
|
+ })
|
|
|
251
|
+ },
|
|
86
|
252
|
// 选择勾选框
|
|
87
|
253
|
handleSelectionChange(val) {
|
|
88
|
254
|
this.batchData = [];
|
|
|
@@ -90,6 +256,10 @@ export default {
|
|
90
|
256
|
this.batchData.push(item.id)
|
|
91
|
257
|
})
|
|
92
|
258
|
},
|
|
|
259
|
+ payCancel() {
|
|
|
260
|
+ this.payVisible = false;
|
|
|
261
|
+ this.payMain = "";
|
|
|
262
|
+ },
|
|
93
|
263
|
cancel() {
|
|
94
|
264
|
this.$emit("cancelOperate");
|
|
95
|
265
|
},
|
|
|
@@ -100,17 +270,29 @@ export default {
|
|
100
|
270
|
} else if (this.operateStatus == 1) {
|
|
101
|
271
|
this.removeCaseApplyFn({ ids: this.batchData })
|
|
102
|
272
|
} else if (this.operateStatus == 2) {
|
|
103
|
|
- this.submitCaseApplicationCheckFn({ ids: this.batchData,agreeOrNotCheck:this.radio })
|
|
104
|
|
- }else if (this.operateStatus == 3) {
|
|
|
273
|
+ this.submitCaseApplicationCheckFn({ ids: this.batchData, agreeOrNotCheck: this.radio })
|
|
|
274
|
+ } else if (this.operateStatus == 3) {
|
|
105
|
275
|
this.adjudicationCaseFileFn({ ids: this.batchData })
|
|
106
|
|
- }else if (this.operateStatus == 4) {
|
|
|
276
|
+ } else if (this.operateStatus == 4) {
|
|
107
|
277
|
// this.adjudicationCaseFileFn({ ids: this.batchData })
|
|
108
|
|
- this.writtenHearFn({ids: this.batchData})
|
|
109
|
|
- }else if (this.operateStatus == 5) {
|
|
|
278
|
+ this.writtenHearFn({ ids: this.batchData })
|
|
|
279
|
+ } else if (this.operateStatus == 5) {
|
|
110
|
280
|
// this.adjudicationCaseFileFn({ ids: this.batchData })
|
|
111
|
281
|
// this.writtenHearFn({ids: this.batchData})
|
|
112
|
282
|
}
|
|
113
|
283
|
},
|
|
|
284
|
+ // 批量缴费弹窗
|
|
|
285
|
+ submitPay() {
|
|
|
286
|
+ this.payVisible = true;
|
|
|
287
|
+ this.getPayDetailFn({ caseIds: this.batchData })
|
|
|
288
|
+ },
|
|
|
289
|
+ // 查询缴费信息
|
|
|
290
|
+ getPayDetailFn(params) {
|
|
|
291
|
+ getPayDetail(params).then(res => {
|
|
|
292
|
+ this.form = res.data;
|
|
|
293
|
+ document.getElementById("qrcodeImg").innerHTML = "";
|
|
|
294
|
+ })
|
|
|
295
|
+ },
|
|
114
|
296
|
// 批量提交
|
|
115
|
297
|
submitCaseApplyFn(data) {
|
|
116
|
298
|
submitCaseApply(data).then(res => {
|
|
|
@@ -128,24 +310,24 @@ export default {
|
|
128
|
310
|
})
|
|
129
|
311
|
},
|
|
130
|
312
|
// 批量立案审查
|
|
131
|
|
- submitCaseApplicationCheckFn(data){
|
|
132
|
|
- submitCaseApplicationCheck(data).then(res=>{
|
|
|
313
|
+ submitCaseApplicationCheckFn(data) {
|
|
|
314
|
+ submitCaseApplicationCheck(data).then(res => {
|
|
133
|
315
|
this.$modal.msgSuccess("立案审查成功");
|
|
134
|
316
|
this.cancel();
|
|
135
|
317
|
this.$emit("getcaseApply", this.queryParams);
|
|
136
|
318
|
})
|
|
137
|
319
|
},
|
|
138
|
320
|
//批量归档
|
|
139
|
|
- adjudicationCaseFileFn(data){
|
|
140
|
|
- adjudicationCaseFile(data).then(res=>{
|
|
|
321
|
+ adjudicationCaseFileFn(data) {
|
|
|
322
|
+ adjudicationCaseFile(data).then(res => {
|
|
141
|
323
|
this.$modal.msgSuccess("归档成功");
|
|
142
|
324
|
this.cancel();
|
|
143
|
325
|
this.$emit("getcaseApply", this.queryParams);
|
|
144
|
326
|
})
|
|
145
|
327
|
},
|
|
146
|
328
|
// 批量生成裁决书
|
|
147
|
|
- writtenHearFn(data){
|
|
148
|
|
- writtenHear(data).then(res=>{
|
|
|
329
|
+ writtenHearFn(data) {
|
|
|
330
|
+ writtenHear(data).then(res => {
|
|
149
|
331
|
this.$modal.msgSuccess("生成成功");
|
|
150
|
332
|
this.cancel();
|
|
151
|
333
|
this.$emit("getcaseApply", this.queryParams);
|
|
|
@@ -160,12 +342,14 @@ export default {
|
|
160
|
342
|
this.queryParamsData.caseStatus = 0
|
|
161
|
343
|
} else if (this.operateStatus == 2) {
|
|
162
|
344
|
this.queryParamsData.caseStatus = 1
|
|
163
|
|
- }else if (this.operateStatus == 3) {
|
|
|
345
|
+ } else if (this.operateStatus == 3) {
|
|
164
|
346
|
this.queryParamsData.caseStatus = 16
|
|
165
|
|
- }else if (this.operateStatus == 4) {
|
|
|
347
|
+ } else if (this.operateStatus == 4) {
|
|
166
|
348
|
this.queryParamsData.caseStatus = 9
|
|
167
|
|
- }else if (this.operateStatus == 5) {
|
|
|
349
|
+ } else if (this.operateStatus == 5) {
|
|
168
|
350
|
this.queryParamsData.caseStatus = 11
|
|
|
351
|
+ } else if (this.operateStatus == 6) {
|
|
|
352
|
+ this.queryParamsData.caseStatus = 2
|
|
169
|
353
|
}
|
|
170
|
354
|
caseApply(val).then((response) => {
|
|
171
|
355
|
this.dataList = response.rows;
|
|
|
@@ -182,7 +366,50 @@ export default {
|
|
182
|
366
|
display: flex;
|
|
183
|
367
|
flex-wrap: wrap;
|
|
184
|
368
|
}
|
|
185
|
|
-.radiobox{
|
|
|
369
|
+
|
|
|
370
|
+.radiobox {
|
|
186
|
371
|
margin-top: 30px;
|
|
187
|
372
|
}
|
|
|
373
|
+
|
|
|
374
|
+.paySelectType {
|
|
|
375
|
+ margin: 20px 0 20px 0;
|
|
|
376
|
+}
|
|
|
377
|
+
|
|
|
378
|
+.payupload {
|
|
|
379
|
+ display: flex;
|
|
|
380
|
+ margin-bottom: 20px;
|
|
|
381
|
+}
|
|
|
382
|
+
|
|
|
383
|
+.payImg {
|
|
|
384
|
+ width: 100%;
|
|
|
385
|
+ display: flex;
|
|
|
386
|
+ justify-content: center;
|
|
|
387
|
+}
|
|
|
388
|
+
|
|
|
389
|
+.payTitle {
|
|
|
390
|
+ margin-top: 20px;
|
|
|
391
|
+ width: 100%;
|
|
|
392
|
+ text-align: center;
|
|
|
393
|
+}
|
|
|
394
|
+.payType {
|
|
|
395
|
+ height: 80px;
|
|
|
396
|
+ line-height: 80px;
|
|
|
397
|
+ display: flex;
|
|
|
398
|
+
|
|
|
399
|
+ .icon-weixinzhifu {
|
|
|
400
|
+ font-size: 24px;
|
|
|
401
|
+ color: #27a56f;
|
|
|
402
|
+ margin-right: 15px;
|
|
|
403
|
+ }
|
|
|
404
|
+
|
|
|
405
|
+ .icon-zhifubao {
|
|
|
406
|
+ font-size: 24px;
|
|
|
407
|
+ color: #1d76cc;
|
|
|
408
|
+ }
|
|
|
409
|
+}
|
|
|
410
|
+::v-deep .el-dialog__body{
|
|
|
411
|
+ max-height: 600px;
|
|
|
412
|
+ overflow-y: scroll;
|
|
|
413
|
+
|
|
|
414
|
+}
|
|
188
|
415
|
</style>
|