You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

426 lines
8.7 KiB

import { Debounce, getDictLabel } from "@/utils/index";
export function tableConfig() {
const _that = this;
return {
config: [
{ label: "复选框", type: "selection", prop: "selection", istrue: true },
{
label: "序号",
prop: "index",
type: "index",
istrue: true,
},
{
label: "显示货位",
prop: "locationName",
istrue: true,
},
{
label: "库别",
prop: "storageName",
istrue: true,
},
{
label: "区域编号",
prop: "areaCode",
istrue: true,
},
{
label: "商品编号",
prop: "goodNo",
istrue: true,
},
{
label: "商品名称",
prop: "goodName",
istrue: true,
},
{
label: "货位分组",
prop: "locationGroup",
istrue: true,
},
{
label: "深位",
prop: "isDeep",
istrue: true,
},
{
label: "批号",
prop: "batchNo",
istrue: true,
},
{
label: "库存数量",
prop: "quantity",
istrue: true,
},
{
label: "单位",
prop: "unit",
istrue: true,
"min-width": 100,
},
],
configEntry: [
{ label: "复选框", type: "selection", prop: "selection", istrue: true },
{
label: "序号",
prop: "index",
type: "index",
istrue: true,
},
{
label: "单据编号",
prop: "invOrderNo",
width:'160px',
istrue: true,
},
{
label: "盘点类型",
prop: "invType",
istrue: true,
filter(row, value) {
return getDictLabel(value, _that.dict.type.inv_type_dict);
},
},
{
label: "盘点状态",
prop: "invStatus",
istrue: true,
filter(row, value) {
return getDictLabel(value, _that.dict.type.inv_status);
},
},
{
label: "显示货位",
prop: "locationName",
istrue: true,
},
{
label: "库别",
prop: "storageName",
istrue: true,
},
{
label: "区域编号",
prop: "areaCode",
istrue: true,
},
{
label: "商品编号",
prop: "goodNo",
istrue: true,
},
{
label: "商品名称",
prop: "goodName",
istrue: true,
},
{
label: "批号",
prop: "batchNo",
istrue: true,
},
{
label: "库存数量",
prop: "quantity",
istrue: true,
},
{
label: "货位分组",
prop: "locationGroup",
istrue: true,
},
{
label: "执行盘点时间",
prop: "execTime",
istrue: true,
},
{
label: "完成盘点时间",
prop: "endTime",
istrue: true,
},
{
label: "深位",
prop: "isDeep",
istrue: true,
},
{
label: "单位",
prop: "unit",
istrue: true,
"min-width": 100,
},
],
rulesEntry: {
invCase: [
{ required: true, message: "请输入实盘件数", trigger: "change" },
],
invPiece: [
{ required: true, message: "请输入实盘零散数", trigger: "change" },
],
invQty: [
{ required: true, message: "请输入实盘数量", trigger: "change" },
],
},
configBlindPlate: [
{ label: "复选框", type: "selection", prop: "selection", istrue: true },
{
label: "序号",
prop: "index",
type: "index",
istrue: true,
},
{
label: "业主编号",
prop: "consignorCode",
istrue: true,
},
{
label: "盘点类型",
prop: "invType",
istrue: true,
filter(row, value) {
return getDictLabel(value, _that.dict.type.inv_type_dict);
},
},
{
label: "显示货位",
prop: "locationName",
istrue: true,
},
{
label: "库别",
prop: "storageName",
istrue: true,
},
{
label: "区域编号",
prop: "areaCode",
istrue: true,
},
{
label: "产品编号",
prop: "goodNo",
istrue: true,
},
{
label: "产品名称",
prop: "goodName",
istrue: true,
},
{
label: "包装单位",
prop: "unit",
istrue: true,
},
{
label: "包装数量",
prop: "packageQty",
istrue: true,
},
{
label: "数量",
prop: "quantity",
istrue: true,
},
],
rulesBlindPlate: {
invCase: [
{ required: true, message: "请输入实盘件数", trigger: "change" },
],
invPiece: [
{ required: true, message: "请输入实盘零散数", trigger: "change" },
],
invQty: [
{ required: true, message: "请输入实盘数量", trigger: "change" },
],
},
configInventoryDifference: [
{ label: "复选框", type: "selection", prop: "selection", istrue: true },
{
label: "序号",
prop: "index",
type: "index",
istrue: true,
},
{
label: "业主编号",
prop: "consignorCode",
istrue: true,
},
{
label: "业主名称",
prop: "consignorName",
istrue: true,
},
{
label: "单据编号",
prop: "invOrderNo",
width:'160px',
istrue: true,
},
{
label: "日期",
prop: "productionDate",
istrue: true,
},
{
label: "盘点类型",
prop: "invType",
istrue: true,
filter(row, value) {
return getDictLabel(value, _that.dict.type.inv_type_dict);
},
},
{
label: "盘点状态",
prop: "invStatus",
istrue: true,
filter(row, value) {
return getDictLabel(value, _that.dict.type.inv_status);
},
},
{
label: "显示货位",
prop: "locationName",
istrue: true,
},
{
label: "库别",
prop: "storageName",
istrue: true,
},
{
label: "区域编号",
prop: "areaCode",
istrue: true,
},
{
label: "产品编号",
prop: "goodNo",
istrue: true,
},
{
label: "产品名称",
prop: "goodName",
istrue: true,
},
// {
// label: "批号",
// prop: "batchNo",
// istrue: true,
// },
// {
// label: "包装单位",
// prop: "unit",
// istrue: true,
// filter(row, value) {
// return getDictLabel(value, _that.dict.type.goods_unit);
// },
// },
// {
// label: "包装数量",
// prop: "packageQty",
// istrue: true,
// },
// {
// label: "生产厂家",
// prop: "factory",
// istrue: true,
// },
// {
// label: "产地",
// prop: "waster",
// istrue: true,
// },
// {
// label: "件数",
// prop: "caseQty",
// istrue: true,
// },
// {
// label: "零散数",
// prop: "pieceQty",
// istrue: true,
// },
{
label: "数量",
prop: "quantity",
istrue: true,
},
// {
// label: "实盘件数",
// prop: "invCase",
// istrue: true,
// },
// {
// label: "实盘零散数",
// prop: "invPiece",
// istrue: true,
// },
{
label: "实盘数量",
prop: "invQty",
istrue: true,
},
],
configInventoryAudit: [
{ label: "复选框", type: "selection", prop: "selection", istrue: true },
{
label: "序号",
prop: "index",
type: "index",
istrue: true,
},
{
label: "业主编号",
prop: "consignorCode",
istrue: true,
},
{
label: "库别",
prop: "storageName",
istrue: true,
},
{
label: "产品编号",
prop: "goodNo",
istrue: true,
},
{
label: "产品名称",
prop: "goodName",
istrue: true,
},
{
label: '操作',
prop: 'operating',
istrue: true,
type: 'button',
width: 180,
fixed: 'right',
buttons: [
{
name: '查看详情',
event: 'enterDetail'
}
],
},
],
};
}