|
|
@@ -1575,7 +1575,7 @@ ProjectGLJ.prototype.getMainAndEquGLJNodeByID = function (id) {//通过ID取显
|
|
|
};
|
|
|
|
|
|
//根据工料机,取得所有受影响的定额节点
|
|
|
-ProjectGLJ.prototype.getImpactRationNodes = function (gljs) {
|
|
|
+ProjectGLJ.prototype.getImpactRationNodes = function (gljs, skipEmptyQuantity) {
|
|
|
let nodes = [];
|
|
|
let rationMap = {};
|
|
|
let idArray = _.map(gljs,'id');
|
|
|
@@ -1583,7 +1583,7 @@ ProjectGLJ.prototype.getImpactRationNodes = function (gljs) {
|
|
|
//先根据项目工料机ID,找到受影响定额的ID
|
|
|
let ration_glj_list = projectObj.project.ration_glj.datas; //取定额工料机数据
|
|
|
for (let rg of ration_glj_list) {
|
|
|
- if (_.indexOf(idArray,rg.projectGLJID)!=-1) {
|
|
|
+ if (_.indexOf(idArray,rg.projectGLJID)!=-1 && (!skipEmptyQuantity || (skipEmptyQuantity && +rg.quantity))) {
|
|
|
rationMap[rg.rationID] = true; //取所有定额ID,用MAP方式去重
|
|
|
}
|
|
|
}
|