|
@@ -725,7 +725,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
- if(glj.type === gljType.LABOUR && glj.supply === supplyType.JDYG){
|
|
|
+ if(glj.type === gljType.LABOUR && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -735,7 +735,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
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){
|
|
|
+ if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -745,7 +745,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
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){
|
|
|
+ if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.base_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -755,7 +755,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
- if(glj.type === gljType.LABOUR && glj.supply === supplyType.JDYG){
|
|
|
+ if(glj.type === gljType.LABOUR && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -765,7 +765,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
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){
|
|
|
+ if(baseMaterialTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -775,7 +775,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
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){
|
|
|
+ if(baseMachineTypes.includes(glj.type) && glj.ratio_data.length === 0 && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -785,7 +785,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
- if(glj.type === gljType.MAIN_MATERIAL && glj.supply === supplyType.JDYG){
|
|
|
+ if(glj.type === gljType.MAIN_MATERIAL && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|
|
@@ -795,7 +795,7 @@ let baseFigureTemplate = {
|
|
|
let rst = 0;
|
|
|
let projGljs = calcBase.project.projectGLJ.datas.gljList;
|
|
|
for(let glj of projGljs){
|
|
|
- if(glj.type === gljType.EQUIPMENT && glj.supply === supplyType.JDYG){
|
|
|
+ if(glj.type === gljType.EQUIPMENT && (glj.supply === supplyType.JDYG || glj.supply === supplyText.JDYG)){
|
|
|
rst = (rst + parseFloat(glj.quantity * glj.unit_price.market_price).toDecimal(decimalObj.bills.totalPrice)).toDecimal(decimalObj.bills.totalPrice);
|
|
|
}
|
|
|
}
|