概算页面税率计算
parent
b17b0d2899
commit
a4d2a07e80
|
@ -2,14 +2,20 @@ function calIncomeAndCost() {
|
||||||
$("input[name='incomeDeviceTaxInclude']").change(function () {
|
$("input[name='incomeDeviceTaxInclude']").change(function () {
|
||||||
calIncomeInclude();
|
calIncomeInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calIncomeDeviceTaxExclude();
|
||||||
});
|
});
|
||||||
$("input[name='incomeEngineerTaxInclude']").change(function () {
|
$("input[name='incomeEngineerTaxInclude']").change(function () {
|
||||||
calIncomeInclude();
|
calIncomeInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calIncomeEngineerTaxExclude();
|
||||||
});
|
});
|
||||||
$("input[name='incomeServiceTaxInclude']").change(function () {
|
$("input[name='incomeServiceTaxInclude']").change(function () {
|
||||||
calIncomeInclude();
|
calIncomeInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calIncomeServiceTaxExclude();
|
||||||
});
|
});
|
||||||
$("input[name='incomeDeviceTaxExclude']").change(function () {
|
$("input[name='incomeDeviceTaxExclude']").change(function () {
|
||||||
calIncomeExclude();
|
calIncomeExclude();
|
||||||
|
@ -30,18 +36,26 @@ function calIncomeAndCost() {
|
||||||
$("input[name='costPurchaseDeviceTaxInclude']").change(function () {
|
$("input[name='costPurchaseDeviceTaxInclude']").change(function () {
|
||||||
calCostInclude();
|
calCostInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calCostPurchaseDeviceTaxInclude();
|
||||||
});
|
});
|
||||||
$("input[name='costPurchaseBuildTaxInclude']").change(function () {
|
$("input[name='costPurchaseBuildTaxInclude']").change(function () {
|
||||||
calCostInclude();
|
calCostInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calCostPurchaseBuildTaxInclude();
|
||||||
});
|
});
|
||||||
$("input[name='costPurchaseServiceTaxInclude']").change(function () {
|
$("input[name='costPurchaseServiceTaxInclude']").change(function () {
|
||||||
calCostInclude();
|
calCostInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calCostPurchaseServiceTaxInclude();
|
||||||
});
|
});
|
||||||
$("input[name='costPurchaseOtherTaxInclude']").change(function () {
|
$("input[name='costPurchaseOtherTaxInclude']").change(function () {
|
||||||
calCostInclude();
|
calCostInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calCostPurchaseOtherTaxInclude();
|
||||||
});
|
});
|
||||||
/*$("input[name='costProjectManageTaxInclude']").change(function () {
|
/*$("input[name='costProjectManageTaxInclude']").change(function () {
|
||||||
calCostInclude();
|
calCostInclude();
|
||||||
|
@ -50,6 +64,8 @@ function calIncomeAndCost() {
|
||||||
$("input[name='costOtherOtherTaxInclude']").change(function () {
|
$("input[name='costOtherOtherTaxInclude']").change(function () {
|
||||||
calCostInclude();
|
calCostInclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
|
|
||||||
|
calCostOtherOtherTaxInclude();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("input[name='costPurchaseDeviceTaxExclude']").change(function () {
|
$("input[name='costPurchaseDeviceTaxExclude']").change(function () {
|
||||||
|
@ -109,6 +125,21 @@ function calIncomeAndCost() {
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calIncomeDeviceTaxExclude(){
|
||||||
|
let val = $('#incomeDeviceSelect option:selected').val();
|
||||||
|
var $incomeDeviceTaxExclude = $("input[name='incomeDeviceTaxExclude']");
|
||||||
|
var incomeDeviceTaxInclude = inputVal("incomeDeviceTaxInclude");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
$incomeDeviceTaxExclude.val(incomeDeviceTaxInclude-(incomeDeviceTaxInclude*val));
|
||||||
|
}
|
||||||
|
calIncomeExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//工程类收入
|
//工程类收入
|
||||||
$("select[name='incomeEngineerSelect']").change(function () {
|
$("select[name='incomeEngineerSelect']").change(function () {
|
||||||
let val = $('#incomeEngineerSelect option:selected').val();
|
let val = $('#incomeEngineerSelect option:selected').val();
|
||||||
|
@ -127,6 +158,21 @@ function calIncomeAndCost() {
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calIncomeEngineerTaxExclude(){
|
||||||
|
let val = $('#incomeEngineerSelect option:selected').val();
|
||||||
|
var $incomeEngineerTaxExclude = $("input[name='incomeEngineerTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var incomeEngineerTaxInclude = inputVal("incomeEngineerTaxInclude");
|
||||||
|
$incomeEngineerTaxExclude.val(incomeEngineerTaxInclude-(incomeEngineerTaxInclude*val));
|
||||||
|
}
|
||||||
|
calIncomeExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//服务类收入
|
//服务类收入
|
||||||
$("select[name='incomeServiceSelect']").change(function () {
|
$("select[name='incomeServiceSelect']").change(function () {
|
||||||
let val = $('#incomeServiceSelect option:selected').val();
|
let val = $('#incomeServiceSelect option:selected').val();
|
||||||
|
@ -145,6 +191,21 @@ function calIncomeAndCost() {
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calIncomeServiceTaxExclude(){
|
||||||
|
let val = $('#incomeServiceSelect option:selected').val();
|
||||||
|
var $incomeServiceTaxExclude = $("input[name='incomeServiceTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var incomeServiceTaxInclude = inputVal("incomeServiceTaxInclude");
|
||||||
|
$incomeServiceTaxExclude.val(incomeServiceTaxInclude-(incomeServiceTaxInclude*val));
|
||||||
|
}
|
||||||
|
calIncomeExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//设备类采购成本
|
//设备类采购成本
|
||||||
$("select[name='costPurchaseDeviceSelect']").change(function () {
|
$("select[name='costPurchaseDeviceSelect']").change(function () {
|
||||||
let val = $('#costPurchaseDeviceSelect option:selected').val();
|
let val = $('#costPurchaseDeviceSelect option:selected').val();
|
||||||
|
@ -163,6 +224,21 @@ function calIncomeAndCost() {
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calCostPurchaseDeviceTaxInclude(){
|
||||||
|
let val = $('#costPurchaseDeviceSelect option:selected').val();
|
||||||
|
var $costPurchaseDeviceTaxExclude = $("input[name='costPurchaseDeviceTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var costPurchaseDeviceTaxInclude = inputVal("costPurchaseDeviceTaxInclude");
|
||||||
|
$costPurchaseDeviceTaxExclude.val(costPurchaseDeviceTaxInclude-(costPurchaseDeviceTaxInclude*val));
|
||||||
|
}
|
||||||
|
calCostExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//施工类采购成本
|
//施工类采购成本
|
||||||
$("select[name='costPurchaseBuildSelect']").change(function () {
|
$("select[name='costPurchaseBuildSelect']").change(function () {
|
||||||
let val = $('#costPurchaseBuildSelect option:selected').val();
|
let val = $('#costPurchaseBuildSelect option:selected').val();
|
||||||
|
@ -180,6 +256,22 @@ function calIncomeAndCost() {
|
||||||
calCostExclude();
|
calCostExclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calCostPurchaseBuildTaxInclude(){
|
||||||
|
let val = $('#costPurchaseBuildSelect option:selected').val();
|
||||||
|
var $costPurchaseBuildTaxExclude = $("input[name='costPurchaseBuildTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var costPurchaseBuildTaxInclude = inputVal("costPurchaseBuildTaxInclude");
|
||||||
|
$costPurchaseBuildTaxExclude.val(costPurchaseBuildTaxInclude-(costPurchaseBuildTaxInclude*val));
|
||||||
|
}
|
||||||
|
calCostExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//服务类采购成本
|
//服务类采购成本
|
||||||
$("select[name='costPurchaseServiceSelect']").change(function () {
|
$("select[name='costPurchaseServiceSelect']").change(function () {
|
||||||
let val = $('#costPurchaseServiceSelect option:selected').val();
|
let val = $('#costPurchaseServiceSelect option:selected').val();
|
||||||
|
@ -197,6 +289,22 @@ function calIncomeAndCost() {
|
||||||
calCostExclude();
|
calCostExclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calCostPurchaseServiceTaxInclude(){
|
||||||
|
let val = $('#costPurchaseServiceSelect option:selected').val();
|
||||||
|
var $costPurchaseServiceTaxExclude = $("input[name='costPurchaseServiceTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var costPurchaseServiceTaxInclude = inputVal("costPurchaseServiceTaxInclude");
|
||||||
|
$costPurchaseServiceTaxExclude.val(costPurchaseServiceTaxInclude-(costPurchaseServiceTaxInclude*val));
|
||||||
|
}
|
||||||
|
calCostExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//其他类采购成本
|
//其他类采购成本
|
||||||
$("select[name='costOtherOtherSelect']").change(function () {
|
$("select[name='costOtherOtherSelect']").change(function () {
|
||||||
let val = $('#costOtherOtherSelect option:selected').val();
|
let val = $('#costOtherOtherSelect option:selected').val();
|
||||||
|
@ -214,6 +322,22 @@ function calIncomeAndCost() {
|
||||||
calCostExclude();
|
calCostExclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calCostOtherOtherTaxInclude(){
|
||||||
|
let val = $('#costOtherOtherSelect option:selected').val();
|
||||||
|
var $costOtherOtherTaxExclude = $("input[name='costOtherOtherTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var costOtherOtherTaxInclude = inputVal("costOtherOtherTaxInclude");
|
||||||
|
$costOtherOtherTaxExclude.val(costOtherOtherTaxInclude-(costOtherOtherTaxInclude*val));
|
||||||
|
}
|
||||||
|
calCostExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
|
|
||||||
//其他成本
|
//其他成本
|
||||||
$("select[name='costPurchaseOtherSelect']").change(function () {
|
$("select[name='costPurchaseOtherSelect']").change(function () {
|
||||||
let val = $('#costPurchaseOtherSelect option:selected').val();
|
let val = $('#costPurchaseOtherSelect option:selected').val();
|
||||||
|
@ -231,6 +355,21 @@ function calIncomeAndCost() {
|
||||||
calCostExclude();
|
calCostExclude();
|
||||||
calIncomeCost();
|
calIncomeCost();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function calCostPurchaseOtherTaxInclude(){
|
||||||
|
let val = $('#costPurchaseOtherSelect option:selected').val();
|
||||||
|
var $costPurchaseOtherTaxExclude = $("input[name='costPurchaseOtherTaxExclude']");
|
||||||
|
if(val == "自定义"){
|
||||||
|
return;
|
||||||
|
}else if(val == "请选择税率"){
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
var costPurchaseOtherTaxInclude = inputVal("costPurchaseOtherTaxInclude");
|
||||||
|
$costPurchaseOtherTaxExclude.val(costPurchaseOtherTaxInclude-(costPurchaseOtherTaxInclude*val));
|
||||||
|
}
|
||||||
|
calCostExclude();
|
||||||
|
calIncomeCost();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue