|  |  |  | 
|---|
|  |  |  | <QueryFilterItem tip-content="验收状态"> | 
|---|
|  |  |  | <FieldRadio | 
|---|
|  |  |  | v-model="extraParamState.checkReceiveStatus" | 
|---|
|  |  |  | :value-enum="EnumTaskCheckReceiveStatusText" | 
|---|
|  |  |  | :value-enum="EnumTaskCheckReceiveStatusTextForFilter" | 
|---|
|  |  |  | buttonStyle | 
|---|
|  |  |  | showAllBtn | 
|---|
|  |  |  | @change="getList()" | 
|---|
|  |  |  | 
|---|
|  |  |  | </ProTableV2> | 
|---|
|  |  |  | </AppContainer> | 
|---|
|  |  |  | <UploadStatementDialog v-bind="dialogProps" /> | 
|---|
|  |  |  | <SettleDetailDialog v-bind="dialogSettleProps" /> | 
|---|
|  |  |  | <!-- <SettleDetailDialog v-bind="dialogSettleProps" /> --> | 
|---|
|  |  |  | <RechargeEnterpriseWalletDialog v-bind="dialogRechargeProps" /> | 
|---|
|  |  |  | <SettlMethodDialog v-bind="dialogSettlMethodProps" /> | 
|---|
|  |  |  | </LoadingLayout> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | EnumTaskSettlementOrderStatus, | 
|---|
|  |  |  | EnumTaskSettlementStatus, | 
|---|
|  |  |  | EnumTaskCheckReceiveStatusText, | 
|---|
|  |  |  | EnumTaskCheckReceiveStatusTextForFilter, | 
|---|
|  |  |  | EnumTaskCheckReceiveStatus, | 
|---|
|  |  |  | } from '@/constants'; | 
|---|
|  |  |  | import { downloadFileByUrl, format, setOssFileName } from '@/utils'; | 
|---|
|  |  |  | 
|---|
|  |  |  | import { ModelValueType } from 'element-plus'; | 
|---|
|  |  |  | import UploadStatementDialog from './components/UploadStatementDialog.vue'; | 
|---|
|  |  |  | import SettleDetailDialog from './components/SettleDetailDialog.vue'; | 
|---|
|  |  |  | import SettlMethodDialog from './components/SettlMethodDialog.vue'; | 
|---|
|  |  |  | import RechargeEnterpriseWalletDialog from './components/RechargeEnterpriseWalletDialog.vue'; | 
|---|
|  |  |  | import { Message } from '@bole-core/core'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | name: '结算', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | emits: { | 
|---|
|  |  |  | onClick: (role: API.GetSettlementTasksQueryResultItem) => goDetail(role, 'settlement'), | 
|---|
|  |  |  | onClick: (role: API.GetSettlementTasksQueryResultItem) => openSettleMethodDialog(role), | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | extraProps: { | 
|---|
|  |  |  | hide: (role: API.GetSettlementTasksQueryResultItem) => | 
|---|
|  |  |  | 
|---|
|  |  |  | ), | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //   data: { | 
|---|
|  |  |  | //     enCode: 'settleAuditBtn', | 
|---|
|  |  |  | //     name: '结算审核', | 
|---|
|  |  |  | //   }, | 
|---|
|  |  |  | //   emits: { | 
|---|
|  |  |  | //     onClick: (role: API.GetSettlementTasksQueryResultItem) => goDetail(role.id, 'settlement'), | 
|---|
|  |  |  | //   }, | 
|---|
|  |  |  | //   extraProps: { | 
|---|
|  |  |  | //     hide: (role: API.GetSettlementTasksQueryResultItem) => role.auditStatus !== null, | 
|---|
|  |  |  | //   }, | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | enCode: 'detailBtn', | 
|---|
|  |  |  | name: '详情', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | emits: { | 
|---|
|  |  |  | onClick: (role: API.GetSettlementTasksQueryResultItem) => goDetail(role), | 
|---|
|  |  |  | onClick: (role: API.GetSettlementTasksQueryResultItem) => goDetail(role.id), | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // extraProps: { | 
|---|
|  |  |  | //   hide: (role: API.GetSettlementTasksQueryResultItem) => | 
|---|
|  |  |  | 
|---|
|  |  |  | settlementOrderStatus: { type: 'enum', valueEnum: EnumTaskSettlementOrderStatusText }, | 
|---|
|  |  |  | settlementStatus: { type: 'enum', valueEnum: EnumTaskSettlementStatusText }, | 
|---|
|  |  |  | checkReceiveStatus: { type: 'enum', valueEnum: EnumTaskCheckReceiveStatusText }, | 
|---|
|  |  |  | auditStatus: { type: 'enum', valueEnum: EnumTaskSettlementAuditStatusText }, | 
|---|
|  |  |  | actualSettlementAmount: { type: 'money' }, | 
|---|
|  |  |  | settlementAmount: { type: 'money' }, | 
|---|
|  |  |  | settlementTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, | 
|---|
|  |  |  | 
|---|
|  |  |  | editForm.settlementUrl = [] as UploadUserFile[]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function goDetail(row: API.GetSettlementTasksQueryResultItem, settlement?: string) { | 
|---|
|  |  |  | const { | 
|---|
|  |  |  | dialogProps: dialogSettlMethodProps, | 
|---|
|  |  |  | handleAdd: handleSettlMethodAdd, | 
|---|
|  |  |  | editForm: settlMethodEditForm, | 
|---|
|  |  |  | } = useFormDialog({ | 
|---|
|  |  |  | onConfirm: handleSettlMethod, | 
|---|
|  |  |  | defaultFormParams: { | 
|---|
|  |  |  | id: '', | 
|---|
|  |  |  | settlementAccess: '' as any as EnumEnterpriseWalletAccess, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function openSettleMethodDialog(row: API.GetSettlementTasksQueryResultItem) { | 
|---|
|  |  |  | // handleSettlMethodAdd({ | 
|---|
|  |  |  | //   id: row.id, | 
|---|
|  |  |  | //   settlementAccess: '' as any as EnumEnterpriseWalletAccess, | 
|---|
|  |  |  | // }); | 
|---|
|  |  |  | goDetail(row.id, 'settlement'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | async function handleSettlMethod() { | 
|---|
|  |  |  | goDetail(settlMethodEditForm.id, 'settlement'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function goDetail(id: string, settlement?: string) { | 
|---|
|  |  |  | router.push({ | 
|---|
|  |  |  | name: 'ServiceChargeDetail', | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | id: row?.id ?? '', | 
|---|
|  |  |  | id: id ?? '', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | query: { | 
|---|
|  |  |  | settlement: settlement ? settlement : '', | 
|---|
|  |  |  | // settlementAccess: settlementAccess ? settlementAccess : '', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|