|
@@ -6,7 +6,7 @@
|
6
|
6
|
<el-row>
|
7
|
7
|
<el-col :span="6">
|
8
|
8
|
<el-form-item label="停车场名称:">
|
9
|
|
- <el-input v-model="formInline1.parkingName" placeholder="请输入"></el-input>
|
|
9
|
+ <el-input v-model="formInline1.carParkName" placeholder="请输入"></el-input>
|
10
|
10
|
</el-form-item>
|
11
|
11
|
</el-col>
|
12
|
12
|
<el-col :span="6">
|
|
@@ -14,6 +14,7 @@
|
14
|
14
|
<el-date-picker
|
15
|
15
|
v-model="formInline1.startTime"
|
16
|
16
|
type="date"
|
|
17
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
17
|
18
|
placeholder="选择日期">
|
18
|
19
|
</el-date-picker>
|
19
|
20
|
</el-form-item>
|
|
@@ -23,6 +24,7 @@
|
23
|
24
|
<el-date-picker
|
24
|
25
|
v-model="formInline1.endTime"
|
25
|
26
|
type="date"
|
|
27
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
26
|
28
|
placeholder="选择日期">
|
27
|
29
|
</el-date-picker>
|
28
|
30
|
</el-form-item>
|
|
@@ -64,12 +66,13 @@
|
64
|
66
|
<div class="form-div">
|
65
|
67
|
<el-form label-position="left" label-width="85px" :model="formLabelAlign">
|
66
|
68
|
<el-form-item label="停车场名称">
|
67
|
|
- <el-input v-model="formLabelAlign.parkingName"></el-input>
|
|
69
|
+ <el-input v-model="formLabelAlign.carParkName"></el-input>
|
68
|
70
|
</el-form-item>
|
69
|
71
|
<el-form-item label="起始时间">
|
70
|
72
|
<el-date-picker
|
71
|
73
|
v-model="formLabelAlign.startTime"
|
72
|
74
|
type="date"
|
|
75
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
73
|
76
|
placeholder="选择日期">
|
74
|
77
|
</el-date-picker>
|
75
|
78
|
</el-form-item>
|
|
@@ -77,14 +80,15 @@
|
77
|
80
|
<el-date-picker
|
78
|
81
|
v-model="formLabelAlign.endTime"
|
79
|
82
|
type="date"
|
|
83
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
80
|
84
|
placeholder="选择日期">
|
81
|
85
|
</el-date-picker>
|
82
|
86
|
</el-form-item>
|
83
|
87
|
<el-form-item label="预约费用">
|
84
|
|
- <el-input v-model="formLabelAlign.appointmentPrice"></el-input>
|
|
88
|
+ <el-input v-model="formLabelAlign.price"></el-input>
|
85
|
89
|
</el-form-item>
|
86
|
90
|
<el-form-item label="最大预约数">
|
87
|
|
- <el-input v-model="formLabelAlign.appointmentNumber"></el-input>
|
|
91
|
+ <el-input v-model="formLabelAlign.largeTimes"></el-input>
|
88
|
92
|
</el-form-item>
|
89
|
93
|
</el-form>
|
90
|
94
|
</div>
|
|
@@ -104,16 +108,7 @@
|
104
|
108
|
</el-col>
|
105
|
109
|
<el-col :span="6">
|
106
|
110
|
<el-form-item label="停车场名称:">
|
107
|
|
- <el-input v-model="formInline2.parkingName" placeholder="请输入"></el-input>
|
108
|
|
- </el-form-item>
|
109
|
|
- </el-col>
|
110
|
|
- <el-col :span="6">
|
111
|
|
- <el-form-item label="预约日期:">
|
112
|
|
- <el-date-picker
|
113
|
|
- v-model="formInline2.appointmentTime"
|
114
|
|
- type="date"
|
115
|
|
- placeholder="选择日期">
|
116
|
|
- </el-date-picker>
|
|
111
|
+ <el-input v-model="formInline2.carParkName" placeholder="请输入"></el-input>
|
117
|
112
|
</el-form-item>
|
118
|
113
|
</el-col>
|
119
|
114
|
<el-col :span="5">
|
|
@@ -136,13 +131,14 @@
|
136
|
131
|
<el-tab-pane label="退款记录" name="退款记录">
|
137
|
132
|
<el-form class="form-wrapper" :inline="true" :model="formInline3" style="margin-bottom: 20px;">
|
138
|
133
|
<el-row>
|
139
|
|
- <el-col :span="8">
|
140
|
|
- <el-form-item label="退款日期:">
|
141
|
|
- <el-date-picker
|
142
|
|
- v-model="formInline3.refundTime"
|
143
|
|
- type="date"
|
144
|
|
- placeholder="选择日期">
|
145
|
|
- </el-date-picker>
|
|
134
|
+ <el-col :span="6">
|
|
135
|
+ <el-form-item label="车牌号:">
|
|
136
|
+ <el-input v-model="formInline3.plateNo" placeholder="请输入"></el-input>
|
|
137
|
+ </el-form-item>
|
|
138
|
+ </el-col>
|
|
139
|
+ <el-col :span="6">
|
|
140
|
+ <el-form-item label="停车场名称:">
|
|
141
|
+ <el-input v-model="formInline3.carParkName" placeholder="请输入"></el-input>
|
146
|
142
|
</el-form-item>
|
147
|
143
|
</el-col>
|
148
|
144
|
<el-col :span="6">
|
|
@@ -207,7 +203,7 @@ export default {
|
207
|
203
|
columns1: [
|
208
|
204
|
{
|
209
|
205
|
label: '停车场名称',
|
210
|
|
- key: 'parkingName'
|
|
206
|
+ key: 'carParkName'
|
211
|
207
|
},
|
212
|
208
|
{
|
213
|
209
|
label: '起始时间',
|
|
@@ -218,12 +214,12 @@ export default {
|
218
|
214
|
key: 'endTime'
|
219
|
215
|
},
|
220
|
216
|
{
|
221
|
|
- label: '预约费用',
|
222
|
|
- key: 'appointmentPrice'
|
|
217
|
+ label: '预约费用(每小时)',
|
|
218
|
+ key: 'price'
|
223
|
219
|
},
|
224
|
220
|
{
|
225
|
221
|
label: '最大预约数',
|
226
|
|
- key: 'appointmentNumber'
|
|
222
|
+ key: 'largeTimes'
|
227
|
223
|
},
|
228
|
224
|
],
|
229
|
225
|
tableData1: [],
|
|
@@ -238,33 +234,32 @@ export default {
|
238
|
234
|
title:'',
|
239
|
235
|
dialogVisible:false,
|
240
|
236
|
formLabelAlign: {
|
241
|
|
- id: '',
|
242
|
|
- parkingName: '',
|
|
237
|
+ carParkName: '',
|
243
|
238
|
startTime: '',
|
244
|
239
|
endTime: '',
|
245
|
|
- appointmentPrice: '',
|
246
|
|
- appointmentNumber: '',
|
|
240
|
+ price: '',
|
|
241
|
+ largeTimes: ''
|
247
|
242
|
},
|
248
|
243
|
columns2: [
|
249
|
244
|
{
|
250
|
245
|
label: '车牌号',
|
251
|
|
- key: 'plateNo'
|
|
246
|
+ key: 'code'
|
252
|
247
|
},
|
253
|
248
|
{
|
254
|
249
|
label: '停车场名称',
|
255
|
|
- key: 'parkingName'
|
|
250
|
+ key: 'carParkName'
|
256
|
251
|
},
|
257
|
252
|
{
|
258
|
|
- label: '预约日期',
|
|
253
|
+ label: '预约时间',
|
259
|
254
|
key: 'appointmentTime'
|
260
|
255
|
},
|
261
|
256
|
{
|
262
|
257
|
label: '预约费用',
|
263
|
|
- key: ''
|
|
258
|
+ key: 'payAmount'
|
264
|
259
|
},
|
265
|
260
|
{
|
266
|
261
|
label: '状态',
|
267
|
|
- key: ''
|
|
262
|
+ key: 'orderStatus'
|
268
|
263
|
},
|
269
|
264
|
],
|
270
|
265
|
tableData2: [],
|
|
@@ -273,8 +268,7 @@ export default {
|
273
|
268
|
pageNum2: 1,
|
274
|
269
|
formInline2: {
|
275
|
270
|
plateNo: '',
|
276
|
|
- parkingName:'',
|
277
|
|
- appointmentTime:''
|
|
271
|
+ carParkName:'',
|
278
|
272
|
},
|
279
|
273
|
columns3: [
|
280
|
274
|
{
|
|
@@ -283,23 +277,24 @@ export default {
|
283
|
277
|
},
|
284
|
278
|
{
|
285
|
279
|
label: '停车场名称',
|
286
|
|
- key: 'parkingName'
|
|
280
|
+ key: 'carParkName'
|
287
|
281
|
},
|
288
|
282
|
{
|
289
|
|
- label: '退款日期',
|
290
|
|
- key: 'refundTime'
|
|
283
|
+ label: '订单状态',
|
|
284
|
+ key: 'orderStatus'
|
291
|
285
|
},
|
292
|
286
|
{
|
293
|
287
|
label: '退款金额',
|
294
|
|
- key: 'refundMoney'
|
|
288
|
+ key: 'payAmount'
|
295
|
289
|
},
|
296
|
290
|
],
|
297
|
|
- tableData3: [{plateNo:'豫LU5698',parkingName:'市中心医院停车场',refundTime:'2023-12-31',refundMoney:'20.00'}],
|
|
291
|
+ tableData3: [],
|
298
|
292
|
total3: 0,
|
299
|
293
|
pageSize3: 10,
|
300
|
294
|
pageNum3: 1,
|
301
|
295
|
formInline3: {
|
302
|
|
- refundTime: ''
|
|
296
|
+ plateNo: '',
|
|
297
|
+ carParkName:'',
|
303
|
298
|
},
|
304
|
299
|
dialogVisible3:false,
|
305
|
300
|
formLabelAlign3: {
|
|
@@ -312,9 +307,9 @@ export default {
|
312
|
307
|
}
|
313
|
308
|
},
|
314
|
309
|
mounted() {
|
315
|
|
- // this.getTableData1()
|
316
|
|
- // this.getTableData2()
|
317
|
|
- // this.getTableData3()
|
|
310
|
+ this.getTableData1()
|
|
311
|
+ this.getTableData2()
|
|
312
|
+ this.getTableData3()
|
318
|
313
|
},
|
319
|
314
|
watch: {
|
320
|
315
|
},
|
|
@@ -325,11 +320,7 @@ export default {
|
325
|
320
|
},
|
326
|
321
|
handleAdd () {
|
327
|
322
|
this.title = '添加规则'
|
328
|
|
- this.formLabelAlign.parkingName= ''
|
329
|
|
- this.formLabelAlign.startTime= ''
|
330
|
|
- this.formLabelAlign.endTime= ''
|
331
|
|
- this.formLabelAlign.appointmentPrice= ''
|
332
|
|
- this.formLabelAlign.appointmentNumber= ''
|
|
323
|
+ this.formLabelAlign = {}
|
333
|
324
|
this.dialogVisible = true
|
334
|
325
|
},
|
335
|
326
|
handleEdit(row) {
|
|
@@ -338,7 +329,7 @@ export default {
|
338
|
329
|
this.dialogVisible = true
|
339
|
330
|
},
|
340
|
331
|
deleteRow (record) {
|
341
|
|
- api.deleteWhiteIp({id: record.id}).then(res => {
|
|
332
|
+ api.deleteRule({id: record.id}).then(res => {
|
342
|
333
|
if (res.code === 200) {
|
343
|
334
|
this.$message({type: 'success', message: '删除成功!'})
|
344
|
335
|
this.getTableData1()
|
|
@@ -347,7 +338,7 @@ export default {
|
347
|
338
|
},
|
348
|
339
|
handleConfirm() {
|
349
|
340
|
if (this.title === '修改规则') {
|
350
|
|
- api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr, id: this.formLabelAlign.id}).then(res => {
|
|
341
|
+ api.editRule({...this.formLabelAlign, endTime: this.formLabelAlign.endTime.substring(0, 10) + " 23:59:59"}).then(res => {
|
351
|
342
|
if (res.code === 200) {
|
352
|
343
|
this.dialogVisible = false
|
353
|
344
|
this.$message({
|
|
@@ -358,7 +349,8 @@ export default {
|
358
|
349
|
}
|
359
|
350
|
})
|
360
|
351
|
} else {
|
361
|
|
- api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
|
|
352
|
+ console.log(this.formLabelAlign, '33333')
|
|
353
|
+ api.addRule({...this.formLabelAlign, endTime: this.formLabelAlign.endTime.substring(0, 10) + " 23:59:59"}).then(res => {
|
362
|
354
|
if (res.code === 200) {
|
363
|
355
|
this.dialogVisible = false
|
364
|
356
|
this.$message({
|
|
@@ -387,8 +379,8 @@ export default {
|
387
|
379
|
},
|
388
|
380
|
getTableData1() {
|
389
|
381
|
const {pageNum1, pageSize1} = this
|
390
|
|
- api.carListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
|
391
|
|
- this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
|
|
382
|
+ api.yytcListByPage({current: pageNum1, size: pageSize1, ...this.formInline1, endTime: this.formInline1.endTime ? this.formInline1.endTime.substring(0, 10) + " 23:59:59" : ''}).then(res => {
|
|
383
|
+ this.tableData1 = (res.data.records || [])
|
392
|
384
|
this.total1 = res.data.total
|
393
|
385
|
})
|
394
|
386
|
},
|
|
@@ -397,7 +389,7 @@ export default {
|
397
|
389
|
},
|
398
|
390
|
getTableData2() {
|
399
|
391
|
const {pageNum2, pageSize2} = this
|
400
|
|
- api.gjListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
|
|
392
|
+ api.orderListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
|
401
|
393
|
this.tableData2 = res.data.records || []
|
402
|
394
|
this.total2 = res.data.total
|
403
|
395
|
})
|
|
@@ -407,7 +399,7 @@ export default {
|
407
|
399
|
},
|
408
|
400
|
getTableData3() {
|
409
|
401
|
const {pageNum3, pageSize3} = this
|
410
|
|
- api.tcjlListByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
|
|
402
|
+ api.orderListByPage({current: pageNum3, size: pageSize3, ...this.formInline3, orderStatus: '已退款'}).then(res => {
|
411
|
403
|
this.tableData3 = res.data.records || []
|
412
|
404
|
this.total3 = res.data.total
|
413
|
405
|
})
|