83a1b563
Andy
add 欠费补缴 前端页面
|
1
2
3
4
5
|
<template>
<div>
<div class="serch-wrap">
<el-row :gutter="20">
<el-form ref="form" :model="form" label-width="60px" label-position="left">
|
50ae39a5
Andy
add bug修复
|
6
|
<el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="7">
|
255542b3
王飞
补缴
|
7
8
9
10
11
12
13
14
15
|
<el-form-item label="公司">
<el-select v-model="form.orgId" placeholder="请选择公司">
<el-option v-for="item in orgs" :label="item.orgName" :value="item.orgId"/>
</el-select>
</el-form-item>
</el-col>
|
50ae39a5
Andy
add bug修复
|
16
|
<el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="7">
|
83a1b563
Andy
add 欠费补缴 前端页面
|
17
|
<el-form-item label="车牌">
|
e20c3c91
王飞
carNum
|
18
|
<el-input v-model="form.carNum" maxlength="10" />
|
83a1b563
Andy
add 欠费补缴 前端页面
|
19
20
|
</el-form-item>
</el-col>
|
50ae39a5
Andy
add bug修复
|
21
|
<el-col :xs="8" :sm="6" :md="3" :lg="3" :xl="3">
|
83a1b563
Andy
add 欠费补缴 前端页面
|
22
23
24
25
26
27
28
|
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-col>
</el-form>
</el-row>
</div>
<div class="table-wrap">
|
83e23298
王飞
补缴
|
29
|
<el-row :gutter="20">
|
50ae39a5
Andy
add bug修复
|
30
|
<el-col :xs="8" :sm="6" :md="3" :lg="22" :xl="22">
|
83e23298
王飞
补缴
|
31
32
|
<p class="table-title">订单详情</p>
</el-col>
|
50ae39a5
Andy
add bug修复
|
33
|
<el-col :xs="8" :sm="3" :md="3" :lg="2" :xl="2">
|
83e23298
王飞
补缴
|
34
35
36
|
<el-button style="margin-top: 8px" size="small" type="primary" @click="toBackSubmit">补缴</el-button>
</el-col>
</el-row>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
37
38
39
|
<el-table
:data="orderData"
style="width: 100%;"
|
d36d4859
王富生
提交bug
|
40
41
42
|
v-loading="loading"
element-loading-text="数据加载中..."
element-loading-spinner="el-icon-loading"
|
83e23298
王飞
补缴
|
43
44
45
46
47
|
:show-overflow-tooltip="true"
@selection-change="handleSelectionChange">
<el-table-column
type="selection">
</el-table-column>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
48
|
<el-table-column
|
83e23298
王飞
补缴
|
49
|
prop="plName"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
50
51
52
53
|
label="停车场"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
54
|
prop="carNumber"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
55
56
57
58
|
label="车牌"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
|
255542b3
王飞
补缴
|
59
60
|
prop="arrearageFee"
label="欠费金额">
|
83e23298
王飞
补缴
|
61
|
<template slot-scope="scope">
|
255542b3
王飞
补缴
|
62
|
<span>{{(scope.row.arrearageFee) |fen2Yuan}} </span>
|
83e23298
王飞
补缴
|
63
|
</template>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
64
65
|
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
66
67
|
prop="parkInTime"
label="入场时间"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
68
|
:show-overflow-tooltip="true">
|
83e23298
王飞
补缴
|
69
70
71
|
<template slot-scope="scope">
<span>{{(scope.row.parkInTime) |string2Date(7)}} </span>
</template>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
72
73
|
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
74
|
prop="parkOutTime"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
75
76
|
label="出场时间"
:show-overflow-tooltip="true">
|
83e23298
王飞
补缴
|
77
78
79
|
<template slot-scope="scope">
<span>{{(scope.row.parkOutTime) |string2Date(7)}} </span>
</template>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
80
81
|
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
82
|
prop="parkingDuration"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
83
84
|
label="停车时长"
:show-overflow-tooltip="true">
|
83e23298
王飞
补缴
|
85
86
87
|
<template slot-scope="scope">
<span>{{(scope.row) |parkingDurationFormatter(scope.row.parkingDuration)}} </span>
</template>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
88
89
|
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
90
|
prop="berthNo"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
91
92
93
|
label="泊位编号">
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
94
|
prop="orderState"
|
83a1b563
Andy
add 欠费补缴 前端页面
|
95
|
label="订单状态">
|
83e23298
王飞
补缴
|
96
97
98
|
<template slot-scope="scope">
<span>{{(scope.row) |inOutStateFormatter}} </span>
</template>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
99
100
101
102
103
104
|
</el-table-column>
</el-table>
<el-pagination
:page-size="10"
:pager-count="11"
layout="prev, pager, next"
|
83e23298
王飞
补缴
|
105
106
107
108
109
110
|
:total="total"
@size-change="handleSizeChange"
@current-change="handleSizeChange"
@prev-click="handleSizeChange"
@next-click="handleSizeChange"
>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
111
112
|
</el-pagination>
</div>
|
83e23298
王飞
补缴
|
113
114
115
116
117
118
|
<!--补缴对话框-->
<el-dialog
title="补缴"
:visible.sync="dialogVisible"
width="30%"
:close-on-click-modal="false">
|
3e8809f2
王飞
补缴-二维码
|
119
120
121
122
|
<!--<div>-->
<!--<img style="display: block;width: 100%" :src="url" >-->
<!--</div>-->
|
2ed00cc9
Andy
首页 banner 更换icon ...
|
123
|
<div style="position: relative;height: 150px" >
|
3e8809f2
王飞
补缴-二维码
|
124
|
<div id="qrcode"></div>
|
2ed00cc9
Andy
首页 banner 更换icon ...
|
125
|
<div class="qecode_Bg"></div>
|
255542b3
王飞
补缴
|
126
|
</div>
|
83e23298
王飞
补缴
|
127
|
<span slot="footer" class="dialog-footer">
|
3e8809f2
王飞
补缴-二维码
|
128
|
<el-button type="primary" @click="onBack">确 定</el-button>
|
83e23298
王飞
补缴
|
129
130
131
|
</span>
</el-dialog>
|
83a1b563
Andy
add 欠费补缴 前端页面
|
132
133
134
135
|
</div>
</template>
<script>
|
255542b3
王飞
补缴
|
136
|
import {pageQueryArrearRecordByCondition,selectAllAppOrg,personOrderBackWxPay } from '@/api/index';
|
83e23298
王飞
补缴
|
137
|
import {fen2Yuan,string2Date,inOutStateFormatter,parkingDurationFormatter} from '@/filters/index';
|
3e8809f2
王飞
补缴-二维码
|
138
|
import QRCode from 'qrcodejs2' // 引入qrcode
|
83e23298
王飞
补缴
|
139
140
141
142
|
export default {
data() {
return {
form: {
|
255542b3
王飞
补缴
|
143
|
orgId:null,
|
83e23298
王飞
补缴
|
144
145
146
|
plNos: null,
carNum: null,
|
83a1b563
Andy
add 欠费补缴 前端页面
|
147
|
},
|
d36d4859
王富生
提交bug
|
148
|
loading:false,
|
255542b3
王飞
补缴
|
149
|
orgs:[],
|
83e23298
王飞
补缴
|
150
151
|
total: 0,
currentPage: 1,
|
dcf87b64
Andy
table bug修复
|
152
|
pageSize: 6,
|
83e23298
王飞
补缴
|
153
154
155
156
|
orderData: [
],
multipleSelection:[],
dialogVisible:false,
|
3e8809f2
王飞
补缴-二维码
|
157
|
url:'http://img.renniting.cn/group1/M00/35/07/rBABHF0fHpOAGw2BAAF_F0CXpIA340.png',
|
83e23298
王飞
补缴
|
158
|
}
|
83a1b563
Andy
add 欠费补缴 前端页面
|
159
|
},
|
83e23298
王飞
补缴
|
160
|
mounted: function() {
|
255542b3
王飞
补缴
|
161
|
this.selectAllAppOrg();
|
83e23298
王飞
补缴
|
162
|
|
83e23298
王飞
补缴
|
163
164
|
},
methods: {
|
3e8809f2
王飞
补缴-二维码
|
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
qrcode :function(url) {
let qrcode = new QRCode('qrcode', {
width: 100,
height: 100, // 高度
text: url,// 二维码内容
// render: 'canvas' // 设置渲染方式(有两种方式 table和canvas,默认是canvas)
// background: '#f0f'
// foreground: '#ff0'
})
console.log(qrcode)
},
clearCode:function(){
var qrcodes=document.getElementById('qrcode');
if(qrcodes != null && qrcodes.innerHTML != '' && qrcodes.innerHTML!= null){
qrcodes.innerHTML = '';
}
},
|
83e23298
王飞
补缴
|
184
|
/**
|
255542b3
王飞
补缴
|
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
*获取所有组织下拉框
*/
selectAllAppOrg:function(){
let req = {};
selectAllAppOrg (req).then(response =>{
if(response.code=='8888'){
this.orgs = response.data;
this.form.orgId = response.data[0].orgId;
this.pageQueryArrearRecordByCondition();
}else{
console.log(response);
}
});
},
/**
|
83e23298
王飞
补缴
|
201
202
203
|
* 获取查询参数
*/
getQueryParams: function() {
|
255542b3
王飞
补缴
|
204
205
206
207
|
if(this.form.orgId == undefined || this.form.orgId == null){
console.log("orgId为空");
return;
}
|
83e23298
王飞
补缴
|
208
209
210
211
212
213
|
let userInfo = this.$store.state.user.userInfo;
let plNos = [];
if(this.form.plNos != null && this.form.plNos != ''){
plNos.push(this.form.plNos);
}
let req = {
|
3446aad6
王飞
custId
|
214
215
|
custId:userInfo.custId,
//custId:'501519113641649119232',
|
83e23298
王飞
补缴
|
216
217
|
orderStates:[52],
plNos:plNos,
|
255542b3
王飞
补缴
|
218
|
orgId:this.form.orgId,
|
83e23298
王飞
补缴
|
219
220
221
222
223
224
225
|
carNum:this.form.carNum,
}
return req;
},
/**
* 查询订单信息
*/
|
255542b3
王飞
补缴
|
226
|
pageQueryArrearRecordByCondition: function() {
|
83e23298
王飞
补缴
|
227
228
229
230
231
232
|
let req = this.getQueryParams();
req.baseRequest={
pageNum:this.currentPage,
pageSize:this.pageSize,
},
|
255542b3
王飞
补缴
|
233
|
pageQueryArrearRecordByCondition (req).then(response =>{
|
83e23298
王飞
补缴
|
234
235
236
|
if(response.code=='8888'){
this.orderData = response.data.dataList;
this.total = response.data.pageTotals;
|
d36d4859
王富生
提交bug
|
237
|
this.loading=false;
|
83e23298
王飞
补缴
|
238
239
240
241
242
243
244
245
246
247
248
|
}else{
console.log(response);
}
});
},
// 获取子组件页码方法
handleSizeChange: function(page) {
console.log(page)
this.currentPage = page;
/** 调用表格数据.*/
|
255542b3
王飞
补缴
|
249
|
this.pageQueryArrearRecordByCondition();
|
83e23298
王飞
补缴
|
250
251
252
253
254
255
256
257
|
},
//多选
handleSelectionChange:function(val) {
this.multipleSelection = val;
},
toBackSubmit:function(){
|
3e8809f2
王飞
补缴-二维码
|
258
|
this.clearCode();
|
83e23298
王飞
补缴
|
259
260
261
262
263
264
265
266
|
let selects = this.multipleSelection;
if(selects == null || selects.length < 1){
this.$message({
message: '请至少选择一行数据!',
type: 'warning'
});
return;
}
|
255542b3
王飞
补缴
|
267
268
|
let orders = [];
let orgIds = [];
|
83e23298
王飞
补缴
|
269
|
selects.forEach(item=>{
|
3e8809f2
王飞
补缴-二维码
|
270
|
orders.push({orderId:item.orderId,parkId:item.plNo,orderNotPayFee:item.arrearageFee,sourceType:1});
|
255542b3
王飞
补缴
|
271
|
orgIds.push(item.orgId);
|
83e23298
王飞
补缴
|
272
|
});
|
255542b3
王飞
补缴
|
273
274
275
276
277
278
279
280
281
282
283
284
285
|
if(orders == null || orders.length < 1){
this.$message({
message: '请至少选择一行数据!',
type: 'warning'
});
return;
}
let req ={
sysCode:'10003',
payType:2,
paySrcType:103,
terminalSource:9,
|
3e8809f2
王飞
补缴-二维码
|
286
|
carNumber:'京A11111',
|
255542b3
王飞
补缴
|
287
288
289
290
291
292
|
recordArreaInfos:JSON.stringify(orders)
};
// req = JSON.stringify(req);
//调用后台接口获取二维码信息
personOrderBackWxPay(req).then(response =>{
if(response.code=='8888'){
|
3e8809f2
王飞
补缴-二维码
|
293
294
295
296
297
298
|
let data = response.data;
data = JSON.parse(data);
let url = data.data.code_url;
console.log(url);
//this.url = url;
this.qrcode(url);
|
255542b3
王飞
补缴
|
299
300
|
}else{
console.log(response);
|
3e8809f2
王飞
补缴-二维码
|
301
|
|
255542b3
王飞
补缴
|
302
303
304
|
}
});
|
83e23298
王飞
补缴
|
305
306
307
308
|
this.dialogVisible = true;
},
onSubmit:function() {
|
d36d4859
王富生
提交bug
|
309
|
this.loading=true;
|
255542b3
王飞
补缴
|
310
|
this.pageQueryArrearRecordByCondition();
|
83e23298
王飞
补缴
|
311
|
},
|
3e8809f2
王飞
补缴-二维码
|
312
313
314
315
316
|
onBack:function() {
this.dialogVisible = false;
this.pageQueryArrearRecordByCondition();
this.clearCode();
},
|
83e23298
王飞
补缴
|
317
318
319
320
321
322
|
onCancel:function() {
this.$message({
message: 'cancel!',
type: 'warning'
})
}
|
83a1b563
Andy
add 欠费补缴 前端页面
|
323
324
|
}
}
|
83a1b563
Andy
add 欠费补缴 前端页面
|
325
326
327
328
329
330
331
|
</script>
<style scoped>
.serch-wrap{
background-color: #FFF;
padding: 15px;
}
|
2ed00cc9
Andy
首页 banner 更换icon ...
|
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
#qrcode{
position: absolute;
top: 30px;
left: 50px;
height: 100px;
width: 100px;
}
.qecode_Bg{
height: 220px;
width: 139px;
background: url("../../assets/park/phone_ewm.png") no-repeat;
background-size: 100% 100%;
position: absolute;
top: -22px;
left: 180px;
}
|
83a1b563
Andy
add 欠费补缴 前端页面
|
348
349
|
</style>
|