Переглянути джерело

造价书右键-插入人材机失效问题

vian 5 роки тому
батько
коміт
a35b626871

+ 1 - 1
web/building_saas/main/js/views/glj_view_contextMenu.js

@@ -474,7 +474,7 @@ var gljContextMenu = {
             gljOprObj.gljLibSheet.setActiveCell(index, 0);
             gljOprObj.initSelection({row: index});
             gljOprObj.gljLibSpresd.focus(true);
-        } else if (actionType === 'add' || actionType === 'addMix'|| actionType === 'unitPriceAddMix') {
+        } else if (actionType === 'add' || actionType === 'insert' || actionType === 'addMix'|| actionType === 'unitPriceAddMix') {
             gljOprObj.locateZTree(null);
             sheetCommonObj.appendData(gljOprObj.gljLibSheet, 0, 0, gljOprObj.gljLibSheetSetting, gljOprObj.AllRecode);
             gljOprObj.gljLibSheet.showRow(0, GC.Spread.Sheets.VerticalPosition.top);

+ 1 - 1
web/building_saas/main/js/views/project_view.js

@@ -1435,7 +1435,7 @@ var projectObj = {
                                 }
                             }
                         }
-                        getGLJData('insert');// ProjectController.addRation(project, controller, rationType.volumePrice);
+                        getGLJData('insert', null, true, null);// ProjectController.addRation(project, controller, rationType.volumePrice);
                     },
                     visible: function(key, opt){//2018-11-08  新需求,这个按钮先隐藏,有需要再放开
                         return true;