74 lines
2.1 KiB
TypeScript
74 lines
2.1 KiB
TypeScript
|
|
import {BasicColumn} from '/@/components/Table';
|
||
|
|
import {FormSchema} from '/@/components/Table';
|
||
|
|
import { rules} from '/@/utils/helper/validator';
|
||
|
|
import { render } from '/@/utils/common/renderUtils';
|
||
|
|
import { getWeekMonthQuarterYear } from '/@/utils';
|
||
|
|
//列表数据
|
||
|
|
export const columns: BasicColumn[] = [
|
||
|
|
{
|
||
|
|
title: '供应商名称',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'suppliersName'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '供应商性质',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'suppliersNature_dictText'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '供应商地址',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'suppliersAddress'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '负责人',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'personInCharge'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '联系电话',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'contactNumber'
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// title: '供应状态',
|
||
|
|
// align: "center",
|
||
|
|
// dataIndex: 'supplyState_dictText'
|
||
|
|
// },
|
||
|
|
{
|
||
|
|
title: '开户行',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'openingBank'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '开户行账号',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'openingBankNo'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '资质照片',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'imgPath',
|
||
|
|
customRender: render.renderImage,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: '创建日期',
|
||
|
|
align: "center",
|
||
|
|
dataIndex: 'createTime'
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
// 高级查询数据
|
||
|
|
export const superQuerySchema = {
|
||
|
|
suppliersName: {title: '供应商名称',order: 0,view: 'text', type: 'string',},
|
||
|
|
suppliersNature: {title: '供应商性质',order: 1,view: 'list', type: 'string',dictCode: 'suppliers_nature',},
|
||
|
|
suppliersAddress: {title: '供应商地址',order: 2,view: 'text', type: 'string',},
|
||
|
|
personInCharge: {title: '负责人',order: 3,view: 'text', type: 'string',},
|
||
|
|
contactNumber: {title: '联系电话',order: 4,view: 'text', type: 'string',},
|
||
|
|
supplyState: {title: '供应状态',order: 5,view: 'list', type: 'string',dictCode: 'supply_status',},
|
||
|
|
openingBank: {title: '开户行',order: 6,view: 'text', type: 'string',},
|
||
|
|
openingBankNo: {title: '开户行账号',order: 7,view: 'text', type: 'string',},
|
||
|
|
imgPath: {title: '资质照片',order: 8,view: 'image', type: 'string',},
|
||
|
|
createTime: {title: '创建日期',order: 9,view: 'datetime', type: 'string',},
|
||
|
|
};
|