You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

133 lines
3.1 KiB

import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
import { getDictOptions } from '@/utils/dict';
import { useRender } from '@/hooks/component/useRender';
import { uploadTenderDocument } from '@/api/tenderReview/TenderTask';
export const formSchemas: FormSchema[] = [
{
label: '任务名称',
field: 'taskNameList',
component: 'Select',
componentProps: {
options: getDictOptions('tender_review'),
mode: 'multiple',
},
},
{
label: '投标文件名称',
field: 'bidDocumentName',
component: 'Input',
},
{
label: '招标文件名称',
field: 'tenderDocumentName',
component: 'Input',
},
{
label: '进度状态',
field: 'progressStatus',
component: 'Select',
componentProps: {
options: getDictOptions('document_task_status')
},
},
{
label: '文件是否已删除',
field: 'deleteFlag',
component: 'Select',
componentProps: {
options: getDictOptions('sys_yes_no')
},
},
];
const { renderDict } = useRender();
// 父表列配置
export const columns: BasicColumn[] = [
{
title: '投标文件名称',
dataIndex: 'bidDocumentName',
},
{
title: '招标文件名称',
dataIndex: 'tenderDocumentName',
},
{
title: '上传时间',
dataIndex: 'createTime',
},
{
title: '提交人',
dataIndex: 'createUser',
},
{
title: '进度',
dataIndex: 'progress',
},
];
// 子表列配置 - 与文档审核任务保持一致
export const childColumns: BasicColumn[] = [
{
title: '任务名称',
dataIndex: 'taskName',
customRender: ({ value }) => renderDict(value, 'tender_review'),
},
{
title: '任务类型',
dataIndex: 'taskType',
ifShow: false,
customRender: ({ value }) => renderDict(value, 'task_type'),
},
{
title: '任务耗时',
dataIndex: 'taskDuration',
},
{
title: '状态',
dataIndex: 'progressStatus',
customRender: ({ value }) => renderDict(value, 'document_task_status'),
},
];
export const modalSchemas: FormSchema[] = [
{
label: '任务名称',
field: 'taskNameList',
required: true,
component: 'Select',
componentProps: {
options: getDictOptions('tender_review'),
mode: 'multiple',
},
},
{
label: '招标文件',
field: 'tenderDocOssId',
component: 'Upload',
componentProps: {
accept: ['.docx', '.pdf'],
maxSize: 1000,
multiple: false,
resultField: 'ossId',
// api: uploadTenderDocument,
beforeUploadPrompt:"严禁在本互联网非涉密平台处理、传输国家秘密。请再次确认您上传的文件资料不涉及国家秘密。"
},
},
{
label: '投标文件集',
field: 'bidDocZipOssId',
component: 'Upload',
componentProps: {
accept: ['.zip','.docx', '.pdf'],
maxSize: 1000,
multiple: false,
resultField: 'ossId',
// api: uploadTenderDocument,
beforeUploadPrompt:"严禁在本互联网非涉密平台处理、传输国家秘密。请再次确认您上传的文件资料不涉及国家秘密。"
},
},
];