Просмотр исходного кода

feat(queryReport): add ticket type group column and fix order tag parsing

- Add `ticketTypeGroupName` to the order statistics column configuration
- Update `orderTagList` parsing to use `res.data` instead of `res.list`
LaveyD 1 неделя назад
Родитель
Сommit
4dedc615b9
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/pages/queryReport/OrderStatistic.vue

+ 2 - 1
src/pages/queryReport/OrderStatistic.vue

@@ -376,6 +376,7 @@ const groupKeys = [
   { value: 'adminName', label: '售票员', prop: 'adminName' },
   { value: 'ticketTypeName', label: '票种', prop: 'ticketTypeName' },
   { value: 'payChannel', label: '支付方式' },
+  { value: 'ticketTypeGroupName', label: '票种分组' },
   { value: 'unitPrice', label: '单价', prop: 'unitPrice' },
   { value: 'otaSourceName', label: '销售渠道' },
   { value: 'team', label: '团体' },
@@ -478,7 +479,7 @@ export default {
     const orderTagList = res.list.find(v => v.configKey === 'orderTagList')?.configValue || []
     this.orderTagList = orderTagList.replace(/\s+/g, '').split(',')
     */
-    this.orderTagList = res.list.find(v => v.configKey === 'orderTagList')?.configValue?.replace(/\s+/g, '')?.split(',') || []
+    this.orderTagList = (res.data || []).find(v => v.configKey === 'orderTagList')?.configValue?.replace(/\s+/g, '')?.split(',') || []
   },
   methods: {
     showColumnConfig () {