命名优化
parent
f97c24c4f2
commit
653b8bc20a
|
@ -59,14 +59,16 @@ function calCostInclude() {
|
||||||
var costOtherOtherTaxInclude = $("input[name='costOtherOtherTaxInclude']").val();
|
var costOtherOtherTaxInclude = $("input[name='costOtherOtherTaxInclude']").val();
|
||||||
|
|
||||||
|
|
||||||
var costTotalTaxInclude = $("input[name='costTotalTaxInclude']");
|
var $costTotalTaxInclude = $("input[name='costTotalTaxInclude']");
|
||||||
|
|
||||||
if(costPurchaseDeviceTaxInclude && costPurchaseBuildTaxInclude && costPurchaseServiceTaxInclude && costPurchaseOtherTaxInclude && costProjectManageTaxInclude && costOtherOtherTaxInclude){
|
if(costPurchaseDeviceTaxInclude && costPurchaseBuildTaxInclude
|
||||||
costTotalTaxInclude.val(f2(costPurchaseDeviceTaxInclude) +f2(costPurchaseBuildTaxInclude)
|
&& costPurchaseServiceTaxInclude && costPurchaseOtherTaxInclude
|
||||||
|
&& costProjectManageTaxInclude && costOtherOtherTaxInclude){
|
||||||
|
$costTotalTaxInclude.val(f2(costPurchaseDeviceTaxInclude) +f2(costPurchaseBuildTaxInclude)
|
||||||
+f2(costPurchaseServiceTaxInclude)+f2(costPurchaseOtherTaxInclude)
|
+f2(costPurchaseServiceTaxInclude)+f2(costPurchaseOtherTaxInclude)
|
||||||
+f2(costProjectManageTaxInclude)+f2(costOtherOtherTaxInclude));
|
+f2(costProjectManageTaxInclude)+f2(costOtherOtherTaxInclude));
|
||||||
}else {
|
}else {
|
||||||
costTotalTaxInclude.val("");
|
$costTotalTaxInclude.val("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -81,13 +83,15 @@ function calCostExclude() {
|
||||||
var costOtherOtherTaxExclude = $("input[name='costOtherOtherTaxExclude']").val();
|
var costOtherOtherTaxExclude = $("input[name='costOtherOtherTaxExclude']").val();
|
||||||
|
|
||||||
|
|
||||||
var costTotalTaxExclude = $("input[name='costTotalTaxExclude']");
|
var $costTotalTaxExclude = $("input[name='costTotalTaxExclude']");
|
||||||
|
|
||||||
if(costPurchaseDeviceTaxExclude && costPurchaseBuildTaxExclude && costPurchaseServiceTaxExclude && costPurchaseOtherTaxExclude && costProjectManageTaxExclude && costOtherOtherTaxExclude){
|
if(costPurchaseDeviceTaxExclude && costPurchaseBuildTaxExclude
|
||||||
costTotalTaxExclude.val(f2(costPurchaseDeviceTaxExclude)+f2(costPurchaseBuildTaxExclude)
|
&& costPurchaseServiceTaxExclude && costPurchaseOtherTaxExclude
|
||||||
|
&& costProjectManageTaxExclude && costOtherOtherTaxExclude){
|
||||||
|
$costTotalTaxExclude.val(f2(costPurchaseDeviceTaxExclude)+f2(costPurchaseBuildTaxExclude)
|
||||||
+f2(costPurchaseServiceTaxExclude)+f2(costPurchaseOtherTaxExclude)
|
+f2(costPurchaseServiceTaxExclude)+f2(costPurchaseOtherTaxExclude)
|
||||||
+f2(costProjectManageTaxExclude)+f2(costOtherOtherTaxExclude));
|
+f2(costProjectManageTaxExclude)+f2(costOtherOtherTaxExclude));
|
||||||
}else {
|
}else {
|
||||||
costTotalTaxExclude.val("");
|
$costTotalTaxExclude.val("");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue