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' //列表数据 export const columns: BasicColumn[] = [ { title: '订单编号(bill code)', align:"center", width:150, dataIndex: 'billCode' }, { title: '单据日期(bill date)', align:"center", dataIndex: 'billDate', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '客户(customer)', align:"center", width:250, dataIndex: 'customerName' }, { title: '供应商(supplier)', align:"center", width:250, dataIndex: 'supplierName' }, { title: '销售部门(saleDepartment)', align:"center", dataIndex: 'saleDepartmenName' }, { title: '佣金(commission)', align:"center", dataIndex: 'commission' }, { title: '业务员(salesman)', align:"center", dataIndex: 'salesmanName', width:250, }, { title: '提交(submit)', align:"center", dataIndex: 'submit_dictText' }, { title: '关闭(close)', align:"center", dataIndex: 'close_dictText' }, { title: '开票申请(apply invoice)', align:"center", dataIndex: 'applyInvoice_dictText' }, { title: '供应商回款(supplier payment)', align:"center", dataIndex: 'supplierPayment' }, { title: '组织(organize)', align:"center", dataIndex: 'organize' }, ]; export const ProductColumns: 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: '产品中文名(chinese name)', key: 'chineseName', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '产品英文名(english name)', 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, // dictCode: 'factory', // }, { title: '质量等级(quality grade)', key: 'qualityGrade', type: JVxeTypes.select, options: [], dictCode: 'quality_grade', placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '数量(quantity)', key: 'quantity', type: JVxeTypes.inputNumber, validateRules: [{ required: true, message: '' }], placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '含税单价(tax price)', key: 'taxPrice', type: JVxeTypes.inputNumber, validateRules: [{ required: true, message: '' }], placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '含税金额(tax money)', key: 'taxMoney', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '佣金率(commission rate)', key: 'commissionRateChild', type: JVxeTypes.inputNumber, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '佣金(commission)', key: 'commission', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '备注(note)', key: 'notesChild', width:"200px", type: JVxeTypes.input, placeholder: '请输入${title}', defaultValue:'', }, { title: '操作(operation)', key: 'action', width:"200px", // 固定在右侧 fixed: 'right', // 对齐方式为居中 align: 'center', // 组件类型定义为【插槽】 type: JVxeTypes.slot, // slot 的名称,对应 v-slot 冒号后面和等号前面的内容 slotName: 'action', }, ]