123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- 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: '询价客户(inquiry customer)',
- align:"center",
- dataIndex: 'inquiryCustomer_dictText'
- },
- {
- title: '询价有效期(inquiry period)',
- align:"center",
- dataIndex: 'time',
- width:250,
- customRender:({text,record}) =>{
- if(record.inquiryPeriodBegin&&record.inquiryPeriodEnd){
- text = record.inquiryPeriodBegin+'~'+record.inquiryPeriodEnd
- }else if(!record.inquiryPeriodBegin){
- text = record.inquiryPeriodEnd
- }else if(!record.inquiryPeriodEnd){
- text = record.inquiryPeriodBegin
- }else{
- text=''
- }
- return text;
- },
- },
- // {
- // title: '询价有效期(inquiry period)止',
- // align:"center",
- // width:250,
- // dataIndex: 'inquiryPeriodEnd',
- // customRender:({text}) =>{
- // text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
- // return text;
- // },
- // },
- {
- title: '询价平台(inquiry platform)',
- align:"center",
- dataIndex: 'inquiryPlatform'
- },
- {
- title: '客户询价单号(customer inquiry number)',
- align:"center",
- width:250,
- dataIndex: 'customerInquiryNumber'
- },
- // {
- // title: '船(ship)',
- // dataIndex: 'shipName',
- // align:"center",
- // },
- {
- 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: '采购询价组(procurement inquiry team)',
- align:"center",
- dataIndex: 'inquiryTeam_dictText',
- width:'250'
- },
- {
- title: '状态(status)',
- align:"center",
- dataIndex: 'status',
- customRender:function (t, r, index) {
- if(t.text==1){
- return '已报价'
- }else if(t.text==0){
- return '未报价'
- }
- }
- },
- {
- title: '其他状态(other status)',
- align:"center",
- dataIndex: 'otherStatus'
- },
- {
- title: '提交(submit)',
- align:"center",
- dataIndex: 'submit',
- customRender:function (t, r, index) {
- if(t.text==1){
- return '是(yes)'
- }else if(t.text=="0"){
- return '否(no)'
- }
- }
- },
- ];
- //子表表格配置
- export const saleInquiryFormShipColumns: 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 saleInquiryFormProductColumns: 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:'',
- fixed: 'left',
- },
- {
- title: '产品英文名(english name)',
- key: 'englishName',
- 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.select,
- options: [],
- 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}],
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '单位(unit)',
- key: 'unit',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- defaultValue:'',
- width:"200px",
- },
- {
- title: '需要船检证书(need Ship inspection certificate)',
- key: 'needShip',
- width:"200px",
- placeholder: '请输入${title}',
- defaultValue:'',
- type: JVxeTypes.select,
- options: [],
- dictCode: 'yes_or_no',
- stringToNumber: true,
- },
- {
- title: '船检证书(ship Inspection certificate)',
- key: 'shipInspection',
- type: JVxeTypes.input,
- width:"200px",
- placeholder: '请输入${title}',
- defaultValue:'',
- },
- {
- title: '备注(note)',
- key: 'notes',
- width:"200px",
- type: JVxeTypes.input,
- placeholder: '请输入${title}',
- defaultValue:'',
- },
- {
- title: '型号(model)',
- key: 'model',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '操作(operation)',
- key: 'action',
- width:"200px",
- // 固定在右侧
- fixed: 'right',
- // 对齐方式为居中
- align: 'center',
- // 组件类型定义为【插槽】
- type: JVxeTypes.slot,
- // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
- slotName: 'action',
- },
- ]
- // 高级查询数据
- 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',},
- }
- },
- };
|