瀏覽代碼

从其它项目中复制bug

zhangweicheng 6 年之前
父節點
當前提交
49380dda0d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/glj/facade/glj_facade.js

+ 1 - 0
modules/glj/facade/glj_facade.js

@@ -41,6 +41,7 @@ async function changeUnitFile(projectData,unitFile,type,userID) {
             insertData.user_id = userID;
             delete insertData._id;
             delete insertData.ID;
+            currentUnitPriceId = changeUnitPriceId;//从其它建设项目复制时,这个ID要变成被选中的来源的单价文件ID
         }
         // 获取即将更改的单价文件信息
         let targetUnitPriceFile = type === 0 ? await unitPriceFileModel.findDataByCondition({id: changeUnitPriceId}) :