|
@@ -143,21 +143,21 @@
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import { tenantOrderRecordQueryPage } from "./api";
|
|
|
-import { tenantStatus } from '@/constant'
|
|
|
+import { tenantStatus } from "@/constant";
|
|
|
import { dealStatus } from "@/utils/searchArray";
|
|
|
-import OrderInfo from './model/orderInfo'
|
|
|
+import OrderInfo from "./model/orderInfo";
|
|
|
import { getTimes } from "@/utils";
|
|
|
const initSearch = {
|
|
|
transNo: null,
|
|
|
orderNo: null,
|
|
|
orderType: null,
|
|
|
orderState: null,
|
|
|
- createTimer: [],
|
|
|
+ createTimer: []
|
|
|
};
|
|
|
export default {
|
|
|
components: { pagination, OrderInfo },
|
|
|
data() {
|
|
|
- const baseTenantId = sessionStorage.getItem('baseTenantId')
|
|
|
+ const baseTenantId = sessionStorage.getItem("baseTenantId");
|
|
|
return {
|
|
|
baseTenantId,
|
|
|
tenantStatus,
|
|
@@ -169,9 +169,9 @@ export default {
|
|
|
limit: 10, // 限制显示条数
|
|
|
page: 1, // 当前页
|
|
|
total: 0, // 总条数
|
|
|
- page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
+ page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
- searchForm: { ...initSearch },
|
|
|
+ searchForm: { ...initSearch }
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -183,12 +183,16 @@ export default {
|
|
|
let { createTimer, ...reset } = this.searchForm;
|
|
|
const res = await tenantOrderRecordQueryPage({
|
|
|
...reset,
|
|
|
- ...getTimes(createTimer, ["startDate", "endDate"], "YYYY-MM-DD HH:mm:ss"),
|
|
|
+ ...getTimes(
|
|
|
+ createTimer,
|
|
|
+ ["startDate", "endDate"],
|
|
|
+ "YYYY-MM-DD HH:mm:ss"
|
|
|
+ ),
|
|
|
page: this.pageInfo.page,
|
|
|
- rows: this.pageInfo.limit,
|
|
|
+ rows: this.pageInfo.limit
|
|
|
});
|
|
|
- this.pageInfo.total = res.total;
|
|
|
- this.tableList = res.rows;
|
|
|
+ this.pageInfo.total = res.data.total;
|
|
|
+ this.tableList = res.data.rows;
|
|
|
} catch (e) {}
|
|
|
},
|
|
|
search() {
|
|
@@ -202,8 +206,8 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
openService(row) {
|
|
|
- this.orderVisible = true
|
|
|
- },
|
|
|
+ this.orderVisible = true;
|
|
|
+ }
|
|
|
},
|
|
|
filters: {
|
|
|
tenantOrderStatus(val) {
|
|
@@ -211,8 +215,8 @@ export default {
|
|
|
0: "待支付",
|
|
|
1: "已支付",
|
|
|
2: "支付失败"
|
|
|
- }
|
|
|
- return template[val]
|
|
|
+ };
|
|
|
+ return template[val];
|
|
|
}
|
|
|
}
|
|
|
};
|