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: '到货日期(arrival date)', align:"center", dataIndex: 'arrivalDate', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '项目(project)', align:"center", dataIndex: 'projectName' }, { title: '供应商(supplier)', align:"center", dataIndex: 'supplierName' }, { title: '优先级(priority)', align:"center", dataIndex: 'priority_dictText' }, { title: '产品分类(production class)', align:"center", dataIndex: 'productionClass_dictText' }, { title: '机型(model)', align:"center", dataIndex: 'model' }, { title: '厂家(maker)', align:"center", dataIndex: 'maker' }, { title: '采购部门(purchase department)', align:"center", dataIndex: 'purchaseDepartmentName' }, { title: '采购员(purchaseman)', align:"center", dataIndex: 'purchasemanName' }, { title: '来源(sourceCode)', align:"center", dataIndex: 'sourceCode' }, { title: '关闭原因(close reason)', align:"center", dataIndex: 'closeReason' }, { title: '提交(submit)', align:"center", dataIndex: 'submit_dictText', }, { title: '关闭(close)', align:"center", dataIndex: 'close_dictText', }, { title: '供应商id(supplier)', align:"center", dataIndex: 'supplier', ifShow:false }, ]; //子表表格配置 export const ArriveGoodsFormShipColumns: JVxeColumn[] = [ { title: '船名(ship name)', key: 'shipName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '主机号(host number)', key: 'hostNumber', type: JVxeTypes.input, placeholder: '请输入${title}', defaultValue:'', }, { title: '工程编号(project No)', key: 'projectNo', type: JVxeTypes.input, placeholder: '请输入${title}', defaultValue:'', }, { title: '船厂(ship factory)', key: 'shipFactory', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '船东(shipowner)', key: 'shipowner', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '操作(operation)', key: 'action', width:"400px", // 固定在右侧 fixed: 'right', // 对齐方式为居中 align: 'center', // 组件类型定义为【插槽】 type: JVxeTypes.slot, // slot 的名称,对应 v-slot 冒号后面和等号前面的内容 slotName: 'action', }, ] export const ArriveGoodsDetailColumns: JVxeColumn[] = [ { title: '预发货日期(preshipment data)', key: 'shipmentDate', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '最早发货日期(earliest delivery date)', key: 'earliestDeliveryDate', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '最晚发货日期(latest delivery date)', key: 'latestDeliveryDate', 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, // options: [], // dictCode: 'factory', // }, { title: '质量等级(quality grade)', key: 'qualityGrade', type: JVxeTypes.normal, options: [], dictCode: 'quality_grade', placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '需要船检证书(need Ship inspection certificate)', key: 'needShip', width:"200px", placeholder: '请输入${title}', defaultValue:'', type: JVxeTypes.normal, options: [], dictCode: 'yes_or_no', }, { title: '船检证书(ship Inspection certificate)', key: 'shipInspection', type: JVxeTypes.normal, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '订单数量(order quantity)', key: 'orderQuantity', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '已到货数量(arrival quantity)', key: 'arrivalQuantity', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, // { // title: '已到货金额(arrival money)', // key: 'arrivalMoney', // type: JVxeTypes.normal, // placeholder: '请输入${title}', // defaultValue:'', // width:"200px", // }, { title: '数量(quantity)', key: 'quantity', type: JVxeTypes.inputNumber, validateRules: [{ required: true, message: '' }], placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '备注(note)', key: 'notes', 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', }, ]