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.

154 lines
3.6 KiB

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