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: '询问价项目(inquiry project)', align:"center", dataIndex: 'projectName' }, { 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: '提交(submit)', align:"center", dataIndex: 'submit_dictText', customRender:({text,record}) =>{ if(record.submit=='0'){ text = '未提交' }else if(record.submit=='1'){ text = '已提交' } return text; }, }, ]; //子表表格配置 export const SelectQuotationFormShipTableCloumn: JVxeColumn[] = [ { title: '船名(ship name)', key: 'shipName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '主机号(host number)', key: 'hostNumber', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '工程编号(project No)', key: 'projectNo', type: JVxeTypes.normal, 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 SelectQuotationFormProductColumns: 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, }, { title: '质量等级(quality grade)', key: 'qualityGrade', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '数量(quantity)', key: 'quantity', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '选定供应商(selection supplier)', key: 'selectionSupplier', type: JVxeTypes.slot, slotName: 'selectionSupplier', placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '付款条件(payment terms)', key: 'paymentTerms', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '发货方式(delivery)', key: 'delivery', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '交期(delivery time)', key: 'deliveryTime', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '报价有效期(quotation validity)', key: 'quotationValidity', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '上次报价(last price)', key: 'lastPice', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '单价(price)', key: 'taxPrice', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '金额(amount)', key: 'taxAmount', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '备注(note)', key: 'notes', width:"200px", type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '操作(operation)', key: 'action', width:"200px", // 固定在右侧 fixed: 'right', // 对齐方式为居中 align: 'center', // 组件类型定义为【插槽】 type: JVxeTypes.slot, // slot 的名称,对应 v-slot 冒号后面和等号前面的内容 slotName: 'action', }, ] export const SupplierQuotationColumns: 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, }, { title: '质量等级(quality grade)', key: 'qualityGrade', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", defaultValue:'', }, { title: '报价供应商(quotation supplier)', key: 'suppilerName', width:"200px", placeholder: '请输入${title}', defaultValue:'', type: JVxeTypes.normal, }, { title: '付款条件(payment trems)', key: 'paymentTerms', type: JVxeTypes.normal, width:"200px", placeholder: '请输入${title}', defaultValue:'', }, { title: '发货方式(delivery)', key: 'delivery', type: JVxeTypes.normal, placeholder: '请输入${title}', width:"200px", }, { title: '交期(deliery time)', key: 'childDeliveryTime', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '单价(price)', key: 'taxPrice', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '币种(currency)', key: 'currency', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '上次报价(last price)', key: 'lastPice', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '金额(amount)', key: 'taxAmount', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', width:"200px", }, { title: '备注(note)', key: 'notes', width:"200px", type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, ] export const SupplierSummaryAmountColumns: JVxeColumn[] = [ { title: '报价单号(bill code)', key: 'billCode', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '单据日期(bill date)', key: 'billDate', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '报价项目(quotation project)', key: 'projectName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '报价供应商(quotation supplier)', key: 'suppilerName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '报价截止日期(quotation deadline)', key: 'quotationDeadline', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '币种(currency)', key: 'currency', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '合计金额(total amount)', key: 'taxAmount', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, ]