Browse Source

台账修订,菜单名称调整

MaiXinRong 5 years ago
parent
commit
fe8ca07648
3 changed files with 8 additions and 3 deletions
  1. 2 0
      app/public/js/ledger.js
  2. 4 1
      app/public/js/revise.js
  3. 2 2
      app/public/js/std_lib.js

+ 2 - 0
app/public/js/ledger.js

@@ -1551,6 +1551,7 @@ $(document).ready(function() {
         },
         cellDoubleClick: stdLibCellDoubleClick,
         page: 'ledger',
+        tid: getTenderId(),
     };
     const stdGclSetting = {
         selector: '#std-gcl',
@@ -1580,6 +1581,7 @@ $(document).ready(function() {
         },
         cellDoubleClick: stdLibCellDoubleClick,
         page: 'ledger',
+        tid: getTenderId(),
     };
     // 展开收起标准清单
     $('a', '#side-menu').bind('click', function (e) {

+ 4 - 1
app/public/js/revise.js

@@ -682,9 +682,10 @@ $(document).ready(() => {
                     }
                 },
                 'batchInsertBillsPos': {
-                    name: '批量插入节点-部位',
+                    name: '批量插入清单-部位',
                     icon: 'fa-sign-in',
                     disabled: function (key, opt) {
+                        if (!isTz) return true;
                         const select = SpreadJsObj.getSelectObject(billsSheet);
                         if (select) {
                             if (select.code && select.code !== '') {
@@ -1498,6 +1499,7 @@ $(document).ready(() => {
         },
         cellDoubleClick: stdLibCellDoubleClick,
         page: 'revise',
+        tid: window.location.pathname.split('/')[2],
     };
     const stdGclSetting = {
         selector: '#std-gcl',
@@ -1527,6 +1529,7 @@ $(document).ready(() => {
         },
         cellDoubleClick: stdLibCellDoubleClick,
         page: 'revise',
+        tid: window.location.pathname.split('/')[2],
     };
     // 展开收起标准节点
     $('a', '#side-menu').bind('click', function (e) {

+ 2 - 2
app/public/js/std_lib.js

@@ -36,7 +36,7 @@ class stdLib {
         this.pathTree = createNewPathTree('base', this.treeSetting);
         this.cacheLib = [];
         this.cacheKey = {
-            lib: this.setting.page + '-' + this.setting.stdType,
+            lib: this.setting.page + '-' + this.setting.tid + '-' + this.setting.stdType,
         };
         $('select', setting.selector).change(function () {
             self.loadLib(parseInt(this.value), true);
@@ -55,7 +55,7 @@ class stdLib {
     }
 
     loadLib (listId, reload = false) {
-        this.cacheKey.node = this.setting.page + '-' + this.setting.stdType + '-' + listId;
+        this.cacheKey.node = this.setting.page + '-' + this.setting.tid + '-' + this.setting.stdType + '-' + listId;
         const self = this;
         const locateMemory = function () {
             if (!reload) {