From 763e42786a271fe398eb590264f823a046b956af Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 27 十一月 2024 13:54:44 +0800 Subject: [PATCH] 565-订单列表:增加用户账号搜索框 --- pages/report/finance/index.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pages/report/finance/index.vue b/pages/report/finance/index.vue index bffdfed..a6cdb12 100644 --- a/pages/report/finance/index.vue +++ b/pages/report/finance/index.vue @@ -4,7 +4,7 @@ <el-row :gutter="20"> <el-col :span="4" class="mb-10"> <el-card> - <div class="statistic-title">销售合计</div> + <div class="statistic-title">销售合计(原订单)</div> <div class="statistic-num">{{ statistic.orderTotal || 0 }}</div> </el-card> </el-col> @@ -82,7 +82,7 @@ </el-col> </el-row> </div> - <el-bus-crud v-bind="tableConfig" /> + <el-bus-crud ref="crud" v-bind="tableConfig" /> </div> </template> @@ -93,10 +93,7 @@ dayjs.locale('zh-cn') export default { data() { - const endDate = `${dayjs().format('YYYY-MM-DD')} 00:00:00` - const startDate = `${dayjs() - .subtract(1, 'month') - .format('YYYY-MM-DD')} 23:59:59` + const defaultDate = `${dayjs().format('YYYY-MM-DD')} 00:00:00` return { statistic: {}, statisticLoading: false, @@ -110,8 +107,12 @@ exportUrl: 'flower/v2/report/order/sale/export', exportText: '导出', onResetView: (row) => { + const searchFormRef = this.$refs.crud.$refs.searchForm + const searchFormValue = searchFormRef.getFormValue() const url = this.$router.resolve( - `/report/finance/${row.orderDate}` + `/report/finance/${row.orderDate}?partnerId=${ + searchFormValue?.partnerId || '' + }` ).href window.open(url, '_blank') }, @@ -159,8 +160,8 @@ minWidth: 120, fixed: 'left', }, - { label: '销售额', prop: 'orderTotal', minWidth: 120 }, - { label: '销售额(实际支付)', prop: 'totalAmount', minWidth: 120 }, + { label: '销售额(原订单)', prop: 'orderTotal', minWidth: 120 }, + { label: '销售额(实付)', prop: 'totalAmount', minWidth: 120 }, { label: '花农底价', prop: 'orderSupplierPriceAmount', @@ -190,7 +191,8 @@ { label: '售后扣花农款', prop: 'orderFeeSupplier', minWidth: 150 }, { label: '售后扣平台款', prop: 'orderFeePlatform', minWidth: 150 }, { label: '总包干费', prop: 'partnerTotalFeeAmount', minWidth: 120 }, - { label: '销售扎数', prop: 'realSaleNum', minWidth: 120 }, + { label: '总售扎数', prop: 'orderNum', minWidth: 120 }, + { label: '实际销售扎数', prop: 'realSaleNum', minWidth: 120 }, { label: '利润', prop: 'profitFeeAmount', @@ -233,7 +235,7 @@ }, customClass: 'in-bus-form', commonRules: true, - default: [startDate, endDate], + default: [defaultDate, defaultDate], }, { ...getPartnerListConfig(), label: '合伙人' }, ], -- Gitblit v1.9.3