|
@@ -507,7 +507,7 @@ let baseFigureTemplate = {
|
|
|
return projectObj.project.calcProgram.getBeforeTaxTotalFee([node]);
|
|
|
},
|
|
|
'RCJJC': function () {//人材机价差
|
|
|
- return (this['RGJC']() + this['CLJC']() + this['JXJC']()).toDecimal(2);
|
|
|
+ return (this['RGJC']() + this['CLJC']() + this['JXJC']()).toDecimal(decimalObj.bills.totalPrice);
|
|
|
},
|
|
|
'RGJC': function () {//人工价差
|
|
|
let rst = 0;
|
|
@@ -518,7 +518,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.quantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -532,7 +532,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.quantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -546,13 +546,13 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.quantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
|
},
|
|
|
'FBFXRCJJC': function () {//分部分项人材机价差
|
|
|
- return (this['FBFXRGJC']() + this['FBFXCLJC']() + this['FBFXJXJC']()).toDecimal(2);
|
|
|
+ return (this['FBFXRGJC']() + this['FBFXCLJC']() + this['FBFXJXJC']()).toDecimal(decimalObj.bills.totalPrice);
|
|
|
},
|
|
|
'FBFXRGJC': function () {//分部分项人工价差
|
|
|
let rst = 0;
|
|
@@ -563,7 +563,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.subdivisionQuantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.subdivisionQuantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -577,7 +577,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.subdivisionQuantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.subdivisionQuantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -591,13 +591,13 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.subdivisionQuantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.subdivisionQuantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
|
},
|
|
|
'JSCSXMRCJJC': function () {//技术措施项目人材机价差
|
|
|
- return (this['JSCSXMRGJC']() + this['JSCSXMCLJC']() + this['JSCSXMJXJC']()).toDecimal(2);
|
|
|
+ return (this['JSCSXMRGJC']() + this['JSCSXMCLJC']() + this['JSCSXMJXJC']()).toDecimal(decimalObj.bills.totalPrice);
|
|
|
},
|
|
|
'JSCSXMRGJC': function () {//技术措施项目人工价差
|
|
|
let rst = 0;
|
|
@@ -608,7 +608,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.techQuantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.techQuantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -622,7 +622,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.techQuantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.techQuantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -636,7 +636,7 @@ let baseFigureTemplate = {
|
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
|
//价差
|
|
|
let dffPrc = parseFloat(glj.unit_price.market_price - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
|
- rst = (rst + parseFloat(glj.techQuantity * dffPrc).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.techQuantity * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -646,7 +646,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.basePrice).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -656,7 +656,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.basePrice).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -666,7 +666,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.basePrice).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -676,7 +676,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(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -686,7 +686,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(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -696,7 +696,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(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -706,7 +706,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.market_price).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -716,7 +716,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(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.supply_quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -726,7 +726,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.LABOUR && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.basePrice).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -736,7 +736,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 && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.basePrice).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -746,7 +746,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 && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.basePrice).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -756,7 +756,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.LABOUR && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -766,7 +766,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 && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -776,7 +776,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 && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -786,7 +786,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.MAIN_MATERIAL && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -796,7 +796,7 @@ let baseFigureTemplate = {
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
if(glj.type === gljType.EQUIPMENT && glj.supply === supplyType.JDYG){
|
|
|
- rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(2)).toDecimal(2);
|
|
|
+ rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
|
return rst;
|