|
@@ -0,0 +1,365 @@
|
|
|
+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: '状态(1-已报价,0-已报价)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'status'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '其他状态(other status)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'otherStatus'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '提交(1是 0否)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'submit'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单据日期(bill date)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'billDate',
|
|
|
+ customRender:({text}) =>{
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
+ return text;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价单号(bill code)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'billCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价项目(inquiry project)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryProject'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价客户(inquiry customer)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryCustomer'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价平台(inquiry platform)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryPlatform'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '客户询价单号(customer inquiry number)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'customerInquiryNumber'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价有效期(inquiry period)止',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryPeriodEnd',
|
|
|
+ customRender:({text}) =>{
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
+ return text;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价有效期(inquiry period)始',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryPeriodBegin',
|
|
|
+ customRender:({text}) =>{
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
+ return text;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '业务类型(busyness type)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'busynessType'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '优先级(priority)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'priority'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品分类(production class)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'productionClass'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '机型(model)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'model'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '厂家(maker)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'maker'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '销售部门(sale department)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'saleDepartment'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '业务员(salesman)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'salesman'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '采购询价组(procurement inquiry team)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryTeam'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '交期(delivery time)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'deliveryTime'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '附件(attachs)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'attachs'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '询价备注(inquiry notes)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'inquiryNotes'
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+//子表表格配置
|
|
|
+export const saleInquiryFormShipColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '船id',
|
|
|
+ key: 'shipId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船名',
|
|
|
+ key: 'shipName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '主机号',
|
|
|
+ key: 'hostNumber',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '工程编号',
|
|
|
+ key: 'projectNo',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船厂',
|
|
|
+ key: 'shipFactory',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船东',
|
|
|
+ key: 'shipowner',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+export const saleInquiryFormProductColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '产品id',
|
|
|
+ key: 'productId',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '交期',
|
|
|
+ key: 'deliveryTime',
|
|
|
+ type: JVxeTypes.date,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品分类',
|
|
|
+ key: 'productClass',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品编码',
|
|
|
+ key: 'productCode',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品中文名',
|
|
|
+ key: 'chineseName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品英文名',
|
|
|
+ key: 'englishName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '规格',
|
|
|
+ key: 'specifications',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '型号',
|
|
|
+ key: 'model',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '厂家',
|
|
|
+ key: 'factory',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '质量等级',
|
|
|
+ key: 'qualityGrade',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'quantity',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'unit',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '需要船检证书(1是 0否)',
|
|
|
+ key: 'needShip',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船检证书',
|
|
|
+ key: 'shipInspection',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ key: 'notes',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+
|
|
|
+// 高级查询数据
|
|
|
+export const superQuerySchema = {
|
|
|
+ status: {title: '状态(1-已报价,0-已报价)',order: 0,view: 'number', type: 'number',},
|
|
|
+ otherStatus: {title: '其他状态(other status)',order: 2,view: 'text', type: 'string',},
|
|
|
+ submit: {title: '提交(1是 0否)',order: 3,view: 'text', type: 'string',},
|
|
|
+ billDate: {title: '单据日期(bill date)',order: 4,view: 'date', type: 'string',},
|
|
|
+ billCode: {title: '询价单号(bill code)',order: 5,view: 'text', type: 'string',},
|
|
|
+ inquiryProject: {title: '询价项目(inquiry project)',order: 6,view: 'text', type: 'string',},
|
|
|
+ inquiryCustomer: {title: '询价客户(inquiry customer)',order: 7,view: 'text', type: 'string',},
|
|
|
+ inquiryPlatform: {title: '询价平台(inquiry platform)',order: 8,view: 'text', type: 'string',},
|
|
|
+ customerInquiryNumber: {title: '客户询价单号(customer inquiry number)',order: 9,view: 'text', type: 'string',},
|
|
|
+ inquiryPeriodEnd: {title: '询价有效期(inquiry period)止',order: 10,view: 'date', type: 'string',},
|
|
|
+ inquiryPeriodBegin: {title: '询价有效期(inquiry period)始',order: 11,view: 'date', type: 'string',},
|
|
|
+ busynessType: {title: '业务类型(busyness type)',order: 12,view: 'text', type: 'string',},
|
|
|
+ priority: {title: '优先级(priority)',order: 13,view: 'text', type: 'string',},
|
|
|
+ productionClass: {title: '产品分类(production class)',order: 14,view: 'text', type: 'string',},
|
|
|
+ model: {title: '机型(model)',order: 15,view: 'text', type: 'string',},
|
|
|
+ maker: {title: '厂家(maker)',order: 16,view: 'text', type: 'string',},
|
|
|
+ saleDepartment: {title: '销售部门(sale department)',order: 17,view: 'text', type: 'string',},
|
|
|
+ salesman: {title: '业务员(salesman)',order: 18,view: 'text', type: 'string',},
|
|
|
+ inquiryTeam: {title: '采购询价组(procurement inquiry team)',order: 19,view: 'text', type: 'string',},
|
|
|
+ deliveryTime: {title: '交期(delivery time)',order: 20,view: 'datetime', type: 'string',},
|
|
|
+ attachs: {title: '附件(attachs)',order: 21,view: 'text', type: 'string',},
|
|
|
+ inquiryNotes: {title: '询价备注(inquiry notes)',order: 22,view: 'text', type: 'string',},
|
|
|
+ //子表高级查询
|
|
|
+ saleInquiryFormShip: {
|
|
|
+ title: '销售询价单子表 - 船明细',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ shipId: {title: '船id',order: 0,view: 'text', type: 'string',},
|
|
|
+ shipName: {title: '船名',order: 1,view: 'text', type: 'string',},
|
|
|
+ hostNumber: {title: '主机号',order: 2,view: 'text', type: 'string',},
|
|
|
+ projectNo: {title: '工程编号',order: 3,view: 'text', type: 'string',},
|
|
|
+ shipFactory: {title: '船厂',order: 4,view: 'text', type: 'string',},
|
|
|
+ shipowner: {title: '船东',order: 5,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ saleInquiryFormProduct: {
|
|
|
+ title: '销售询价单子表 - 产品明细',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ productId: {title: '产品id',order: 0,view: 'number', type: 'number',},
|
|
|
+ deliveryTime: {title: '交期',order: 1,view: 'date', type: 'string',},
|
|
|
+ productClass: {title: '产品分类',order: 2,view: 'text', type: 'string',},
|
|
|
+ productCode: {title: '产品编码',order: 3,view: 'text', type: 'string',},
|
|
|
+ chineseName: {title: '产品中文名',order: 4,view: 'text', type: 'string',},
|
|
|
+ englishName: {title: '产品英文名',order: 5,view: 'text', type: 'string',},
|
|
|
+ specifications: {title: '规格',order: 6,view: 'text', type: 'string',},
|
|
|
+ model: {title: '型号',order: 7,view: 'text', type: 'string',},
|
|
|
+ factory: {title: '厂家',order: 8,view: 'text', type: 'string',},
|
|
|
+ qualityGrade: {title: '质量等级',order: 9,view: 'text', type: 'string',},
|
|
|
+ quantity: {title: '数量',order: 10,view: 'number', type: 'number',},
|
|
|
+ unit: {title: '单位',order: 11,view: 'text', type: 'string',},
|
|
|
+ needShip: {title: '需要船检证书(1是 0否)',order: 12,view: 'text', type: 'string',},
|
|
|
+ shipInspection: {title: '船检证书',order: 13,view: 'text', type: 'string',},
|
|
|
+ notes: {title: '备注',order: 14,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|