|
@@ -566,7 +566,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -582,7 +582,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -598,7 +598,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -617,7 +617,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -633,7 +633,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -649,7 +649,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -668,7 +668,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -684,7 +684,7 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
@@ -700,89 +700,93 @@ let baseFigureTemplate = {
|
|
//调整价
|
|
//调整价
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
let adjPrc = calcBase.project.projectGLJ.getAdjustPrice(glj);
|
|
//价差
|
|
//价差
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
let dffPrc = parseFloat(marketPrice - adjPrc).toDecimal(decimalObj.glj.unitPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * dffPrc).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGDEJJRGF': function () {//甲供定额基价人工费
|
|
|
|
|
|
+ 'JGDEJJRGF': function (tender) {//甲供定额基价人工费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.LABOUR){
|
|
if(glj.type === gljType.LABOUR){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGDEJJCLF': function () {//甲供定额基价材料费
|
|
|
|
|
|
+ 'JGDEJJCLF': function (tender) {//甲供定额基价材料费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGDEJJJXF': function () {//甲供定额基价机械费
|
|
|
|
|
|
+ 'JGDEJJJXF': function (tender) {//甲供定额基价机械费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGRGF': function () {//甲供人工费
|
|
|
|
|
|
+ 'JGRGF': function (tender) {//甲供人工费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.LABOUR){
|
|
if(glj.type === gljType.LABOUR){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ const marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGCLF': function () {//甲供材料费
|
|
|
|
|
|
+ 'JGCLF': function (tender) {//甲供材料费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ const marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGJXF': function () {//甲供机械费
|
|
|
|
|
|
+ 'JGJXF': function (tender) {//甲供机械费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ const marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGZCF': function () {//甲供主材费
|
|
|
|
|
|
+ 'JGZCF': function (tender) {//甲供主材费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.MAIN_MATERIAL && glj.ratio_data.length === 0){
|
|
if(glj.type === gljType.MAIN_MATERIAL && glj.ratio_data.length === 0){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
},
|
|
},
|
|
- 'JGSBF': function () {//甲供设备费
|
|
|
|
|
|
+ 'JGSBF': function (tender) {//甲供设备费
|
|
let rst = 0;
|
|
let rst = 0;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.EQUIPMENT){
|
|
if(glj.type === gljType.EQUIPMENT){
|
|
- rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj) * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ const marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
|
|
+ rst = (rst + parseFloat(projectGljObject.getSupplyQuantityByGlj(glj, tender) * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
@@ -793,7 +797,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.LABOUR && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(glj.type === gljType.LABOUR && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- rst = (rst + parseFloat(glj[quantityType] * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(glj[quantityType] * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
@@ -804,7 +808,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- rst = (rst + parseFloat(glj[quantityType] * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(glj[quantityType] * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
@@ -815,7 +819,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- rst = (rst + parseFloat(glj[quantityType] * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(glj[quantityType] * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
@@ -826,7 +830,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.LABOUR && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(glj.type === gljType.LABOUR && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -838,7 +842,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -850,7 +854,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -862,7 +866,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.MAIN_MATERIAL && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(glj.type === gljType.MAIN_MATERIAL && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- rst = (rst + parseFloat(glj[quantityType] * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
|
|
|
+ rst = (rst + parseFloat(glj[quantityType] * calcBase.project.projectGLJ.getBasePrice(glj)).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
@@ -873,7 +877,7 @@ let baseFigureTemplate = {
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
for(let glj of projGljs){
|
|
for(let glj of projGljs){
|
|
if(glj.type === gljType.EQUIPMENT && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
if(glj.type === gljType.EQUIPMENT && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
- let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : glj.unit_price.market_price;
|
|
|
|
|
|
+ let marketPrice = tender ? calcBase.project.projectGLJ.getTenderMarketPrice(glj) : calcBase.project.projectGLJ.getMarketPrice(glj);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
rst = (rst + parseFloat(glj[quantityType] * marketPrice).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
}
|
|
}
|
|
}
|
|
}
|