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: '提交(submit)1是0否', align:"center", dataIndex: 'submit_dictText' }, { title: '单据日期', align:"center", dataIndex: 'billDate', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '单据编码', align:"center", dataIndex: 'billCode' }, { title: '项目(project)', align:"center", dataIndex: 'project' }, { title: '项目名称', align:"center", dataIndex: 'projectName' }, { title: '客户(customer)', align:"center", dataIndex: 'customer' }, { title: '客户名称', align:"center", dataIndex: 'customerName' }, { title: '仓库(warehouse)', align:"center", dataIndex: 'warehouse' }, { title: '货位(goods allocation)', align:"center", dataIndex: 'goodsAllocation' }, { title: '备注(notes)', align:"center", dataIndex: 'notes' }, ]; //子表表格配置 export const storeConsignmentOutDetailsColumns: JVxeColumn[] = [ { title: '产品id', key: 'productId', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '产品分类', key: 'productClass', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '产品编码', key: 'productCode', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '产品中文名', key: 'chineseName', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '产品英文名', key: 'englishName', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '型号', key: 'model', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '备件号', key: 'partno', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '图号', key: 'drawingno', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '质量等级', key: 'qualityGrade', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '出库数量(stock out quantity)', key: 'stockOutQuantity', type: JVxeTypes.inputNumber, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '库存选择(Inventory selection)记录库存单号', key: 'inventorySelection', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '备注(notes)', key: 'notes', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '来源', key: 'sourceId', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '来源批次id', key: 'batchId', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, ] // 高级查询数据 export const superQuerySchema = { submit: {title: '提交(submit)1是0否',order: 0,view: 'list', type: 'string',dictCode: 'yes_or_no',}, billDate: {title: '单据日期',order: 1,view: 'date', type: 'string',}, billCode: {title: '单据编码',order: 2,view: 'text', type: 'string',}, project: {title: '项目(project)',order: 3,view: 'text', type: 'string',}, projectName: {title: '项目名称',order: 4,view: 'text', type: 'string',}, customer: {title: '客户(customer)',order: 5,view: 'text', type: 'string',}, customerName: {title: '客户名称',order: 6,view: 'text', type: 'string',}, warehouse: {title: '仓库(warehouse)',order: 7,view: 'text', type: 'string',}, goodsAllocation: {title: '货位(goods allocation)',order: 8,view: 'text', type: 'string',}, notes: {title: '备注(notes)',order: 9,view: 'textarea', type: 'string',}, //子表高级查询 storeConsignmentOutDetails: { title: '寄存代发出库-子表明细', view: 'table', fields: { productId: {title: '产品id',order: 0,view: 'text', type: 'string',}, productClass: {title: '产品分类',order: 1,view: 'text', type: 'string',}, productCode: {title: '产品编码',order: 2,view: 'text', type: 'string',}, chineseName: {title: '产品中文名',order: 3,view: 'text', type: 'string',}, englishName: {title: '产品英文名',order: 4,view: 'text', type: 'string',}, model: {title: '型号',order: 5,view: 'text', type: 'string',}, partno: {title: '备件号',order: 6,view: 'text', type: 'string',}, drawingno: {title: '图号',order: 7,view: 'text', type: 'string',}, qualityGrade: {title: '质量等级',order: 8,view: 'text', type: 'string',}, stockOutQuantity: {title: '出库数量(stock out quantity)',order: 9,view: 'number', type: 'number',}, inventorySelection: {title: '库存选择(Inventory selection)记录库存单号',order: 10,view: 'text', type: 'string',}, notes: {title: '备注(notes)',order: 11,view: 'text', type: 'string',}, sourceId: {title: '来源',order: 12,view: 'text', type: 'string',}, batchId: {title: '来源批次id',order: 13,view: 'text', type: 'string',}, } }, };