概算页面税率计算
parent
b17b0d2899
commit
a4d2a07e80
|
@ -2,14 +2,20 @@ function calIncomeAndCost() {
|
|||
$("input[name='incomeDeviceTaxInclude']").change(function () {
|
||||
calIncomeInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calIncomeDeviceTaxExclude();
|
||||
});
|
||||
$("input[name='incomeEngineerTaxInclude']").change(function () {
|
||||
calIncomeInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calIncomeEngineerTaxExclude();
|
||||
});
|
||||
$("input[name='incomeServiceTaxInclude']").change(function () {
|
||||
calIncomeInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calIncomeServiceTaxExclude();
|
||||
});
|
||||
$("input[name='incomeDeviceTaxExclude']").change(function () {
|
||||
calIncomeExclude();
|
||||
|
@ -30,18 +36,26 @@ function calIncomeAndCost() {
|
|||
$("input[name='costPurchaseDeviceTaxInclude']").change(function () {
|
||||
calCostInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calCostPurchaseDeviceTaxInclude();
|
||||
});
|
||||
$("input[name='costPurchaseBuildTaxInclude']").change(function () {
|
||||
calCostInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calCostPurchaseBuildTaxInclude();
|
||||
});
|
||||
$("input[name='costPurchaseServiceTaxInclude']").change(function () {
|
||||
calCostInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calCostPurchaseServiceTaxInclude();
|
||||
});
|
||||
$("input[name='costPurchaseOtherTaxInclude']").change(function () {
|
||||
calCostInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calCostPurchaseOtherTaxInclude();
|
||||
});
|
||||
/*$("input[name='costProjectManageTaxInclude']").change(function () {
|
||||
calCostInclude();
|
||||
|
@ -50,6 +64,8 @@ function calIncomeAndCost() {
|
|||
$("input[name='costOtherOtherTaxInclude']").change(function () {
|
||||
calCostInclude();
|
||||
calIncomeCost();
|
||||
|
||||
calCostOtherOtherTaxInclude();
|
||||
});
|
||||
|
||||
$("input[name='costPurchaseDeviceTaxExclude']").change(function () {
|
||||
|
@ -109,6 +125,21 @@ function calIncomeAndCost() {
|
|||
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 () {
|
||||
let val = $('#incomeEngineerSelect option:selected').val();
|
||||
|
@ -127,6 +158,21 @@ function calIncomeAndCost() {
|
|||
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 () {
|
||||
let val = $('#incomeServiceSelect option:selected').val();
|
||||
|
@ -145,6 +191,21 @@ function calIncomeAndCost() {
|
|||
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 () {
|
||||
let val = $('#costPurchaseDeviceSelect option:selected').val();
|
||||
|
@ -163,6 +224,21 @@ function calIncomeAndCost() {
|
|||
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 () {
|
||||
let val = $('#costPurchaseBuildSelect option:selected').val();
|
||||
|
@ -180,6 +256,22 @@ function calIncomeAndCost() {
|
|||
calCostExclude();
|
||||
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 () {
|
||||
let val = $('#costPurchaseServiceSelect option:selected').val();
|
||||
|
@ -197,6 +289,22 @@ function calIncomeAndCost() {
|
|||
calCostExclude();
|
||||
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 () {
|
||||
let val = $('#costOtherOtherSelect option:selected').val();
|
||||
|
@ -214,6 +322,22 @@ function calIncomeAndCost() {
|
|||
calCostExclude();
|
||||
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 () {
|
||||
let val = $('#costPurchaseOtherSelect option:selected').val();
|
||||
|
@ -231,6 +355,21 @@ function calIncomeAndCost() {
|
|||
calCostExclude();
|
||||
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