|
@@ -1167,12 +1167,14 @@ const createNewPathTree = function (type, setting) {
|
|
|
if (p) p.check = p.pwd === pwd;
|
|
|
}
|
|
|
}
|
|
|
- loadPwd(data, cacheKey) {
|
|
|
+ loadPwd(data, cacheKey, confirmList) {
|
|
|
this.loadingPwd = true;
|
|
|
try {
|
|
|
this.pwdCacheKey = cacheKey;
|
|
|
+ this.confirmList = confirmList;
|
|
|
this.pwd = data;
|
|
|
this._loadPwdCache();
|
|
|
+ this._loadOnlineConfirm();
|
|
|
for (const p of this.pwd) {
|
|
|
p.node = this.getItems(p.ledger_id);
|
|
|
this.lockNode(p, !p.check);
|
|
@@ -1206,22 +1208,22 @@ const createNewPathTree = function (type, setting) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- loadOnlinePwd(data, pwdList, confirmList) {
|
|
|
- this.loadingPwd = true;
|
|
|
- try {
|
|
|
- this.pwdList = pwdList;
|
|
|
- this.confirmList = confirmList;
|
|
|
- this.pwd = data;
|
|
|
- this._loadOnlinePwd();
|
|
|
- this._loadOnlineConfirm();
|
|
|
- // 旧数据上传,新数据补齐
|
|
|
- for (const p of this.pwd) {
|
|
|
- p.node = this.getItems(p.ledger_id);
|
|
|
- this.lockNode(p, !p.check);
|
|
|
- }
|
|
|
- } catch(err) {}
|
|
|
- this.loadingPwd = false;
|
|
|
- }
|
|
|
+ // loadOnlinePwd(data, pwdList, confirmList) {
|
|
|
+ // this.loadingPwd = true;
|
|
|
+ // try {
|
|
|
+ // this.pwdList = pwdList;
|
|
|
+ // this.confirmList = confirmList;
|
|
|
+ // this.pwd = data;
|
|
|
+ // this._loadOnlinePwd();
|
|
|
+ // this._loadOnlineConfirm();
|
|
|
+ // // 旧数据上传,新数据补齐
|
|
|
+ // for (const p of this.pwd) {
|
|
|
+ // p.node = this.getItems(p.ledger_id);
|
|
|
+ // this.lockNode(p, !p.check);
|
|
|
+ // }
|
|
|
+ // } catch(err) {}
|
|
|
+ // this.loadingPwd = false;
|
|
|
+ // }
|
|
|
|
|
|
getStageItems(id) {
|
|
|
return this.stageItems[itemsPre + id];
|
|
@@ -1411,7 +1413,7 @@ const createNewPathTree = function (type, setting) {
|
|
|
pn.lock = isLock;
|
|
|
refresh.push(this.getNodeIndex(pn));
|
|
|
}
|
|
|
- // if (!this.loadingPwd) this._savePwdCache();
|
|
|
+ if (!this.loadingPwd) this._savePwdCache();
|
|
|
return refresh;
|
|
|
}
|
|
|
}
|
|
@@ -1642,7 +1644,7 @@ const createNewPathTree = function (type, setting) {
|
|
|
this.loadCompareNode(source, c, cur, loadFun);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
generateSortNodes() {
|
|
|
const self = this;
|
|
|
const addSortNode = function (node) {
|
|
@@ -1656,13 +1658,13 @@ const createNewPathTree = function (type, setting) {
|
|
|
addSortNode(n);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
loadCompareTree(data, loadFun) {
|
|
|
for (const c of data.billsTree.children) {
|
|
|
this.loadCompareNode(data, c, null, loadFun);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
calculateDiffer() {
|
|
|
if (this.setting.calcDiffer) {
|
|
|
for (const d of this.datas) {
|
|
@@ -1670,7 +1672,7 @@ const createNewPathTree = function (type, setting) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
loadCompareData(data1, data2) {
|
|
|
this.loadCompareTree(data1, this.setting.loadInfo1);
|
|
|
this.loadCompareTree(data2, this.setting.loadInfo2);
|