From 835d1f1893c5c427b65e4abf812f366dadf00585 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 27 十一月 2024 13:25:05 +0800 Subject: [PATCH] add: -商户列表需要增加下单次数统计(已退款、已取消、待付款的不统计在内) --- pages/order/list/index.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/order/list/index.vue b/pages/order/list/index.vue index 378a70a..3f74328 100644 --- a/pages/order/list/index.vue +++ b/pages/order/list/index.vue @@ -42,6 +42,9 @@ hasEdit: true, hasDelete: false, persistSelection: true, + hasExport: true, + exportUrl: 'flower/api/order/list/export', + exportText: '导出订单', onResetView: (row) => { this.$router.push(`${this.$route.path}/${row.id}`) }, @@ -81,8 +84,10 @@ }, { label: '订单金额(元)', prop: 'totalAmount', minWidth: 150 }, { label: '底价(元)', prop: 'supplierAmount', minWidth: 150 }, + { label: '销售扎数', prop: 'saleNum', minWidth: 150 }, { label: '订单状态', prop: 'statusBackendStr', minWidth: 120 }, { label: '下单时间', prop: 'createTime', minWidth: 180 }, + { label: '支付时间', prop: 'paymentTime', minWidth: 180 }, { label: '合伙人', prop: 'partnerName', minWidth: 120 }, { label: '库位', prop: 'warehouseLocationCode', minWidth: 120 }, { label: '特殊需求', prop: 'specialNeedsStr', minWidth: 120 }, @@ -120,7 +125,7 @@ }, // code: 'ORDER_STATUS_BACKEND', }, - default: '', + default: this.$route.query.statusBackend || '', span: 24, searchImmediately: true, on: { @@ -178,7 +183,11 @@ component: 'el-bus-select-area', span: 24, commonFormat: true, - commonFormatProps: ['customerProvince', 'customerCity', 'customerRegion'], + commonFormatProps: [ + 'customerProvince', + 'customerCity', + 'customerRegion', + ], str: true, strKey: 'districtStr', rules: { required: true, message: '请选择地区' }, @@ -355,7 +364,9 @@ }, methods: { getDistrict(row) { - return `${row.customerProvince || ''}${row.customerCity || ''}${row.customerRegion || ''}` + return `${row.customerProvince || ''}${row.customerCity || ''}${ + row.customerRegion || '' + }` }, }, } -- Gitblit v1.9.3