diff --git a/manager/src/views/order/order/orderList.vue b/manager/src/views/order/order/orderList.vue index 62a0a48c..6d7eda0c 100644 --- a/manager/src/views/order/order/orderList.vue +++ b/manager/src/views/order/order/orderList.vue @@ -9,6 +9,15 @@ :label-width="70" class="search-form" > + + + - + + + + + + + + + { + if (params.row.paymentMethod == "WECHAT") { + return h("div", {}, "微信支付"); + } else if (params.row.paymentMethod == "ALIPAY") { + return h("div", {}, "支付宝"); + } else if (params.row.paymentMethod == "WALLET") { + return h("div", {}, "余额支付"); + } else if (params.row.paymentMethod == "BANK_TRANSFER") { + return h("div", {}, "线下转账"); + } else { + return h("div", {}, params.row.paymentMethod || "-"); + } + }, + }, { title: "订单状态", key: "orderStatus", @@ -338,7 +409,7 @@ export default { // 搜索 handleSearch() { this.searchForm.pageNumber = 1; - this.searchForm.pageSize = 10; + this.searchForm.pageSize = 20; this.getDataList(); }, // 起止时间从新赋值 @@ -404,8 +475,15 @@ export default { }, // 订单筛选 orderStatusClick(name) { + if (name === 0) { + // 点击"全部"时,设置为空字符串,在getDataList中会被过滤掉 + this.searchForm.orderStatus = ''; + } else { + // 其他状态正常赋值 + this.searchForm.orderStatus = name; + } this.currentStatus = name; - this.searchForm.orderStatus = name; + this.getDataList(); }, }, @@ -429,7 +507,4 @@ export default { font-size: 14px; } } - - -