|
|
@@ -1,15 +1,134 @@
|
|
|
<template>
|
|
|
- <div class="agent_page">
|
|
|
- <h3>账单明细</h3>
|
|
|
+ <div class="agent_page adffc">
|
|
|
+ <div class="ap_title">{{ title }}</div>
|
|
|
+ <el-form :model="queryParams" ref="queryRef" label-width="98px" style="margin-top: 20px;">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" style="padding-right: 20px;">
|
|
|
+ <el-form-item label="订单编号">
|
|
|
+ <el-input v-model="queryParams.xxx" placeholder="请输入订单编号"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" style="padding-right: 20px;">
|
|
|
+ <el-form-item label="起止时间">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryParams.yyy"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始时间"
|
|
|
+ end-placeholder="结束时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item style="display: flex;align-items: center;">
|
|
|
+ <el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
+ <el-button type="primary" @click="getList">查询</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <div class="ap_line"></div>
|
|
|
+ <div class="ap_title" style="margin-top: 20px;">交易明细</div>
|
|
|
+ <div class="ap_num adfac">总收入金额:<span>¥{{ totalMoney }}</span></div>
|
|
|
+ <el-table :data="dataList" border cell-class-name="vertical-top-cell" v-loading="loading" empty-text="暂无账单明细" max-height="578px" style="margin-top: 18px;">
|
|
|
+ <el-table-column label="序号" width="50">
|
|
|
+ <template #default="scope">
|
|
|
+ {{ scope.$index + 1 }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="订单编号" prop="xx"></el-table-column>
|
|
|
+ <el-table-column label="交易时间" prop="xx"></el-table-column>
|
|
|
+ <el-table-column label="交易金额(元)" prop="xx"></el-table-column>
|
|
|
+ <el-table-column label="手机号" prop="xx"></el-table-column>
|
|
|
+ <el-table-column label="商品类型" prop="xx">
|
|
|
+ <template #default="{ row }">
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-row style="display: flex;justify-content: center;">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="queryParams.page"
|
|
|
+ :page-sizes="[5, 10, 20, 50]"
|
|
|
+ :page-size="10"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="total"
|
|
|
+ v-show="total > 0">
|
|
|
+ </el-pagination>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup name="">
|
|
|
- import { ref, getCurrentInstance } from 'vue'
|
|
|
+ import { ref, getCurrentInstance, onMounted } from 'vue'
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
-
|
|
|
+ const title = proxy.$route.meta.title;
|
|
|
+ const queryParams = ref({
|
|
|
+ page: 1,
|
|
|
+ limit: 10,
|
|
|
+ xxx: '',
|
|
|
+ yyy: ''
|
|
|
+ })
|
|
|
+ const queryRef = ref(null)
|
|
|
+ const dataList = ref([])
|
|
|
+ const total = ref(0)
|
|
|
+ const loading = ref(false)
|
|
|
+ const totalMoney = ref('1234567.89')
|
|
|
+
|
|
|
+ const resetQuery = () => {
|
|
|
+ proxy.$refs.queryRef.resetFields();
|
|
|
+ queryParams.value = {
|
|
|
+ xxx: '',
|
|
|
+ yyy: ''
|
|
|
+ }
|
|
|
+ getList();
|
|
|
+ }
|
|
|
+
|
|
|
+ const getList = async () => {
|
|
|
+ let query = {...queryParams.value};
|
|
|
+ loading.value = true;
|
|
|
+ // const res = await getCoachList(query);
|
|
|
+ // dataList.value = res.data.list;
|
|
|
+ // total.value = res.data.total;
|
|
|
+ loading.value = false;
|
|
|
+ }
|
|
|
+ const handleSizeChange = (e)=>{
|
|
|
+ queryParams.value.limit = e;
|
|
|
+ getList();
|
|
|
+ }
|
|
|
+ const handleCurrentChange = (e)=>{
|
|
|
+ queryParams.value.page = e;
|
|
|
+ getList();
|
|
|
+ }
|
|
|
+
|
|
|
+ onMounted(()=>{
|
|
|
+ getList();
|
|
|
+ })
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
-
|
|
|
+ .agent_page{
|
|
|
+ padding: 24px 16px;
|
|
|
+
|
|
|
+ .ap_num{
|
|
|
+ margin-top: 22px;
|
|
|
+ padding: 16px 32px;
|
|
|
+ background: rgba($color: #FFE796, $alpha: 0.25);
|
|
|
+ font-family: PingFangSC, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #6B7280;
|
|
|
+ line-height: 14px;
|
|
|
+ span{
|
|
|
+ font-family: DINAlternate, DINAlternate;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 28px;
|
|
|
+ color: #252525;
|
|
|
+ line-height: 28px;
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|