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: '盘点单号(bill code)', align:"center", dataIndex: 'billCode' }, { title: '盘点日期(bill date)', align:"center", dataIndex: 'billDate', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '仓库(warehouse)', align:"center", dataIndex: 'warehouse' }, { title: '货位(goods allocation)', align:"center", dataIndex: 'goodsAllocation', width:'250' }, { title: '提交(submit)', align:"center", dataIndex: 'submit_dictText', }, ]; export const stockDetailColumns: JVxeColumn[] = [ { title: '产品分类(product class)', key: 'productClass', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '产品编码(product code)', key: 'productCode', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '产品中文名(chineseName)', key: 'chineseName', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '产品英文名(englishName)', key: 'englishName', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '型号(model)', key: 'model', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '备件号(partno)', key: 'partno', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '订货号(orderno)', key: 'orderno', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '图号(drawingno)', key: 'drawingno', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '厂家(factory)', key: 'factory', placeholder: '请输入${title}', width:"200px", defaultValue:'', type: JVxeTypes.normal, }, { title: '质量等级(quality grade)', key: 'qualityGrade', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '编号(batch code)', key: 'batchCode', placeholder: '请输入${title}', width:"200px", defaultValue:'', type: JVxeTypes.normal, }, { title: '库存数量(inventory quantity)', key: 'inventoryQuantity', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '盘点数量(counted quantity)', key: 'countedQuantity', type: JVxeTypes.inputNumber, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '盘盈/盘亏(inventory profit/loss)', key: 'inventory', width:"200px", placeholder: '请输入${title}', defaultValue:'', type: JVxeTypes.inputNumber, }, { title: '备注(notes)', key: 'notes', type: JVxeTypes.input, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '操作(operation)', key: 'action', width:"200px", // 固定在右侧 fixed: 'right', // 对齐方式为居中 align: 'center', // 组件类型定义为【插槽】 type: JVxeTypes.slot, // slot 的名称,对应 v-slot 冒号后面和等号前面的内容 slotName: 'action', }, ]