已修改20个文件
已重命名1个文件
已添加2个文件
已复制1个文件
| | |
| | | enterpriseOperateFileUrl: UploadUserFile[]; |
| | | bountyAssignFileUlr: UploadUserFile[]; |
| | | bountyCollectFileUrl: UploadUserFile[]; |
| | | enterpriseRelateFileUrl: UploadUserFile[]; |
| | | }; |
| | | }; |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <ProDialog |
| | | title="æä»¶å表" |
| | | v-model="visible" |
| | | destroy-on-close |
| | | draggable |
| | | width="35%" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | :top="'22vh'" |
| | | > |
| | | <ProDialogTableWrapper :height="400"> |
| | | <ProTableQueryFilterBar :show-reset-btn="false"> |
| | | <template #query> |
| | | <QueryFilterItem> |
| | | <span class="query-label">{{ name }}</span> |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <el-button type="primary" @click="handleBatchDownload">æ¹éä¸è½½</el-button> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | | :tableData="fileList" |
| | | :columns="columns" |
| | | :operationBtns="operationBtns" |
| | | show-column-check |
| | | ref="proTable" |
| | | > |
| | | <template #extension="{ row }"> |
| | | <img :src="getExtensionIconByUrl(row.url)" alt="" style="margin: 0 auto" /> |
| | | </template> |
| | | <template #size="{ row }"> |
| | | {{ formatFileSize(row.size) }} |
| | | </template> |
| | | </ProTableV2> |
| | | </ProDialogTableWrapper> |
| | | </ProDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { |
| | | ProDialog, |
| | | ProTableQueryFilterBar, |
| | | QueryFilterItem, |
| | | UploadUserFile, |
| | | ProDialogTableWrapper, |
| | | ProTableV2, |
| | | defineColumns, |
| | | defineOperationBtns, |
| | | bolePreview, |
| | | getExtensionIconByUrl, |
| | | } from '@bole-core/components'; |
| | | import { format, downloadFileByUrl, formatFileSize } from '@/utils'; |
| | | import { downloadWithZip, Message, isFileCanPreview } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | | name: 'FourStreamsBatchMaterialFileDialog', |
| | | }); |
| | | |
| | | type Props = { |
| | | name?: string; |
| | | zipName?: string; |
| | | showDeleteBtn?: boolean; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | showDeleteBtn: true, |
| | | }); |
| | | |
| | | const visible = defineModel<boolean>('visible'); |
| | | const fileList = defineModel<UploadUserFile[]>('fileList'); |
| | | |
| | | const proTable = ref<InstanceType<typeof ProTableV2>>(); |
| | | |
| | | const columns = defineColumns([ |
| | | { |
| | | id: '1', |
| | | enCode: 'extension', |
| | | name: 'æä»¶ç±»å', |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'name', |
| | | name: 'æä»¶åç§°', |
| | | }, |
| | | ]); |
| | | |
| | | const operationBtns = defineOperationBtns([ |
| | | // { |
| | | // data: { |
| | | // enCode: 'detailBtn', |
| | | // name: 'æ¥ç', |
| | | // }, |
| | | // emits: { |
| | | // onClick: (row) => handlePreview(row), |
| | | // }, |
| | | // extraProps: { |
| | | // hide: (row: UploadUserFile) => !isFileCanPreview(row.path), |
| | | // }, |
| | | // }, |
| | | { |
| | | data: { |
| | | enCode: 'downloadBtn', |
| | | name: 'æ¥ç', |
| | | }, |
| | | emits: { |
| | | onClick: (row) => handleDownload(row), |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'delBtn', |
| | | name: 'å é¤', |
| | | }, |
| | | props: { |
| | | type: 'danger', |
| | | }, |
| | | emits: { |
| | | onClick: (row) => handleDelete(row), |
| | | }, |
| | | extraProps: { |
| | | hide: (row) => !props.showDeleteBtn, |
| | | }, |
| | | }, |
| | | ]); |
| | | |
| | | async function handleDelete(row: UploadUserFile) { |
| | | try { |
| | | await Message.deleteMessage(); |
| | | fileList.value = fileList.value.filter((item) => item.uid !== row.uid); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleDownload(row: UploadUserFile) { |
| | | downloadFileByUrl(row.url); |
| | | } |
| | | |
| | | function handlePreview(row: UploadUserFile) { |
| | | bolePreview({ |
| | | fileUrl: row.url, |
| | | }); |
| | | } |
| | | |
| | | function handleBatchDownload() { |
| | | if (fileList.value.length) { |
| | | const res: UploadUserFile[] = proTable.value.innerTableRef.getSelectionRows(); |
| | | if (res.length > 0) { |
| | | downloadWithZip( |
| | | res.map((item) => ({ data: item.url })), |
| | | props.zipName |
| | | ); |
| | | } else { |
| | | Message.errorMessage('æªéæ©æ°æ®'); |
| | | } |
| | | } else { |
| | | Message.errorMessage('ææ æ°æ®'); |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @use '@/style/common.scss' as *; |
| | | |
| | | .query-label { |
| | | font-size: 16px; |
| | | line-height: 40px; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <ProDialog :title="title" v-model="visible" destroy-on-close draggable width="800px"> |
| | | <FourStreamsMaterialFileTable v-model:list="form.list" v-bind="props" /> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button type="primary" @click="handleConfirm">ç¡® å®</el-button> |
| | | </span> |
| | | </template> |
| | | </ProDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts" generic="T"> |
| | | import { ProDialog } from '@bole-core/components'; |
| | | import FourStreamsMaterialFileTable from './FourStreamsMaterialFileTable.vue'; |
| | | import { FourStreamsMaterialFileTableProps, BaseMaterialFileTableItem } from './types'; |
| | | |
| | | defineOptions({ |
| | | name: 'FourStreamsMaterialFileDialog', |
| | | }); |
| | | |
| | | type Props = FourStreamsMaterialFileTableProps & { |
| | | title?: string; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | showUploadBtn: true, |
| | | showCheckBtn: true, |
| | | showDownloadBtn: true, |
| | | showDeleteBtn: true, |
| | | title: 'ææè¯¦æ
', |
| | | }); |
| | | |
| | | const visible = defineModel({ type: Boolean }); |
| | | |
| | | type Form = { |
| | | list: BaseMaterialFileTableItem<T>[]; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | | |
| | | const emit = defineEmits<{ |
| | | (e: 'onConfirm'): void; |
| | | (e: 'onCancel'): void; |
| | | }>(); |
| | | |
| | | function handleConfirm() { |
| | | emit('onConfirm'); |
| | | } |
| | | </script> |
| | |
| | | :showTableColumnSetting="false" |
| | | > |
| | | <template #fileBusinessType="{ row }"> |
| | | {{ FourStreamsMaterialFileBusinessTypeEnumText[row.fileBusinessType] }} |
| | | {{ BusinessTypeEnumText[row.fileBusinessType] }} |
| | | </template> |
| | | <template #operationBtn-uploadBtn="{ data, row }"> |
| | | <BlFileUpload |
| | |
| | | </BlFileUpload> |
| | | </template> |
| | | </ProTableV2> |
| | | <FourStreamsBatchMaterialFileDialog |
| | | v-bind="dialogProps" |
| | | :name="''" |
| | | :zipName="`${BusinessTypeEnumText[currentFourStreamsMaterialFileTableItem.fileBusinessType as any]}`" |
| | | v-model:fileList="currentFourStreamsMaterialFileTableItem.fileList" |
| | | :showDeleteBtn="showDeleteBtn" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | <script setup lang="ts" generic="T"> |
| | | import { |
| | | FourStreamsMaterialFileTableProps, |
| | | FourStreamsMaterialFileTableItem, |
| | | BaseMaterialFileTableItem, |
| | | FourStreamsMaterialFileBusinessTypeEnumText, |
| | | } from './types'; |
| | | import { |
| | |
| | | defineOperationBtns, |
| | | BlFileUpload, |
| | | bolePreview, |
| | | useDialog, |
| | | } from '@bole-core/components'; |
| | | import { downloadFileByUrl } from '@/utils'; |
| | | import { Message, isFileCanPreview } from '@bole-core/core'; |
| | | import { Message, isFileCanPreview, downloadWithZip } from '@bole-core/core'; |
| | | import { useDefineColumns } from '@/hooks'; |
| | | import FourStreamsBatchMaterialFileDialog from './FourStreamsBatchMaterialFileDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'FourStreamsMaterialFileTable', |
| | |
| | | showDownloadBtn: true, |
| | | showDeleteBtn: true, |
| | | downloadBtnText: 'ä¸è½½', |
| | | BusinessTypeEnumText: () => FourStreamsMaterialFileBusinessTypeEnumText, |
| | | }); |
| | | |
| | | const list = defineModel<FourStreamsMaterialFileTableItem[]>('list'); |
| | | const list = defineModel<BaseMaterialFileTableItem<T>[]>('list'); |
| | | |
| | | const columns = defineColumns([ |
| | | { |
| | |
| | | name: 'ä¸ä¼ ', |
| | | }, |
| | | extraProps: { |
| | | hide: (row: FourStreamsMaterialFileTableItem) => { |
| | | hide: (row: BaseMaterialFileTableItem<T>) => { |
| | | if (!props.showUploadBtn) return true; |
| | | let fileList = row?.fileList?.filter?.((item) => item.status === 'success'); |
| | | return fileList?.length > 0; |
| | |
| | | onClick: (row) => handlePreview(row), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: FourStreamsMaterialFileTableItem) => { |
| | | hide: (row: BaseMaterialFileTableItem<T>) => { |
| | | if (!props.showCheckBtn) return true; |
| | | let fileList = row?.fileList?.filter?.((item) => item.status === 'success'); |
| | | if (!fileList?.length) { |
| | |
| | | onClick: (row) => handleBatchDownload(row), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: FourStreamsMaterialFileTableItem) => { |
| | | hide: (row: BaseMaterialFileTableItem<T>) => { |
| | | return ( |
| | | !props.showDownloadBtn || |
| | | !row?.fileList?.filter?.((item) => item.status === 'success')?.length |
| | |
| | | onClick: (row) => handleDelete(row), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: FourStreamsMaterialFileTableItem) => { |
| | | hide: (row: BaseMaterialFileTableItem<T>) => { |
| | | if (!props.showDeleteBtn) return true; |
| | | let fileList = row?.fileList?.filter?.((item) => item.status === 'success'); |
| | | return !fileList?.length; |
| | |
| | | ], |
| | | }); |
| | | |
| | | async function handleDelete(row: FourStreamsMaterialFileTableItem) { |
| | | async function handleDelete(row: BaseMaterialFileTableItem<T>) { |
| | | try { |
| | | await Message.deleteMessage(); |
| | | row.fileList = []; |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function handlePreview(row: FourStreamsMaterialFileTableItem) { |
| | | const currentFourStreamsMaterialFileTableItem = ref<BaseMaterialFileTableItem<T>>({ |
| | | fileBusinessType: 0 as any, |
| | | fileList: [], |
| | | }); |
| | | const { dialogProps, dialogState } = useDialog(); |
| | | |
| | | async function handlePreview(row: BaseMaterialFileTableItem<T>) { |
| | | if (row.fileList.length > 1) { |
| | | // currentEnterpriseMaterialFileTableItem.value = row; |
| | | // await nextTick(); |
| | | // dialogState.dialogVisible = true; |
| | | currentFourStreamsMaterialFileTableItem.value = row; |
| | | await nextTick(); |
| | | dialogState.dialogVisible = true; |
| | | } else { |
| | | bolePreview({ |
| | | fileUrl: row.fileList[0].url, |
| | |
| | | } |
| | | } |
| | | |
| | | function handleBatchDownload(row: FourStreamsMaterialFileTableItem) { |
| | | async function handleBatchDownload(row: BaseMaterialFileTableItem<T>) { |
| | | const successFileList = row.fileList.filter((item) => item.status === 'success'); |
| | | if (successFileList.length === 0) { |
| | | Message.errorMessage('没æå¯ä¸è½½çæä»¶'); |
| | |
| | | } else { |
| | | // downloadWithZip( |
| | | // successFileList.map((item) => ({ data: item.url })), |
| | | // `${AllEnterpriseMaterialFileBusinessTypeEnumText[row.fileBusinessType]}æææä»¶` |
| | | // `${props.BusinessTypeEnumText[row.fileBusinessType as any]}` |
| | | // ); |
| | | currentFourStreamsMaterialFileTableItem.value = row; |
| | | await nextTick(); |
| | | dialogState.dialogVisible = true; |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="ä¼ä¸è¥æ¶æ±æ»è¡¨:" prop="enterpriseOperateFileUrl"> |
| | | <ProFormItemV2 |
| | | label="ä¼ä¸è¥æ¶æ±æ»è¡¨:" |
| | | prop="enterpriseOperateFileUrl" |
| | | style="margin-bottom: 22px" |
| | | > |
| | | <ProFormUpload v-model:file-url="form.enterpriseOperateFileUrl"></ProFormUpload> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="å
¥é©»æ
åµå
³è说æ:" prop="enterpriseRelateFileUrl"> |
| | | <ProFormUpload v-model:file-url="form.enterpriseRelateFileUrl"></ProFormUpload> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | form: { |
| | | enterpriseTaxSubFileUrl: UploadUserFile[]; |
| | | enterpriseOperateFileUrl: UploadUserFile[]; |
| | | enterpriseRelateFileUrl: UploadUserFile[]; |
| | | }; |
| | | }; |
| | | |
| | |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="æ¬æ¬¡ç³æ¥å¥å±éæ»é¢:" prop="applySumAmount"> |
| | | <ProFormInputNumber v-model="form.applySumAmount" unit="å
" /> |
| | | <ProFormInputNumber v-model="form.applySumAmount" formatValue="money" unit="å
" /> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | |
| | | import { EnterpriseMaterialFileBusinessTypeEnum } from '@/constants'; |
| | | import { UploadUserFile } from '@bole-core/components'; |
| | | |
| | | export type FourStreamsMaterialFileTableProps = { |
| | |
| | | showDownloadBtn?: boolean; |
| | | showDeleteBtn?: boolean; |
| | | downloadBtnText?: string; |
| | | BusinessTypeEnumText?: { [key: number]: string }; |
| | | }; |
| | | |
| | | export type FourStreamsMaterialFileTableItem = { |
| | | fileBusinessType: FourStreamsMaterialFileBusinessTypeEnum; |
| | | export type BaseMaterialFileTableItem<T> = { |
| | | fileBusinessType: T; |
| | | fileList: UploadUserFile[]; |
| | | }; |
| | | |
| | | export type FourStreamsMaterialFileTableItem = |
| | | BaseMaterialFileTableItem<FourStreamsMaterialFileBusinessTypeEnum>; |
| | | |
| | | export type ApplyTransferMaterialFileTableItem = |
| | | BaseMaterialFileTableItem<ApplyTransferFileBusinessTypeEnum>; |
| | | |
| | | export type TransferFileEnumInRewardGrandTableItem = |
| | | BaseMaterialFileTableItem<TransferFileEnumInRewardGrand>; |
| | | |
| | | export enum EnterpriseTypeEnum { |
| | | /** |
| | | * 人åèµæºå
¬å¸ |
| | |
| | | TaxSubFileUrl = 30, |
| | | /** ä¼ä¸è¥æ¶å©æ¶¦è¡¨ */ |
| | | OperateProfitesUrl = 40, |
| | | /** å
¥é©»å
³è说æ */ |
| | | /** |
| | | * å
¥é©»å
³è说æ |
| | | * @deprecated å·²ç»ä¸ç¨äº |
| | | */ |
| | | EnterRelateUrl = 50, |
| | | /** C端个ç¨å®ç¨æ
åµè¯´æ */ |
| | | /** C端个ç¨å®ç¨è¯æ */ |
| | | PersonTaxRatePayUrl = 60, |
| | | /** C端å®ç¨è¯´æ */ |
| | | PersonTaxInstructUrl = 70, |
| | | } |
| | | |
| | | export const FourStreamsMaterialFileBusinessTypeEnumText = { |
| | | [FourStreamsMaterialFileBusinessTypeEnum.ParkEnterPactUrl]: 'ååºå
¥é©»åè®®', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.RatePaymentFileUrl]: 'ä¼ä¸å®ç¨è¯æ(çç« )', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.TaxSubFileUrl]: 'ä¼ä¸ç¼´ç¨æç»æ±æ»è¡¨(çç« )', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.OperateProfitesUrl]: 'ä¼ä¸è¥æ¶å©æ¶¦è¡¨', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.EnterRelateUrl]: 'å
¥é©»å
³è说æ', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.PersonTaxRatePayUrl]: 'C端个ç¨å®ç¨æ
åµè¯´æ', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.PersonTaxRatePayUrl]: 'C端个ç¨å®ç¨è¯æ', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.PersonTaxInstructUrl]: 'C端å®ç¨æ
åµè¯´æ', |
| | | }; |
| | | |
| | | export const FourStreamsMaterialFileBusinessTypeEnumKey = { |
| | |
| | | [FourStreamsMaterialFileBusinessTypeEnum.OperateProfitesUrl]: 'operateProfitesUrl', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.EnterRelateUrl]: 'enterRelateUrl', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.PersonTaxRatePayUrl]: 'personTaxRatePayUrl', |
| | | [FourStreamsMaterialFileBusinessTypeEnum.PersonTaxInstructUrl]: 'personTaxInstructUrl', |
| | | } as const; |
| | | |
| | | export enum ApplyTransferFileBusinessTypeEnum { |
| | | /** æ¨ä»åè¯*/ |
| | | FinanceToFileUrl = 100, |
| | | /** å
å¼åè¯*/ |
| | | TransferToFileUrl = 110, |
| | | } |
| | | |
| | | export const ApplyTransferFileBusinessTypeEnumText = { |
| | | [ApplyTransferFileBusinessTypeEnum.FinanceToFileUrl]: 'æ¨ä»åè¯', |
| | | [ApplyTransferFileBusinessTypeEnum.TransferToFileUrl]: 'å
å¼åè¯', |
| | | }; |
| | | |
| | | export const ApplyTransferFileBusinessTypeEnumKey = { |
| | | [ApplyTransferFileBusinessTypeEnum.FinanceToFileUrl]: 'financeToFileUrl', |
| | | [ApplyTransferFileBusinessTypeEnum.TransferToFileUrl]: 'transferToFileUrl', |
| | | } as const; |
| | | |
| | | export enum TransferFileEnumInRewardGrand { |
| | | /** æ¨ä»åè¯*/ |
| | | FinanceFileUrl = 200, |
| | | /** å
å¼åè¯*/ |
| | | SettleFileUrl = 210, |
| | | } |
| | | |
| | | export const TransferFileEnumInRewardGrandText = { |
| | | [TransferFileEnumInRewardGrand.FinanceFileUrl]: 'æ¨ä»åè¯', |
| | | [TransferFileEnumInRewardGrand.SettleFileUrl]: 'å
å¼åè¯', |
| | | }; |
| | | |
| | | export const TransferFileEnumInRewardGrandKey = { |
| | | [TransferFileEnumInRewardGrand.FinanceFileUrl]: 'financeFileUrl', |
| | | [TransferFileEnumInRewardGrand.SettleFileUrl]: 'settleFileUrl', |
| | | } as const; |
| | |
| | | import { convertApi2FormUrlOnlyOne } from '@/utils'; |
| | | import { convertApi2FormUrl, convertApi2FormUrlOnlyOne } from '@/utils'; |
| | | import { |
| | | ApplyTransferFileBusinessTypeEnum, |
| | | ApplyTransferFileBusinessTypeEnumKey, |
| | | ApplyTransferMaterialFileTableItem, |
| | | FourStreamsMaterialFileBusinessTypeEnum, |
| | | FourStreamsMaterialFileBusinessTypeEnumKey, |
| | | FourStreamsMaterialFileTableItem, |
| | | TransferFileEnumInRewardGrand, |
| | | TransferFileEnumInRewardGrandKey, |
| | | TransferFileEnumInRewardGrandTableItem, |
| | | } from '../types'; |
| | | |
| | | export class FourStreamsMaterialUtils { |
| | |
| | | /**æ°åç»æµåææ */ |
| | | static DigitIndustrialParkMaterialFile = [ |
| | | FourStreamsMaterialFileBusinessTypeEnum.ParkEnterPactUrl, |
| | | FourStreamsMaterialFileBusinessTypeEnum.EnterRelateUrl, |
| | | // FourStreamsMaterialFileBusinessTypeEnum.EnterRelateUrl, |
| | | FourStreamsMaterialFileBusinessTypeEnum.RatePaymentFileUrl, |
| | | FourStreamsMaterialFileBusinessTypeEnum.TaxSubFileUrl, |
| | | FourStreamsMaterialFileBusinessTypeEnum.OperateProfitesUrl, |
| | | FourStreamsMaterialFileBusinessTypeEnum.PersonTaxRatePayUrl, |
| | | FourStreamsMaterialFileBusinessTypeEnum.PersonTaxInstructUrl, |
| | | ]; |
| | | |
| | | /**è´¢æ¿æ¨ä»åå¹³å°å
å¼åè¯ */ |
| | | static ApplyTransferMaterialFile = [ |
| | | ApplyTransferFileBusinessTypeEnum.FinanceToFileUrl, |
| | | ApplyTransferFileBusinessTypeEnum.TransferToFileUrl, |
| | | ]; |
| | | |
| | | /**è´¢æ¿æ¨ä»åå¹³å°å
å¼åè¯ å¥å±éåæ¾*/ |
| | | static TransferFileEnumInRewardGrandFile = [ |
| | | TransferFileEnumInRewardGrand.FinanceFileUrl, |
| | | TransferFileEnumInRewardGrand.SettleFileUrl, |
| | | ]; |
| | | |
| | | static isFourStreamsParkType(parkTypeName) { |
| | |
| | | ]) |
| | | ); |
| | | } |
| | | |
| | | static initApplyTransferMaterialFileList< |
| | | T extends { financeToFileUrl?: string; transferToFileUrl?: string } |
| | | >(data: T) { |
| | | return this.ApplyTransferMaterialFile.map((item) => { |
| | | const filePathList = data[ApplyTransferFileBusinessTypeEnumKey[item]] |
| | | ? data[ApplyTransferFileBusinessTypeEnumKey[item]].split('|') |
| | | : []; |
| | | return { |
| | | fileBusinessType: item, |
| | | fileList: filePathList.map(convertApi2FormUrl), |
| | | } as ApplyTransferMaterialFileTableItem; |
| | | }); |
| | | } |
| | | |
| | | static initApplyRewardGrandFileList< |
| | | T extends { financeFileUrl?: string; settleFileUrl?: string } |
| | | >(data: T) { |
| | | return this.TransferFileEnumInRewardGrandFile.map((item) => { |
| | | const filePathList = data[TransferFileEnumInRewardGrandKey[item]] |
| | | ? data[TransferFileEnumInRewardGrandKey[item]].split('|') |
| | | : []; |
| | | return { |
| | | fileBusinessType: item, |
| | | fileList: filePathList.map(convertApi2FormUrl), |
| | | } as TransferFileEnumInRewardGrandTableItem; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export class ParkTypeUtils { |
| | |
| | | |
| | | export enum SettleStatusEnum { |
| | | /** |
| | | * å¾
åæ¾ |
| | | * å¾
å
å¼ |
| | | */ |
| | | WaitForSettle = 1, |
| | | /** |
| | | * 已忾 |
| | | * å·²å
å¼ |
| | | */ |
| | | HasSettle = 2, |
| | | } |
| | | |
| | | export const SettleStatusEnumText = { |
| | | [SettleStatusEnum.WaitForSettle]: 'å¾
åæ¾', |
| | | [SettleStatusEnum.HasSettle]: '已忾', |
| | | [SettleStatusEnum.WaitForSettle]: 'å¾
å
å¼', |
| | | [SettleStatusEnum.HasSettle]: 'å·²å
å¼', |
| | | }; |
| | | |
| | | export enum FinanceStatusEnum { |
| | | /** |
| | | * å¾
æ¨ä» |
| | | */ |
| | | WaitForIncome = 1, |
| | | /** |
| | | * å·²æ¨ä» |
| | | */ |
| | | HasIncome = 2, |
| | | } |
| | | |
| | | export const FinanceStatusEnumText = { |
| | | [FinanceStatusEnum.WaitForIncome]: 'å¾
æ¨ä»', |
| | | [FinanceStatusEnum.HasIncome]: 'å·²æ¨ä»', |
| | | }; |
| | | |
| | | export enum IncomeStatusEnum { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** é¢å
å¼å®¡æ ¸ POST /api/ParkBountyApply/CheckUserEnterpriseRecharge */ |
| | | export async function checkUserEnterpriseRecharge( |
| | | body: API.CheckUserEnterpriseRechargeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/CheckUserEnterpriseRecharge', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** ç»§ç»ç³æ¥ POST /api/ParkBountyApply/EditParkBountyApply */ |
| | | export async function editParkBountyApply( |
| | | body: API.EditParkBountyApplyStepOneInput, |
| | |
| | | ); |
| | | } |
| | | |
| | | /** è·åä¼ä¸æå䏿¬¡ä¸ä¼ çååºå
¥é©»åè®®æä»¶ GET /api/ParkBountyApply/GetEnterpriseLastUploadEnterPactFile */ |
| | | export async function getEnterpriseLastUploadEnterPactFile( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | | params: API.APIgetEnterpriseLastUploadEnterPactFileParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/ParkBountyApply/GetEnterpriseLastUploadEnterPactFile', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åä¼ä¸å
å¼å®¡æ ¸å表 POST /api/ParkBountyApply/GetEnterprisePreChargeCheckList */ |
| | | export async function getEnterprisePreChargeCheckList( |
| | | body: API.GetEnterprisePreChargeCheckListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterprisePreChargeCheckListOutputPageOutput>( |
| | | '/api/ParkBountyApply/GetEnterprisePreChargeCheckList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** è·åé¢å
å¼è¯¦æ
GET /api/ParkBountyApply/GetEnterpriseRechargeDetail */ |
| | | export async function getEnterpriseRechargeDetail( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | | params: API.APIgetEnterpriseRechargeDetailParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseRechargeDetail>( |
| | | '/api/ParkBountyApply/GetEnterpriseRechargeDetail', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** æ¿å¡ç«¯âå·¥ä½å°æ°æ®çæ¿ GET /api/ParkBountyApply/GetGoverDataBoard */ |
| | | export async function getGoverDataBoard(options?: API.RequestConfig) { |
| | | return request<API.GetGoverDataBoardOutput>('/api/ParkBountyApply/GetGoverDataBoard', { |
| | |
| | | ); |
| | | } |
| | | |
| | | /** è·åæ¹éå
¥è´¦ä¸æªè´¢æ¿æ¨ä»çä¼ä¸ GET /api/ParkBountyApply/GetParkBountyApplyBatchFinanceEnterprise */ |
| | | export async function getParkBountyApplyBatchFinanceEnterprise( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | | params: API.APIgetParkBountyApplyBatchFinanceEnterpriseParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetNotTransferCompanyNameListOutput[]>( |
| | | '/api/ParkBountyApply/GetParkBountyApplyBatchFinanceEnterprise', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** è¿è¥ç«¯-å¥å±éåæ¾-å
¥è´¦-è·åæ¹éå
¥è´¦ä¸æªå
¥è´¦çä¼ä¸ GET /api/ParkBountyApply/GetParkBountyApplyBatchTransferEnterprise */ |
| | | export async function getParkBountyApplyBatchTransferEnterprise( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 导å
¥å¥å±éå
¥è´¦ POST /api/ParkBountyApply/ImportParkBountyData */ |
| | | export async function importParkBountyData( |
| | | body: API.ImportBountyApplyDataInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.ImportBountyApplyDataOutput>('/api/ParkBountyApply/ImportParkBountyData', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** å
é¨å®¡æ ¸ POST /api/ParkBountyApply/IncheckParkBountyApply */ |
| | | export async function incheckParkBountyApply( |
| | | body: API.IncheckParkBountyApplyInput, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** æ¹éè´¢æ¿å
¥è´¦ POST /api/ParkBountyApply/ParkBountyApplyBatchFinance */ |
| | | export async function parkBountyApplyBatchFinance( |
| | | body: API.ParkBountyApplyBatchFinanceInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/ParkBountyApplyBatchFinance', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è¿è¥ç«¯âå
¥è´¦-æ¹éå
¥è´¦ POST /api/ParkBountyApply/ParkBountyApplyBatchTransfer */ |
| | | export async function parkBountyApplyBatchTransfer( |
| | | body: API.ParkBountyApplyBatchTransferInput, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** æ¿å¡ç«¯âå¥å±éåæ¾âä¸ä¼ åè¯ POST /api/ParkBountyApply/ParkBountyApplySettle */ |
| | | /** è´¢æ¿å
¥è´¦ POST /api/ParkBountyApply/ParkBountyApplyFinance */ |
| | | export async function parkBountyApplyFinance( |
| | | body: API.ParkBountyApplyRechargeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/ParkBountyApplyFinance', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** æ¿å¡ç«¯âå¥å±éåæ¾âä¸ä¼ è´¢æ¿æ¨ä»åè¯ POST /api/ParkBountyApply/ParkBountyApplyFinanceBill */ |
| | | export async function parkBountyApplyFinanceBill( |
| | | body: API.ParkBountyApplyFinanceFileInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/ParkBountyApplyFinanceBill', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è´¢æ¿å
¥è´¦ä¸ä¼ åè¯ POST /api/ParkBountyApply/ParkBountyApplyFinanceFile */ |
| | | export async function parkBountyApplyFinanceFile( |
| | | body: API.ParkBountyApplyRechargeFileInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/ParkBountyApplyFinanceFile', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** æ¿å¡ç«¯âå¥å±éåæ¾âä¸ä¼ å
å¼åè¯ POST /api/ParkBountyApply/ParkBountyApplySettle */ |
| | | export async function parkBountyApplySettle( |
| | | body: API.ParkBountyApplySettleInput, |
| | | options?: API.RequestConfig |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** ç¨æ·å
å¼ POST /api/ParkBountyApply/UserEnterpiseRecharge */ |
| | | export async function userEnterpiseRecharge( |
| | | body: API.UserEnterpiseRechargeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/UserEnterpiseRecharge', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** è·åå¹³å°é¶è¡è´¦æ·ä¿¡æ¯ GET /api/User/GetPlatIncomeRechargeAccount */ |
| | | export async function getPlatIncomeRechargeAccount(options?: API.RequestConfig) { |
| | | return request<API.GetPlatIncomeRechargeAccountOutput>('/api/User/GetPlatIncomeRechargeAccount', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åå¹³å°ç¨æ·è¯¦æ
GET /api/User/GetPlatUserAttestationInfo */ |
| | | export async function getPlatUserAttestationInfo( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | |
| | | transactionDetailId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseLastUploadEnterPactFileParams { |
| | | companyId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseMaterialIdByUserIdParams { |
| | | userId?: string; |
| | | materialType?: EnterpriseMaterialTypeEnum; |
| | | } |
| | | |
| | | interface APIgetEnterpriseRechargeDetailParams { |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetFirstCurrentUserModuleListCacheByModuleIdParams { |
| | | moduleId?: string; |
| | | } |
| | |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetParkBountyApplyBatchFinanceEnterpriseParams { |
| | | parkBountyApplyId?: string; |
| | | } |
| | | |
| | | interface APIgetParkBountyApplyBatchTransferEnterpriseParams { |
| | | parkBountyApplyId?: string; |
| | | } |
| | |
| | | verificationCode?: string; |
| | | } |
| | | |
| | | interface CheckUserEnterpriseRechargeInput { |
| | | id?: string; |
| | | checkStatus?: EnterpriseRechargeStatusEnum; |
| | | remark?: string; |
| | | } |
| | | |
| | | interface CheckUserWalletBalanceInfoOutput { |
| | | acctNo?: string; |
| | | acctName?: string; |
| | |
| | | description?: string; |
| | | parkCustomersCount?: ParkCustomersCountTypeEnum; |
| | | /** æç«å¹´ä»½ */ |
| | | setUpDate: number; |
| | | setUpDate?: number; |
| | | serveSetting?: string[]; |
| | | workOfType?: string[]; |
| | | parkStyle?: ParkStyleDto[]; |
| | |
| | | |
| | | type EnterpriseMaterialTypeEnum = 10 | 11 | 20; |
| | | |
| | | type EnterpriseRechargeStatusEnum = 10 | 20 | 30; |
| | | |
| | | interface EnterpriseRegVerifyInput { |
| | | /** ç¨æ·Id */ |
| | | userId?: string; |
| | |
| | | configuration?: Record<string, any>; |
| | | } |
| | | |
| | | interface ExportBountyApplyData { |
| | | /** ä¼ä¸åç§° */ |
| | | enterpriseName: string; |
| | | /** ä¿¡ç¨ä»£ç */ |
| | | societyCreditCode: string; |
| | | /** è´¢æ¿æ¨ä»éé¢ */ |
| | | financeToAmountStr?: string; |
| | | /** å¹³å°å
å¼éé¢ */ |
| | | transferToAmountStr?: string; |
| | | /** è´¢æ¿æ¨ä»éé¢ */ |
| | | financeToAmount?: number; |
| | | /** å¹³å°å
å¼éé¢ */ |
| | | transferToAmount?: number; |
| | | /** 夿³¨ */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface ExportInsStaffInput { |
| | | companyId?: string; |
| | | url?: string; |
| | |
| | | fileId?: string; |
| | | } |
| | | |
| | | type FinanceStatusEnum = 1 | 2; |
| | | |
| | | type FinanceTypeEnum = 10 | 20; |
| | | |
| | | interface FirstPartyCompanyAuditDatilOutput { |
| | | id?: string; |
| | | userId?: string; |
| | |
| | | remianAmount?: number; |
| | | payRemark?: string; |
| | | fileUrl?: string; |
| | | financeType?: FinanceTypeEnum; |
| | | payFileUrls?: string[]; |
| | | } |
| | | |
| | |
| | | data?: GetEnterpriseCredentialDataResponse; |
| | | } |
| | | |
| | | interface GetEnterprisePreChargeCheckListInput { |
| | | pageModel?: Pagination; |
| | | keyWord?: string; |
| | | beginDateTime?: string; |
| | | endDateTime?: string; |
| | | checkStatus?: EnterpriseRechargeStatusEnum; |
| | | } |
| | | |
| | | interface GetEnterprisePreChargeCheckListOutput { |
| | | id?: string; |
| | | /** ç»å½è´¦å· */ |
| | | userName?: string; |
| | | /** é¶è¡è´¦æ· */ |
| | | outBankNum?: string; |
| | | /** ä¼ä¸åç§° */ |
| | | enterpriseName?: string; |
| | | /** åºæ¬¾ä¼ä¸è´¦æ·åç§° */ |
| | | outEnterpriseName?: string; |
| | | /** å
å¼éé¢ */ |
| | | prechargeAmount?: number; |
| | | /** åºè´¦æå±é¶è¡ */ |
| | | outBankName?: string; |
| | | /** å
弿µæ°´å· */ |
| | | rechargeSerialNo?: string; |
| | | /** æäº¤æ¥æ */ |
| | | creationTime?: string; |
| | | checkStatus?: EnterpriseRechargeStatusEnum; |
| | | } |
| | | |
| | | interface GetEnterprisePreChargeCheckListOutputPageOutput { |
| | | pageModel?: Pagination; |
| | | objectData?: any; |
| | | data?: GetEnterprisePreChargeCheckListOutput[]; |
| | | } |
| | | |
| | | interface GetEnterpriseRechargeDetail { |
| | | id?: string; |
| | | /** å
å¼è´¦å· */ |
| | | incomeBankNum?: string; |
| | | /** ä¼ä¸åç§° */ |
| | | incomeEnterpriseName?: string; |
| | | /** åºæ¬¾è´¦å· */ |
| | | outBankNum?: string; |
| | | /** åºæ¬¾ä¼ä¸åç§° */ |
| | | outEnterpriseName?: string; |
| | | /** å
å¼éé¢ */ |
| | | prechargeAmount?: number; |
| | | /** åºè´¦æå±é¶è¡ */ |
| | | outBankName?: string; |
| | | /** åºè´¦æ¯è¡åç§° */ |
| | | outBankResumeName?: string; |
| | | /** åºè´¦åå */ |
| | | outReceiptFileUrl?: string; |
| | | /** å®¡æ ¸å¤æ³¨ */ |
| | | checkRemark?: string; |
| | | checkStatus?: EnterpriseRechargeStatusEnum; |
| | | /** æäº¤æ¥æ */ |
| | | creationTime?: string; |
| | | } |
| | | |
| | | interface GetFeatureListResultDto { |
| | | groups?: FeatureGroupDto[]; |
| | | } |
| | |
| | | /** ä¼ä¸ç»è¥å©æ¶¦è¡¨ */ |
| | | operateProfitesUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterRelateUrl?: string; |
| | | personTaxInstructUrl?: string; |
| | | /** C端个ç¨å®ç¨æ
åµè¯´æ */ |
| | | personTaxRatePayUrl?: string; |
| | | } |
| | |
| | | settleTimeBegin?: string; |
| | | /** åæ¾ç»ææ¥æ */ |
| | | settleTimeEnd?: string; |
| | | /** æ¨ä»èµ·å§æ¥æ */ |
| | | financeTimeBegin?: string; |
| | | /** æ¨ä»ç»ææ¥æ */ |
| | | financeTimeEnd?: string; |
| | | /** å
¥è´¦èµ·å§æ¥æ */ |
| | | incomeTimeBegin?: string; |
| | | /** å
¥è´¦ç»ææ¥æ */ |
| | |
| | | inCheckStatus?: BountyCheckStatusEnum; |
| | | settleStatus?: SettleStatusEnum; |
| | | incomeStatus?: IncomeStatusEnum; |
| | | financeStatus?: FinanceStatusEnum; |
| | | } |
| | | |
| | | interface GetParkBountyApplyListOutput { |
| | |
| | | outCheckTime?: string; |
| | | /** åæ¾åè¯ */ |
| | | settleFileUrl?: string; |
| | | financeStatus?: FinanceStatusEnum; |
| | | /** è´¢æ¿åæ¾æ¶é´ */ |
| | | financeTime?: string; |
| | | /** è´¢æ¿åæ¾åè¯ */ |
| | | financeFileUrl?: string; |
| | | /** å
å¼éé¢ */ |
| | | settleSumAmount?: number; |
| | | /** è´¢æ¿åæ¾éé¢ */ |
| | | financeSumAmount?: number; |
| | | } |
| | | |
| | | interface GetParkBountyApplyListOutputPageOutput { |
| | |
| | | /** ä¼ä¸å/ä¿¡ç¨ä»£ç */ |
| | | searchKeyWord?: string; |
| | | transferToStatus?: TransferToStatusEnum; |
| | | financeToStatus?: FinanceStatusEnum; |
| | | } |
| | | |
| | | interface GetParkBountyTradeDetailByIdInput { |
| | |
| | | tradeTime?: string; |
| | | /** å¥å±éä½é¢ */ |
| | | remianAmount?: number; |
| | | financeType?: FinanceTypeEnum; |
| | | } |
| | | |
| | | interface GetParkBountyTradeDetailOutputPageOutput { |
| | |
| | | id?: string; |
| | | /** ç³è¯·æ¹æ¬¡å· */ |
| | | batchNo?: string; |
| | | /** åæ¾æ¥æ */ |
| | | settleTime?: string; |
| | | /** å
¥è´¦æ¶é´ */ |
| | | incomeTime?: string; |
| | | incomeStatus?: TransferToStatusEnum; |
| | | /** åæ¾éé¢ */ |
| | | /** ç³æ¥æ»é¢ */ |
| | | applySumAmount?: number; |
| | | /** å
¥è´¦åè¯ */ |
| | | /** å¹³å°å
å¼å
¥è´¦æ¶é´ */ |
| | | transferToTime?: string; |
| | | transferToStatus?: TransferToStatusEnum; |
| | | /** å¹³å°å
å¼éé¢ */ |
| | | transferToAmount?: number; |
| | | /** å¹³å°å
å¼å
¥è´¦åè¯ */ |
| | | transferToFileUrl?: string; |
| | | /** è´¢æ¿æ¨ä»éé¢ */ |
| | | financeToAmount?: number; |
| | | /** è´¢æ¿æ¨ä»å
¥è´¦æ¶é´ */ |
| | | financeToTime?: string; |
| | | /** è´¢æ¿æ¨ä»åæ¾æ¥æ */ |
| | | financeTime?: string; |
| | | /** å¹³å°å
å¼åæ¾æ¥æ */ |
| | | settleTime?: string; |
| | | financeToStatus?: FinanceStatusEnum; |
| | | /** æ¨ä»å
¥è´¦åè¯ */ |
| | | financeToFileUrl?: string; |
| | | } |
| | | |
| | | interface GetParkCustomerBountyGrantOutputPageOutput { |
| | |
| | | payCount?: number; |
| | | /** æè¿åæ¾æ¶é´ */ |
| | | lastPayTime?: string; |
| | | /** åæ¾æ»é¢ */ |
| | | bountySumAmount?: number; |
| | | /** å¥å±éä½é¢ */ |
| | | bountyAmount?: number; |
| | | } |
| | |
| | | queryCondition?: string; |
| | | } |
| | | |
| | | interface GetPlatIncomeRechargeAccountOutput { |
| | | bankNumber?: string; |
| | | bankName?: string; |
| | | bankBranchName?: string; |
| | | bankAccountName?: string; |
| | | } |
| | | |
| | | interface GetProductAdvertiseByCategoryInput { |
| | | pageModel?: Pagination; |
| | | /** ç±»å«Id */ |
| | |
| | | interface GetUserBaseEnterpriseInfoOutput { |
| | | /** å¥å±éä½é¢ */ |
| | | bountyAmount?: number; |
| | | /** å
å¼ä½é¢ */ |
| | | rechargeAmount?: number; |
| | | enterpriseName?: string; |
| | | societyCreditCode?: string; |
| | | licenseUrl?: string; |
| | |
| | | roleNames: string[]; |
| | | } |
| | | |
| | | interface ImportBountyApplyDataInput { |
| | | /** 导å
¥å°å */ |
| | | url?: string; |
| | | /** å¥å±éç³è¯·Id */ |
| | | parkBountyApplyId?: string; |
| | | } |
| | | |
| | | interface ImportBountyApplyDataOutput { |
| | | /** éè¯¯æ°æ®å表 */ |
| | | error?: ExportBountyApplyData[]; |
| | | } |
| | | |
| | | interface ImportIdentityCardInput { |
| | | /** CompanyId */ |
| | | companyId: string; |
| | |
| | | bountyAssignFileUlr?: string; |
| | | /** å¥å±éæ±æ»è¡¨ */ |
| | | bountyCollectFileUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterpriseRelateFileUrl?: string; |
| | | outCheckStatus?: BountyCheckStatusEnum; |
| | | /** å¤é¨å®¡æ ¸åå */ |
| | | outCheckRemark?: string; |
| | | /** å
é¨å®¡æ ¸åå */ |
| | | inCheckRemark?: string; |
| | | inCheckStatus?: BountyCheckStatusEnum; |
| | | /** è´¢æ¿æ¨ä»æ»é¢ */ |
| | | financeSumAmount?: number; |
| | | /** å¹³å°å
弿»é¢ */ |
| | | settleSumAmount?: number; |
| | | /** åæ¾åè¯ */ |
| | | settleFileUrl?: string; |
| | | /** è´¢æ¿åæ¾åè¯ */ |
| | | financeFileUrl?: string; |
| | | } |
| | | |
| | | interface OutcheckParkBountyApplyInput { |
| | |
| | | bountyAssignFileUlr?: string; |
| | | /** å¥å±éæ±æ»è¡¨ */ |
| | | bountyCollectFileUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterpriseRelateFileUrl?: string; |
| | | /** åæ¾åè¯ */ |
| | | settleFileUrl?: string; |
| | | /** è´¢æ¿åæ¾åè¯ */ |
| | | financeFileUrl?: string; |
| | | /** å
å¼éé¢ */ |
| | | settleSumAmount?: number; |
| | | /** è´¢æ¿åæ¾éé¢ */ |
| | | financeSumAmount?: number; |
| | | } |
| | | |
| | | interface ParkBountyApplyBatchFinanceInput { |
| | | parkBountyApplyDetailId?: string[]; |
| | | /** å
å¼éé¢ */ |
| | | financeToAmount?: number; |
| | | parkBountyApplyId?: string; |
| | | } |
| | | |
| | | interface ParkBountyApplyBatchTransferInput { |
| | | parkBountyApplyDetailId?: string[]; |
| | | /** å
¥è´¦éé¢ */ |
| | | transferToAmount?: number; |
| | | parkBountyApplyId?: string; |
| | | } |
| | | |
| | | interface ParkBountyApplyDetailInfo { |
| | |
| | | taxSubFileUrl?: string; |
| | | /** ä¼ä¸ç»è¥å©æ¶¦è¡¨ */ |
| | | operateProfitesUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterRelateUrl?: string; |
| | | /** C端å®åæ
åµè¯´æ */ |
| | | personTaxInstructUrl?: string; |
| | | /** C端个ç¨å®ç¨æ
åµè¯´æ */ |
| | | personTaxRatePayUrl?: string; |
| | | authType?: EnterpriseTypeEnum; |
| | |
| | | enterpriseIsVerify?: boolean; |
| | | /** æä»¶å®æ´åº¦ */ |
| | | fileCompleteRate?: string; |
| | | financeToStatus?: FinanceStatusEnum; |
| | | /** è´¢æ¿å
¥è´¦éé¢ */ |
| | | financeToAmount?: number; |
| | | /** è´¢æ¿å
¥è´¦æ¶é´ */ |
| | | financeToTime?: string; |
| | | /** è´¢æ¿å
¥è´¦åè¯ */ |
| | | financeToFileUrl?: string; |
| | | /** è´¢æ¿å
¥è´¦æä½ç¨æ· */ |
| | | financeToUserId?: string; |
| | | } |
| | | |
| | | interface ParkBountyApplyDetailInfoPageOutput { |
| | |
| | | data?: ParkBountyApplyDetailInfo[]; |
| | | } |
| | | |
| | | interface ParkBountyApplyFinanceFileInput { |
| | | parkBountyApplyId?: string; |
| | | /** åæ¾åè¯ */ |
| | | financeFileUrl?: string; |
| | | /** åæ¾éé¢ */ |
| | | financeSumAmount?: number; |
| | | } |
| | | |
| | | interface ParkBountyApplyRechargeFileInput { |
| | | parkBountyApplyDetailId?: string; |
| | | /** å¹³å°å
å¼åè¯ */ |
| | | rechargeToFileUrl?: string; |
| | | } |
| | | |
| | | interface ParkBountyApplyRechargeInput { |
| | | parkBountyApplyDetailId?: string; |
| | | /** è´¢æ¿æ¨ä» */ |
| | | bountyAmount?: number; |
| | | parkBountyApplyId?: string; |
| | | } |
| | | |
| | | interface ParkBountyApplySettleInput { |
| | | parkBountyApplyId?: string; |
| | | /** åæ¾åè¯ */ |
| | | settleFileUrl?: string; |
| | | /** åæ¾éé¢ */ |
| | | settleSumAmount?: number; |
| | | } |
| | | |
| | | interface ParkBountyApplyTransferDetailInfo { |
| | |
| | | taxSubFileUrl?: string; |
| | | /** ä¼ä¸ç»è¥å©æ¶¦è¡¨ */ |
| | | operateProfitesUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterRelateUrl?: string; |
| | | /** C端å®ç¨æ
åµè¯´æ */ |
| | | personTaxInstructUrl?: string; |
| | | /** C端个ç¨å®ç¨æ
åµè¯´æ */ |
| | | personTaxRatePayUrl?: string; |
| | | authType?: EnterpriseTypeEnum; |
| | |
| | | parkBountyApplyDetailId?: string; |
| | | /** å
¥è´¦åè¯ */ |
| | | transferToFileUrl?: string; |
| | | financeToStatus?: FinanceStatusEnum; |
| | | /** è´¢æ¿å
¥è´¦éé¢ */ |
| | | financeToAmount?: number; |
| | | /** è´¢æ¿å
¥è´¦æ¶é´ */ |
| | | financeToTime?: string; |
| | | /** è´¢æ¿å
¥è´¦åè¯ */ |
| | | financeToFileUrl?: string; |
| | | /** è´¢æ¿å
¥è´¦æä½ç¨æ· */ |
| | | financeToUserId?: string; |
| | | } |
| | | |
| | | interface ParkBountyApplyTransferDetailInfoPageOutput { |
| | |
| | | parkBountyApplyDetailId?: string; |
| | | /** å
¥è´¦éé¢ */ |
| | | transferToAmount?: number; |
| | | parkBountyApplyId?: string; |
| | | } |
| | | |
| | | type ParkCustomersCountTypeEnum = 10 | 50 | 100; |
| | |
| | | enterpriseOperateFileUrl?: string; |
| | | /** ä¼ä¸ç¼´ç¨æç»è¡¨ */ |
| | | enterpriseTaxSubFileUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterpriseRelateFileUrl?: string; |
| | | } |
| | | |
| | | interface SaveWalletPayChannelFeeSettingInput { |
| | |
| | | taxSubFileUrl?: string; |
| | | /** ä¼ä¸ç»è¥å©æ¶¦è¡¨ */ |
| | | operateProfitesUrl?: string; |
| | | /** å
¥é©»å
³è说æ */ |
| | | enterRelateUrl?: string; |
| | | /** C端å®ç¨æ
åµè¯´æ */ |
| | | personTaxInstructUrl?: string; |
| | | /** C端个ç¨å®ç¨æ
åµè¯´æ */ |
| | | personTaxRatePayUrl?: string; |
| | | } |
| | |
| | | data?: UserDto[]; |
| | | } |
| | | |
| | | interface UserEnterpiseRechargeInput { |
| | | /** æ¶æ¬¾è´¦å· */ |
| | | incomeBankNum?: string; |
| | | /** æ¶æ¬¾ä¼ä¸åç§° */ |
| | | incomeEnterpriseName?: string; |
| | | /** åºæ¬¾è´¦å· */ |
| | | outBankNum?: string; |
| | | /** åºæ¬¾ä¼ä¸åç§° */ |
| | | outEnterpriseName?: string; |
| | | /** å
å¼éé¢ */ |
| | | prechargeAmount?: number; |
| | | /** åºè´¦æå±é¶è¡ */ |
| | | outBankName?: string; |
| | | /** åºè´¦æ¯è¡åç§° */ |
| | | outBankResumeName?: string; |
| | | /** åºè´¦åå */ |
| | | outReceiptFileUrl?: string; |
| | | } |
| | | |
| | | type UserFollowStatusEnum = 10 | 20 | 30 | 40; |
| | | |
| | | interface UserGetContractEnterpriseFaceSignInput { |
| | |
| | | { |
| | | id: '6', |
| | | enCode: 'applyCount', |
| | | name: 'å¥å±éç³æ¥æ¬¡æ°', |
| | | name: 'ç³æ¥æ¬¡æ°', |
| | | width: 150, |
| | | }, |
| | | { |
| | |
| | | { |
| | | id: '8', |
| | | enCode: 'payCount', |
| | | name: 'å¥å±éåæ¾æ¬¡æ°', |
| | | name: 'åæ¾æ¬¡æ°', |
| | | width: 150, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | id: '10', |
| | | enCode: 'bountyAmount', |
| | | name: 'å¥å±éåæ¾æ»é¢', |
| | | enCode: 'bountySumAmount', |
| | | name: 'åæ¾æ»é¢', |
| | | width: 150, |
| | | }, |
| | | { |
| | | id: '11', |
| | | enCode: 'bountyAmount', |
| | | name: 'å¥å±éä½é¢', |
| | | name: 'å¹³å°å
å¼ä½é¢', |
| | | width: 150, |
| | | }, |
| | | ]; |
| | |
| | | columnsRenderProps: { |
| | | lastApplyTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | lastPayTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | bountySumAmount: { type: 'money' }, |
| | | bountyAmount: { type: 'money' }, |
| | | enterpriseType: { type: 'enum', valueEnum: EnterpriseTypeText }, |
| | | }, |
| | |
| | | <ProTabPane lazy label="ä¼ä¸ç³æ¥è®°å½" name="enterpriseDeclareRecord"> |
| | | <EnterpriseDeclareRecordView></EnterpriseDeclareRecordView> |
| | | </ProTabPane> |
| | | <ProTabPane lazy label="å¥å±éåæ¾è®°å½" name="rewardGrantRecord"> |
| | | <ProTabPane lazy label="åæ¾è®°å½" name="rewardGrantRecord"> |
| | | <RewardGrantRecordView></RewardGrantRecordView> |
| | | </ProTabPane> |
| | | <ProTabPane lazy label="å¥å±éæ¶è´¹è®°å½" name="rewardConsumeRecord"> |
| | | <ProTabPane lazy label="æ¶è´¹è®°å½" name="rewardConsumeRecord"> |
| | | <RewardConsumeRecordView></RewardConsumeRecordView> |
| | | </ProTabPane> |
| | | </ProTabs> |
| | |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | <ProFormColItem :span="8"> |
| | | <ProFormItemV2 label="弿·æ¯è¡:" prop="bankBranchName"> |
| | | <ProFormText v-model.trim="detail.bankBranchName" /> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | <ProFormColItem :span="8"> |
| | | <ProFormItemV2 label="é¶è¡å¸å·:" prop="bankCardNumber"> |
| | | <ProFormText v-model.trim="detail.bankCardNumber" /> |
| | | </ProFormItemV2> |
| | |
| | | { |
| | | id: '4', |
| | | enCode: 'remianAmount', |
| | | name: 'å¥å±éä½é¢', |
| | | name: 'èµéä½é¢', |
| | | }, |
| | | ]; |
| | | |
| | |
| | | <LoadingLayout :loading="state.loading"> |
| | | <AppContainer> |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | <template #operationBtn-checkBtn="{ data, row }"> |
| | | <PreviewBtnV2 |
| | | class="pro-table-operation-btn" |
| | | :url="convertApi2FormUrlBySeparator(row.transferToFileUrl ?? '')" |
| | | preview-btn-text="æ¥çåè¯" |
| | | /> |
| | | </template> |
| | | </ProTableV2> |
| | | <FourStreamsMaterialFileDialog |
| | | v-bind="dialogMaterialFileProps" |
| | | :show-upload-btn="false" |
| | | :show-delete-btn="false" |
| | | :show-check-btn="false" |
| | | downloadBtnText="æ¥ç" |
| | | title="æ¥çåè¯" |
| | | :BusinessTypeEnumText="ApplyTransferFileBusinessTypeEnumText" |
| | | /> |
| | | </AppContainer> |
| | | </LoadingLayout> |
| | | </template> |
| | |
| | | useTable, |
| | | ProTableV2, |
| | | defineOperationBtns, |
| | | PreviewBtnV2, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | | import { convertApi2FormUrlBySeparator } from '@/utils'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import { IncomeStatusEnumText } from '@/constants'; |
| | | import { ApplyTransferFileBusinessTypeEnumText } from '@/components/commonView/types'; |
| | | import { FourStreamsMaterialUtils } from '@/components/commonView/utils'; |
| | | import { ApplyTransferMaterialFileTableItem } from '@/components/commonView/types'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardGrantRecordView', |
| | |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'settleTime', |
| | | name: 'å¥å±éåæ¾æ¥æ', |
| | | enCode: 'applySumAmount', |
| | | name: 'ç³æ¥æ»é¢', |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'incomeTime', |
| | | name: 'å¥å±éå°è´¦æ¥æ', |
| | | enCode: 'financeToAmount', |
| | | name: 'è´¢æ¿æ¨ä»éé¢', |
| | | }, |
| | | { |
| | | id: '4', |
| | | enCode: 'applySumAmount', |
| | | name: 'åæ¾éé¢', |
| | | enCode: 'financeTime', |
| | | name: 'è´¢æ¿æ¨ä»æ¥æ', |
| | | }, |
| | | { |
| | | id: '5', |
| | | enCode: 'incomeStatus', |
| | | name: 'å°è´¦ç¡®è®¤ç»æ', |
| | | enCode: 'transferToAmount', |
| | | name: 'å¹³å°å
å¼éé¢', |
| | | }, |
| | | { |
| | | id: '6', |
| | | enCode: 'settleTime', |
| | | name: 'å¹³å°å
弿¥æ', |
| | | }, |
| | | ]; |
| | | |
| | |
| | | enCode: 'checkBtn', |
| | | name: 'æ¥çåè¯', |
| | | }, |
| | | emits: { |
| | | onClick: (row) => openMaterialFileDialog(row), |
| | | }, |
| | | }, |
| | | ]); |
| | | |
| | |
| | | }, |
| | | columnsRenderProps: { |
| | | settleTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | incomeTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | financeTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | applySumAmount: { type: 'money' }, |
| | | incomeStatus: { type: 'enum', valueEnum: IncomeStatusEnumText }, |
| | | financeToAmount: { type: 'money' }, |
| | | transferToAmount: { type: 'money' }, |
| | | }, |
| | | } |
| | | ); |
| | | |
| | | function handlePreview(row: API.InsureBatchBillDto) {} |
| | | function openMaterialFileDialog(row: API.GetParkCustomerBountyGrantOutput) { |
| | | handleMaterialFileAdd({ |
| | | list: FourStreamsMaterialUtils.initApplyTransferMaterialFileList(row), |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps: dialogMaterialFileProps, handleAdd: handleMaterialFileAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | list: [] as ApplyTransferMaterialFileTableItem[], |
| | | }, |
| | | }); |
| | | |
| | | onMounted(async () => { |
| | | await getList(); |
| | |
| | | unit="å®¶" |
| | | /> |
| | | </DataBoardCard> |
| | | <DataBoardCard title="ç´¯è®¡å·²åæ¾å¥å±é"> |
| | | <DataBoardCard title="ç´¯è®¡å·²åæ¾"> |
| | | <DataBoardCardPrice :value="detail?.accumulatedHasSettleRewardAmount ?? 0" unit="å
" /> |
| | | </DataBoardCard> |
| | | <DataBoardCard title="累计å¾
åæ¾å¥å±é"> |
| | | <DataBoardCard title="累计å¾
åæ¾"> |
| | | <DataBoardCardPrice |
| | | :value="detail?.accumulatedWaitForSettleRewardAmount ?? 0" |
| | | unit="å
" |
| | | /> |
| | | </DataBoardCard> |
| | | <DataBoardCard title="累计已使ç¨å¥å±é"> |
| | | <DataBoardCard title="累计已使ç¨"> |
| | | <DataBoardCardPrice :value="detail?.accumulatedUsedRewardAmount ?? 0" unit="å
" /> |
| | | </DataBoardCard> |
| | | </div> |
| | |
| | | enterpriseOperateFileUrl: [] as UploadUserFile[], |
| | | bountyAssignFileUlr: [] as UploadUserFile[], |
| | | bountyCollectFileUrl: [] as UploadUserFile[], |
| | | enterpriseRelateFileUrl: [] as UploadUserFile[], |
| | | |
| | | status: '' as any as BountyCheckStatusEnum, |
| | | remark: '', |
| | |
| | | form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl); |
| | | form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr); |
| | | form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl); |
| | | form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl); |
| | | |
| | | getList(); |
| | | }, |
| | |
| | | enterpriseOperateFileUrl: [] as UploadUserFile[], |
| | | bountyAssignFileUlr: [] as UploadUserFile[], |
| | | bountyCollectFileUrl: [] as UploadUserFile[], |
| | | enterpriseRelateFileUrl: [] as UploadUserFile[], |
| | | |
| | | outCheckStatus: '' as any as BountyCheckStatusEnum, |
| | | outCheckRemark: '', |
| | |
| | | form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl); |
| | | form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr); |
| | | form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl); |
| | | form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl); |
| | | |
| | | getList(); |
| | | }, |
| | |
| | | }, |
| | | columnsRenderProps: { |
| | | authType: { type: 'enum', valueEnum: EnterpriseTypeText }, |
| | | // licenseUrl: { |
| | | // type: 'url', |
| | | // formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl), |
| | | // modal: true, |
| | | // showDownloadBtn: true, |
| | | // showPreviewBtn: false, |
| | | // downloadBtnText: 'æ¥ç', |
| | | // }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | enterpriseOperateFileUrl: [] as UploadUserFile[], |
| | | bountyAssignFileUlr: [] as UploadUserFile[], |
| | | bountyCollectFileUrl: [] as UploadUserFile[], |
| | | enterpriseRelateFileUrl: [] as UploadUserFile[], |
| | | }); |
| | | |
| | | const { data: detail, isLoading } = useQuery({ |
| | |
| | | } |
| | | ); |
| | | }, |
| | | placeholderData: () => ({} as API.ParkBountyApplyBaseInfo), |
| | | placeholderData: () => ({} as API.OutCheckParkBountyApplyBaseInfo), |
| | | onSuccess(data) { |
| | | form.batchNo = data.batchNo; |
| | | form.parkName = data.parkName; |
| | |
| | | form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl); |
| | | form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr); |
| | | form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl); |
| | | form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl); |
| | | |
| | | getList(); |
| | | }, |
| | |
| | | @change="getList()" |
| | | ></FieldDatePicker> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem tip-content="åæ¾æ¥æ"> |
| | | <QueryFilterItem tip-content="æ¨ä»æ¥æ"> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.financeTime" |
| | | type="daterange" |
| | | range-separator="~" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | clearable |
| | | @change="getList()" |
| | | ></FieldDatePicker> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem tip-content="å
弿¥æ"> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.settleTime" |
| | | type="daterange" |
| | |
| | | @change="getList()" |
| | | ></FieldDatePicker> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <QueryFilterItem tip-content="è´¢æ¿æ¨ä»ç¶æ"> |
| | | <FieldRadio |
| | | v-model="extraParamState.financeStatus" |
| | | :value-enum="FinanceStatusEnumText" |
| | | buttonStyle |
| | | showAllBtn |
| | | @change="getList()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem tip-content="å¹³å°å
å¼ç¶æ"> |
| | | <FieldRadio |
| | | v-model="extraParamState.settleStatus" |
| | | :value-enum="SettleStatusEnumText" |
| | |
| | | </ProTableQueryFilterBar> |
| | | |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | <template #operationBtn-checkBtn="{ data, row }"> |
| | | <PreviewBtnV2 |
| | | class="pro-table-operation-btn" |
| | | :url="convertApi2FormUrlBySeparator(row.settleFileUrl ?? '')" |
| | | preview-btn-text="æ¥çåè¯" |
| | | /> |
| | | </template> |
| | | </ProTableV2> |
| | | <RewardGrantDialog v-bind="dialogProps"></RewardGrantDialog> |
| | | <FourStreamsMaterialFileDialog |
| | | v-bind="dialogMaterialFileProps" |
| | | :show-upload-btn="false" |
| | | :show-delete-btn="false" |
| | | :show-check-btn="false" |
| | | downloadBtnText="æ¥ç" |
| | | title="æ¥çåè¯" |
| | | :BusinessTypeEnumText="TransferFileEnumInRewardGrandText" |
| | | /> |
| | | <FinancialDialog v-bind="dialogFinancialProps"></FinancialDialog> |
| | | <PlateformDialog v-bind="dialogPlateformProps"></PlateformDialog> |
| | | </AppContainer> |
| | | </LoadingLayout> |
| | | </template> |
| | |
| | | FieldDatePicker, |
| | | useFormDialog, |
| | | UploadUserFile, |
| | | PreviewBtnV2, |
| | | } from '@bole-core/components'; |
| | | import { Message, OrderInputType } from '@bole-core/core'; |
| | | import { format } from '@/utils'; |
| | | import { |
| | | convertApi2FormUrl, |
| | | convertApi2FormUrlBySeparator, |
| | | downloadFileByUrl, |
| | | format, |
| | | } from '@/utils'; |
| | | import { SettleStatusEnum, SettleStatusEnumText } from '@/constants'; |
| | | SettleStatusEnum, |
| | | SettleStatusEnumText, |
| | | FinanceStatusEnum, |
| | | FinanceStatusEnumText, |
| | | } from '@/constants'; |
| | | import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import RewardGrantDialog from './components/RewardGrantDialog.vue'; |
| | | import FinancialDialog from './components/FinancialDialog.vue'; |
| | | import PlateformDialog from './components/PlateformDialog.vue'; |
| | | import _ from 'lodash'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { useQueryClient } from '@tanstack/vue-query'; |
| | | import { FourStreamsMaterialUtils } from '@/components/commonView/utils'; |
| | | import { |
| | | TransferFileEnumInRewardGrandText, |
| | | TransferFileEnumInRewardGrandTableItem, |
| | | } from '@/components/commonView/types'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardGrant', |
| | |
| | | { |
| | | id: '4', |
| | | enCode: 'applyMonth', |
| | | name: 'ç³è¯·å¥å±éæä»½', |
| | | name: 'ç³è¯·å¹³å°å¥å±æä»½', |
| | | }, |
| | | { |
| | | id: '5', |
| | | enCode: 'applySumAmount', |
| | | name: 'å¥å±éæ±æ»éé¢ï¼å
ï¼', |
| | | name: 'å¹³å°å¥å±æ±æ»éé¢ï¼å
ï¼', |
| | | }, |
| | | { |
| | | id: '6', |
| | |
| | | }, |
| | | { |
| | | id: '7', |
| | | enCode: 'settleStatus', |
| | | name: 'åæ¾ç¶æ', |
| | | enCode: 'financeStatus', |
| | | name: 'è´¢æ¿æ¨ä»ç¶æ', |
| | | }, |
| | | { |
| | | id: '8', |
| | | enCode: 'financeTime', |
| | | name: 'æ¨ä»æ¥æ', |
| | | }, |
| | | { |
| | | id: '9', |
| | | enCode: 'settleStatus', |
| | | name: 'å¹³å°å
å¼ç¶æ', |
| | | }, |
| | | { |
| | | id: '10', |
| | | enCode: 'settleTime', |
| | | name: 'åæ¾æ¥æ', |
| | | name: 'å
弿¥æ', |
| | | }, |
| | | ]; |
| | | |
| | |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'grantBtn', |
| | | name: 'åæ¾', |
| | | enCode: 'financialBtn', |
| | | name: 'è´¢æ¿æ¨ä»', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => openDialog(role), |
| | | onClick: (role) => openFinancialDialog(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetParkBountyApplyListOutput) => |
| | | row.financeStatus === FinanceStatusEnum.HasIncome, |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'plateformBtn', |
| | | name: 'å¹³å°å
å¼', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => openPlateformDialog(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetParkBountyApplyListOutput) => |
| | |
| | | enCode: 'checkBtn', |
| | | name: 'æ¥çåè¯', |
| | | }, |
| | | emits: { |
| | | onClick: (row) => openMaterialFileDialog(row), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetParkBountyApplyListOutput) => |
| | | row.settleStatus === SettleStatusEnum.WaitForSettle, |
| | | row.settleStatus === SettleStatusEnum.WaitForSettle && |
| | | row.financeStatus === FinanceStatusEnum.WaitForIncome, |
| | | }, |
| | | }, |
| | | ]); |
| | |
| | | }, |
| | | batchNo: extraParamState.batchNo, |
| | | settleStatus: extraParamState.settleStatus, |
| | | financeStatus: extraParamState.financeStatus, |
| | | creationTimeBegin: format(extraParamState.creationTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | creationTimeEnd: format(extraParamState.creationTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | settleTimeBegin: format(extraParamState.settleTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | settleTimeEnd: format(extraParamState.settleTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | financeTimeBegin: format(extraParamState.financeTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | financeTimeEnd: format(extraParamState.financeTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | }; |
| | | let res = await parkBountyApplyServices.getParkBountyApplyList(params, { |
| | | showLoading: !state.loading, |
| | |
| | | defaultExtraParams: { |
| | | batchNo: '', |
| | | settleStatus: '' as any as SettleStatusEnum, |
| | | financeStatus: '' as any as FinanceStatusEnum, |
| | | creationTime: [] as unknown as ModelValueType, |
| | | settleTime: [] as unknown as ModelValueType, |
| | | financeTime: [] as unknown as ModelValueType, |
| | | orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], |
| | | }, |
| | | columnsRenderProps: { |
| | | applyMonth: { type: 'date', format: 'YYYYå¹´MMæ' }, |
| | | creationTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | settleTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | financeTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | applySumAmount: { type: 'money' }, |
| | | settleStatus: { type: 'enum', valueEnum: SettleStatusEnumText }, |
| | | financeStatus: { type: 'enum', valueEnum: FinanceStatusEnumText }, |
| | | }, |
| | | } |
| | | ); |
| | | |
| | | function goDetail(row: any) { |
| | | function goDetail(row: API.GetParkBountyApplyListOutput) { |
| | | router.push({ |
| | | name: 'RewardDeclareDetail', |
| | | params: { |
| | |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps, handleAdd, handleEdit, editForm } = useFormDialog({ |
| | | onConfirm: handleAddOrEdit, |
| | | function openMaterialFileDialog(row: API.GetParkBountyApplyListOutput) { |
| | | handleMaterialFileAdd({ |
| | | list: FourStreamsMaterialUtils.initApplyRewardGrandFileList(row), |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps: dialogMaterialFileProps, handleAdd: handleMaterialFileAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | list: [] as TransferFileEnumInRewardGrandTableItem[], |
| | | }, |
| | | }); |
| | | |
| | | const queryClient = useQueryClient(); |
| | | const { |
| | | dialogProps: dialogFinancialProps, |
| | | handleEdit: handleFinancialEdit, |
| | | editForm: editFinancialForm, |
| | | } = useFormDialog({ |
| | | onConfirm: handleFinancial, |
| | | defaultFormParams: { |
| | | parkBountyApplyId: '', |
| | | financeSumAmount: 0, |
| | | financeFileUrl: [] as UploadUserFile[], |
| | | }, |
| | | }); |
| | | |
| | | function openFinancialDialog(row?: API.GetParkBountyApplyListOutput) { |
| | | handleFinancialEdit({ |
| | | parkBountyApplyId: row.id, |
| | | financeSumAmount: 0, |
| | | financeFileUrl: [] as UploadUserFile[], |
| | | }); |
| | | } |
| | | async function handleFinancial() { |
| | | try { |
| | | let params: API.ParkBountyApplyFinanceFileInput = { |
| | | parkBountyApplyId: editFinancialForm.parkBountyApplyId, |
| | | financeSumAmount: editFinancialForm.financeSumAmount, |
| | | financeFileUrl: editFinancialForm.financeFileUrl.map((x) => x.path).join('|'), |
| | | }; |
| | | let res = await parkBountyApplyServices.parkBountyApplyFinanceBill(params); |
| | | if (res) { |
| | | Message.successMessage('æä½æå'); |
| | | getList(paginationState.pageIndex); |
| | | queryClient.invalidateQueries({ |
| | | queryKey: ['parkBountyApplyServices/getGoverDataBoard'], |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { |
| | | dialogProps: dialogPlateformProps, |
| | | handleEdit: handlePlateformEdit, |
| | | editForm: editPlateformForm, |
| | | } = useFormDialog({ |
| | | onConfirm: handlePlateform, |
| | | defaultFormParams: { |
| | | parkBountyApplyId: '', |
| | | settleSumAmount: 0, |
| | | settleFileUrl: [] as UploadUserFile[], |
| | | }, |
| | | }); |
| | | |
| | | function openDialog(row?: API.GetParkBountyApplyListOutput) { |
| | | handleEdit({ |
| | | function openPlateformDialog(row?: API.GetParkBountyApplyListOutput) { |
| | | handlePlateformEdit({ |
| | | parkBountyApplyId: row.id, |
| | | settleSumAmount: 0, |
| | | settleFileUrl: [] as UploadUserFile[], |
| | | }); |
| | | } |
| | | const queryClient = useQueryClient(); |
| | | async function handleAddOrEdit() { |
| | | |
| | | async function handlePlateform() { |
| | | try { |
| | | let params: API.ParkBountyApplySettleInput = { |
| | | parkBountyApplyId: editForm.parkBountyApplyId, |
| | | settleFileUrl: editForm.settleFileUrl.map((x) => x.path).join('|'), |
| | | parkBountyApplyId: editPlateformForm.parkBountyApplyId, |
| | | settleSumAmount: editPlateformForm.settleSumAmount, |
| | | settleFileUrl: editPlateformForm.settleFileUrl.map((x) => x.path).join('|'), |
| | | }; |
| | | let res = await parkBountyApplyServices.parkBountyApplySettle(params); |
| | | if (res) { |
copy from src/views/Reward/components/RewardGrantDialog.vue
copy to src/views/Reward/components/FinancialDialog.vue
| Îļþ´Ó src/views/Reward/components/RewardGrantDialog.vue ¸´ÖÆ |
| | |
| | | <template> |
| | | <ProDialog |
| | | title="å¥å±éåæ¾" |
| | | title="è´¢æ¿æ¨ä»" |
| | | v-model="innerVisible" |
| | | destroy-on-close |
| | | draggable |
| | |
| | | > |
| | | <ProForm :model="innerForm" ref="dialogForm" label-width="120px"> |
| | | <ProFormItemV2 |
| | | label="ä¸ä¼ åæ¾åè¯:" |
| | | prop="settleFileUrl" |
| | | label="æ¨ä»æ»é¢:" |
| | | prop="financeSumAmount" |
| | | :check-rules="[{ message: '请è¾å
¥æ¨ä»æ»é¢', type: 'number' }]" |
| | | > |
| | | <ProFormInputNumber |
| | | v-model="innerForm.financeSumAmount" |
| | | :controls="false" |
| | | :min="0" |
| | | :precision="2" |
| | | /> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="ä¸ä¼ æ¨ä»åè¯:" |
| | | prop="financeFileUrl" |
| | | :check-rules="[{ message: '请ä¸ä¼ åæ¾åè¯', type: 'upload' }]" |
| | | > |
| | | <ProFormUpload |
| | | v-model:file-url="innerForm.settleFileUrl" |
| | | v-model:file-url="innerForm.financeFileUrl" |
| | | :limitFileSize="50" |
| | | accept="doc,docx,pdf,xls,xlsx,jpg/jpeg,png" |
| | | > |
| | |
| | | import { FormInstance } from 'element-plus'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardGrantDialog', |
| | | name: 'FinancialDialog', |
| | | }); |
| | | |
| | | type Props = { |
| | | modelValue: boolean; |
| | | form?: { |
| | | parkBountyApplyId: string; |
| | | settleFileUrl: UploadUserFile[]; |
| | | financeSumAmount: number; |
| | | financeFileUrl: UploadUserFile[]; |
| | | }; |
| | | }; |
| | | |
| ÎļþÃû´Ó src/views/Reward/components/RewardGrantDialog.vue ÐÞ¸Ä |
| | |
| | | <template> |
| | | <ProDialog |
| | | title="å¥å±éåæ¾" |
| | | title="å¹³å°å
å¼" |
| | | v-model="innerVisible" |
| | | destroy-on-close |
| | | draggable |
| | |
| | | > |
| | | <ProForm :model="innerForm" ref="dialogForm" label-width="120px"> |
| | | <ProFormItemV2 |
| | | label="ä¸ä¼ åæ¾åè¯:" |
| | | label="å
弿»é¢:" |
| | | prop="settleSumAmount" |
| | | :check-rules="[{ message: '请è¾å
¥å
弿»é¢', type: 'number' }]" |
| | | > |
| | | <ProFormInputNumber |
| | | v-model="innerForm.settleSumAmount" |
| | | :controls="false" |
| | | :min="0" |
| | | :precision="2" |
| | | /> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="ä¸ä¼ å
å¼åè¯:" |
| | | prop="settleFileUrl" |
| | | :check-rules="[{ message: '请ä¸ä¼ åæ¾åè¯', type: 'upload' }]" |
| | | > |
| | |
| | | UploadUserFile, |
| | | ProForm, |
| | | ProFormItemV2, |
| | | ProFormSelect, |
| | | ProFormInputNumber, |
| | | ProFormUpload, |
| | | ProFormInputNumber, |
| | | } from '@bole-core/components'; |
| | | import { FormInstance } from 'element-plus'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardGrantDialog', |
| | | name: 'PlateformDialog', |
| | | }); |
| | | |
| | | type Props = { |
| | | modelValue: boolean; |
| | | form?: { |
| | | parkBountyApplyId: string; |
| | | settleSumAmount: number; |
| | | settleFileUrl: UploadUserFile[]; |
| | | }; |
| | | }; |