From 5975aefbb701675dd32b2806d20f0aee3d3d6474 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 24 十二月 2025 16:13:10 +0800
Subject: [PATCH] 1.模具领料出库单和模具领料退库单添加选择模具功能 2.模具领料退库领料人默认取用户绑定职员,往来单位等可以存入缓存信息 3.模具可以扫多个模具,有模具列表的功能 4.模具退库新增列表新增修改
---
utils/common.js | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/utils/common.js b/utils/common.js
index 90a457e..69f9d1d 100644
--- a/utils/common.js
+++ b/utils/common.js
@@ -464,7 +464,7 @@
if(!RoleList) {
RoleList = [
/^[a-zA-Z]+$/,
- /\bid$/i
+ /id$/i
]
}
if(!Array.isArray(RoleList)){
@@ -475,21 +475,25 @@
}
}
- let FieldListCache = Array(FieldList)
+ let FieldListCache = Array(...FieldList)
- let list1 = FieldListCache.filter(elem => role[0].test(elem.ColmCols))
- console.log('list1: ',list1);
- // RoleList.forEach(role => {
- // console.log(FieldListCache.filter(field => !role.test(field.ColmCols)))
- // FieldListCache = FieldListCache.filter(field => !role.test(field.ColmCols))
- // })
+ RoleList.forEach(role => {
+ FieldListCache = FieldListCache.filter(elem => !role.test(elem.ColmCols))
+ })
+ FieldListCache = FieldListCache.filter(elem => !ExcludeKeys.includes(elem))
return {
status: true,
data: FieldListCache,
Message: ""
}
}
+
+ emptyValueFilter(item, fieldList){
+ return fieldList.filter(e => {
+ return item[e.ColmCols]
+ })
+ }
}
export const CommonUtils = new commonUtils()
\ No newline at end of file
--
Gitblit v1.9.1