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', width:140, }, { title: '申请日期(bill date)', align:"center", width:200, dataIndex: 'billDate', customRender:({text}) =>{ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); return text; }, }, { title: '预付款日期(expected payment date)', align:"center", dataIndex: 'expectedPaymentDate', width:235, ellipsis:true }, { title: '供应商(supplier)', align:"center", width:200, dataIndex: 'supplierName' }, { title: '类型(type)', align:"center", ellipsis:true, width:150, dataIndex: 'type' }, { title: '申请金额(approve money)', align:"center", ellipsis:true, width:200, dataIndex: 'approveMoney' }, { title: '币种(cerrency)', align:"center", width:140, dataIndex: 'currency_dictText' }, // { // title: '开户行(opening bank)', // align:"center", // dataIndex: 'openingBank' // }, // { // title: '户名(opening name)', // align:"center", // dataIndex: 'openingName' // }, // { // title: '银行代码(swift code)', // align:"center", // dataIndex: 'swiftCode' // }, // { // title: '银行账号(bank account)', // align:"center", // dataIndex: 'bankAccount' // }, // { // title: '备注(notes)', // align:"center", // dataIndex: 'notes', // }, // { // title: '关闭原因(close reason)', // align:"center", // dataIndex: 'closeReason' // }, { title: '提交(submit)', align:"center", width:140, dataIndex: 'submit_dictText', }, // { // title: '关闭(close)', // align:"center", // dataIndex: 'close_dictText', // }, // { // title: '确认(confirm)', // align:"center", // dataIndex: 'status_dictText', // }, { title: '付款(payment)', align:"center", width:140, dataIndex: 'payment_dictText', }, { title: '创建人', align:"center", width:140, dataIndex: 'createBy', }, { title: '创建时间', align:"center", width:200, dataIndex: 'createTime', }, ]; //子表表格配置 export const ShippingNoticeColumns: JVxeColumn[] = [ { title: '通知单号(bill code)', key: 'billCode', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, // { // title: '合同编号(contract code)', // key: 'contractCode', // type: JVxeTypes.normal, // placeholder: '请输入${title}', // defaultValue:'', // }, { title: '项目(project)', key: 'projectName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '客户(customer)', key: 'customerName', 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 FreightProDetailsColumns: JVxeColumn[] = [ { title: '产品分类(product class)', key: 'productClass', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '产品编码(product code)', key: 'productCode', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '产品中文名(chinese name)', key: 'chineseName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '产品英文名(english name)', key: 'englishName', type: JVxeTypes.normal, placeholder: '请输入${title}', defaultValue:'', }, { title: '运费金额(amount)', key: 'taxAmount', type: JVxeTypes.inputNumber, validateRules: [{ required: true, message: '' }], placeholder: '请输入${title}', defaultValue:'', }, { title: '操作(operation)', key: 'action', width:"300px", // 固定在右侧 fixed: 'right', // 对齐方式为居中 align: 'center', // 组件类型定义为【插槽】 type: JVxeTypes.slot, // slot 的名称,对应 v-slot 冒号后面和等号前面的内容 slotName: 'action', }, ]