Browse Source

feat: 按清单名称插入主材,工程量取QDL。

zhangweicheng 4 năm trước cách đây
mục cha
commit
e3c5789d8e

+ 2 - 1
web/building_saas/main/js/models/ration.js

@@ -540,9 +540,10 @@ var Ration = {
             }
             }
         };
         };
         ration.prototype.insertVolumePrice = function(type,ext){
         ration.prototype.insertVolumePrice = function(type,ext){
+            let isEmpty = ext?false:true;
             this.addNewRation(null,rationType.volumePrice,function (newNode) {//插入人工不需要自动定位到编号列
             this.addNewRation(null,rationType.volumePrice,function (newNode) {//插入人工不需要自动定位到编号列
                 projectObj.selectColAndFocus(newNode,null);
                 projectObj.selectColAndFocus(newNode,null);
-            },true,type,true,ext);
+            },isEmpty,type,true,ext);
         };
         };
         // 已经有数据,更新前端缓存及节点,不进行通信
         // 已经有数据,更新前端缓存及节点,不进行通信
         ration.prototype.addNewDataSimply = function (newData) {
         ration.prototype.addNewDataSimply = function (newData) {