174 lines
4.0 KiB
TypeScript
174 lines
4.0 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: '请购单id',
|
|
// align: "center",
|
|
// dataIndex: 'mainId'
|
|
// },
|
|
// {
|
|
// title: '采购单id',
|
|
// align: "center",
|
|
// dataIndex: 'cgdId'
|
|
// },
|
|
{
|
|
title: '物料编码',
|
|
align: "center",
|
|
dataIndex: 'wlMaterialNo'
|
|
},
|
|
{
|
|
title: '物料名称',
|
|
align: "center",
|
|
dataIndex: 'wlName'
|
|
},
|
|
{
|
|
title: '采购单位',
|
|
align: "center",
|
|
dataIndex: 'wlUnits'
|
|
},
|
|
{
|
|
title: '规格型号',
|
|
align: "center",
|
|
dataIndex: 'wlSpecificationModel'
|
|
},
|
|
{
|
|
title: '上限',
|
|
align: "center",
|
|
dataIndex: 'wlUpperLimit'
|
|
},
|
|
{
|
|
title: '下限',
|
|
align: "center",
|
|
dataIndex: 'wlLowerLimit'
|
|
},
|
|
// {
|
|
// title: '供应商名称',
|
|
// align: "center",
|
|
// dataIndex: 'suppliersName'
|
|
// },
|
|
{
|
|
title: '请购数量',
|
|
align: "center",
|
|
dataIndex: 'purchaseQuantity'
|
|
},
|
|
// {
|
|
// title: '银行',
|
|
// align: "center",
|
|
// dataIndex: 'brand'
|
|
// },
|
|
{
|
|
title: '库房',
|
|
align: "center",
|
|
dataIndex: 'nuId'
|
|
},
|
|
// {
|
|
// title: '入库数量',
|
|
// align: "center",
|
|
// dataIndex: 'rksl'
|
|
// },
|
|
// {
|
|
// title: '未入库数量',
|
|
// align: "center",
|
|
// dataIndex: 'wrksl'
|
|
// },
|
|
// {
|
|
// title: '采购单价',
|
|
// align: "center",
|
|
// dataIndex: 'procurementPrice'
|
|
// },
|
|
// {
|
|
// title: '到货单间',
|
|
// align: "center",
|
|
// dataIndex: 'arrivalPrice'
|
|
// },
|
|
];
|
|
|
|
|
|
//列表数据
|
|
export const rkcolumns: BasicColumn[] = [
|
|
{
|
|
title: '物料编码',
|
|
align: "center",
|
|
dataIndex: 'wlMaterialNo'
|
|
},
|
|
{
|
|
title: '物料名称',
|
|
align: "center",
|
|
dataIndex: 'wlName'
|
|
},
|
|
{
|
|
title: '采购单位',
|
|
align: "center",
|
|
dataIndex: 'wlUnits'
|
|
},
|
|
{
|
|
title: '规格型号',
|
|
align: "center",
|
|
dataIndex: 'wlSpecificationModel'
|
|
},
|
|
{
|
|
title: '上限',
|
|
align: "center",
|
|
dataIndex: 'wlUpperLimit'
|
|
},
|
|
{
|
|
title: '下限',
|
|
align: "center",
|
|
dataIndex: 'wlLowerLimit'
|
|
},
|
|
{
|
|
title: '库房',
|
|
align: "center",
|
|
dataIndex: 'nuId'
|
|
},
|
|
{
|
|
title: '采购单价',
|
|
align: "center",
|
|
dataIndex: 'procurementPrice'
|
|
},
|
|
{
|
|
title: '到货单价',
|
|
align: "center",
|
|
dataIndex: 'arrivalPrice'
|
|
},
|
|
{
|
|
title: '请购数量',
|
|
align: "center",
|
|
dataIndex: 'purchaseQuantity'
|
|
},
|
|
{
|
|
title: '入库数量',
|
|
align: "center",
|
|
dataIndex: 'rksl'
|
|
},
|
|
{
|
|
title: '未入库数量',
|
|
align: "center",
|
|
dataIndex: 'wrksl'
|
|
},
|
|
];
|
|
|
|
// 高级查询数据
|
|
export const superQuerySchema = {
|
|
mainId: {title: '请购单id',order: 0,view: 'text', type: 'string',},
|
|
cgdId: {title: '采购单id',order: 1,view: 'text', type: 'string',},
|
|
wlMaterialNo: {title: '物料编码',order: 2,view: 'text', type: 'string',},
|
|
wlName: {title: '物料名称',order: 3,view: 'text', type: 'string',},
|
|
wlUnits: {title: '采购单位',order: 4,view: 'text', type: 'string',},
|
|
wlSpecificationModel: {title: '规格型号',order: 5,view: 'text', type: 'string',},
|
|
wlUpperLimit: {title: '上限',order: 6,view: 'text', type: 'string',},
|
|
wlLowerLimit: {title: '下限',order: 7,view: 'text', type: 'string',},
|
|
suppliersName: {title: '供应商名称',order: 8,view: 'text', type: 'string',},
|
|
purchaseQuantity: {title: '请购数量',order: 9,view: 'number', type: 'number',},
|
|
brand: {title: '银行',order: 10,view: 'text', type: 'string',},
|
|
nuId: {title: '库房',order: 11,view: 'text', type: 'string',},
|
|
rksl: {title: '入库数量',order: 12,view: 'text', type: 'string',},
|
|
wrksl: {title: '未入库数量',order: 13,view: 'text', type: 'string',},
|
|
procurementPrice: {title: '采购单价',order: 14,view: 'text', type: 'string',},
|
|
arrivalPrice: {title: '到货单间',order: 15,view: 'text', type: 'string',},
|
|
};
|