import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types' import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { title: '年份', align:"center", dataIndex: 'year_dictText', width: '60px', }, { title: '会议类型', align:"center", dataIndex: 'taskType_dictText', width: '140px', }, { title: '类别', align:"center", dataIndex: 'type', width: '140px', }, { title: '意见主题', align:"center", dataIndex: 'title', width: '350px', }, { title: '具体意见', align:"center", dataIndex: 'content', width: '350px', }, { title: '分管所领导', align:"center", dataIndex: 'manageSuoleader_dictText', width: '120px', }, { title: '序号', align:"center", dataIndex: 'number', width: '100px', }, { title: '提出人', align:"center", dataIndex: 'proposer_dictText', width: '100px', }, { title: '责任领导', align:"center", dataIndex: 'suoleader_dictText', width: '100px', }, { title: '牵头部门', align:"center", dataIndex: 'responDeptid_dictText', width: '120px', }, { title: '协办部门', align:"center", dataIndex: 'assistDeptid_dictText', width: '120px', }, { title: '落实部门', align:"center", dataIndex: 'implementDeptid', width: '100px', }, { title: '是否采纳', align:"center", dataIndex: 'isAdopt', width: '80px', customRender:({text}) => { return render.renderSwitch(text, [{text:'是',value:'1'},{text:'否',value:'0'}]) }, }, { title: '落实措施/解释说明', align:"center", dataIndex: 'measure', width: '350px', }, { title: '措施数量', align:"center", dataIndex: 'measureNumber', width: '80px', }, { title: '成果形式', align:"center", dataIndex: 'achievement', width: '350px', }, { title: '要求完成日期', align:"center", dataIndex: 'deadline', width: '110px', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '实际完成时间', align:"center", dataIndex: 'actualTime', width: '110px', }, { title: '提出人确认', align:"center", dataIndex: 'proposerConfirm', width: '100px', }, { title: '督办次数', align:"center", dataIndex: 'superviseCount', width: '80px', }, { title: '紧急程度', align:"center", dataIndex: 'urgencyLevel_dictText', width: '80px', }, { title: '密级', align:"center", dataIndex: 'secretLevel_dictText', width: '60px', }, { title: '备注', align:"center", dataIndex: 'remark', width: '350px', }, { title: '完成状态', align:"center", dataIndex: 'bpmStatus_dictText', width: '80px', fixed: 'right', }, ]; //子表表格配置 export const bgTakepulseFeedbackColumns: JVxeColumn[] = [ { title: '责任部门id', key: 'responDeptid', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '责任部门名称', key: 'responDeptname', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '反馈人id', key: 'responPersonid', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '反馈人姓名', key: 'responPersonname', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '计划完成目标', key: 'planExect', type: JVxeTypes.textarea, width:"220px", placeholder: '请输入${title}', defaultValue:'', }, { title: '计划完成日期', key: 'planTime', type: JVxeTypes.date, width:"140px", placeholder: '请选择${title}', defaultValue:'', }, { title: '实际执行情况', key: 'actualExect', type: JVxeTypes.textarea, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '实际完成日期', key: 'actualTime', type: JVxeTypes.date, width:"200px", placeholder: '请选择${title}', defaultValue:'', }, { title: '调整落实措施及执行情况', key: 'actSt', type: JVxeTypes.textarea, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '完成状态', key: 'bpmStatus', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '提出人确认', key: 'proposerConfirm', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '流程实例id', key: 'bpmProcessId', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, ] // 高级查询数据 export const superQuerySchema = { secretLevel: {title: '密级',order: 0,view: 'list', type: 'string',dictCode: 'secret_level',}, year: {title: '年份',order: 1,view: 'list', type: 'string',dictCode: 'super_year',}, number: {title: '序号',order: 2,view: 'text', type: 'string',}, taskType: {title: '会议类型:行政线、技术线',order: 3,view: 'list', type: 'string',dictCode: 'super_takepulse_type',}, type: {title: '类别:党的建设等其他',order: 4,view: 'text', type: 'string',}, proposer: {title: '提出人',order: 5,view: 'sel_user', type: 'string',}, title: {title: '意见主题',order: 6,view: 'text', type: 'string',}, content: {title: '具体意见',order: 7,view: 'textarea', type: 'string',}, manageSuoleader: {title: '分管所领导',order: 8,view: 'sel_user', type: 'string',}, suoleader: {title: '责任领导',order: 9,view: 'sel_user', type: 'string',}, responDeptid: {title: '牵头部门',order: 10,view: 'sel_depart', type: 'string',}, assistDeptid: {title: '协办部门',order: 11,view: 'sel_depart', type: 'string',}, implementDeptid: {title: '落实部门',order: 12,view: 'text', type: 'string',}, isAdopt: {title: '是否采纳',order: 13,view: 'switch', type: 'string',}, measure: {title: '落实措施/解释说明',order: 14,view: 'textarea', type: 'string',}, measureNumber: {title: '措施数量',order: 15,view: 'number', type: 'number',}, achievement: {title: '成果形式',order: 16,view: 'textarea', type: 'string',}, deadline: {title: '要求完成日期',order: 17,view: 'date', type: 'string',}, remark: {title: '备注',order: 18,view: 'text', type: 'string',}, actualExect: {title: '执行情况',order: 19,view: 'textarea', type: 'string',}, actualTime: {title: '实际完成时间',order: 20,view: 'datetime', type: 'string',}, proposerConfirm: {title: '提出人确认',order: 21,view: 'text', type: 'string',}, bpmStatus: {title: '完成状态',order: 22,view: 'list', type: 'string',dictCode: 'super_status',}, actSt: {title: '调整落实措施及执行情况',order: 23,view: 'textarea', type: 'string',}, superviseCount: {title: '督办次数',order: 24,view: 'text', type: 'string',}, urgencyLevel: {title: '紧急程度',order: 25,view: 'text', type: 'string',}, isNeedAppro: {title: '是否需要所办领导审批',order: 26,view: 'switch', type: 'string',}, supDeptleaderid: {title: '所办领导',order: 27,view: 'sel_user', type: 'string',}, //子表高级查询 bgTakepulseFeedback: { title: '执行情况反馈', view: 'table', fields: { responDeptid: {title: '责任部门id',order: 0,view: 'text', type: 'string',}, responDeptname: {title: '责任部门名称',order: 1,view: 'text', type: 'string',}, responPersonid: {title: '反馈人id',order: 2,view: 'text', type: 'string',}, responPersonname: {title: '反馈人姓名',order: 3,view: 'text', type: 'string',}, planExect: {title: '计划完成目标',order: 4,view: 'textarea', type: 'string',}, planTime: {title: '计划完成日期',order: 5,view: 'date', type: 'string',}, actualExect: {title: '实际执行情况',order: 6,view: 'textarea', type: 'string',}, actualTime: {title: '实际完成日期',order: 7,view: 'date', type: 'string',}, actSt: {title: '调整落实措施及执行情况',order: 8,view: 'textarea', type: 'string',}, bpmStatus: {title: '完成状态',order: 9,view: 'text', type: 'string',}, proposerConfirm: {title: '提出人确认',order: 10,view: 'text', type: 'string',}, bpmProcessId: {title: '流程实例id',order: 11,view: 'text', type: 'string',}, mainId: {title: '外键',order: 12,view: 'text', type: 'string',}, } }, };