|
@@ -13,20 +13,20 @@
|
|
|
:saveKey="'tenantTradeManager'"
|
|
|
:model.sync="searchForm"
|
|
|
>
|
|
|
- <el-form-item prop="transNo">
|
|
|
+ <el-form-item prop="queryCondition">
|
|
|
<el-input
|
|
|
placeholder="学员编号/姓名/手机号"
|
|
|
clearable
|
|
|
type="text"
|
|
|
- v-model.trim="searchForm.transNo"
|
|
|
+ v-model.trim="searchForm.queryCondition"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="orderNo">
|
|
|
+ <el-form-item prop="order">
|
|
|
<el-input
|
|
|
placeholder="订单号"
|
|
|
clearable
|
|
|
type="text"
|
|
|
- v-model.trim="searchForm.orderNo"
|
|
|
+ v-model.trim="searchForm.order"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="createTimer">
|
|
@@ -51,17 +51,17 @@
|
|
|
:data="tableList"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
>
|
|
|
- <el-table-column align="center" prop="transNo" label="交易流水号">
|
|
|
+ <el-table-column align="center" label="交易流水号" prop="transNo">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="订单号" prop="orderNo">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="订单时间" prop="createdTime">
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="学员编号" prop="tenantId">
|
|
|
+ <el-table-column align="center" label="学员编号" prop="studentId">
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="学员名称" prop="tenantName">
|
|
|
+ <el-table-column align="center" label="学员名称" prop="name">
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="手机号码" prop="tenantName">
|
|
|
+ <el-table-column align="center" label="手机号码" prop="phone">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="交易类型">
|
|
|
<template slot-scope="scope">
|
|
@@ -77,12 +77,12 @@
|
|
|
</el-table-column> -->
|
|
|
<el-table-column align="center" label="数量">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.actualAmount | moneyFormat }}
|
|
|
+ {{ scope.row.time }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="激活费用(元)">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.orderState | tenantOrderStatus }}
|
|
|
+ {{ scope.row.amount | moneyFormat }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -101,24 +101,18 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
-import { tenantInfoQueryPage } from "../organManager/api";
|
|
|
-import { tenantOrderRecordQueryPage } from "./api";
|
|
|
+import { cloudTeacherOrderQueryActive } from "./api";
|
|
|
import { tenantStatus, dealStatus } from "@/utils/searchArray";
|
|
|
import { getTimes } from "@/utils";
|
|
|
const initSearch = {
|
|
|
- transNo: null,
|
|
|
- orderNo: null,
|
|
|
- tenantId: [],
|
|
|
- orderType: null,
|
|
|
- orderState: null,
|
|
|
+ queryCondition: null,
|
|
|
+ order: null,
|
|
|
createTimer: [],
|
|
|
};
|
|
|
export default {
|
|
|
components: { pagination },
|
|
|
data() {
|
|
|
- const baseTenantId = sessionStorage.getItem('baseTenantId')
|
|
|
return {
|
|
|
- baseTenantId,
|
|
|
tenantStatus,
|
|
|
dealStatus,
|
|
|
tableList: [],
|
|
@@ -129,33 +123,25 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
},
|
|
|
- searchForm: { ...initSearch },
|
|
|
- tenantList: []
|
|
|
+ searchForm: { ...initSearch }
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
- await this.getTenant()
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
- async getTenant() {
|
|
|
- try {
|
|
|
- const res = await tenantInfoQueryPage({ page: 1, rows: 999 }, )
|
|
|
- this.tenantList = res.data?.rows || []
|
|
|
- } catch(e) {}
|
|
|
- },
|
|
|
async getList() {
|
|
|
try {
|
|
|
- let { createTimer, tenantId, ...reset } = this.searchForm;
|
|
|
- const res = await tenantOrderRecordQueryPage({
|
|
|
+ let { createTimer, ...reset } = this.searchForm;
|
|
|
+ const res = await cloudTeacherOrderQueryActive({
|
|
|
...reset,
|
|
|
- tenantId: tenantId.join(','),
|
|
|
...getTimes(createTimer, ["startDate", "endDate"], "YYYY-MM-DD"),
|
|
|
page: this.pageInfo.page,
|
|
|
rows: this.pageInfo.limit,
|
|
|
});
|
|
|
- this.pageInfo.total = res.total;
|
|
|
- this.tableList = res.rows;
|
|
|
+ console.log(res)
|
|
|
+ this.pageInfo.total = res.data.total;
|
|
|
+ this.tableList = res.data.rows;
|
|
|
} catch (e) {}
|
|
|
},
|
|
|
search() {
|