nursing_unit_vue/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.dat...

241 lines
4.5 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: 'nuId_dictText'
},
{
title: '物料',
align: "center",
dataIndex: 'wlId_dictText'
},
{
title: '物料编码',
align: "center",
dataIndex: 'materialNo'
},
{
title: '规格型号',
align: "center",
dataIndex: 'specificationModel'
},
{
title: '物料上限',
align: "center",
dataIndex: 'upperLimit',
width: 100
},
{
title: '物料下限',
align: "center",
dataIndex: 'lowerLimit',
width: 100
},
{
title: '库存数量',
align: "center",
dataIndex: 'kcsl',
width: 100
},
{
title: '是否启用',
align: "center",
dataIndex: 'izEnabled_dictText',
width: 100
},
];
export const columns2: BasicColumn[] = [
{
title: '物料',
align: "center",
dataIndex: 'materialName'
},
{
title: '物料编码',
align: "center",
dataIndex: 'materialNo'
},
{
title: '规格型号',
align: "center",
dataIndex: 'specificationModel'
},
{
title: '一级分类',
align: "center",
dataIndex: 'categoryId_dictText'
},
{
title: '二级分类',
align: "center",
dataIndex: 'typeId_dictText'
},
{
title: '三级分类',
align: "center",
dataIndex: 'medicationId_dictText'
},
{
title: '物料上限',
align: "center",
dataIndex: 'upperLimit',
},
{
title: '物料下限',
align: "center",
dataIndex: 'lowerLimit',
},
{
title: '操作',
align: "center",
dataIndex: 'action',
},
];
export const columns3: BasicColumn[] = [
{
title: '物料',
align: "center",
dataIndex: 'materialName'
},
{
title: '物料编码',
align: "center",
dataIndex: 'materialNo'
},
{
title: '规格型号',
align: "center",
dataIndex: 'specificationModel'
},
{
title: '一级分类',
align: "center",
dataIndex: 'categoryId_dictText'
},
{
title: '二级分类',
align: "center",
dataIndex: 'typeId_dictText'
},
{
title: '三级分类',
align: "center",
dataIndex: 'medicationId_dictText'
},
{
title: '物料上限',
align: "center",
dataIndex: 'upperLimit'
},
{
title: '物料下限',
align: "center",
dataIndex: 'lowerLimit'
},
];
export const columns4: BasicColumn[] = [
{
title: '物料',
align: "center",
dataIndex: 'materialName'
},
{
title: '物料编码',
align: "center",
dataIndex: 'materialNo'
},
{
title: '规格型号',
align: "center",
dataIndex: 'specificationModel'
},
{
title: '一级分类',
align: "center",
dataIndex: 'categoryId_dictText'
},
{
title: '二级分类',
align: "center",
dataIndex: 'typeId_dictText'
},
{
title: '三级分类',
align: "center",
dataIndex: 'medicationId_dictText'
},
{
title: '库存数量',
align: "center",
dataIndex: 'kcsl'
},
{
title: '物料上限',
align: "center",
dataIndex: 'upperLimit'
},
{
title: '物料下限',
align: "center",
dataIndex: 'lowerLimit'
},
];
//列表数据
export const ckcolumns: BasicColumn[] = [
{
title: 'NUID',
align: "center",
dataIndex: 'nuId'
},
{
title: '库房',
align: "center",
dataIndex: 'nuName'
},
{
title: '负责人',
align: "center",
dataIndex: 'fzr'
},
{
title: '负责人电话',
align: "center",
dataIndex: 'fzrTel'
},
{
title: '是否启用',
align: "center",
dataIndex: 'status',
customRender: ({ text }) => {
if (text == 5) {
return '停用';
} else {
return '启用';
}
},
width: 100,
},
];
// 高级查询数据
export const superQuerySchema = {
nuId: {title: '库房',order: 0,view: 'list', type: 'string',dictTable: "nu_base_info", dictCode: 'nu_id', dictText: 'nu_name',},
wlId: {title: '物料',order: 1,view: 'list_multi', type: 'string',dictTable: "nu_config_material_info", dictCode: 'id', dictText: 'material_name',},
upperLimit: {title: '物料上限',order: 2,view: 'text', type: 'string',},
lowerLimit: {title: '物料下限',order: 3,view: 'text', type: 'string',},
kcsl: {title: '库存数量',order: 4,view: 'text', type: 'string',},
};