123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- 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'
- //列表数据
- 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: '客户(customer)',
- align:"center",
- width:250,
- dataIndex: 'customerName'
- },
- {
- title: '供应商(supplier)',
- align:"center",
- width:250,
- dataIndex: 'supplierName'
- },
- {
- title: '销售部门(saleDepartment)',
- align:"center",
- dataIndex: 'saleDepartmenName'
- },
- {
- title: '业务员(salesman)',
- align:"center",
- dataIndex: 'salesmanName',
- width:250,
- },
- {
- title: '提交(submit)',
- align:"center",
- dataIndex: 'submit_dictText'
- },
- {
- title: '关闭(close)',
- align:"center",
- dataIndex: 'close_dictText'
- },
- {
- title: '供应商回款(supplier payment)',
- align:"center",
- dataIndex: 'supplierPayment'
- },
- ];
- export const ProductColumns: 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,
- // 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, message: '' }],
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '含税单价(tax price)',
- key: 'taxPrice',
- type: JVxeTypes.inputNumber,
- validateRules: [{ required: true, message: '' }],
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '含税金额(tax money)',
- key: 'taxMoney',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '佣金率(commission rate)',
- key: 'commissionRateChild',
- type: JVxeTypes.inputNumber,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '佣金(commission)',
- key: 'commission',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '备注(note)',
- key: 'notesChild',
- 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',
- },
- ]
|