|
|
@@ -11,7 +11,7 @@
|
|
|
</view>
|
|
|
|
|
|
<cwg-tabel ref="tableRef" :columns="columns" :mobilePrimaryFields="mobilePrimaryFields" :queryParams="search"
|
|
|
- :api="listApi" :show-operation="false" :showPagination="true" :showSummary="true" :immediate="false"
|
|
|
+ :api="listApi" :show-operation="false" :showPagination="true" :showSummary="!isMobile" :immediate="false"
|
|
|
:summaryMethod="getSummaries">
|
|
|
<template #action="{ row }">
|
|
|
<button class="btn btn-danger" @click="toInfo(row)">
|
|
|
@@ -35,6 +35,9 @@
|
|
|
import useRouter from "@/hooks/useRouter";
|
|
|
|
|
|
import useUserStore from '@/stores/use-user-store'
|
|
|
+ import { useWindowWidth } from '@/composables/useWindowWidth'
|
|
|
+ const windowWidth = useWindowWidth(300)
|
|
|
+ const isMobile = computed(() => windowWidth.value <= 991)
|
|
|
|
|
|
const { numberFormat } = useFilters()
|
|
|
const { t } = useI18n()
|
|
|
@@ -213,7 +216,14 @@
|
|
|
}
|
|
|
} else if (type == 2) {
|
|
|
if (['volume', 'rebateAmount', 'commissionAmount'].includes(prop)) {
|
|
|
- sums[index] = summaryData[prop] ? numberFormat(summaryData[prop]) : '0'
|
|
|
+ let value = summaryData[prop] ? numberFormat(summaryData[prop]) : '0'
|
|
|
+ // `${numberFormat(row.volume ?? '0')}/${t('Label.Lot')}`
|
|
|
+ if (prop == 'volume'){
|
|
|
+ value = `${value}/${t('Label.Lot')}`
|
|
|
+ }else {
|
|
|
+ value = `$${value}`
|
|
|
+ }
|
|
|
+ sums[index] = value
|
|
|
} else {
|
|
|
sums[index] = ''
|
|
|
}
|
|
|
@@ -399,6 +409,7 @@
|
|
|
})
|
|
|
|
|
|
const toInfo = (row)=>{
|
|
|
+ tableRef?.value?.setDetailVisible(false)
|
|
|
router.push({ path:'/pages/ib/reportInfo' ,query:{
|
|
|
login:row.login,closeTime:row.closeTime
|
|
|
}})
|