86 lines
2.5 KiB
Vue
86 lines
2.5 KiB
Vue
<template>
|
|
<div>
|
|
<el-table ref="tables" v-loading="loading" :data="list">
|
|
<el-table-column label="所属油站" prop="storeName" align="center"/>
|
|
<el-table-column label="订单时间" align="center" prop="createTime"/>
|
|
<el-table-column label="交易终端" align="center" prop="payType">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.terminal == 'applet'">小程序</span>
|
|
<span v-else>{{ scope.row.terminal }}</span>
|
|
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="油品/油枪" align="center" prop="name" >
|
|
<template slot-scope="scope">
|
|
{{ scope.row.oilGunNum }}/{{ scope.row.oilName }}
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="订单金额" align="center" prop="orderAmount"/>
|
|
<el-table-column label="优惠金额" align="center" prop="discountAmount"/>
|
|
<el-table-column label="实付金额" align="center" prop="payAmount"/>
|
|
<el-table-column label="付款类型" align="center" prop="payType">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.payType == 'CASH'">现金支付</span>
|
|
<span v-else-if="scope.row.payType == 'WECHAT'">微信支付</span>
|
|
<span v-else-if="scope.row.payType == 'ALIPAY'">支付宝支付</span>
|
|
<span v-else>{{ scope.row.payType }}</span>
|
|
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="订单号" align="center" prop="orderNo" width="220px"/>
|
|
<el-table-column label="订单类型" align="center" prop="orderType"/>
|
|
</el-table>
|
|
|
|
<pagination
|
|
:total="total"
|
|
:page.sync="queryParams.page"
|
|
:limit.sync="queryParams.pageSize"
|
|
@pagination="getList"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getOilOrderList } from "@/api/userInfoOrder.js";
|
|
|
|
export default {
|
|
props:["pUserId"],
|
|
data(){
|
|
return {
|
|
userId:"",
|
|
loading:false,
|
|
list:[],
|
|
total:0,
|
|
queryParams:{
|
|
page:1,
|
|
pageSize:10,
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
// this.userId = this.pUserId;
|
|
this.userId = this.$route.query.id;
|
|
|
|
this.getList()
|
|
},
|
|
methods:{
|
|
getList(){
|
|
this.loading = true
|
|
this.queryParams.userId = this.userId
|
|
getOilOrderList(this.queryParams).then(res=>{
|
|
if (res.code == 200) {
|
|
this.list = res.data.records
|
|
this.total = res.data.total
|
|
this.loading = false
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|