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