概算页面税率计算

master
hanbo 2022-01-04 11:12:21 +08:00
parent a4d2a07e80
commit f2bdf7573e
1 changed files with 16 additions and 16 deletions

View File

@ -119,7 +119,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='incomeDeviceTaxExclude']").attr('readonly',true); $("input[name='incomeDeviceTaxExclude']").attr('readonly',true);
var incomeDeviceTaxInclude = inputVal("incomeDeviceTaxInclude"); var incomeDeviceTaxInclude = inputVal("incomeDeviceTaxInclude");
$incomeDeviceTaxExclude.val(incomeDeviceTaxInclude-(incomeDeviceTaxInclude*val)); $incomeDeviceTaxExclude.val(f2Fixed(incomeDeviceTaxInclude-(incomeDeviceTaxInclude*val)));
} }
calIncomeExclude(); calIncomeExclude();
calIncomeCost(); calIncomeCost();
@ -134,7 +134,7 @@ function calIncomeAndCost() {
}else if(val == "请选择税率"){ }else if(val == "请选择税率"){
return; return;
} else { } else {
$incomeDeviceTaxExclude.val(incomeDeviceTaxInclude-(incomeDeviceTaxInclude*val)); $incomeDeviceTaxExclude.val(f2Fixed(incomeDeviceTaxInclude-(incomeDeviceTaxInclude*val)));
} }
calIncomeExclude(); calIncomeExclude();
calIncomeCost(); calIncomeCost();
@ -152,7 +152,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='incomeEngineerTaxExclude']").attr('readonly',true); $("input[name='incomeEngineerTaxExclude']").attr('readonly',true);
var incomeEngineerTaxInclude = inputVal("incomeEngineerTaxInclude"); var incomeEngineerTaxInclude = inputVal("incomeEngineerTaxInclude");
$incomeEngineerTaxExclude.val(incomeEngineerTaxInclude-(incomeEngineerTaxInclude*val)); $incomeEngineerTaxExclude.val(f2Fixed(incomeEngineerTaxInclude-(incomeEngineerTaxInclude*val)));
} }
calIncomeExclude(); calIncomeExclude();
calIncomeCost(); calIncomeCost();
@ -167,7 +167,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var incomeEngineerTaxInclude = inputVal("incomeEngineerTaxInclude"); var incomeEngineerTaxInclude = inputVal("incomeEngineerTaxInclude");
$incomeEngineerTaxExclude.val(incomeEngineerTaxInclude-(incomeEngineerTaxInclude*val)); $incomeEngineerTaxExclude.val(f2Fixed(incomeEngineerTaxInclude-(incomeEngineerTaxInclude*val)));
} }
calIncomeExclude(); calIncomeExclude();
calIncomeCost(); calIncomeCost();
@ -185,7 +185,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='incomeServiceTaxExclude']").attr('readonly',true); $("input[name='incomeServiceTaxExclude']").attr('readonly',true);
var incomeServiceTaxInclude = inputVal("incomeServiceTaxInclude"); var incomeServiceTaxInclude = inputVal("incomeServiceTaxInclude");
$incomeServiceTaxExclude.val(incomeServiceTaxInclude-(incomeServiceTaxInclude*val)); $incomeServiceTaxExclude.val(f2Fixed(incomeServiceTaxInclude-(incomeServiceTaxInclude*val)));
} }
calIncomeExclude(); calIncomeExclude();
calIncomeCost(); calIncomeCost();
@ -200,7 +200,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var incomeServiceTaxInclude = inputVal("incomeServiceTaxInclude"); var incomeServiceTaxInclude = inputVal("incomeServiceTaxInclude");
$incomeServiceTaxExclude.val(incomeServiceTaxInclude-(incomeServiceTaxInclude*val)); $incomeServiceTaxExclude.val(f2Fixed(incomeServiceTaxInclude-(incomeServiceTaxInclude*val)));
} }
calIncomeExclude(); calIncomeExclude();
calIncomeCost(); calIncomeCost();
@ -218,7 +218,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='costPurchaseDeviceTaxExclude']").attr('readonly',true); $("input[name='costPurchaseDeviceTaxExclude']").attr('readonly',true);
var costPurchaseDeviceTaxInclude = inputVal("costPurchaseDeviceTaxInclude"); var costPurchaseDeviceTaxInclude = inputVal("costPurchaseDeviceTaxInclude");
$costPurchaseDeviceTaxExclude.val(costPurchaseDeviceTaxInclude-(costPurchaseDeviceTaxInclude*val)); $costPurchaseDeviceTaxExclude.val(f2Fixed(costPurchaseDeviceTaxInclude-(costPurchaseDeviceTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -233,7 +233,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var costPurchaseDeviceTaxInclude = inputVal("costPurchaseDeviceTaxInclude"); var costPurchaseDeviceTaxInclude = inputVal("costPurchaseDeviceTaxInclude");
$costPurchaseDeviceTaxExclude.val(costPurchaseDeviceTaxInclude-(costPurchaseDeviceTaxInclude*val)); $costPurchaseDeviceTaxExclude.val(f2Fixed(costPurchaseDeviceTaxInclude-(costPurchaseDeviceTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -251,7 +251,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='costPurchaseBuildTaxExclude']").attr('readonly',true); $("input[name='costPurchaseBuildTaxExclude']").attr('readonly',true);
var costPurchaseBuildTaxInclude = inputVal("costPurchaseBuildTaxInclude"); var costPurchaseBuildTaxInclude = inputVal("costPurchaseBuildTaxInclude");
$costPurchaseBuildTaxExclude.val(costPurchaseBuildTaxInclude-(costPurchaseBuildTaxInclude*val)); $costPurchaseBuildTaxExclude.val(f2Fixed(costPurchaseBuildTaxInclude-(costPurchaseBuildTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -266,7 +266,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var costPurchaseBuildTaxInclude = inputVal("costPurchaseBuildTaxInclude"); var costPurchaseBuildTaxInclude = inputVal("costPurchaseBuildTaxInclude");
$costPurchaseBuildTaxExclude.val(costPurchaseBuildTaxInclude-(costPurchaseBuildTaxInclude*val)); $costPurchaseBuildTaxExclude.val(f2Fixed(costPurchaseBuildTaxInclude-(costPurchaseBuildTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -284,7 +284,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='costPurchaseServiceTaxExclude']").attr('readonly',true); $("input[name='costPurchaseServiceTaxExclude']").attr('readonly',true);
var costPurchaseServiceTaxInclude = inputVal("costPurchaseServiceTaxInclude"); var costPurchaseServiceTaxInclude = inputVal("costPurchaseServiceTaxInclude");
$costPurchaseServiceTaxExclude.val(costPurchaseServiceTaxInclude-(costPurchaseServiceTaxInclude*val)); $costPurchaseServiceTaxExclude.val(f2Fixed(costPurchaseServiceTaxInclude-(costPurchaseServiceTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -299,7 +299,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var costPurchaseServiceTaxInclude = inputVal("costPurchaseServiceTaxInclude"); var costPurchaseServiceTaxInclude = inputVal("costPurchaseServiceTaxInclude");
$costPurchaseServiceTaxExclude.val(costPurchaseServiceTaxInclude-(costPurchaseServiceTaxInclude*val)); $costPurchaseServiceTaxExclude.val(f2Fixed(costPurchaseServiceTaxInclude-(costPurchaseServiceTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -317,7 +317,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='costOtherOtherTaxExclude']").attr('readonly',true); $("input[name='costOtherOtherTaxExclude']").attr('readonly',true);
var costOtherOtherTaxInclude = inputVal("costOtherOtherTaxInclude"); var costOtherOtherTaxInclude = inputVal("costOtherOtherTaxInclude");
$costOtherOtherTaxExclude.val(costOtherOtherTaxInclude-(costOtherOtherTaxInclude*val)); $costOtherOtherTaxExclude.val(f2Fixed(costOtherOtherTaxInclude-(costOtherOtherTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -332,7 +332,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var costOtherOtherTaxInclude = inputVal("costOtherOtherTaxInclude"); var costOtherOtherTaxInclude = inputVal("costOtherOtherTaxInclude");
$costOtherOtherTaxExclude.val(costOtherOtherTaxInclude-(costOtherOtherTaxInclude*val)); $costOtherOtherTaxExclude.val(f2Fixed(costOtherOtherTaxInclude-(costOtherOtherTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -350,7 +350,7 @@ function calIncomeAndCost() {
} else { } else {
$("input[name='costPurchaseOtherTaxExclude']").attr('readonly',true); $("input[name='costPurchaseOtherTaxExclude']").attr('readonly',true);
var costPurchaseOtherTaxInclude = inputVal("costPurchaseOtherTaxInclude"); var costPurchaseOtherTaxInclude = inputVal("costPurchaseOtherTaxInclude");
$costPurchaseOtherTaxExclude.val(costPurchaseOtherTaxInclude-(costPurchaseOtherTaxInclude*val)); $costPurchaseOtherTaxExclude.val(f2Fixed(costPurchaseOtherTaxInclude-(costPurchaseOtherTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();
@ -365,7 +365,7 @@ function calIncomeAndCost() {
return; return;
} else { } else {
var costPurchaseOtherTaxInclude = inputVal("costPurchaseOtherTaxInclude"); var costPurchaseOtherTaxInclude = inputVal("costPurchaseOtherTaxInclude");
$costPurchaseOtherTaxExclude.val(costPurchaseOtherTaxInclude-(costPurchaseOtherTaxInclude*val)); $costPurchaseOtherTaxExclude.val(f2Fixed(costPurchaseOtherTaxInclude-(costPurchaseOtherTaxInclude*val)));
} }
calCostExclude(); calCostExclude();
calIncomeCost(); calIncomeCost();