a72ae217
王富生
第一次提交
|
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">
|
46081f33
王飞
交互
|
6
|
<!--<el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="1">-->
|
a72ae217
王富生
第一次提交
|
7
|
|
46081f33
王飞
交互
|
8
9
10
11
12
13
|
<!--<el-form-item label="停车场">-->
<!--<el-select v-model="form.plNos" placeholder="请选择停车场">-->
<!--<el-option label="停车场BA" value="shanghai"/>-->
<!--<el-option label="停车场" value="beijing"/>-->
<!--</el-select>-->
<!--</el-form-item>-->
|
a72ae217
王富生
第一次提交
|
14
|
|
46081f33
王飞
交互
|
15
|
<!--</el-col>-->
|
a72ae217
王富生
第一次提交
|
16
17
|
<el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="1">
<el-form-item label="车牌">
|
46081f33
王飞
交互
|
18
|
<el-input v-model="form.carNum" maxlength="10" />
|
a72ae217
王富生
第一次提交
|
19
20
|
</el-form-item>
</el-col>
|
46081f33
王飞
交互
|
21
22
23
24
25
26
27
28
29
|
<!--<el-col :xs="8" :sm="6" :md="7" :lg="7" :xl="1">-->
<!--<el-form-item label="类型">-->
<!--<el-select v-model="form.region" placeholder="请选择类型">-->
<!--<el-option label="室内停车场" value="shanghai"/>-->
<!--<el-option label="路侧停车场" value="beijing"/>-->
<!--</el-select>-->
<!--</el-form-item>-->
<!--</el-col>-->
<el-col :xs="8" :sm="6" :md="3" :lg="3" :xl="1" >
|
a72ae217
王富生
第一次提交
|
30
31
32
33
34
35
36
37
38
39
|
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-col>
</el-form>
</el-row>
</div>
<div class="table-wrap">
<p class="table-title">订单详情</p>
<el-table
:data="orderData"
|
edc38b57
王富生
提交bug
|
40
41
42
|
v-loading="loading"
element-loading-text="数据加载中..."
element-loading-spinner="el-icon-loading"
|
a72ae217
王富生
第一次提交
|
43
44
45
|
style="width: 100%;"
:show-overflow-tooltip="true">
<el-table-column
|
46081f33
王飞
交互
|
46
|
prop="plName"
|
a72ae217
王富生
第一次提交
|
47
48
49
50
|
label="停车场"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
51
|
prop="carNumber"
|
a72ae217
王富生
第一次提交
|
52
53
54
55
|
label="车牌"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
|
83e23298
王飞
补缴
|
56
57
58
59
60
61
62
|
prop="orderTotalFee"
label="应收费用">
<template slot-scope="scope">
<span>{{(scope.row.orderTotalFee) |fen2Yuan}} </span>
</template>
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
63
|
prop="orderActFee"
|
83e23298
王飞
补缴
|
64
|
label="实收费用">
|
46081f33
王飞
交互
|
65
66
67
|
<template slot-scope="scope">
<span>{{(scope.row.orderActFee) |fen2Yuan}} </span>
</template>
|
a72ae217
王富生
第一次提交
|
68
69
|
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
70
71
|
prop="parkInTime"
label="入场时间"
|
a72ae217
王富生
第一次提交
|
72
|
:show-overflow-tooltip="true">
|
46081f33
王飞
交互
|
73
74
75
|
<template slot-scope="scope">
<span>{{(scope.row.parkInTime) |string2Date(7)}} </span>
</template>
|
a72ae217
王富生
第一次提交
|
76
77
|
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
78
|
prop="parkOutTime"
|
a72ae217
王富生
第一次提交
|
79
80
|
label="出场时间"
:show-overflow-tooltip="true">
|
46081f33
王飞
交互
|
81
82
83
|
<template slot-scope="scope">
<span>{{(scope.row.parkOutTime) |string2Date(7)}} </span>
</template>
|
a72ae217
王富生
第一次提交
|
84
85
|
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
86
|
prop="parkingDuration"
|
a72ae217
王富生
第一次提交
|
87
88
|
label="停车时长"
:show-overflow-tooltip="true">
|
46081f33
王飞
交互
|
89
90
91
|
<template slot-scope="scope">
<span>{{(scope.row) |parkingDurationFormatter(scope.row.parkingDuration)}} </span>
</template>
|
a72ae217
王富生
第一次提交
|
92
93
|
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
94
|
prop="berthNo"
|
a72ae217
王富生
第一次提交
|
95
96
97
|
label="泊位编号">
</el-table-column>
<el-table-column
|
46081f33
王飞
交互
|
98
|
prop="orderState"
|
a72ae217
王富生
第一次提交
|
99
|
label="订单状态">
|
46081f33
王飞
交互
|
100
101
102
|
<template slot-scope="scope">
<span>{{(scope.row) |inOutStateFormatter}} </span>
</template>
|
a72ae217
王富生
第一次提交
|
103
104
105
106
107
108
|
</el-table-column>
</el-table>
<el-pagination
:page-size="10"
:pager-count="11"
layout="prev, pager, next"
|
46081f33
王飞
交互
|
109
110
111
112
113
114
|
:total="total"
@size-change="handleSizeChange"
@current-change="handleSizeChange"
@prev-click="handleSizeChange"
@next-click="handleSizeChange"
>
|
a72ae217
王富生
第一次提交
|
115
116
117
118
119
120
|
</el-pagination>
</div>
</div>
</template>
<script>
|
46081f33
王飞
交互
|
121
122
|
import {queryOwnerParkRecord} from '@/api/index';
import {fen2Yuan,string2Date,inOutStateFormatter,parkingDurationFormatter} from '@/filters/index';
|
a72ae217
王富生
第一次提交
|
123
124
125
126
|
export default {
data() {
return {
form: {
|
46081f33
王飞
交互
|
127
128
129
|
plNos: null,
carNum: null,
|
a72ae217
王富生
第一次提交
|
130
|
},
|
edc38b57
王富生
提交bug
|
131
|
loading:false,
|
46081f33
王飞
交互
|
132
|
total: 0,
|
a72ae217
王富生
第一次提交
|
133
|
currentPage: 1,
|
dcf87b64
Andy
table bug修复
|
134
|
pageSize: 6,
|
a72ae217
王富生
第一次提交
|
135
|
orderData: [
|
a72ae217
王富生
第一次提交
|
136
137
138
|
]
}
},
|
46081f33
王飞
交互
|
139
140
141
142
|
mounted: function() {
this.queryOwnerParkRecord();
},
|
a72ae217
王富生
第一次提交
|
143
|
methods: {
|
46081f33
王飞
交互
|
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
/**
* 获取查询参数
*/
getQueryParams: function() {
let userInfo = this.$store.state.user.userInfo;
let plNos = [];
if(this.form.plNos != null && this.form.plNos != ''){
plNos.push(this.form.plNos);
}
let req = {
custId:userInfo.custId,
// custId:'501519113641649119232',
plNos:plNos,
carNum:this.form.carNum,
}
return req;
},
/**
* 查询订单信息
*/
queryOwnerParkRecord: function() {
|
edc38b57
王富生
提交bug
|
165
|
this.loading=true;
|
46081f33
王飞
交互
|
166
167
168
169
170
171
172
173
|
let req = this.getQueryParams();
req.baseRequest={
pageNum:this.currentPage,
pageSize:this.pageSize,
},
queryOwnerParkRecord (req).then(response =>{
if(response.code=='8888'){
|
edc38b57
王富生
提交bug
|
174
|
this.loading=false;
|
46081f33
王飞
交互
|
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
this.orderData = response.data.dataList;
this.total = response.data.pageTotals;
}else{
console.log(response);
}
});
},
// 获取子组件页码方法
handleSizeChange: function(page) {
console.log(page)
this.currentPage = page;
/** 调用表格数据.*/
this.queryOwnerParkRecord();
},
|
a72ae217
王富生
第一次提交
|
192
|
onSubmit() {
|
46081f33
王飞
交互
|
193
|
this.queryOwnerParkRecord();
|
a72ae217
王富生
第一次提交
|
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
},
onCancel() {
this.$message({
message: 'cancel!',
type: 'warning'
})
}
}
}
</script>
<style scoped>
.serch-wrap{
background-color: #FFF;
padding: 15px;
}
</style>
|