| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- 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',
- },
- ]
|