| | |
| | | </AppContainer> |
| | | <UploadStatementDialog v-bind="dialogProps" /> |
| | | <SettleDetailDialog v-bind="dialogSettleProps" /> |
| | | <RechargeEnterpriseWalletDialog v-bind="dialogRechargeProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | import { ModelValueType } from 'element-plus'; |
| | | import UploadStatementDialog from './components/UploadStatementDialog.vue'; |
| | | import SettleDetailDialog from './components/SettleDetailDialog.vue'; |
| | | import RechargeEnterpriseWalletDialog from './components/RechargeEnterpriseWalletDialog.vue'; |
| | | import { Message } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | |
| | | ]); |
| | | |
| | | const router = useRouter(); |
| | | |
| | | const { userDetail } = useUser(); |
| | | |
| | | const eventContext = useGlobalEventContext(); |
| | | |
| | |
| | | let params: API.SureTaskSettlementCommand = { |
| | | taskInfoId: settleEditForm.id, |
| | | }; |
| | | let res = await taskServices.sureTaskSettlement(params); |
| | | let res = await taskServices.sureTaskSettlement(params, { |
| | | skipErrorHandler: true, |
| | | }); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | if (error?.info?.errorCode == 's510') { |
| | | handleRechargeAdd(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | const { |
| | | dialogProps: dialogRechargeProps, |
| | | handleAdd: handleRechargeAdd, |
| | | editForm: rechargeEditForm, |
| | | } = useFormDialog({ |
| | | defaultFormParams: { |
| | | access: EnumEnterpriseWalletAccess.Alipay, |
| | | amount: null as number, |
| | | remark: '', |
| | | }, |
| | | }); |
| | | |
| | | function openSettleDialog(row: API.GetSettlementTasksQueryResultItem) { |
| | | handleSettleEdit({ |
| | | id: row.id, |