| | |
| | | <AppContainer> |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | <template #operationBtn-checkBtn="{ data, row }"> |
| | | <PreviewBtnV2 |
| | | <!-- <PreviewBtnV2 |
| | | class="pro-table-operation-btn" |
| | | :url="convertApi2FormUrlBySeparator(row.payFileUrl ?? '')" |
| | | preview-btn-text="查看凭证" |
| | | /> |
| | | /> --> |
| | | </template> |
| | | </ProTableV2> |
| | | <ParkBountyTradeDetailFileDialog v-bind="dialogProps" /> |
| | | </AppContainer> |
| | | </LoadingLayout> |
| | | </template> |
| | |
| | | ProTableV2, |
| | | defineOperationBtns, |
| | | PreviewBtnV2, |
| | | useFormDialog, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import { convertApi2FormUrlBySeparator } from '@/utils'; |
| | | import { |
| | | convertApi2FormUrlBySeparator, |
| | | convertApi2FormUrlObjectBySeparator, |
| | | convertApi2FormUrlOnlyOne, |
| | | } from '@/utils'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import * as parkRewardServices from '@/services/api/ParkReward'; |
| | | import { EnterpriseBountyPayTypeEnumText } from '@/constants'; |
| | | import ParkBountyTradeDetailFileDialog from '../../Reward/components/ParkBountyTradeDetailFileDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardConsumeRecordView', |
| | |
| | | enCode: 'checkBtn', |
| | | name: '查看凭证', |
| | | }, |
| | | emits: { onClick: (role) => openDialog(role) }, |
| | | }, |
| | | ]); |
| | | |
| | |
| | | await getList(); |
| | | state.loading = false; |
| | | }); |
| | | |
| | | function openDialog(row: API.GetParkCustomerBountyConsumptionOutput) { |
| | | handleAdd({ |
| | | payAuditFileUrl: convertApi2FormUrlObjectBySeparator(row.payAuditFileUrl), |
| | | financeAuditFileUrl: convertApi2FormUrlObjectBySeparator(row.financeAuditFileUrl), |
| | | selfAuditFileUrl: convertApi2FormUrlObjectBySeparator(row.selfAuditFileUrl), |
| | | payFileUrl: convertApi2FormUrlObjectBySeparator(row.payFileUrl), |
| | | insureBillUrl: convertApi2FormUrlObjectBySeparator(row.insureBillUrl), |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps, handleAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | payAuditFileUrl: [] as UploadUserFile[], |
| | | financeAuditFileUrl: [] as UploadUserFile[], |
| | | selfAuditFileUrl: [] as UploadUserFile[], |
| | | payFileUrl: [] as UploadUserFile[], |
| | | insureBillUrl: [] as UploadUserFile[], |
| | | }, |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |