|
|
@@ -50,7 +50,7 @@ import { formatDecimal, handleNoneValue } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { queryMarketRun } from '@/services/api/market'
|
|
|
import { queryReportMonthTaaccount, queryReportReckonDayTaaccount } from '@/services/api/report'
|
|
|
-import { useAccountStore, useUserStore } from '@/stores'
|
|
|
+import { useAccountStore, useUserStore, i18n } from '@/stores'
|
|
|
import moment from 'moment'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
@@ -67,12 +67,13 @@ const showPicker = shallowRef(false)
|
|
|
const marketInfo = shallowRef<Model.MarketRunRsp>()
|
|
|
const currentDate = shallowRef<string[]>([])
|
|
|
const taaccount = shallowRef<Model.ReportMonthTaaccountRsp | Model.ReportReckonDayTaaccountRsp>()
|
|
|
+const { global: { t } } = i18n
|
|
|
|
|
|
const { componentRef, componentId, closeComponent, openComponent } = useComponent()
|
|
|
|
|
|
const reportType = [
|
|
|
- { text: '日报表', value: 1 },
|
|
|
- { text: '月报表', value: 2 }
|
|
|
+ { text: t('report.day'), value: 1 },
|
|
|
+ { text: t('report.month'), value: 2 }
|
|
|
]
|
|
|
|
|
|
const pickerFormat = computed(() => reportTypeValue.value === 1 ? 'YYYY-MM-DD' : 'YYYY-MM')
|