| | |
| | | <template #query> |
| | | <QueryFilterItem tip-content="最近申报日期"> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.date" |
| | | v-model="extraParamState.lastApplyTime" |
| | | type="daterange" |
| | | range-separator="~" |
| | | start-placeholder="开始日期" |
| | |
| | | </QueryFilterItem> |
| | | <QueryFilterItem tip-content="最近发放日期"> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.date" |
| | | v-model="extraParamState.lastPayTime" |
| | | type="daterange" |
| | | range-separator="~" |
| | | start-placeholder="开始日期" |
| | |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <SearchInput |
| | | v-model="extraParamState.keyword" |
| | | v-model="extraParamState.keywords" |
| | | style="width: 300px" |
| | | placeholder="企业名/统一信用代码" |
| | | @on-click-search="getList" |
| | |
| | | import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import _ from 'lodash'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { AuthTypeText } from '@/constants'; |
| | | import { EnterpriseTypeText } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseInfo', |
| | |
| | | id: '1', |
| | | enCode: 'enterpriseName', |
| | | name: '企业名', |
| | | width: 250, |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'societyCreditCode', |
| | | name: '统一社会信用代码', |
| | | width: 200, |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'enterpriseType', |
| | | name: '企业类型', |
| | | width: 150, |
| | | }, |
| | | { |
| | | id: '4', |
| | | enCode: 'industrialParkName', |
| | | name: '所属园区', |
| | | width: 200, |
| | | }, |
| | | { |
| | | id: '5', |
| | | enCode: 'parkTypName', |
| | | name: '园区类型', |
| | | width: 150, |
| | | }, |
| | | { |
| | | id: '6', |
| | | enCode: 'applyCount', |
| | | name: '奖励金申报次数', |
| | | name: '申报次数', |
| | | width: 150, |
| | | }, |
| | | { |
| | | id: '7', |
| | | enCode: 'lastApplyTime', |
| | | name: '最近申报日期', |
| | | width: 180, |
| | | }, |
| | | { |
| | | id: '8', |
| | | enCode: 'payCount', |
| | | name: '奖励金发放次数', |
| | | name: '发放次数', |
| | | width: 150, |
| | | }, |
| | | { |
| | | id: '9', |
| | | enCode: 'lastPayTime', |
| | | name: '最近发放日期', |
| | | width: 180, |
| | | }, |
| | | { |
| | | id: '10', |
| | | enCode: 'bountyAmount', |
| | | name: '奖励金发放总额', |
| | | name: '发放总额', |
| | | width: 150, |
| | | }, |
| | | { |
| | | id: '11', |
| | | enCode: 'bountyAmount', |
| | | name: '奖励金余额', |
| | | name: '平台充值余额', |
| | | width: 150, |
| | | }, |
| | | ]; |
| | | |
| | |
| | | page: pageIndex, |
| | | orderInput: extraParamState.orderInput, |
| | | }, |
| | | publishStartDate: format(extraParamState.date?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | publishEndDate: format(extraParamState.date?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | keywords: extraParamState.keywords, |
| | | lastApplyBeginTime: format(extraParamState.lastApplyTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | lastApplyEndTime: format(extraParamState.lastApplyTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | lastPayBeginTime: format(extraParamState.lastPayTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | lastPayEndTime: format(extraParamState.lastPayTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | }; |
| | | let res = await parkBountyApplyServices.getParkCustomerManagePage(params, { |
| | | showLoading: !state.loading, |
| | |
| | | }, |
| | | { |
| | | defaultExtraParams: { |
| | | keyword: '', |
| | | date: [] as unknown as ModelValueType, |
| | | orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], |
| | | keywords: '', |
| | | lastApplyTime: [] as unknown as ModelValueType, |
| | | lastPayTime: [] as unknown as ModelValueType, |
| | | orderInput: [{ property: 'id', order: OrderInputType.Desc }], |
| | | }, |
| | | columnsRenderProps: { |
| | | lastApplyTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | lastPayTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | bountyAmount: { type: 'money' }, |
| | | enterpriseType: { type: 'enum', valueEnum: AuthTypeText }, |
| | | enterpriseType: { type: 'enum', valueEnum: EnterpriseTypeText }, |
| | | }, |
| | | } |
| | | ); |
| | | |
| | | function goDetail(row: any) { |
| | | function goDetail(row: API.GetParkCustomerManageOutput) { |
| | | router.push({ |
| | | name: 'EnterpriseInfoDetail', |
| | | params: { |