| | |
| | | </div> |
| | | <ProTableQueryFilterBar @on-reset="reset"> |
| | | <template #query> |
| | | <QueryFilterItem tip-content="申报月份"> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.month" |
| | | type="month" |
| | | clearable |
| | | placeholder="请选择申报月份" |
| | | format="YYYY-MM" |
| | | value-format="YYYY-MM" |
| | | @change="getList()" |
| | | ></FieldDatePicker> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <FieldSelect |
| | | v-model="extraParamState.industrialParkId" |
| | |
| | | clearable |
| | | @change="getList()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem tip-content="申报月份"> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.months" |
| | | type="months" |
| | | clearable |
| | | placeholder="请选择申报月份" |
| | | format="YYYY-MM" |
| | | value-format="YYYY-MM" |
| | | @change="getList()" |
| | | :disabled-date="disabledDate" |
| | | ></FieldDatePicker> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <SearchInput |
| | |
| | | import { useAccess, useIndustrialParkDropDownList } from '@/hooks'; |
| | | import { downloadFile, Message, OrderInputType } from '@bole-core/core'; |
| | | import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import { toThousand } from '@/utils'; |
| | | import { format, toThousand } from '@/utils'; |
| | | import _ from 'lodash'; |
| | | import FinancialAllocationDetailDialog from './components/FinancialAllocationDetailDialog.vue'; |
| | | import PlatformDisbursementDetailDialog from './components/PlatformDisbursementDetailDialog.vue'; |
| | |
| | | import EnterpriseWithdrawalDetailDialog from './components/EnterpriseWithdrawalDetailDialog.vue'; |
| | | import BalanceDetailDialog from './components/BalanceDetailDialog.vue'; |
| | | import { EnumParkRewardStatisticsDetailScene } from '@/constants'; |
| | | import { useRewardStatisticsMonths } from './hooks'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardStatistics', |
| | |
| | | } = useTable( |
| | | async ({ pageIndex, pageSize }, extraParamState) => { |
| | | try { |
| | | if (!extraParamState.month) { |
| | | Message.errorMessage('请选择月份'); |
| | | return; |
| | | } |
| | | // if (!extraParamState.month) { |
| | | // Message.errorMessage('请选择月份'); |
| | | // return; |
| | | // } |
| | | if (!extraParamState.industrialParkId) { |
| | | Message.errorMessage('请选择园区'); |
| | | return; |
| | | } |
| | | if (!extraParamState.months.length) { |
| | | Message.errorMessage('请选择月份'); |
| | | return; |
| | | } |
| | | |
| | | let params: API.GetRewardStatisticsInput = { |
| | | pageModel: { |
| | | rows: pageSize, |
| | |
| | | }, |
| | | keywords: extraParamState.keywords, |
| | | industrialParkId: extraParamState.industrialParkId, |
| | | month: extraParamState.month, |
| | | // month: extraParamState.month, |
| | | months: extraParamState.months.map((x) => format(x as any, 'YYYY-MM')), |
| | | }; |
| | | let res = await parkBountyApplyServices.getRewardStatistics(params, { |
| | | showLoading: !state.loading, |
| | |
| | | keywords: '', |
| | | industrialParkId: '', |
| | | month: '', |
| | | months: [] as string[], |
| | | orderInput: [{ property: 'enterpriseId', order: OrderInputType.Desc }], |
| | | }, |
| | | columnsRenderProps: { |
| | |
| | | } |
| | | ); |
| | | |
| | | const { disabledDate } = useRewardStatisticsMonths({ |
| | | industrialParkId: toRef(extraParamState, 'industrialParkId'), |
| | | enabled: computed(() => !!extraParamState.industrialParkId), |
| | | }); |
| | | |
| | | const handleExport = _.debounce( |
| | | async () => { |
| | | if (!extraParamState.month) { |