| | |
| | | } |
| | | |
| | | export const BountyCheckStatusEnumText = { |
| | | [BountyCheckStatusEnum.Redoed]: '已撤回', |
| | | [BountyCheckStatusEnum.WaitCheck]: '待审核', |
| | | [BountyCheckStatusEnum.CheckPassed]: '审核通过', |
| | | [BountyCheckStatusEnum.CheckReject]: '审核未通过', |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 政务端-材料审核-外部审核撤回 POST /api/ParkBountyApply/OutcheckParkBountyApplyRedoed */ |
| | | export async function outcheckParkBountyApplyRedoed( |
| | | body: API.OutcheckParkBountyApplyRedoedInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/OutcheckParkBountyApplyRedoed', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 外部审核撤回-复审撤回 POST /api/ParkBountyApply/OutcheckParkBountyApplyReRedoed */ |
| | | export async function outcheckParkBountyApplyReRedoed( |
| | | body: API.OutcheckParkBountyApplyRedoedInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/ParkBountyApply/OutcheckParkBountyApplyReRedoed', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 政务端-材料审核-外部复审核 POST /api/ParkBountyApply/OutReCheckParkBountyApply */ |
| | | export async function outReCheckParkBountyApply( |
| | | body: API.OutReCheckParkBountyApplyInput, |
| | |
| | | outReCheckStatus?: BountyCheckStatusEnum; |
| | | /** 政务端复审时间 */ |
| | | outReCheckTime?: string; |
| | | /** 撤回原因 */ |
| | | reasonForWithdrawal?: string; |
| | | } |
| | | |
| | | interface GetParkBountyApplyListOutputPageOutput { |
| | |
| | | extraListFiles?: CustomerUploadMonthApplyFileTypeDto[]; |
| | | } |
| | | |
| | | interface OutcheckParkBountyApplyRedoedInput { |
| | | parkBountyApplyId?: string; |
| | | /** 撤回原因 */ |
| | | reasonForWithdrawal?: string; |
| | | } |
| | | |
| | | interface OutReCheckParkBountyApplyInput { |
| | | parkBountyApplyId?: string; |
| | | outReCheckStatus?: BountyCheckStatusEnum; |
| | |
| | | |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | </ProTableV2> |
| | | <ParkBountyApplyRedoDialog v-bind="dialogProps" /> |
| | | </AppContainer> |
| | | </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 ParkBountyApplyRedoDialog from './components/ParkBountyApplyRedoDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'MaterialReviewList', |
| | |
| | | }, |
| | | redoBtn: { |
| | | emits: { |
| | | onClick: (role) => goAudit(role), |
| | | onClick: (role) => openDialog(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetParkBountyApplyListOutput) => |
| | |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | function openDialog(row: API.GetParkBountyApplyListOutput) { |
| | | handleAdd({ |
| | | parkBountyApplyId: row.id, |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps, handleAdd, editForm } = useFormDialog({ |
| | | onConfirm: outcheckParkBountyApplyReRedoed, |
| | | defaultFormParams: { |
| | | reasonForWithdrawal: '', |
| | | parkBountyApplyId: '', |
| | | }, |
| | | }); |
| | | |
| | | async function outcheckParkBountyApplyReRedoed() { |
| | | try { |
| | | let params: API.OutcheckParkBountyApplyRedoedInput = { |
| | | parkBountyApplyId: editForm.parkBountyApplyId, |
| | | reasonForWithdrawal: editForm.reasonForWithdrawal, |
| | | }; |
| | | let res = await parkBountyApplyServices.outcheckParkBountyApplyReRedoed(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | |
| | | |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | </ProTableV2> |
| | | <ParkBountyApplyRedoDialog v-bind="dialogProps" /> |
| | | </AppContainer> |
| | | </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 ParkBountyApplyRedoDialog from './components/ParkBountyApplyRedoDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'MaterialReviewList', |
| | |
| | | }, |
| | | redoBtn: { |
| | | emits: { |
| | | onClick: (role) => goAudit(role), |
| | | onClick: (role) => openDialog(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetParkBountyApplyListOutput) => |
| | |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | 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) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | > |
| | | </span> |
| | | <span class="page-form-layout-title-item remark"> |
| | | <TextOverTooltip v-if="form.outCheckStatus === BountyCheckStatusEnum.CheckReject"> |
| | | {{ `复审未通过原因:${form.outCheckRemark ?? ''}` }} |
| | | <TextOverTooltip v-if="form.outReCheckStatus === BountyCheckStatusEnum.CheckReject"> |
| | | {{ `复审未通过原因:${form.outReCheckRemark ?? ''}` }} |
| | | </TextOverTooltip> |
| | | <TextOverTooltip v-if="form.outReCheckStatus === BountyCheckStatusEnum.Redoed"> |
| | | {{ `撤回原因:${form.reasonForWithdrawal ?? ''}` }} |
| | | </TextOverTooltip> |
| | | </span> |
| | | </template> |
| | |
| | | <span class="page-form-layout-title-item remark"> |
| | | <TextOverTooltip v-if="form.outCheckStatus === BountyCheckStatusEnum.CheckReject"> |
| | | {{ `审核未通过原因:${form.outCheckRemark ?? ''}` }} |
| | | </TextOverTooltip> |
| | | <TextOverTooltip v-if="form.outCheckStatus === BountyCheckStatusEnum.Redoed"> |
| | | {{ `撤回原因:${form.reasonForWithdrawal ?? ''}` }} |
| | | </TextOverTooltip> |
| | | </span> |
| | | </template> |
| | |
| | | |
| | | outReCheckStatus: '' as any as BountyCheckStatusEnum, |
| | | outReCheckRemark: '', |
| | | reasonForWithdrawal: '', |
| | | |
| | | suportPlatRecharge: false, |
| | | suportFinance: false, |
| | |
| | | |
| | | form.suportPlatRecharge = data.suportPlatRecharge; |
| | | form.suportFinance = data.suportFinance; |
| | | form.reasonForWithdrawal = data.reasonForWithdrawal ?? ''; |
| | | |
| | | getList(); |
| | | }, |
| New file |
| | |
| | | <template> |
| | | <ProDialog title="撤回申报" v-model="visible" @close="onDialogClose" destroy-on-close draggable> |
| | | <ProForm :model="form" ref="dialogForm" label-width="110px"> |
| | | <ProFormItemV2 |
| | | label="撤回原因" |
| | | prop="reasonForWithdrawal" |
| | | :check-rules="[{ message: '请输入撤回原因' }]" |
| | | > |
| | | <ProFormTextArea |
| | | placeholder="请输入" |
| | | v-model="form.reasonForWithdrawal" |
| | | :maxlength="150" |
| | | show-word-limit |
| | | ></ProFormTextArea> |
| | | </ProFormItemV2> |
| | | </ProForm> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="emit('onCancel')">取 消</el-button> |
| | | <el-button type="primary" @click="handleConfirm">确 定</el-button> |
| | | </span> |
| | | </template> |
| | | </ProDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { FormInstance } from 'element-plus'; |
| | | import { |
| | | ProDialog, |
| | | ProForm, |
| | | ProFormItemV2, |
| | | ProFormTextArea, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | |
| | | defineOptions({ |
| | | name: 'ParkBountyApplyRedoDialog', |
| | | }); |
| | | |
| | | // type Props = {}; |
| | | |
| | | // const props = withDefaults(defineProps<Props>(), {}); |
| | | |
| | | const visible = defineModel({ type: Boolean }); |
| | | |
| | | type Form = { |
| | | title?: string; |
| | | reasonForWithdrawal: string; |
| | | parkBountyApplyId: string; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | | |
| | | const emit = defineEmits<{ |
| | | (e: 'onConfirm'): void; |
| | | (e: 'onCancel'): void; |
| | | }>(); |
| | | |
| | | const dialogForm = ref<FormInstance>(); |
| | | |
| | | function onDialogClose() { |
| | | if (!dialogForm.value) return; |
| | | dialogForm.value.resetFields(); |
| | | } |
| | | |
| | | function handleConfirm() { |
| | | if (!dialogForm.value) return; |
| | | dialogForm.value.validate((valid) => { |
| | | if (valid) { |
| | | emit('onConfirm'); |
| | | } else { |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | </script> |