|
@@ -916,7 +916,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.LABOUR){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -926,7 +926,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -936,7 +936,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -946,7 +946,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.LABOUR){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -956,7 +956,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -966,7 +966,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -976,7 +976,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.MAIN_MATERIAL && glj.ratio_data.length === 0){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -986,7 +986,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.EQUIPMENT){
|
|
|
- rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|