|
|
@@ -508,7 +508,7 @@ ProjectGLJ.prototype.freightCalc= function (glj,grossWeightCoe_n,dataMap,tfreigh
|
|
|
loadingTimes = scMathUtil.roundForObj(loadingTimes,unitPirce);
|
|
|
let s = scMathUtil.roundForObj(unitLoadingFee*loadingTimes,process);//装卸费单价×装卸次数
|
|
|
t = scMathUtil.roundForObj(t + s,process);//单位运价×km运距×(1+运距增加率%)+装卸费单价×装卸次数
|
|
|
- if(calcType == "内蒙古") t = scMathUtil.roundForObj(t/1.09,process); //内蒙古要除以税率1.09;
|
|
|
+ if(gljUtil.isDef(materialType)&&materialType != "") t = scMathUtil.roundForObj(t/1.09,process); //内蒙古要除以税率1.09; 当材料类型有值时,说明是内蒙古计算
|
|
|
otherFee = scMathUtil.roundForObj(otherFee,unitPirce);
|
|
|
t = scMathUtil.roundForObj(t+otherFee,process);//单位运价×km运距×(1+运距增加率%)+装卸费单价×装卸次数+其它费用
|
|
|
t = scMathUtil.roundForObj(t*grossWeightCoe_n,process); //(单位运价×km运距×(1+运距增加率%)+装卸费单价×装卸次数+其它费用)×单位毛重”。 单位毛重:毛重系数
|
|
|
@@ -524,7 +524,7 @@ ProjectGLJ.prototype.freightCalc= function (glj,grossWeightCoe_n,dataMap,tfreigh
|
|
|
|
|
|
|
|
|
function getPrice(unitFreight,kmDistance,conveyance,calcType,materialType,process){
|
|
|
- if(calcType =="内蒙古") return materialCalcObj.calNeiMengTotalFreight(kmDistance,materialType);
|
|
|
+ if(gljUtil.isDef(materialType)&&materialType != "") return materialCalcObj.calNeiMengTotalFreight(kmDistance,materialType);
|
|
|
//如果运输方式为自办运输,则直接返回单位运价即可;
|
|
|
let price = conveyance == "自办运输" ? scMathUtil.roundForObj(unitFreight,process):scMathUtil.roundForObj(unitFreight * kmDistance,process);//单位运价×km运距
|
|
|
return price
|