oil-station/fuintCashierWeb/src/views/cashier/orderComponents/order_Vip.vue

294 lines
8.3 KiB
Vue
Raw Normal View History

2023-10-27 16:31:27 +08:00
<!--会员充值订单-->
<template>
<div>
2023-11-15 18:48:07 +08:00
<!-- 条件查询-->
2023-10-27 16:31:27 +08:00
<el-card class="box-card">
<div style="display: flex;">
<div class="top-app-sou">
<el-form :label-position="labelPosition" label-width="40px" :model="formLabelAlign">
<el-form-item label="名称">
<el-input v-model="formLabelAlign.name" placeholder="请输入要搜索的内容"></el-input>
</el-form-item>
</el-form>
</div>
<div style="margin-left: 10px">
<el-button type="primary" icon="el-icon-search">搜索</el-button>
</div>
</div>
</el-card>
2023-11-15 18:48:07 +08:00
<!-- 统计-->
2023-10-27 16:31:27 +08:00
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>会员充值统计</span>
</div>
<div class="box-gang">
<div class="box" v-for="(item,index) in 7" :key="index">
<div class="size-hui">订单总数</div>
<div class="size-bole">55</div>
</div>
</div>
</el-card>
2023-11-15 18:48:07 +08:00
<!-- 表格-->
2023-10-27 16:31:27 +08:00
<el-card class="box-card">
<div class="wgang">
<div>会员充值列表</div>
2023-11-15 18:48:07 +08:00
<!-- <div style="display: flex ">-->
2023-10-27 16:31:27 +08:00
2023-11-15 18:48:07 +08:00
<!-- <el-button type="primary" size="mini" icon="el-icon-plus">新增会员</el-button>-->
<!-- </div>-->
2023-10-27 16:31:27 +08:00
</div>
<div class="table-box">
<el-table
2023-11-15 18:48:07 +08:00
:data="list"
2023-10-27 16:31:27 +08:00
style="width: 100%">
<el-table-column type="expand">
<template slot-scope="props">
2023-11-15 18:48:07 +08:00
<el-form label-position="left" class="demo-table-expand" style="margin-left: 20px">
<el-form-item label="会员名称">
2023-10-27 16:31:27 +08:00
<span>{{ props.row.name }}</span>
</el-form-item>
2023-11-15 18:48:07 +08:00
<el-form-item label="会员手机号">
<span>{{ props.row.mobile }}</span>
</el-form-item>
<el-form-item label="操作人">
<span>{{ props.row.realName }}</span>
</el-form-item>
<el-form-item label="操作人手机号">
<span>{{ props.row.staffMobile }}</span>
</el-form-item>
<el-form-item label="储值优惠">
<span>充值满{{ props.row.rechargeBalance }}元赠送{{ props.row.giftBalance }}</span>
</el-form-item>
2023-10-27 16:31:27 +08:00
</el-form>
</template>
</el-table-column>
2023-11-15 18:48:07 +08:00
<el-table-column prop="name" label="会员名称"> </el-table-column>
<el-table-column prop="bidBalance" label="储值卡面值"> </el-table-column>
<el-table-column prop="rechargeBalance" label="储值卡实售金额"> </el-table-column>
<el-table-column prop="giftBalance" label="储值卡赠送金额"></el-table-column>
<el-table-column prop="paymentType" label="支付方式">
<template slot-scope="scope">
<span>{{getType(payList,scope.row.paymentType)}}</span>
</template>
2023-10-27 16:31:27 +08:00
</el-table-column>
2023-11-15 18:48:07 +08:00
<el-table-column prop="payStatus" label="支付状态">
<template slot-scope="scope">
<el-tag v-if="scope.row.payStatus == 'unpaid'">未支付</el-tag>
<el-tag type="success" v-else-if="scope.row.payStatus == 'paid'">已支付</el-tag>
<el-tag type="danger" v-else>支付失败</el-tag>
</template>
2023-10-27 16:31:27 +08:00
</el-table-column>
2023-11-15 18:48:07 +08:00
<el-table-column prop="realName" label="交易员工"></el-table-column>
<el-table-column prop="remark" label="充值备注">
<template slot-scope="scope">
<span>{{ scope.row.remark ? scope.row.remark:"--" }}</span>
</template>
2023-10-27 16:31:27 +08:00
</el-table-column>
2023-11-15 18:48:07 +08:00
<el-table-column prop="fringeBenefit" label="附加福利">
<template slot-scope="scope">
<span>{{ scope.row.fringeBenefit ? scope.row.fringeBenefit:"--" }}</span>
</template>
2023-10-27 16:31:27 +08:00
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
>更多操作</el-button>
</template>
</el-table-column>
</el-table>
</div>
<div class="pagination-box">
<el-pagination
background
2023-11-15 18:48:07 +08:00
v-show="total>0"
2023-10-27 16:31:27 +08:00
layout="prev, pager, next"
2023-11-15 18:48:07 +08:00
:total="total"
:page.sync="queryParams.page"
:limit.sync="queryParams.pageSize"
@current-change="getList">
2023-10-27 16:31:27 +08:00
</el-pagination>
</div>
</el-card>
</div>
</template>
<script>
2023-11-15 18:48:07 +08:00
import {listCardValueRecord} from "@/api/cashier/cardvaluerecord";
import {getDicts} from "@/api/dict/data";
2023-10-27 16:31:27 +08:00
export default {
name: "order_Cashier",
data(){
return{
2023-11-15 18:48:07 +08:00
// 支付方式列表
payList:[],
// 查询参数
queryParams: {
pageNo: 1,
pageSize: 10,
},
// 列表信息
list:[],
// 总条数
total:0,
2023-10-27 16:31:27 +08:00
labelPosition: 'right',
formLabelAlign: {
name: '',
},
tableData: [{
date: '2016-05-03',
name: '王小狼',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-02',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-04',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-01',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-08',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-06',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-07',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}]
}
2023-11-15 18:48:07 +08:00
},
created() {
this.getList();
this.getPayList();
},
methods:{
getType(list,val){
let name = "";
list.forEach(item => {
if (item.dictValue == val){
name = item.dictLabel
}
})
return name;
},
// 获取支付列表信息
getPayList(){
getDicts("payment_type").then( response => {
this.payList = response.data;
})
},
// 获取列表信息
getList(val){
if (val!=undefined){
this.queryParams.pageNo = val
}
listCardValueRecord(this.queryParams).then( response => {
this.list = response.data.records;
this.total = response.data.total;
})
}
2023-10-27 16:31:27 +08:00
}
}
</script>
<style scoped>
.app-top{
width: 100%;
height: 60px;
box-sizing: border-box;
padding: 10px;
}
.clearfix{
width: 100%;
}
.box-card{
width: 100%;
margin-bottom: 15px;
}
.box-gang{
width: 100%;
display: flex;
align-items: center;
}
.box{
width: 200px;
box-sizing: border-box;
padding: 10px;
background: #f9f9f9;
height: 86px;
margin-right: 10px;
}
.size-hui{
font-size: 14px;
margin-bottom: 10px;
margin-top: 10px;
}
.size-bole{
font-weight: bold;
}
.wgang{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.table-box{
width: 100%;
}
.pagination-box{
width: 100%;
margin: 10px auto;
display: flex;
align-items: center;
justify-content: center;
}
.top-app-sou{
width: 20%;
}
</style>