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: '配件类型(accessory type)', align:"center", dataIndex: 'accessoryType', key: 'accessoryType' }, { title: '规格(specifications)', align:"center", dataIndex: 'specifications', key: 'specifications' }, { title: '型号(model)', align:"center", dataIndex: 'model', key: 'model' }, { title: '序列号(serial number)', align:"center", dataIndex: 'serialNumber', key: 'serialNumber' }, /* { title: '备注', align:"center", dataIndex: 'notes', key: 'notes' }, { title: '附件', align:"center", dataIndex: 'attachs', key: 'attachs' }, */ ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '主表主键(船舶档案)', field: 'headId', component: 'Input', show: false }, { label: '配件类型(accessory type)', field: 'accessoryType', component: 'Input', }, { label: '规格(specifications)', field: 'specifications', component: 'Input', }, { label: '型号(model)', field: 'model', component: 'Input', }, { label: '序列号(serial number)', field: 'serialNumber', component: 'InputNumber', }, { label: '备注(notes)', field: 'notes', component: 'Input', }, { label: '附件(upload)', field: 'attachs', component: 'Input', }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false }, ]; // 高级查询数据 export const superQuerySchema = { status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',}, headId: {title: '主表主键(船舶档案)',order: 2,view: 'text', type: 'string',}, accessoryType: {title: '配件类型',order: 3,view: 'text', type: 'string',}, specifications: {title: '规格',order: 4,view: 'text', type: 'string',}, model: {title: '型号',order: 5,view: 'text', type: 'string',}, serialNumber: {title: '序列号',order: 6,view: 'number', type: 'number',}, notes: {title: '备注',order: 7,view: 'text', type: 'string',}, attachs: {title: '附件',order: 8,view: 'text', type: 'string',}, }; /** * 流程表单调用这个方法获取formSchema * @param param */ export function getBpmFormSchema(_formData): FormSchema[]{ // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema return formSchema; }