feat(组件): 添加MemoInput组件并实现输入记忆功能

新增MemoInput组件用于存储用户输入历史,通过storageKey与enum.js中定义的键进行校验
替换ProductSelect和RawMaterialSelect组件中的el-input为MemoInput
This commit is contained in:
砂糖
2025-11-28 13:12:13 +08:00
parent b2be527689
commit 507a44c161
4 changed files with 20 additions and 3 deletions

9
klp-ui/src/utils/enum.js Normal file
View File

@@ -0,0 +1,9 @@
// 本地缓存提示输入框可用的storageKey
export const MemoInputStorageKey = {
productName: 'productName', // 钢卷类型名称
material: 'material', // 钢卷材质
manufacturer: 'manufacturer', // 钢卷制造商
surfaceTreatmentDesc: 'surfaceTreatmentDesc', // 钢卷表面处理
zincLayer: 'zincLayer', // 钢卷锌层
licensePlate: 'licensePlate', // 车牌号
}