Browse Source

配置文件更新

master
陈薪名 1 year ago
parent
commit
471c6f27c8
  1. 230
      src/utils/disposition/tableColumns.ts

230
src/utils/disposition/tableColumns.ts

@ -7,6 +7,7 @@ export const ItemBasic = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '代码', label: '代码',
field: 'code', field: 'code',
sort: 'custom',
table: { table: {
width: 150 width: 150
} }
@ -14,6 +15,7 @@ export const ItemBasic = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '名称', label: '名称',
field: 'name', field: 'name',
sort: 'custom',
table: { table: {
width: 150 width: 150
} }
@ -21,6 +23,7 @@ export const ItemBasic = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '描述1', label: '描述1',
field: 'desc1', field: 'desc1',
sort: 'custom',
table: { table: {
width: 150 width: 150
} }
@ -28,6 +31,7 @@ export const ItemBasic = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '描述2', label: '描述2',
field: 'desc2', field: 'desc2',
sort: 'custom',
table: { table: {
width: 150 width: 150
} }
@ -35,171 +39,264 @@ export const ItemBasic = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
sort: 'custom',
dictType: DICT_TYPE.ITEM_STATUS, dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ {
label: '替代计量单位', label: '替代计量单位',
field: 'altUom', field: 'altUom',
sort: 'custom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
}
}, },
{ {
label: '是否标包', label: '是否标包',
field: 'isStdPack', field: 'isStdPack',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ {
label: '可采购', label: '可采购',
field: 'enableBuy', field: 'enableBuy',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '可制造', label: '可制造',
field: 'enableMake', field: 'enableMake',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '可委外加工', label: '可委外加工',
field: 'enableOutsourcing', field: 'enableOutsourcing',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ {
label: '回收件', label: '回收件',
field: 'isRecycled', field: 'isRecycled',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '虚零件', label: '虚零件',
field: 'isPhantom', field: 'isPhantom',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: 'ABC类', label: 'ABC类',
field: 'abcClass', field: 'abcClass',
sort: 'custom',
dictType: DICT_TYPE.ABC_CLASS, dictType: DICT_TYPE.ABC_CLASS,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '类型', label: '类型',
field: 'type', field: 'type',
sort: 'custom',
dictType: DICT_TYPE.ITEM_TYPE, dictType: DICT_TYPE.ITEM_TYPE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '种类', label: '种类',
field: 'category', field: 'category',
sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGORY, dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '分组', label: '分组',
field: 'itemGroup', field: 'itemGroup',
sort: 'custom',
dictType: DICT_TYPE.ITEM_GROUP, dictType: DICT_TYPE.ITEM_GROUP,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '颜色', label: '颜色',
field: 'color', field: 'color',
sort: 'custom',
dictType: DICT_TYPE.ITEM_COLOR, dictType: DICT_TYPE.ITEM_COLOR,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
}, },
{ {
label: '配置', label: '配置',
field: 'configuration', field: 'configuration',
sort: 'custom',
dictType: DICT_TYPE.ITEM_CONFIGURATION, dictType: DICT_TYPE.ITEM_CONFIGURATION,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 100
}
},
{
label: '项目',
field: 'project',
sort: 'custom',
table: {
width: 100
}
}, },
{ label: '项目', field: 'project' },
{ {
label: '质量等级', label: '质量等级',
field: 'eqLevel', field: 'eqLevel',
sort: 'custom',
dictType: DICT_TYPE.EQ_LEVEL, dictType: DICT_TYPE.EQ_LEVEL,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ label: '有效天数', field: 'validityDays' }, {
label: '有效天数',
field: 'validityDays',
sort: 'custom',
table: {
width: 120
} },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ {
label: '生效时间', label: '生效时间',
field: 'activeTime', field: 'activeTime',
sort: 'custom',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 120
} }
}, },
{ {
label: '失效时间', label: '失效时间',
field: 'expireTime', field: 'expireTime',
sort: 'custom',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 120
} }
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 120
} }
}, },
{ label: '备注', field: 'remark', isTable: false }, { label: '备注', field: 'remark', sort: 'custom', isTable: false },
{ label: '创建者ID', field: 'creator', isTable: false, isForm: false }, { label: '创建者ID', field: 'creator', sort: 'custom', isTable: false, isForm: false },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -291,6 +388,7 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物品代码', label: '物品代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom',
table: { table: {
width: 150 width: 150
} }
@ -298,105 +396,169 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ {
label: '包装单位', label: '包装单位',
field: 'stdPackUnit', field: 'stdPackUnit',
sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 120
}
}, },
{ {
label: '包装数量', label: '包装数量',
field: 'stdPackQty' field: 'stdPackQty',
sort: 'custom',
table: {
width: 120
}
}, },
{ {
label: '替代包装单位', label: '替代包装单位',
field: 'altPackUnit1', field: 'altPackUnit1',
sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
}
}, },
{ {
label: '替代包装量', label: '替代包装量',
field: 'altPackQty1' field: 'altPackQty1',
sort: 'custom',
table: {
width: 120
}
}, },
{ {
label: '替代包装单位', label: '替代包装单位',
field: 'altPackUnit1', field: 'altPackUnit1',
sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
}
}, },
{ {
label: '替代包装量', label: '替代包装量',
field: 'altPackQty2' field: 'altPackQty2',
sort: 'custom',
table: {
width: 120
}
}, },
{ {
label: '替代包装单位', label: '替代包装单位',
field: 'altPackUnit3', field: 'altPackUnit3',
sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
}
}, },
{ {
label: '替代包装量', label: '替代包装量',
field: 'altPackQty3' field: 'altPackQty3',
sort: 'custom',
table: {
width: 120
}
}, },
{ {
label: '替代包装单位', label: '替代包装单位',
field: 'altPackUnit4', field: 'altPackUnit4',
sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string' dictClass: 'string',
table: {
width: 150
}
}, },
{ {
label: '替代包装量', label: '替代包装量',
field: 'altPackQty4' field: 'altPackQty4',
sort: 'custom',
table: {
width: 120
}
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string' dictClass: 'string',
table: {
width: 120
}
}, },
{ {
label: '生效时间', label: '生效时间',
field: 'activeTime', field: 'activeTime',
sort: 'custom',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 120
} }
}, },
{ {
label: '失效时间', label: '失效时间',
field: 'expireTime', field: 'expireTime',
sort: 'custom',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 120
} }
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 120
} }
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator' field: 'creator',
sort: 'custom',
table: {
width: 120
}
}, },
{ {
label: '操作', label: '操作',

Loading…
Cancel
Save