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