zhangweicheng hace 5 años
padre
commit
e642b594fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/glj/models/unit_price_model.js

+ 1 - 1
modules/glj/models/unit_price_model.js

@@ -472,7 +472,7 @@ class UnitPriceModel extends BaseModel {
                 insertData.push(tmp);
             }
         }
-        let uResult = insertData.length > 0 ? this.add(insertData) : true;
+        let uResult = insertData.length > 0 ? await this.add(insertData) : true;
         let mixRatioModel = new MixRatioModel();
         let mResult = await mixRatioModel.copyNotExist(currentUnitPriceId, changeUnitPriceId,gljMap);//复制组成物
         let cResult = await this.copyMaterialNotExist(currentUnitPriceId, changeUnitPriceId,gljMap);