|
@@ -886,12 +886,13 @@ $(document).ready(function () {
|
|
this._refreshAssTree();
|
|
this._refreshAssTree();
|
|
}
|
|
}
|
|
initLedgerTree(uid) {
|
|
initLedgerTree(uid) {
|
|
- if (this.loaded) return;
|
|
|
|
|
|
+ if (this.loaded && this.tid && this.tid === cur_tenderid) return;
|
|
this.spread.refresh();
|
|
this.spread.refresh();
|
|
const self = this;
|
|
const self = this;
|
|
|
|
|
|
postData('/tender/' + cur_tenderid + '/shenpi/ass/load', {}, function (data) {
|
|
postData('/tender/' + cur_tenderid + '/shenpi/ass/load', {}, function (data) {
|
|
self.loaded = true;
|
|
self.loaded = true;
|
|
|
|
+ self.tid = cur_tenderid;
|
|
self.assList = data.auditAssList;
|
|
self.assList = data.auditAssList;
|
|
self.tree.loadDatas(data.ledgerList);
|
|
self.tree.loadDatas(data.ledgerList);
|
|
SpreadJsObj.loadSheetData(self.sheet, SpreadJsObj.DataType.Tree, self.tree);
|
|
SpreadJsObj.loadSheetData(self.sheet, SpreadJsObj.DataType.Tree, self.tree);
|
|
@@ -1014,7 +1015,7 @@ $(document).ready(function () {
|
|
});
|
|
});
|
|
|
|
|
|
$('#union').on('shown.bs.modal', function() {
|
|
$('#union').on('shown.bs.modal', function() {
|
|
- self.spread.refresh();
|
|
|
|
|
|
+ self.spread.refresh();
|
|
});
|
|
});
|
|
$('#union-ok').click(function() {
|
|
$('#union-ok').click(function() {
|
|
const data = self.getUnionAuditLedgerData();
|
|
const data = self.getUnionAuditLedgerData();
|