| | |
| | | |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | </ProTableV2> |
| | | <ParkBountyApplyRedoDialog v-bind="dialogProps" /> |
| | | </AppContainer> |
| | | <OperateHistoryLogDialog v-bind="logDialogProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | QueryFilterItem, |
| | | FieldDatePicker, |
| | | FieldSelect, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import { Message, OrderInputType } from '@bole-core/core'; |
| | | import { format } from '@/utils'; |
| | | import { BountyCheckStatusEnum, BountyCheckStatusEnumText, DataRangeEnumText } from '@/constants'; |
| | | import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import _ from 'lodash'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { useAccess, useGlobalEventContext, useIndustrialParkDropDownList } from '@/hooks'; |
| | | import { |
| | | useAccess, |
| | | useGlobalEventContext, |
| | | useIndustrialParkDropDownList, |
| | | useOpenLogDialog, |
| | | } from '@/hooks'; |
| | | import ParkBountyApplyRedoDialog from './components/ParkBountyApplyRedoDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'MaterialReviewList', |
| | |
| | | }, |
| | | redoBtn: { |
| | | emits: { |
| | | onClick: (role) => goAudit(role), |
| | | onClick: (role) => openDialog(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetParkBountyApplyListOutput) => |
| | | row.outCheckStatus !== BountyCheckStatusEnum.CheckPassed, |
| | | }, |
| | | }, |
| | | logBtn: { emits: { onClick: (role) => openLogDialog(role.id) } }, |
| | | }; |
| | | |
| | | const { checkSubModuleItemShow, column, operationBtns } = useAccess({ |
| | |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | function openDialog(row: API.GetParkBountyApplyListOutput) { |
| | | handleAdd({ |
| | | parkBountyApplyId: row.id, |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps, handleAdd, editForm } = useFormDialog({ |
| | | onConfirm: outcheckParkBountyApplyRedoed, |
| | | defaultFormParams: { |
| | | reasonForWithdrawal: '', |
| | | parkBountyApplyId: '', |
| | | }, |
| | | }); |
| | | |
| | | async function outcheckParkBountyApplyRedoed() { |
| | | try { |
| | | let params: API.OutcheckParkBountyApplyRedoedInput = { |
| | | parkBountyApplyId: editForm.parkBountyApplyId, |
| | | reasonForWithdrawal: editForm.reasonForWithdrawal, |
| | | }; |
| | | let res = await parkBountyApplyServices.outcheckParkBountyApplyRedoed(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { openLogDialog, logDialogProps } = useOpenLogDialog(); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |