|
@@ -633,6 +633,22 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ for (let item of ALL_COMMON_TREE_NODES) {
|
|
|
+ // item.items = JSON.parse(item.items);
|
|
|
+ if (item.items && item.items.length > 0) {
|
|
|
+ for (let dtlItem of item.items) {
|
|
|
+ chkAndSetNode(dtlItem);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let item of ALL_INDIVI_TREE_NODES) {
|
|
|
+ // item.items = JSON.parse(item.items);
|
|
|
+ if (item.items && item.items.length > 0) {
|
|
|
+ for (let dtlItem of item.items) {
|
|
|
+ chkAndSetNode(dtlItem);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
buildTplTree();
|
|
|
|
|
|
function chkAndSetNode(parentItem) {
|
|
@@ -670,8 +686,10 @@
|
|
|
if (CURRENT_SELECTED_BIZ_TYPE === 'change_material_adjustment') bizType = 30; // 材差
|
|
|
_filterBySourceType(newCommonTreeNodes, bizType);
|
|
|
_filterBySourceType(newCustomTreeNodes, bizType);
|
|
|
- TOP_TREE_NODES[0].items = newCustomTreeNodes;
|
|
|
- TOP_TREE_NODES[1].items = newCommonTreeNodes;
|
|
|
+ TOP_TREE_NODES[0].items = [];
|
|
|
+ TOP_TREE_NODES[0].items.push(...newCustomTreeNodes);
|
|
|
+ TOP_TREE_NODES[1].items = [];
|
|
|
+ TOP_TREE_NODES[1].items.push(...newCommonTreeNodes);
|
|
|
if (bizType === 1) {
|
|
|
filterUnchkTplTreeNode(TOP_TREE_NODES[0], CUST_TREE_NODES.customize);
|
|
|
filterUnchkTplTreeNode(TOP_TREE_NODES[1], CUST_TREE_NODES.common);
|