|
@@ -117,15 +117,16 @@ function getDealTpDecimal() {
|
|
|
}
|
|
|
// 四舍五入
|
|
|
function roundPrice(obj) {
|
|
|
- const iDecimal = getDealTpDecimal();
|
|
|
- obj.val(ZhCalc.round(_.toNumber(obj.val()), iDecimal));
|
|
|
+ //const iDecimal = getDealTpDecimal();
|
|
|
+ //obj.val(ZhCalc.round(_.toNumber(obj.val()), iDecimal));
|
|
|
}
|
|
|
// 计算签约合同价(不含暂列金额)
|
|
|
function calculateC2() {
|
|
|
const constract = _.toNumber($('#contract-price').val());
|
|
|
const zanLie = _.toNumber($('#zan-lie-price').val());
|
|
|
- const iDecimal = getDealTpDecimal();
|
|
|
- $('#c-zl').val(ZhCalc.round(constract - zanLie, iDecimal));
|
|
|
+ //const iDecimal = getDealTpDecimal();
|
|
|
+ //$('#c-zl').val(ZhCalc.round(constract - zanLie, iDecimal));
|
|
|
+ $('#c-zl').val(ZhCalc.minus(constract, zanLie));
|
|
|
}
|
|
|
// 根据小数位数,计算全部的合同参数
|
|
|
function CalculateAllDealParam() {
|