nursing_unit_vue/src/views/invoicing/ConfigMaterial/ConfigMaterialInfo.data.ts

101 lines
3.6 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: 'materialName'
},
{
title: '货品编码',
align: "center",
dataIndex: 'materialNo'
},
{
title: '规格型号',
align: "center",
dataIndex: 'specificationModel'
},
{
title: '销售单价',
align: "center",
dataIndex: 'salesUnitPrice'
},
{
title: '参考单价',
align: "center",
dataIndex: 'referenceUnitPrice'
},
{
title: '货品单位',
align: "center",
dataIndex: 'materialUnits'
},
{
title: '供应商',
align: "center",
dataIndex: 'suppliers_dictText'
},
{
title: '物料类别',
align: "center",
dataIndex: 'categoryId_dictText'
},
{
title: '物料类型',
align: "center",
dataIndex: 'typeId_dictText'
},
{
title: '用药类型',
align: "center",
dataIndex: 'medicationId_dictText'
},
// {
// title: '物料图片',
// align: "center",
// dataIndex: 'materialImg',
// customRender: render.renderImage,
// },
// {
// title: '物料标识',
// align: "center",
// dataIndex: 'materialIdent',
// customRender: render.renderImage,
// },
{
title: '是否启用',
align: "center",
dataIndex: 'izEnabled_dictText'
},
];
// 高级查询数据
export const superQuerySchema = {
categoryId: {title: '物料类别',order: 0,view: 'radio', type: 'string',dictTable: "nu_config_material_category", dictCode: 'id', dictText: 'category_name',},
typeId: {title: '物料类型',order: 1,view: 'radio', type: 'string',dictTable: "nu_config_material_type", dictCode: 'id', dictText: 'type_name',},
medicationId: {title: '用药类型',order: 2,view: 'radio', type: 'string',dictTable: "nu_config_material_medication", dictCode: 'id', dictText: 'medication_name',},
materialName: {title: '货品名称',order: 3,view: 'text', type: 'string',},
materialNo: {title: '货品编码',order: 4,view: 'text', type: 'string',},
specificationModel: {title: '规格型号',order: 5,view: 'text', type: 'string',},
salesUnitPrice: {title: '销售单价',order: 6,view: 'number', type: 'number',},
referenceUnitPrice: {title: '参考单价',order: 7,view: 'number', type: 'number',},
materialUnits: {title: '货品单位',order: 8,view: 'text', type: 'string',},
multiUnitSwitch: {title: '多单位开关',order: 9,view: 'switch', type: 'string',},
oneUnit: {title: '父级单位',order: 10,view: 'text', type: 'string',},
oneUnitProportion: {title: '父级单位兑换比例',order: 11,view: 'number', type: 'number',},
oneUnitPrice: {title: '父级单位价格',order: 12,view: 'number', type: 'number',},
twoUnit: {title: '爷级单位',order: 13,view: 'text', type: 'string',},
twoUnitProportion: {title: '爷级单位兑换比例',order: 14,view: 'number', type: 'number',},
twoUnitPrice: {title: '爷级单位价格',order: 15,view: 'number', type: 'number',},
multiUnitType: {title: '多单位采购默认使用 0子集 1父级 2爷级',order: 16,view: 'text', type: 'string',},
suppliers: {title: '供应商',order: 17,view: 'text', type: 'string',},
materialImg: {title: '物料图片',order: 18,view: 'image', type: 'string',},
materialIdent: {title: '物料标识',order: 19,view: 'image', type: 'string',},
izEnabled: {title: '是否启用',order: 20,view: 'radio', type: 'string',dictCode: ' iz_enabled',},
};