From 075c20ae418f7f92f14bbe890edc19b0ab87d5d8 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Wed, 27 Aug 2025 10:11:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2=E5=AD=97=E6=AE=B5=E5=92=8C?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F=E7=AD=9B=E9=80=89=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加关键字、商品名称、收货人和支付方式搜索字段 - 增加支付方式显示列和筛选功能 - 调整默认分页大小为20并增加100条选项 - 优化订单状态筛选逻辑 --- manager/src/views/order/order/orderList.vue | 97 ++++++++++++++++++--- 1 file changed, 86 insertions(+), 11 deletions(-) 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; } } - - -