|
|
|
@ -25,6 +25,7 @@
|
|
|
|
|
@click="handleEditView(record)"
|
|
|
|
|
>审核</a
|
|
|
|
|
>
|
|
|
|
|
<a v-if="record.enrollStatus == 2" @click="customRecallFormFun(record.customId)">撤回</a>
|
|
|
|
|
</operation-group>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
@ -35,18 +36,19 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
// import { message } from 'ant-design-vue'
|
|
|
|
|
// import { doRequest } from '@/utils/axios/request'
|
|
|
|
|
import { ref, createVNode } from 'vue'
|
|
|
|
|
import { message, Modal } from 'ant-design-vue'
|
|
|
|
|
import { doRequest } from '@/utils/axios/request'
|
|
|
|
|
//底部表格
|
|
|
|
|
import ProTable from '#/table'
|
|
|
|
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue'
|
|
|
|
|
import type { ProTableInstanceExpose, TableRequest, ProColumns } from '#/table'
|
|
|
|
|
import { mergePageParam } from '@/utils/page-utils'
|
|
|
|
|
import { FormAction } from '@/hooks/form'
|
|
|
|
|
import inspectionModal from './inspectionModal.vue'
|
|
|
|
|
import inspectionSearch from './inspectionSearch.vue'
|
|
|
|
|
import inspectionSelectModal from './inspectionSelectModal.vue'
|
|
|
|
|
import { pageAccessLogs } from '@/api/geopoliticalCustomers'
|
|
|
|
|
import { pageAccessLogs, customRecallForm } from '@/api/geopoliticalCustomers'
|
|
|
|
|
import type {
|
|
|
|
|
DistributeTaskManagementPageParam,
|
|
|
|
|
DistributeTaskManagementRecord
|
|
|
|
@ -91,6 +93,24 @@ const searchTable = (params: DistributeTaskManagementPageParam) => {
|
|
|
|
|
const handleView = (id: number) => {
|
|
|
|
|
inspectionSelectModalRef.value?.open(FormAction.OTHER, id)
|
|
|
|
|
}
|
|
|
|
|
const customRecallFormFun = (id: number) => {
|
|
|
|
|
Modal.confirm({
|
|
|
|
|
title: '确定要撤回该条吗?',
|
|
|
|
|
icon: createVNode(ExclamationCircleOutlined),
|
|
|
|
|
content: '分发后10分钟内可撤回,撤回后将无法恢复',
|
|
|
|
|
okText: '确定',
|
|
|
|
|
okType: 'danger',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
onOk() {
|
|
|
|
|
doRequest(customRecallForm(id), {
|
|
|
|
|
onSuccess: (res: any) => {
|
|
|
|
|
message.success('操作成功')
|
|
|
|
|
reloadTable()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 编辑
|
|
|
|
|
const handleEditView = (record: DistributeTaskManagementRecord) => {
|
|
|
|
|
inspectionModalRef.value?.open({
|
|
|
|
|