|
|
@@ -631,7 +631,7 @@ ProjectGLJ.prototype.m_updateUnitPrice = function (datas,isFromFeeRate=false) {/
|
|
|
//刷新定额工料机
|
|
|
gljOprObj.refreshView();
|
|
|
//socket推送更新信息
|
|
|
- projectGljObject.onUnitFileChange(isFromFeeRate?false:true);//如果是从更新费率过来的,不用在项目属性上做标记,费率那里已经自动计算所有节点了
|
|
|
+ projectGljObject.onUnitFileChange(!isFromFeeRate);//如果是从更新费率过来的,不用在项目属性上做标记,费率那里已经自动计算所有节点了
|
|
|
|
|
|
return gljList
|
|
|
|
|
|
@@ -769,11 +769,21 @@ ProjectGLJ.prototype.refreshEctrovalenceCache = function (updateMap) {
|
|
|
}
|
|
|
|
|
|
if(updateMap["unitPrice"]) {
|
|
|
+ let gljList = [];
|
|
|
if(Array.isArray(updateMap["unitPrice"])){
|
|
|
- this.m_updateUnitPrice(updateMap["unitPrice"]);
|
|
|
+ gljList= this.m_updateUnitPrice(updateMap["unitPrice"]);
|
|
|
}else {
|
|
|
- this.m_updateUnitPrice([updateMap["unitPrice"]]);
|
|
|
+ gljList = this.m_updateUnitPrice([updateMap["unitPrice"]]);
|
|
|
}
|
|
|
+ const conditions = [];
|
|
|
+ for(const glj of gljList){
|
|
|
+ const keys = this.datas.mixRatioConnectData[gljUtil.getIndex(glj)]||[];
|
|
|
+ for(const key of keys){
|
|
|
+ conditions.push(gljOprObj.getConditionByKey(key));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const parentGljs = this.getProjectGLJs(conditions,false)
|
|
|
+ this.getImpactRationNodes([...gljList,...parentGljs]);//更新工料机类型的定额价格
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -788,9 +798,18 @@ ProjectGLJ.prototype.refreshMaterialCalcCache = function (updateMap,isFromFeeRat
|
|
|
}else {
|
|
|
gljList = this.m_updateUnitPrice([updateMap["unitPrice"]],isFromFeeRate);
|
|
|
}
|
|
|
+ const conditions = [];
|
|
|
+ for(const glj of gljList){
|
|
|
+ const keys = this.datas.mixRatioConnectData[gljUtil.getIndex(glj)]||[];
|
|
|
+ for(const key of keys){
|
|
|
+ conditions.push(gljOprObj.getConditionByKey(key));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const parentGljs = this.getProjectGLJs(conditions,false)
|
|
|
+ this.getImpactRationNodes([...gljList,...parentGljs]);//更新工料机类型的定额价格
|
|
|
}
|
|
|
return gljList;
|
|
|
-
|
|
|
+
|
|
|
function updateList(list,updateMap) {
|
|
|
if(updateMap["update"]){
|
|
|
let map = updateMap["update"];
|