import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { title: '年份', align:"center", dataIndex: 'year', width: '60px', }, { title: '事项名称', align:"center", dataIndex: 'title' }, { title: '序号', align:"center", dataIndex: 'number', sorter: true, }, { title: '会议决议', align:"center", dataIndex: 'content' }, { title: '事项目录编码', align:"center", dataIndex: 'matterCode' }, { title: '督办次数', align:"center", dataIndex: 'superviseCount', width: '100px', }, { title: '会议时间', align:"center", dataIndex: 'matterTime', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, sorter: true, }, { title: '议题序号', align:"center", dataIndex: 'itemNumber', sorter: true, width: '100px', }, { title: '抄告单编号', align:"center", dataIndex: 'noticeNumber' }, { title: '是否为三重一大决策', align:"center", dataIndex: 'isImportant_dictText' }, { title: '主办部门', align:"center", dataIndex: 'responDeptid_dictText' }, { title: '协办部门', align:"center", dataIndex: 'assistDeptid_dictText' }, { title: '实际执行情况', align:"center", dataIndex: 'actualExect' }, { title: '要求完成日期', align:"center", dataIndex: 'deadline', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '是否急件', align:"center", dataIndex: 'urgencyLevel_dictText', }, { title: '密级', align:"center", dataIndex: 'secretLevel_dictText', }, { title: '完成状态', align:"center", dataIndex: 'bpmStatus_dictText' }, // { // title: '是否需要所办领导审批', // align:"center", // dataIndex: 'isNeedAppro', // customRender:({text}) => { // return render.renderSwitch(text, [{text:'是',value:'1'},{text:'否',value:'0'}]) // }, // }, // { // title: '所办领导', // align:"center", // dataIndex: 'supDeptleaderid_dictText' // }, // { // title: '是否抄送所领导', // align:"center", // dataIndex: 'isNeedSuoleader', // customRender:({text}) => { // return render.renderSwitch(text, [{text:'是',value:'1'},{text:'否',value:'0'}]) // }, // }, // { // title: '抄送所领导', // align:"center", // dataIndex: 'suoleaderid_dictText' // }, ]; //子表列表数据 export const bgPartymatterFeedbackColumns: BasicColumn[] = [ // { // title: '责任部门id', // align:"center", // dataIndex: 'responDeptid' // }, { title: '责任部门名称', align:"center", dataIndex: 'responDeptname' }, // { // title: '反馈人id', // align:"center", // dataIndex: 'responPersonid' // }, { title: '反馈人姓名', align:"center", dataIndex: 'responPersonname' }, { title: '实际执行情况', align:"center", dataIndex: 'actualExect' }, { title: '实际完成时间', align:"center", dataIndex: 'actualTime' }, { title: '完成状态', align:"center", dataIndex: 'bpmStatus', customRender: ({ record }) => record?.bpmStatus_dictText || record?.bpmStatus }, // { // title: '外键', // align:"center", // dataIndex: 'mainId' // }, ]; // 高级查询数据 export const superQuerySchema = { year: {title: '年份',order: 0,view: 'text', type: 'string',}, number: {title: '序号',order: 1,view: 'text', type: 'string',}, itemNumber: {title: '议题序号',order: 2,view: 'number', type: 'number',}, matterTime: {title: '会议时间',order: 3,view: 'date', type: 'string',}, title: {title: '事项名称',order: 4,view: 'text', type: 'string',}, content: {title: '会议决议',order: 5,view: 'textarea', type: 'string',}, matterCode: {title: '事项目录编码',order: 6,view: 'text', type: 'string',}, noticeNumber: {title: '抄告单编号',order: 7,view: 'text', type: 'string',}, isImportant: {title: '是否为三重一大决策',order: 8,view: 'list', type: 'string', dictCode: 'yn',}, responDeptid: {title: '责任部门',order: 9,view: 'sel_depart', type: 'string',}, actualExect: {title: '实际执行情况',order: 10,view: 'text', type: 'string',}, bpmStatus: {title: '完成状态',order: 11,view: 'text', type: 'string',}, superviseCount: {title: '督办次数',order: 12,view: 'text', type: 'string',}, deadline: {title: '要求完成日期',order: 13,view: 'date', type: 'string',}, urgencyLevel: {title: '是否急件',order: 14,view: 'list', type: 'string', dictCode: 'yn',}, isNeedAppro: {title: '是否需要所办领导审批',order: 15,view: 'switch', type: 'string',}, supDeptleaderid: {title: '所办领导',order: 16,view: 'sel_user', type: 'string',}, isNeedSuoleader: {title: '是否抄送所领导',order: 17,view: 'switch', type: 'string',}, suoleaderid: {title: '抄送所领导',order: 18,view: 'sel_user', type: 'string',}, };