Merge remote-tracking branch 'origin/master'

master
xxssyyyyssxx 2021-12-01 16:18:00 +08:00
commit 7bfcded829
8 changed files with 180 additions and 103 deletions

View File

@ -8,6 +8,7 @@ import cn.palmte.work.service.ProjectEstimateService;
import cn.palmte.work.service.ProjectFinalSevice; import cn.palmte.work.service.ProjectFinalSevice;
import cn.palmte.work.service.ProjectService; import cn.palmte.work.service.ProjectService;
import cn.palmte.work.service.*; import cn.palmte.work.service.*;
import cn.palmte.work.utils.DateKit;
import cn.palmte.work.utils.FreeMarkerUtil; import cn.palmte.work.utils.FreeMarkerUtil;
import cn.palmte.work.utils.InterfaceUtil; import cn.palmte.work.utils.InterfaceUtil;
import cn.palmte.work.utils.Utils; import cn.palmte.work.utils.Utils;
@ -27,9 +28,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
/** /**
@ -346,7 +345,9 @@ public class ProjectController extends BaseController {
* *
*/ */
@RequestMapping("/approve") @RequestMapping("/approve")
public String approve(@RequestParam("id") int id, @RequestParam String listFrom, Map<String, Object> model) { public String approve(@RequestParam(value = KEYWORDS, required = false) String keywords,
@RequestParam("id") int id, @RequestParam String listFrom,
Map<String, Object> model) {
Project project = projectService.getProject(id); Project project = projectService.getProject(id);
//项目信息 //项目信息
@ -378,13 +379,18 @@ public class ProjectController extends BaseController {
model.put("cashFlowBean", projectBudgetService.getCashFlowBean(project, projectBudgetPlanDetails)); model.put("cashFlowBean", projectBudgetService.getCashFlowBean(project, projectBudgetPlanDetails));
//结算信息 //结算信息
ProjectSettleIncome projectSettleIncome = projectSettleIncomeRepository.findNewByProjectId(id); model.put("keywords",keywords);
String time = ""; ConcurrentHashMap<String, String> searchInfo = getSearchInfo(keywords,model);
if(null == projectSettleIncome){ String time;
model.put("time", time); if (!searchInfo.containsKey("time")) {
}else { Calendar instance = Calendar.getInstance();
time = projectSettleIncome.getTime(); instance.setTime(new Date());
instance.set(Calendar.MONTH, instance.get(Calendar.MONTH));
Date current = instance.getTime();
time = DateKit.toStr(current, DateKit.DATE_FORMAT_YEAR_MONTH2);
model.put("time", time); model.put("time", time);
} else {
time = searchInfo.get("time");
} }
model.put("formerBean", projectSettleService.getFormerSettle(project, time)); model.put("formerBean", projectSettleService.getFormerSettle(project, time));
model.put("monthBean", projectSettleService.getMonthSettle(project, time)); model.put("monthBean", projectSettleService.getMonthSettle(project, time));

View File

@ -102,7 +102,7 @@ function calIncomeInclude() {
var $incomeTotalTaxInclude = $("input[name='incomeTotalTaxInclude']"); var $incomeTotalTaxInclude = $("input[name='incomeTotalTaxInclude']");
$incomeTotalTaxInclude.val(f2(incomeDeviceTaxInclude)+f2(incomeEngineerTaxInclude)+f2(incomeServiceTaxInclude)); $incomeTotalTaxInclude.val(f2(f2(incomeDeviceTaxInclude)+f2(incomeEngineerTaxInclude)+f2(incomeServiceTaxInclude)));
} }
/** /**
* 统计收入(不含税)有一项没填就置空 * 统计收入(不含税)有一项没填就置空
@ -114,7 +114,7 @@ function calIncomeExclude() {
var $incomeTotalTaxExclude = $("input[name='incomeTotalTaxExclude']"); var $incomeTotalTaxExclude = $("input[name='incomeTotalTaxExclude']");
$incomeTotalTaxExclude.val(f2(incomeDeviceTaxExclude)+f2(incomeEngineerTaxExclude)+f2(incomeServiceTaxExclude)); $incomeTotalTaxExclude.val(f2(f2(incomeDeviceTaxExclude)+f2(incomeEngineerTaxExclude)+f2(incomeServiceTaxExclude)));
} }
/** /**
@ -133,7 +133,7 @@ function calIncomeCost() {
var incomeTotalTaxExcludeValue = f2(incomeTotalTaxExclude); var incomeTotalTaxExcludeValue = f2(incomeTotalTaxExclude);
if (incomeTotalTaxExcludeValue != 0) { if (incomeTotalTaxExcludeValue != 0) {
$projectGrossProfit.val(f2(incomeTotalTaxExclude) - f2(costTotalTaxExclude) - f2(costExpropriationTaxExclude)); $projectGrossProfit.val(f2(f2(incomeTotalTaxExclude) - f2(costTotalTaxExclude) - f2(costExpropriationTaxExclude)));
$projectGrossProfitRate.val(f2(f2($projectGrossProfit.val()) * 100 / incomeTotalTaxExcludeValue)); $projectGrossProfitRate.val(f2(f2($projectGrossProfit.val()) * 100 / incomeTotalTaxExcludeValue));
} else { } else {
$projectGrossProfit.val(""); $projectGrossProfit.val("");
@ -141,7 +141,7 @@ function calIncomeCost() {
} }
if ($projectGrossProfit.val()) { if ($projectGrossProfit.val()) {
$projectContributionProfit.val(f2($projectGrossProfit.val()) - f2(costCompanyManageTaxExclude)); $projectContributionProfit.val(f2(f2($projectGrossProfit.val()) - f2(costCompanyManageTaxExclude)));
$projectContributionProfitRate.val(f2(f2($projectContributionProfit.val()) * 100 / f2(incomeTotalTaxExclude))) $projectContributionProfitRate.val(f2(f2($projectContributionProfit.val()) * 100 / f2(incomeTotalTaxExclude)))
} else { } else {
$projectContributionProfit.val(""); $projectContributionProfit.val("");

View File

@ -148,8 +148,8 @@ function calNetCashFlow() {
if (saleIncomeCash && taxReturn && earnestMoneyIncome if (saleIncomeCash && taxReturn && earnestMoneyIncome
&& purchaseCost && taxCost && earnestMoneyCost) { && purchaseCost && taxCost && earnestMoneyCost) {
netCashFlow.val((parseFloat(saleIncomeCash) + parseFloat(taxReturn) + parseFloat(earnestMoneyIncome) netCashFlow.val(f2(parseFloat(saleIncomeCash) + parseFloat(taxReturn) + parseFloat(earnestMoneyIncome)
- parseFloat(purchaseCost) - parseFloat(taxCost) - parseFloat(earnestMoneyCost)).toFixed(2)); - parseFloat(purchaseCost) - parseFloat(taxCost) - parseFloat(earnestMoneyCost)));
} else { } else {
netCashFlow.val(""); netCashFlow.val("");
} }
@ -165,7 +165,7 @@ function calNetCashFromInvestingActivities() {
var netCashFromInvestingActivities = $("input[name='netCashFromInvestingActivities']"); var netCashFromInvestingActivities = $("input[name='netCashFromInvestingActivities']");
if (cashInflowFromInvestingActivities && cashOutflowFromInvestingActivities) { if (cashInflowFromInvestingActivities && cashOutflowFromInvestingActivities) {
netCashFromInvestingActivities.val((parseFloat(cashInflowFromInvestingActivities) - parseFloat(cashOutflowFromInvestingActivities)).toFixed(2)); netCashFromInvestingActivities.val(f2(parseFloat(cashInflowFromInvestingActivities) - parseFloat(cashOutflowFromInvestingActivities)));
} else { } else {
netCashFromInvestingActivities.val(""); netCashFromInvestingActivities.val("");
} }
@ -181,7 +181,7 @@ function calFinancingCapitalCashflow() {
var financingCapitalCashflow = $("input[name='financingCapitalCashflow']"); var financingCapitalCashflow = $("input[name='financingCapitalCashflow']");
if (financingCapitalInflow && financingCapitalOutflow) { if (financingCapitalInflow && financingCapitalOutflow) {
financingCapitalCashflow.val((parseFloat(financingCapitalInflow) - parseFloat(financingCapitalOutflow)).toFixed(2)); financingCapitalCashflow.val(f2(parseFloat(financingCapitalInflow) - parseFloat(financingCapitalOutflow)));
} else { } else {
financingCapitalCashflow.val(""); financingCapitalCashflow.val("");
} }
@ -195,7 +195,7 @@ function calNetIncreaseMonetaryFunds() {
var netIncreaseMonetaryFunds = $("input[name='netIncreaseMonetaryFunds']"); var netIncreaseMonetaryFunds = $("input[name='netIncreaseMonetaryFunds']");
if (netCashFlow && netCashFromInvestingActivities && financingCapitalCashflow) { if (netCashFlow && netCashFromInvestingActivities && financingCapitalCashflow) {
netIncreaseMonetaryFunds.val((parseFloat(netCashFlow) + parseFloat(netCashFromInvestingActivities) + parseFloat(financingCapitalCashflow)).toFixed(2)); netIncreaseMonetaryFunds.val(f2(parseFloat(netCashFlow) + parseFloat(netCashFromInvestingActivities) + parseFloat(financingCapitalCashflow)));
} else { } else {
netIncreaseMonetaryFunds.val(""); netIncreaseMonetaryFunds.val("");
} }
@ -212,7 +212,7 @@ function calIncomeFinalTotal() {
var incomeFinalTotal = $("input[name='incomeFinalTotal']"); var incomeFinalTotal = $("input[name='incomeFinalTotal']");
if (incomeDeviceFinalTotal && incomeEngineerFinalTotal && incomeServiceFinalTotal) { if (incomeDeviceFinalTotal && incomeEngineerFinalTotal && incomeServiceFinalTotal) {
incomeFinalTotal.val((parseFloat(incomeDeviceFinalTotal) + parseFloat(incomeEngineerFinalTotal) + parseFloat(incomeServiceFinalTotal)).toFixed(2)); incomeFinalTotal.val(f2(parseFloat(incomeDeviceFinalTotal) + parseFloat(incomeEngineerFinalTotal) + parseFloat(incomeServiceFinalTotal)));
} else { } else {
incomeFinalTotal.val(""); incomeFinalTotal.val("");
} }
@ -233,8 +233,8 @@ function calCostFinalTotal() {
if (costPurchaseDeviceFinalTotal && costPurchaseBuildFinalTotal && costPurchaseServiceFinalTotal && if (costPurchaseDeviceFinalTotal && costPurchaseBuildFinalTotal && costPurchaseServiceFinalTotal &&
costPurchaseOtherFinalTotal && costProjectManageFinalTotal && costOtherFinalTotal) { costPurchaseOtherFinalTotal && costProjectManageFinalTotal && costOtherFinalTotal) {
costFinalTotal.val((parseFloat(costPurchaseDeviceFinalTotal) + parseFloat(costPurchaseBuildFinalTotal) + parseFloat(costPurchaseServiceFinalTotal) + costFinalTotal.val(f2(parseFloat(costPurchaseDeviceFinalTotal) + parseFloat(costPurchaseBuildFinalTotal) + parseFloat(costPurchaseServiceFinalTotal) +
parseFloat(costPurchaseOtherFinalTotal) + parseFloat(costProjectManageFinalTotal) + parseFloat(costOtherFinalTotal)).toFixed(2)); parseFloat(costPurchaseOtherFinalTotal) + parseFloat(costProjectManageFinalTotal) + parseFloat(costOtherFinalTotal)));
} else { } else {
costFinalTotal.val(""); costFinalTotal.val("");
} }
@ -252,7 +252,7 @@ function calManageFinalTotal() {
var manageFinalTotal = $("input[name='manageFinalTotal']"); var manageFinalTotal = $("input[name='manageFinalTotal']");
if (costExpropriationFinalTotal && costCompanyManageFinalTotal && costIncomeTaxFinalTotal) { if (costExpropriationFinalTotal && costCompanyManageFinalTotal && costIncomeTaxFinalTotal) {
manageFinalTotal.val((parseFloat(costExpropriationFinalTotal) + parseFloat(costCompanyManageFinalTotal) + parseFloat(costIncomeTaxFinalTotal)).toFixed(2)); manageFinalTotal.val(f2(parseFloat(costExpropriationFinalTotal) + parseFloat(costCompanyManageFinalTotal) + parseFloat(costIncomeTaxFinalTotal)));
} else { } else {
manageFinalTotal.val(""); manageFinalTotal.val("");
} }
@ -284,11 +284,11 @@ function calCashFluxFinalTotal() {
netCashFlow && cashInflowFromInvestingActivities && cashOutflowFromInvestingActivities && netCashFlow && cashInflowFromInvestingActivities && cashOutflowFromInvestingActivities &&
netCashFromInvestingActivities && financingCapitalInflow && financingCapitalOutflow netCashFromInvestingActivities && financingCapitalInflow && financingCapitalOutflow
&& financingCapitalCashflow && netIncreaseMonetaryFunds) { && financingCapitalCashflow && netIncreaseMonetaryFunds) {
cashFluxFinalTotal.val((parseFloat(saleIncomeCash) + parseFloat(taxReturn) + parseFloat(earnestMoneyIncome) + cashFluxFinalTotal.val(f2(parseFloat(saleIncomeCash) + parseFloat(taxReturn) + parseFloat(earnestMoneyIncome) +
parseFloat(purchaseCost) + parseFloat(taxCost) + parseFloat(earnestMoneyCost) + parseFloat(purchaseCost) + parseFloat(taxCost) + parseFloat(earnestMoneyCost) +
parseFloat(netCashFlow) + parseFloat(cashInflowFromInvestingActivities) + parseFloat(cashOutflowFromInvestingActivities) + parseFloat(netCashFlow) + parseFloat(cashInflowFromInvestingActivities) + parseFloat(cashOutflowFromInvestingActivities) +
parseFloat(netCashFromInvestingActivities) + parseFloat(financingCapitalInflow) + parseFloat(financingCapitalOutflow) + parseFloat(netCashFromInvestingActivities) + parseFloat(financingCapitalInflow) + parseFloat(financingCapitalOutflow) +
parseFloat(financingCapitalCashflow) + parseFloat(netIncreaseMonetaryFunds)).toFixed(2)); parseFloat(financingCapitalCashflow) + parseFloat(netIncreaseMonetaryFunds)));
} else { } else {
cashFluxFinalTotal.val(""); cashFluxFinalTotal.val("");
} }
@ -305,7 +305,7 @@ function calGrossProfitFinalTotal() {
var grossProfitFinalTotal = $("input[name='grossProfitFinalTotal']"); var grossProfitFinalTotal = $("input[name='grossProfitFinalTotal']");
if (incomeFinalTotal && costFinalTotal && costExpropriationFinalTotal) { if (incomeFinalTotal && costFinalTotal && costExpropriationFinalTotal) {
grossProfitFinalTotal.val((parseFloat(incomeFinalTotal) - parseFloat(costFinalTotal) - parseFloat(costExpropriationFinalTotal)).toFixed(2)); grossProfitFinalTotal.val(f2(parseFloat(incomeFinalTotal) - parseFloat(costFinalTotal) - parseFloat(costExpropriationFinalTotal)));
} else { } else {
grossProfitFinalTotal.val(""); grossProfitFinalTotal.val("");
} }
@ -337,7 +337,7 @@ function calContributionMarginFinalTotal() {
var contributionMarginFinalTotal = $("input[name='contributionMarginFinalTotal']"); var contributionMarginFinalTotal = $("input[name='contributionMarginFinalTotal']");
if (grossProfitFinalTotal && costCompanyManageFinalTotal) { if (grossProfitFinalTotal && costCompanyManageFinalTotal) {
contributionMarginFinalTotal.val((parseFloat(grossProfitFinalTotal) - parseFloat(costCompanyManageFinalTotal)).toFixed(2)); contributionMarginFinalTotal.val(f2(parseFloat(grossProfitFinalTotal) - parseFloat(costCompanyManageFinalTotal)));
} else { } else {
contributionMarginFinalTotal.val(""); contributionMarginFinalTotal.val("");
} }
@ -369,7 +369,7 @@ function calNetMarginFinalTotal() {
var netMarginFinalTotal = $("input[name='netMarginFinalTotal']"); var netMarginFinalTotal = $("input[name='netMarginFinalTotal']");
if (contributionMarginFinalTotal && costIncomeTaxFinalTotal) { if (contributionMarginFinalTotal && costIncomeTaxFinalTotal) {
netMarginFinalTotal.val((parseFloat(contributionMarginFinalTotal) - parseFloat(costIncomeTaxFinalTotal)).toFixed(2)); netMarginFinalTotal.val(f2(parseFloat(contributionMarginFinalTotal) - parseFloat(costIncomeTaxFinalTotal)));
} else { } else {
netMarginFinalTotal.val(""); netMarginFinalTotal.val("");
} }

View File

@ -222,7 +222,7 @@ function calIncomeDeviceSettleTotal() {
var incomeDeviceSettleTotal = $("input[name='incomeDeviceSettleTotal']"); var incomeDeviceSettleTotal = $("input[name='incomeDeviceSettleTotal']");
if(incomeDeviceFormerSettleTotal && incomeDevice){ if(incomeDeviceFormerSettleTotal && incomeDevice){
incomeDeviceSettleTotal.val((parseFloat(incomeDeviceFormerSettleTotal)+parseFloat(incomeDevice)).toFixed(2)); incomeDeviceSettleTotal.val(f2(parseFloat(incomeDeviceFormerSettleTotal)+parseFloat(incomeDevice)));
}else { }else {
incomeDeviceSettleTotal.val(""); incomeDeviceSettleTotal.val("");
} }
@ -238,7 +238,7 @@ function calIncomeEngineerSettleTotal() {
var incomeEngineerSettleTotal = $("input[name='incomeEngineerSettleTotal']"); var incomeEngineerSettleTotal = $("input[name='incomeEngineerSettleTotal']");
if(incomeEngineerFormerSettleTotal && incomeEngineer){ if(incomeEngineerFormerSettleTotal && incomeEngineer){
incomeEngineerSettleTotal.val((parseFloat(incomeEngineerFormerSettleTotal)+parseFloat(incomeEngineer)).toFixed(2)); incomeEngineerSettleTotal.val(f2(parseFloat(incomeEngineerFormerSettleTotal)+parseFloat(incomeEngineer)));
}else { }else {
incomeEngineerSettleTotal.val(""); incomeEngineerSettleTotal.val("");
} }
@ -254,7 +254,7 @@ function calIncomeServiceSettleTotal() {
var incomeServiceSettleTotal = $("input[name='incomeServiceSettleTotal']"); var incomeServiceSettleTotal = $("input[name='incomeServiceSettleTotal']");
if(incomeServiceFormerSettleTotal && incomeService){ if(incomeServiceFormerSettleTotal && incomeService){
incomeServiceSettleTotal.val((parseFloat(incomeServiceFormerSettleTotal)+parseFloat(incomeService)).toFixed(2)); incomeServiceSettleTotal.val(f2(parseFloat(incomeServiceFormerSettleTotal)+parseFloat(incomeService)));
}else { }else {
incomeServiceSettleTotal.val(""); incomeServiceSettleTotal.val("");
} }
@ -271,7 +271,7 @@ function calIncomeTotal() {
var incomeTotal = $("input[name='incomeTotal']"); var incomeTotal = $("input[name='incomeTotal']");
if(incomeDevice && incomeEngineer && incomeService){ if(incomeDevice && incomeEngineer && incomeService){
incomeTotal.val((parseFloat(incomeDevice)+parseFloat(incomeEngineer)+parseFloat(incomeService)).toFixed(2)); incomeTotal.val(f2(parseFloat(incomeDevice)+parseFloat(incomeEngineer)+parseFloat(incomeService)));
}else { }else {
incomeTotal.val(""); incomeTotal.val("");
} }
@ -288,7 +288,7 @@ function calIncomeSettleTotal() {
var incomeSettleTotal = $("input[name='incomeSettleTotal']"); var incomeSettleTotal = $("input[name='incomeSettleTotal']");
if(incomeDeviceSettleTotal && incomeEngineerSettleTotal && incomeServiceSettleTotal){ if(incomeDeviceSettleTotal && incomeEngineerSettleTotal && incomeServiceSettleTotal){
incomeSettleTotal.val((parseFloat(incomeDeviceSettleTotal)+parseFloat(incomeEngineerSettleTotal)+parseFloat(incomeServiceSettleTotal)).toFixed(2)); incomeSettleTotal.val(f2(parseFloat(incomeDeviceSettleTotal)+parseFloat(incomeEngineerSettleTotal)+parseFloat(incomeServiceSettleTotal)));
}else { }else {
incomeSettleTotal.val(""); incomeSettleTotal.val("");
} }
@ -304,7 +304,7 @@ function calCostPurchaseDeviceSettleTotal() {
var costPurchaseDeviceSettleTotal = $("input[name='costPurchaseDeviceSettleTotal']"); var costPurchaseDeviceSettleTotal = $("input[name='costPurchaseDeviceSettleTotal']");
if(costPurchaseDeviceFormerSettleTotal && costPurchaseDevice){ if(costPurchaseDeviceFormerSettleTotal && costPurchaseDevice){
costPurchaseDeviceSettleTotal.val((parseFloat(costPurchaseDeviceFormerSettleTotal)+parseFloat(costPurchaseDevice)).toFixed(2)); costPurchaseDeviceSettleTotal.val(f2(parseFloat(costPurchaseDeviceFormerSettleTotal)+parseFloat(costPurchaseDevice)));
}else { }else {
costPurchaseDeviceSettleTotal.val(""); costPurchaseDeviceSettleTotal.val("");
} }
@ -320,7 +320,7 @@ function calCostPurchaseBuildSettleTotal() {
var costPurchaseBuildSettleTotal = $("input[name='costPurchaseBuildSettleTotal']"); var costPurchaseBuildSettleTotal = $("input[name='costPurchaseBuildSettleTotal']");
if(costPurchaseBuildFormerSettleTotal && costPurchaseBuild){ if(costPurchaseBuildFormerSettleTotal && costPurchaseBuild){
costPurchaseBuildSettleTotal.val((parseFloat(costPurchaseBuildFormerSettleTotal)+parseFloat(costPurchaseBuild)).toFixed(2)); costPurchaseBuildSettleTotal.val(f2(parseFloat(costPurchaseBuildFormerSettleTotal)+parseFloat(costPurchaseBuild)));
}else { }else {
costPurchaseBuildSettleTotal.val(""); costPurchaseBuildSettleTotal.val("");
} }
@ -336,7 +336,7 @@ function calCostPurchaseServiceSettleTotal() {
var costPurchaseServiceSettleTotal = $("input[name='costPurchaseServiceSettleTotal']"); var costPurchaseServiceSettleTotal = $("input[name='costPurchaseServiceSettleTotal']");
if(costPurchaseServiceFormerSettleTotal && costPurchaseService){ if(costPurchaseServiceFormerSettleTotal && costPurchaseService){
costPurchaseServiceSettleTotal.val((parseFloat(costPurchaseServiceFormerSettleTotal)+parseFloat(costPurchaseService)).toFixed(2)); costPurchaseServiceSettleTotal.val(f2(parseFloat(costPurchaseServiceFormerSettleTotal)+parseFloat(costPurchaseService)));
}else { }else {
costPurchaseServiceSettleTotal.val(""); costPurchaseServiceSettleTotal.val("");
} }
@ -352,7 +352,7 @@ function calCostPurchaseOtherSettleTotal() {
var costPurchaseOtherSettleTotal = $("input[name='costPurchaseOtherSettleTotal']"); var costPurchaseOtherSettleTotal = $("input[name='costPurchaseOtherSettleTotal']");
if(costPurchaseOtherFormerSettleTotal && costPurchaseOther){ if(costPurchaseOtherFormerSettleTotal && costPurchaseOther){
costPurchaseOtherSettleTotal.val((parseFloat(costPurchaseOtherFormerSettleTotal)+parseFloat(costPurchaseOther)).toFixed(2)); costPurchaseOtherSettleTotal.val(f2(parseFloat(costPurchaseOtherFormerSettleTotal)+parseFloat(costPurchaseOther)));
}else { }else {
costPurchaseOtherSettleTotal.val(""); costPurchaseOtherSettleTotal.val("");
} }
@ -368,7 +368,7 @@ function calCostProjectManageSettleTotal() {
var costProjectManageSettleTotal = $("input[name='costProjectManageSettleTotal']"); var costProjectManageSettleTotal = $("input[name='costProjectManageSettleTotal']");
if(costProjectManageFormerSettleTotal && costProjectManage){ if(costProjectManageFormerSettleTotal && costProjectManage){
costProjectManageSettleTotal.val((parseFloat(costProjectManageFormerSettleTotal)+parseFloat(costProjectManage)).toFixed(2)); costProjectManageSettleTotal.val(f2(parseFloat(costProjectManageFormerSettleTotal)+parseFloat(costProjectManage)));
}else { }else {
costProjectManageSettleTotal.val(""); costProjectManageSettleTotal.val("");
} }
@ -384,7 +384,7 @@ function calCostOtherSettleTotal() {
var costOtherSettleTotal = $("input[name='costOtherSettleTotal']"); var costOtherSettleTotal = $("input[name='costOtherSettleTotal']");
if(costOtherFormerSettleTotal && costOther){ if(costOtherFormerSettleTotal && costOther){
costOtherSettleTotal.val((parseFloat(costOtherFormerSettleTotal)+parseFloat(costOther)).toFixed(2)); costOtherSettleTotal.val(f2(parseFloat(costOtherFormerSettleTotal)+parseFloat(costOther)));
}else { }else {
costOtherSettleTotal.val(""); costOtherSettleTotal.val("");
} }
@ -404,7 +404,7 @@ function calCostTotal() {
var costTotal = $("input[name='costTotal']"); var costTotal = $("input[name='costTotal']");
if(costPurchaseDevice && costPurchaseBuild && costPurchaseService && costPurchaseOther && costProjectManage && costOther){ if(costPurchaseDevice && costPurchaseBuild && costPurchaseService && costPurchaseOther && costProjectManage && costOther){
costTotal.val((parseFloat(costPurchaseDevice)+parseFloat(costPurchaseBuild)+parseFloat(costPurchaseService)+parseFloat(costPurchaseOther)+parseFloat(costProjectManage)+parseFloat(costOther)).toFixed(2)); costTotal.val(f2(parseFloat(costPurchaseDevice)+parseFloat(costPurchaseBuild)+parseFloat(costPurchaseService)+parseFloat(costPurchaseOther)+parseFloat(costProjectManage)+parseFloat(costOther)));
}else { }else {
costTotal.val(""); costTotal.val("");
} }
@ -425,8 +425,8 @@ function calCostSettleTotal() {
if(costPurchaseDeviceSettleTotal && costPurchaseBuildSettleTotal && costPurchaseServiceSettleTotal && if(costPurchaseDeviceSettleTotal && costPurchaseBuildSettleTotal && costPurchaseServiceSettleTotal &&
costPurchaseOtherSettleTotal && costProjectManageSettleTotal && costOtherSettleTotal){ costPurchaseOtherSettleTotal && costProjectManageSettleTotal && costOtherSettleTotal){
costSettleTotal.val((parseFloat(costPurchaseDeviceSettleTotal)+parseFloat(costPurchaseBuildSettleTotal)+parseFloat(costPurchaseServiceSettleTotal)+ costSettleTotal.val(f2(parseFloat(costPurchaseDeviceSettleTotal)+parseFloat(costPurchaseBuildSettleTotal)+parseFloat(costPurchaseServiceSettleTotal)+
parseFloat(costPurchaseOtherSettleTotal)+parseFloat(costProjectManageSettleTotal)+parseFloat(costOtherSettleTotal)).toFixed(2)); parseFloat(costPurchaseOtherSettleTotal)+parseFloat(costProjectManageSettleTotal)+parseFloat(costOtherSettleTotal)));
}else { }else {
costSettleTotal.val(""); costSettleTotal.val("");
} }
@ -442,7 +442,7 @@ function calCostExpropriationSettleTotal() {
var costExpropriationSettleTotal = $("input[name='costExpropriationSettleTotal']"); var costExpropriationSettleTotal = $("input[name='costExpropriationSettleTotal']");
if(costExpropriationFormerSettleTotal && costExpropriation){ if(costExpropriationFormerSettleTotal && costExpropriation){
costExpropriationSettleTotal.val((parseFloat(costExpropriationFormerSettleTotal)+parseFloat(costExpropriation)).toFixed(2)); costExpropriationSettleTotal.val(f2(parseFloat(costExpropriationFormerSettleTotal)+parseFloat(costExpropriation)));
}else { }else {
costExpropriationSettleTotal.val(""); costExpropriationSettleTotal.val("");
} }
@ -458,7 +458,7 @@ function calCostCompanyManageSettleTotal() {
var costCompanyManageSettleTotal = $("input[name='costCompanyManageSettleTotal']"); var costCompanyManageSettleTotal = $("input[name='costCompanyManageSettleTotal']");
if(costCompanyManageFormerSettleTotal && costCompanyManage){ if(costCompanyManageFormerSettleTotal && costCompanyManage){
costCompanyManageSettleTotal.val((parseFloat(costCompanyManageFormerSettleTotal)+parseFloat(costCompanyManage)).toFixed(2)); costCompanyManageSettleTotal.val(f2(parseFloat(costCompanyManageFormerSettleTotal)+parseFloat(costCompanyManage)));
}else { }else {
costCompanyManageSettleTotal.val(""); costCompanyManageSettleTotal.val("");
} }
@ -474,7 +474,7 @@ function calCostIncomeTaxSettleTotal() {
var costIncomeTaxSettleTotal = $("input[name='costIncomeTaxSettleTotal']"); var costIncomeTaxSettleTotal = $("input[name='costIncomeTaxSettleTotal']");
if(costIncomeTaxFormerSettleTotal && costIncomeTax){ if(costIncomeTaxFormerSettleTotal && costIncomeTax){
costIncomeTaxSettleTotal.val((parseFloat(costIncomeTaxFormerSettleTotal)+parseFloat(costIncomeTax)).toFixed(2)); costIncomeTaxSettleTotal.val(f2(parseFloat(costIncomeTaxFormerSettleTotal)+parseFloat(costIncomeTax)));
}else { }else {
costIncomeTaxSettleTotal.val(""); costIncomeTaxSettleTotal.val("");
} }
@ -491,7 +491,7 @@ function calCostManageTotal() {
var costManageTotal = $("input[name='costManageTotal']"); var costManageTotal = $("input[name='costManageTotal']");
if(costExpropriation && costCompanyManage && costIncomeTax){ if(costExpropriation && costCompanyManage && costIncomeTax){
costManageTotal.val((parseFloat(costExpropriation)+parseFloat(costCompanyManage)+parseFloat(costIncomeTax)).toFixed(2)); costManageTotal.val(f2(parseFloat(costExpropriation)+parseFloat(costCompanyManage)+parseFloat(costIncomeTax)));
}else { }else {
costManageTotal.val(""); costManageTotal.val("");
} }
@ -508,7 +508,7 @@ function calCostManageSettleTotal() {
var costManageSettleTotal = $("input[name='costManageSettleTotal']"); var costManageSettleTotal = $("input[name='costManageSettleTotal']");
if(costExpropriationSettleTotal && costCompanyManageSettleTotal && costIncomeTaxSettleTotal){ if(costExpropriationSettleTotal && costCompanyManageSettleTotal && costIncomeTaxSettleTotal){
costManageSettleTotal.val((parseFloat(costExpropriationSettleTotal)+parseFloat(costCompanyManageSettleTotal)+parseFloat(costIncomeTaxSettleTotal)).toFixed(2)); costManageSettleTotal.val(f2(parseFloat(costExpropriationSettleTotal)+parseFloat(costCompanyManageSettleTotal)+parseFloat(costIncomeTaxSettleTotal)));
}else { }else {
costManageSettleTotal.val(""); costManageSettleTotal.val("");
} }
@ -525,7 +525,7 @@ function calGrossProfit() {
var grossProfit = $("input[name='grossProfit']"); var grossProfit = $("input[name='grossProfit']");
if(incomeTotal && costTotal && costExpropriation){ if(incomeTotal && costTotal && costExpropriation){
grossProfit.val((parseFloat(incomeTotal)-parseFloat(costTotal)-parseFloat(costExpropriation)).toFixed(2)); grossProfit.val(f2(parseFloat(incomeTotal)-parseFloat(costTotal)-parseFloat(costExpropriation)));
}else { }else {
grossProfit.val(""); grossProfit.val("");
} }
@ -541,7 +541,7 @@ function calGrossProfitSettleTotal() {
var grossProfitSettleTotal = $("input[name='grossProfitSettleTotal']"); var grossProfitSettleTotal = $("input[name='grossProfitSettleTotal']");
if(grossProfitFormerSettleTotal && grossProfit){ if(grossProfitFormerSettleTotal && grossProfit){
grossProfitSettleTotal.val((parseFloat(grossProfitFormerSettleTotal)+parseFloat(grossProfit)).toFixed(2)); grossProfitSettleTotal.val(f2(parseFloat(grossProfitFormerSettleTotal)+parseFloat(grossProfit)));
}else { }else {
grossProfitSettleTotal.val(""); grossProfitSettleTotal.val("");
} }
@ -573,7 +573,7 @@ function calContributionProfit() {
var contributionProfit = $("input[name='contributionProfit']"); var contributionProfit = $("input[name='contributionProfit']");
if(grossProfit && costCompanyManage){ if(grossProfit && costCompanyManage){
contributionProfit.val((parseFloat(grossProfit)-parseFloat(costCompanyManage)).toFixed(2)); contributionProfit.val(f2(parseFloat(grossProfit)-parseFloat(costCompanyManage)));
}else { }else {
contributionProfit.val(""); contributionProfit.val("");
} }
@ -589,7 +589,7 @@ function calContributionProfitSettleTotal() {
var contributionProfitSettleTotal = $("input[name='contributionProfitSettleTotal']"); var contributionProfitSettleTotal = $("input[name='contributionProfitSettleTotal']");
if(contributionProfitFormerSettleTotal && contributionProfit){ if(contributionProfitFormerSettleTotal && contributionProfit){
contributionProfitSettleTotal.val((parseFloat(contributionProfitFormerSettleTotal)+parseFloat(contributionProfit)).toFixed(2)); contributionProfitSettleTotal.val(f2(parseFloat(contributionProfitFormerSettleTotal)+parseFloat(contributionProfit)));
}else { }else {
contributionProfitSettleTotal.val(""); contributionProfitSettleTotal.val("");
} }
@ -621,7 +621,7 @@ function calNetProfit() {
var netProfit = $("input[name='netProfit']"); var netProfit = $("input[name='netProfit']");
if(contributionProfit && costIncomeTax){ if(contributionProfit && costIncomeTax){
netProfit.val((parseFloat(contributionProfit)-parseFloat(costIncomeTax)).toFixed(2)); netProfit.val(f2(parseFloat(contributionProfit)-parseFloat(costIncomeTax)));
}else { }else {
netProfit.val(""); netProfit.val("");
} }
@ -637,7 +637,7 @@ function calNetProfitSettleTotal() {
var netProfitSettleTotal = $("input[name='netProfitSettleTotal']"); var netProfitSettleTotal = $("input[name='netProfitSettleTotal']");
if(netProfitFormerSettleTotal && netProfit){ if(netProfitFormerSettleTotal && netProfit){
netProfitSettleTotal.val((parseFloat(netProfitFormerSettleTotal)+parseFloat(netProfit)).toFixed(2)); netProfitSettleTotal.val(f2(parseFloat(netProfitFormerSettleTotal)+parseFloat(netProfit)));
}else { }else {
netProfitSettleTotal.val(""); netProfitSettleTotal.val("");
} }
@ -669,7 +669,7 @@ function calSaleIncomeCashSettle() {
var saleIncomeCashSettle = $("input[name='saleIncomeCashSettle']"); var saleIncomeCashSettle = $("input[name='saleIncomeCashSettle']");
if(saleIncomeCashFormerSettle && saleIncomeCash){ if(saleIncomeCashFormerSettle && saleIncomeCash){
saleIncomeCashSettle.val((parseFloat(saleIncomeCashFormerSettle)+parseFloat(saleIncomeCash)).toFixed(2)); saleIncomeCashSettle.val(f2(parseFloat(saleIncomeCashFormerSettle)+parseFloat(saleIncomeCash)));
}else { }else {
saleIncomeCashSettle.val(""); saleIncomeCashSettle.val("");
} }
@ -685,7 +685,7 @@ function calTaxReturnSettle() {
var taxReturnSettle = $("input[name='taxReturnSettle']"); var taxReturnSettle = $("input[name='taxReturnSettle']");
if(taxReturnFormerSettle && taxReturn){ if(taxReturnFormerSettle && taxReturn){
taxReturnSettle.val((parseFloat(taxReturnFormerSettle)+parseFloat(taxReturn)).toFixed(2)); taxReturnSettle.val(f2(parseFloat(taxReturnFormerSettle)+parseFloat(taxReturn)));
}else { }else {
taxReturnSettle.val(""); taxReturnSettle.val("");
} }
@ -701,7 +701,7 @@ function calEarnestMoneyIncomeSettle() {
var earnestMoneyIncomeSettle = $("input[name='earnestMoneyIncomeSettle']"); var earnestMoneyIncomeSettle = $("input[name='earnestMoneyIncomeSettle']");
if(earnestMoneyIncomeFormerSettle && earnestMoneyIncome){ if(earnestMoneyIncomeFormerSettle && earnestMoneyIncome){
earnestMoneyIncomeSettle.val((parseFloat(earnestMoneyIncomeFormerSettle)+parseFloat(earnestMoneyIncome)).toFixed(2)); earnestMoneyIncomeSettle.val(f2(parseFloat(earnestMoneyIncomeFormerSettle)+parseFloat(earnestMoneyIncome)));
}else { }else {
earnestMoneyIncomeSettle.val(""); earnestMoneyIncomeSettle.val("");
} }
@ -717,7 +717,7 @@ function calPurchaseCostSettle() {
var purchaseCostSettle = $("input[name='purchaseCostSettle']"); var purchaseCostSettle = $("input[name='purchaseCostSettle']");
if(purchaseCostFormerSettle && purchaseCost){ if(purchaseCostFormerSettle && purchaseCost){
purchaseCostSettle.val((parseFloat(purchaseCostFormerSettle)+parseFloat(purchaseCost)).toFixed(2)); purchaseCostSettle.val(f2(parseFloat(purchaseCostFormerSettle)+parseFloat(purchaseCost)));
}else { }else {
purchaseCostSettle.val(""); purchaseCostSettle.val("");
} }
@ -733,7 +733,7 @@ function calTaxCostSettle() {
var taxCostSettle = $("input[name='taxCostSettle']"); var taxCostSettle = $("input[name='taxCostSettle']");
if(taxCostFormerSettle && taxCost){ if(taxCostFormerSettle && taxCost){
taxCostSettle.val((parseFloat(taxCostFormerSettle)+parseFloat(taxCost)).toFixed(2)); taxCostSettle.val(f2(parseFloat(taxCostFormerSettle)+parseFloat(taxCost)));
}else { }else {
taxCostSettle.val(""); taxCostSettle.val("");
} }
@ -750,7 +750,7 @@ function calEarnestMoneyCostSettle() {
var earnestMoneyCostSettle = $("input[name='earnestMoneyCostSettle']"); var earnestMoneyCostSettle = $("input[name='earnestMoneyCostSettle']");
if(earnestMoneyCostFormerSettle && earnestMoneyCost){ if(earnestMoneyCostFormerSettle && earnestMoneyCost){
earnestMoneyCostSettle.val((parseFloat(earnestMoneyCostFormerSettle)+parseFloat(earnestMoneyCost)).toFixed(2)); earnestMoneyCostSettle.val(f2(parseFloat(earnestMoneyCostFormerSettle)+parseFloat(earnestMoneyCost)));
}else { }else {
earnestMoneyCostSettle.val(""); earnestMoneyCostSettle.val("");
} }
@ -766,7 +766,7 @@ function calNetCashFlowSettle() {
var netCashFlowSettle = $("input[name='netCashFlowSettle']"); var netCashFlowSettle = $("input[name='netCashFlowSettle']");
if(netCashFlowFormerSettle && netCashFlow){ if(netCashFlowFormerSettle && netCashFlow){
netCashFlowSettle.val((parseFloat(netCashFlowFormerSettle)+parseFloat(netCashFlow)).toFixed(2)); netCashFlowSettle.val(f2(parseFloat(netCashFlowFormerSettle)+parseFloat(netCashFlow)));
}else { }else {
netCashFlowSettle.val(""); netCashFlowSettle.val("");
} }
@ -782,7 +782,7 @@ function calCashInflowFromInvestingActivitiesSettle() {
var cashInflowFromInvestingActivitiesSettle = $("input[name='cashInflowFromInvestingActivitiesSettle']"); var cashInflowFromInvestingActivitiesSettle = $("input[name='cashInflowFromInvestingActivitiesSettle']");
if(cashInflowFromInvestingActivitiesFormerSettle && cashInflowFromInvestingActivities){ if(cashInflowFromInvestingActivitiesFormerSettle && cashInflowFromInvestingActivities){
cashInflowFromInvestingActivitiesSettle.val((parseFloat(cashInflowFromInvestingActivitiesFormerSettle)+parseFloat(cashInflowFromInvestingActivities)).toFixed(2)); cashInflowFromInvestingActivitiesSettle.val(f2(parseFloat(cashInflowFromInvestingActivitiesFormerSettle)+parseFloat(cashInflowFromInvestingActivities)));
}else { }else {
cashInflowFromInvestingActivitiesSettle.val(""); cashInflowFromInvestingActivitiesSettle.val("");
} }
@ -798,7 +798,7 @@ function calCashOutflowFromInvestingActivitiesSettle() {
var cashOutflowFromInvestingActivitiesSettle = $("input[name='cashOutflowFromInvestingActivitiesSettle']"); var cashOutflowFromInvestingActivitiesSettle = $("input[name='cashOutflowFromInvestingActivitiesSettle']");
if(cashOutflowFromInvestingActivitiesFormerSettle && cashOutflowFromInvestingActivities){ if(cashOutflowFromInvestingActivitiesFormerSettle && cashOutflowFromInvestingActivities){
cashOutflowFromInvestingActivitiesSettle.val((parseFloat(cashOutflowFromInvestingActivitiesFormerSettle)+parseFloat(cashOutflowFromInvestingActivities)).toFixed(2)); cashOutflowFromInvestingActivitiesSettle.val(f2(parseFloat(cashOutflowFromInvestingActivitiesFormerSettle)+parseFloat(cashOutflowFromInvestingActivities)));
}else { }else {
cashOutflowFromInvestingActivitiesSettle.val(""); cashOutflowFromInvestingActivitiesSettle.val("");
} }
@ -814,7 +814,7 @@ function calNetCashFromInvestingActivitiesSettle() {
var netCashFromInvestingActivitiesSettle = $("input[name='netCashFromInvestingActivitiesSettle']"); var netCashFromInvestingActivitiesSettle = $("input[name='netCashFromInvestingActivitiesSettle']");
if(netCashFromInvestingActivitiesFormerSettle && netCashFromInvestingActivities){ if(netCashFromInvestingActivitiesFormerSettle && netCashFromInvestingActivities){
netCashFromInvestingActivitiesSettle.val((parseFloat(netCashFromInvestingActivitiesFormerSettle)+parseFloat(netCashFromInvestingActivities)).toFixed(2)); netCashFromInvestingActivitiesSettle.val(f2(parseFloat(netCashFromInvestingActivitiesFormerSettle)+parseFloat(netCashFromInvestingActivities)));
}else { }else {
netCashFromInvestingActivitiesSettle.val(""); netCashFromInvestingActivitiesSettle.val("");
} }
@ -830,7 +830,7 @@ function calFinancingCapitalInflowSettle() {
var financingCapitalInflowSettle = $("input[name='financingCapitalInflowSettle']"); var financingCapitalInflowSettle = $("input[name='financingCapitalInflowSettle']");
if(financingCapitalInflowFormerSettle && financingCapitalInflow){ if(financingCapitalInflowFormerSettle && financingCapitalInflow){
financingCapitalInflowSettle.val((parseFloat(financingCapitalInflowFormerSettle)+parseFloat(financingCapitalInflow)).toFixed(2)); financingCapitalInflowSettle.val(f2(parseFloat(financingCapitalInflowFormerSettle)+parseFloat(financingCapitalInflow)));
}else { }else {
financingCapitalInflowSettle.val(""); financingCapitalInflowSettle.val("");
} }
@ -846,7 +846,7 @@ function calFinancingCapitalOutflowSettle() {
var financingCapitalOutflowSettle = $("input[name='financingCapitalOutflowSettle']"); var financingCapitalOutflowSettle = $("input[name='financingCapitalOutflowSettle']");
if(financingCapitalOutflowFormerSettle && financingCapitalOutflow){ if(financingCapitalOutflowFormerSettle && financingCapitalOutflow){
financingCapitalOutflowSettle.val((parseFloat(financingCapitalOutflowFormerSettle)+parseFloat(financingCapitalOutflow)).toFixed(2)); financingCapitalOutflowSettle.val(f2(parseFloat(financingCapitalOutflowFormerSettle)+parseFloat(financingCapitalOutflow)));
}else { }else {
financingCapitalOutflowSettle.val(""); financingCapitalOutflowSettle.val("");
} }
@ -862,7 +862,7 @@ function calFinancingCapitalCashflowSettle() {
var financingCapitalCashflowSettle = $("input[name='financingCapitalCashflowSettle']"); var financingCapitalCashflowSettle = $("input[name='financingCapitalCashflowSettle']");
if(financingCapitalCashflowFormerSettle && financingCapitalCashflow){ if(financingCapitalCashflowFormerSettle && financingCapitalCashflow){
financingCapitalCashflowSettle.val((parseFloat(financingCapitalCashflowFormerSettle)+parseFloat(financingCapitalCashflow)).toFixed(2)); financingCapitalCashflowSettle.val(f2(parseFloat(financingCapitalCashflowFormerSettle)+parseFloat(financingCapitalCashflow)));
}else { }else {
financingCapitalCashflowSettle.val(""); financingCapitalCashflowSettle.val("");
} }
@ -878,7 +878,7 @@ function calNetIncreaseMonetaryFundsSettle() {
var netIncreaseMonetaryFundsSettle = $("input[name='netIncreaseMonetaryFundsSettle']"); var netIncreaseMonetaryFundsSettle = $("input[name='netIncreaseMonetaryFundsSettle']");
if(netIncreaseMonetaryFundsFormerSettle && netIncreaseMonetaryFunds){ if(netIncreaseMonetaryFundsFormerSettle && netIncreaseMonetaryFunds){
netIncreaseMonetaryFundsSettle.val((parseFloat(netIncreaseMonetaryFundsFormerSettle)+parseFloat(netIncreaseMonetaryFunds)).toFixed(2)); netIncreaseMonetaryFundsSettle.val(f2(parseFloat(netIncreaseMonetaryFundsFormerSettle)+parseFloat(netIncreaseMonetaryFunds)));
}else { }else {
netIncreaseMonetaryFundsSettle.val(""); netIncreaseMonetaryFundsSettle.val("");
} }
@ -899,8 +899,8 @@ function calNetCashFlow() {
if(saleIncomeCash && taxReturn && earnestMoneyIncome && if(saleIncomeCash && taxReturn && earnestMoneyIncome &&
purchaseCost && taxCost && earnestMoneyCost) { purchaseCost && taxCost && earnestMoneyCost) {
netCashFlow.val((parseFloat(saleIncomeCash)+parseFloat(taxReturn)+parseFloat(earnestMoneyIncome)- netCashFlow.val(f2(parseFloat(saleIncomeCash)+parseFloat(taxReturn)+parseFloat(earnestMoneyIncome)-
parseFloat(purchaseCost)-parseFloat(taxCost)-parseFloat(earnestMoneyCost)).toFixed(2)); parseFloat(purchaseCost)-parseFloat(taxCost)-parseFloat(earnestMoneyCost)));
}else { }else {
netCashFlow.val(""); netCashFlow.val("");
} }
@ -916,7 +916,7 @@ function calNetCashFromInvestingActivities() {
var netCashFromInvestingActivities = $("input[name='netCashFromInvestingActivities']"); var netCashFromInvestingActivities = $("input[name='netCashFromInvestingActivities']");
if(cashInflowFromInvestingActivities && cashOutflowFromInvestingActivities){ if(cashInflowFromInvestingActivities && cashOutflowFromInvestingActivities){
netCashFromInvestingActivities.val((parseFloat(cashInflowFromInvestingActivities)-parseFloat(cashOutflowFromInvestingActivities)).toFixed(2)); netCashFromInvestingActivities.val(f2(parseFloat(cashInflowFromInvestingActivities)-parseFloat(cashOutflowFromInvestingActivities)));
}else { }else {
netCashFromInvestingActivities.val(""); netCashFromInvestingActivities.val("");
} }
@ -932,7 +932,7 @@ function calFinancingCapitalCashflow() {
var financingCapitalCashflow = $("input[name='financingCapitalCashflow']"); var financingCapitalCashflow = $("input[name='financingCapitalCashflow']");
if(financingCapitalInflow && financingCapitalOutflow){ if(financingCapitalInflow && financingCapitalOutflow){
financingCapitalCashflow.val((parseFloat(financingCapitalInflow)-parseFloat(financingCapitalOutflow)).toFixed(2)); financingCapitalCashflow.val(f2(parseFloat(financingCapitalInflow)-parseFloat(financingCapitalOutflow)));
}else { }else {
financingCapitalCashflow.val(""); financingCapitalCashflow.val("");
} }
@ -949,7 +949,7 @@ function calNetIncreaseMonetaryFunds() {
var netIncreaseMonetaryFunds = $("input[name='netIncreaseMonetaryFunds']"); var netIncreaseMonetaryFunds = $("input[name='netIncreaseMonetaryFunds']");
if(netCashFlow && netCashFromInvestingActivities && financingCapitalCashflow){ if(netCashFlow && netCashFromInvestingActivities && financingCapitalCashflow){
netIncreaseMonetaryFunds.val((parseFloat(netCashFlow)+parseFloat(netCashFromInvestingActivities)+parseFloat(financingCapitalCashflow)).toFixed(2)); netIncreaseMonetaryFunds.val(f2(parseFloat(netCashFlow)+parseFloat(netCashFromInvestingActivities)+parseFloat(financingCapitalCashflow)));
}else { }else {
netIncreaseMonetaryFunds.val(""); netIncreaseMonetaryFunds.val("");
} }

View File

@ -95,6 +95,7 @@
</div> </div>
<form method="post" class="am-form" id="pmsForm" action="${base}/project/budgetEditSave"> <form method="post" class="am-form" id="pmsForm" action="${base}/project/budgetEditSave">
<input type="hidden" id="keywords" name="keywords" value='${keywords!""}'/>
<!--选项卡tabsbegin--> <!--选项卡tabsbegin-->
<div class="am-tabs am-margin" data-am-tabs> <div class="am-tabs am-margin" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs"> <ul class="am-tabs-nav am-nav am-nav-tabs">
@ -341,7 +342,7 @@
<td>成本</td> <td>成本</td>
<td>项目管理成本</td> <td>项目管理成本</td>
<td>项目管理成本</td> <td>项目管理成本</td>
<td><#--<input name="costProjectManageTaxInclude" value="${estimateBean.costProjectManageTaxInclude}" required>-->/</td> <td><input type="number" min="0.00" max="99999999.99" step="0.01" name="costProjectManageTaxInclude" value="${Utils.format(estimateBean.costProjectManageTaxExclude)}" required readonly></td>
<td><input type="number" min="0.00" max="99999999.99" step="0.01" name="costProjectManageTaxExclude" value="${Utils.format(estimateBean.costProjectManageTaxExclude)}" required readonly></td> <td><input type="number" min="0.00" max="99999999.99" step="0.01" name="costProjectManageTaxExclude" value="${Utils.format(estimateBean.costProjectManageTaxExclude)}" required readonly></td>
</tr> </tr>
<tr> <tr>
@ -643,7 +644,7 @@
<div class="am-u-sm-10"> <div class="am-u-sm-10">
<div class="am-form am-form-inline"> <div class="am-form am-form-inline">
<div class="am-form-group am-form-icon"> <div class="am-form-group am-form-icon">
<input type="text" id="time" name="time" autocomplete="off" data-am-datepicker readonly value="${time!}"> <input type="text" id="time" name="time" autocomplete="off" readonly value="${time!}">
</div> </div>
</div> </div>
</div> </div>
@ -1381,7 +1382,7 @@
<#list incomeDetails as incomeDetail> <#list incomeDetails as incomeDetail>
<tr> <tr>
<td> <td>
<select style="width: auto" readonly <#--<select style="width: auto" readonly
class="am-modal-prompt-input am-modal-prompt-input-income"> class="am-modal-prompt-input am-modal-prompt-input-income">
<option value="1" <#if incomeDetail.type == 1>selected</#if>>设备类 <option value="1" <#if incomeDetail.type == 1>selected</#if>>设备类
</option> </option>
@ -1389,7 +1390,14 @@
</option> </option>
<option value="3" <#if incomeDetail.type == 3>selected</#if>>服务类 <option value="3" <#if incomeDetail.type == 3>selected</#if>>服务类
</option> </option>
</select> </select>-->
<#if incomeDetail.type ==1 >
设备类
<#elseif incomeDetail.type ==2>
工程类
<#elseif incomeDetail.type ==3>
服务类
</#if>
</td> </td>
<td><input type="text" readonly <td><input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-income" class="am-modal-prompt-input am-modal-prompt-input-income"
@ -1460,7 +1468,7 @@
<#list costDetails as costDetail> <#list costDetails as costDetail>
<tr> <tr>
<td> <td>
<select style="width: auto" readonly <#--<select style="width: auto" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-type"> class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-type">
<option value="1" <#if costDetail.type == 1>selected</#if>>设备 <option value="1" <#if costDetail.type == 1>selected</#if>>设备
</option> </option>
@ -1470,10 +1478,19 @@
</option> </option>
<option value="4" <#if costDetail.type == 4>selected</#if>>其他 <option value="4" <#if costDetail.type == 4>selected</#if>>其他
</option> </option>
</select> </select>-->
<#if costDetail.type ==1 >
设备
<#elseif costDetail.type ==2>
施工
<#elseif costDetail.type ==3>
服务
<#elseif costDetail.type ==4>
其他
</#if>
</td> </td>
<td> <td>
<select style="width: auto" readonly <#--<select style="width: auto" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-category"> class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-category">
<option value="1" <#if costDetail.category == 1>selected</#if>> <option value="1" <#if costDetail.category == 1>selected</#if>>
华智产品 华智产品
@ -1498,7 +1515,24 @@
</option> </option>
<option value="8" <#if costDetail.category == 8>selected</#if>>其他 <option value="8" <#if costDetail.category == 8>selected</#if>>其他
</option> </option>
</select> </select>-->
<#if costDetail.category ==1 >
华智产品
<#elseif costDetail.category ==2>
紫光其他产品
<#elseif costDetail.category ==3>
外购产品
<#elseif costDetail.category ==4>
外购工程
<#elseif costDetail.category ==5>
华智服务
<#elseif costDetail.category ==6>
紫光其他服务
<#elseif costDetail.category ==7>
外购服务
<#elseif costDetail.category ==8>
其他
</#if>
</td> </td>
<td><input type="text" readonly <td><input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost" class="am-modal-prompt-input am-modal-prompt-input-cost"
@ -1570,7 +1604,7 @@
<#list costProjectManageDetails as costProjectManageDetail> <#list costProjectManageDetails as costProjectManageDetail>
<tr> <tr>
<td> <td>
<select style="width: auto" <#--<select style="width: auto"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"
<#if costProjectManageDetail.deletable==0>readonly</#if>> <#if costProjectManageDetail.deletable==0>readonly</#if>>
<option value="1" <option value="1"
@ -1582,7 +1616,14 @@
<option value="3" <option value="3"
<#if costProjectManageDetail.type == 3>selected</#if>>其他费用 <#if costProjectManageDetail.type == 3>selected</#if>>其他费用
</option> </option>
</select> </select>-->
<#if costProjectManageDetail.type ==1 >
人工成本
<#elseif costProjectManageDetail.type ==2>
业务费用
<#elseif costProjectManageDetail.type ==3>
其他费用
</#if>
</td> </td>
<td><input type="text" <td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"
@ -1663,8 +1704,8 @@
<#-- <td>操作</td>--> <#-- <td>操作</td>-->
</tr> </tr>
<tr> <tr>
<td><input type="text" class="am-modal-prompt-input input-total-month-budget-plan" <td><#--<input type="text" class="am-modal-prompt-input input-total-month-budget-plan"
value="${projectBudgetPlanDetailTotal.month}" readonly/></td> value="${projectBudgetPlanDetailTotal.month}" readonly/>-->${projectBudgetPlanDetailTotal.month}</td>
<td><input type="number" <td><input type="number"
class="am-modal-prompt-input input-total-device-cost-budget-plan" class="am-modal-prompt-input input-total-device-cost-budget-plan"
value="${Utils.format(projectBudgetPlanDetailTotal.deviceCost)}" value="${Utils.format(projectBudgetPlanDetailTotal.deviceCost)}"
@ -1719,9 +1760,9 @@
<#if projectBudgetPlanDetails??> <#if projectBudgetPlanDetails??>
<#list projectBudgetPlanDetails as projectBudgetPlanDetail> <#list projectBudgetPlanDetails as projectBudgetPlanDetail>
<tr> <tr>
<td><input type="text" readonly <td><#--<input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-budget-plan-detail input-changeable-month-budget-plan" class="am-modal-prompt-input am-modal-prompt-input-budget-plan-detail input-changeable-month-budget-plan"
value="${projectBudgetPlanDetail.month!}"></td> value="${projectBudgetPlanDetail.month!}">-->${projectBudgetPlanDetail.month!}</td>
<td><input type="number" min="0.00" max="99999999.99" step="0.01" readonly <td><input type="number" min="0.00" max="99999999.99" step="0.01" readonly
class="am-modal-prompt-input am-modal-prompt-input-budget-plan-detail input-changeable-device-cost-budget-plan" class="am-modal-prompt-input am-modal-prompt-input-budget-plan-detail input-changeable-device-cost-budget-plan"
value="${Utils.format(projectBudgetPlanDetail.deviceCost)}"></td> value="${Utils.format(projectBudgetPlanDetail.deviceCost)}"></td>
@ -1889,6 +1930,7 @@
<script src="${base}/assets/js/project_budget_cost.js"></script> <script src="${base}/assets/js/project_budget_cost.js"></script>
<script src="${base}/assets/js/project_budget_cost_project_manage.js"></script> <script src="${base}/assets/js/project_budget_cost_project_manage.js"></script>
<script src="${base}/assets/js/project_budget_plan.js"></script> <script src="${base}/assets/js/project_budget_plan.js"></script>
<script src="${base}/layui/layui.js"></script>
</@defaultLayout.layout> </@defaultLayout.layout>
<script> <script>
@ -1926,6 +1968,7 @@
type: 'post', type: 'post',
async: false, async: false,
success: function (data) { success: function (data) {
$("#marqueeLi", parent.document).addClass("am-hide");
if (data.status == 0) { if (data.status == 0) {
alert(data.msg); alert(data.msg);
window.location.href = window.location.href; window.location.href = window.location.href;
@ -1935,4 +1978,37 @@
} }
}); });
} }
layui.use('laydate', function(){
var laydate = layui.laydate;
laydate.render({
elem: '#time',
type: 'month',
btns: ['confirm'],
trigger: 'click',
ready: function(){
console.log($(this.elem).val());
},
done: function() {
var time = $(this.elem).val();
console.log("time:" + time)
setKeywords(time);
$("#pmsForm").attr("action","${base}/project/approve?listFrom=list&id=${project.id}");
$("#pmsForm").submit();
}
});
});
function setKeywords(time) {
var keywordsObj = {};
keywordsObj.time = time;
var keywords = "";
if (!$.isEmptyObject(keywordsObj)) {
keywords = JSON.stringify(keywordsObj);
}
console.log("keywords = " + keywords);
$("#keywords").val(keywords);
}
</script> </script>

View File

@ -113,7 +113,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资利息</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资利息</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资利息" <input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资利息"
name="advanceInterestAmount" placeholder="单位(元)" maxlength="20" name="advanceInterestAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01"
value="" required /> value="" required />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
@ -122,7 +122,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资峰值</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资峰值</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资峰值" <input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资峰值"
name="advancePeakAmount" placeholder="单位(元)" maxlength="20" name="advancePeakAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01"
value="" required /> value="" required />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
@ -131,7 +131,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>合同金额</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>合同金额</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入合同金额" <input type="number" class="am-input" data-validate-async data-validation-message="请输入合同金额"
name="contractAmount" placeholder="单位(元)" maxlength="20" name="contractAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01"
value="" required /> value="" required />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
@ -149,7 +149,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right">华智产品金额</div> <div class="am-u-sm-4 am-u-md-2 am-text-right">华智产品金额</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validation-message="华智产品金额" <input type="number" class="am-input" data-validation-message="华智产品金额"
name="huazhiProductAmount" placeholder="单位(元)" maxlength="14" value="" /> name="huazhiProductAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01" value="" />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div> </div>
@ -157,7 +157,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right">紫光其他产品金额</div> <div class="am-u-sm-4 am-u-md-2 am-text-right">紫光其他产品金额</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validation-message="请输入紫光其他产品金额" <input type="number" class="am-input" data-validation-message="请输入紫光其他产品金额"
name="ziguangOtherAmount" placeholder="单位(元)" maxlength="14" value="" /> name="ziguangOtherAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01" value="" />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div> </div>

View File

@ -120,7 +120,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资利息</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资利息</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资利息" <input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资利息"
name="advanceInterestAmount" placeholder="单位(元)" maxlength="20" name="advanceInterestAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01"
value="${Utils.format(project.advanceInterestAmount)}" required /> value="${Utils.format(project.advanceInterestAmount)}" required />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
@ -129,7 +129,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资峰值</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资峰值</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资峰值" <input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资峰值"
name="advancePeakAmount" placeholder="单位(元)" maxlength="20" name="advancePeakAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01"
value="${Utils.format(project.advancePeakAmount)}" required /> value="${Utils.format(project.advancePeakAmount)}" required />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
@ -138,7 +138,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>合同金额</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>合同金额</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入合同金额" <input type="number" class="am-input" data-validate-async data-validation-message="请输入合同金额"
name="contractAmount" placeholder="单位(元)" maxlength="20" name="contractAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01"
value="${Utils.format(project.contractAmount)}" required /> value="${Utils.format(project.contractAmount)}" required />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
@ -156,7 +156,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><#--<span style="color: red;">*</span>-->华智产品金额</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><#--<span style="color: red;">*</span>-->华智产品金额</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validation-message="华智产品金额" <input type="number" class="am-input" data-validation-message="华智产品金额"
name="huazhiProductAmount" placeholder="单位(元)" maxlength="14" value="${Utils.format(project.huazhiProductAmount)}" /> name="huazhiProductAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01" value="${Utils.format(project.huazhiProductAmount)}" />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div> </div>
@ -164,7 +164,7 @@
<div class="am-u-sm-4 am-u-md-2 am-text-right"><#--<span style="color: red;">*</span>-->紫光其他产品金额</div> <div class="am-u-sm-4 am-u-md-2 am-text-right"><#--<span style="color: red;">*</span>-->紫光其他产品金额</div>
<div class="am-u-sm-6 am-u-md-6"> <div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validation-message="请输入紫光其他产品金额" <input type="number" class="am-input" data-validation-message="请输入紫光其他产品金额"
name="ziguangOtherAmount" placeholder="单位(元)" maxlength="14" value="${Utils.format(project.ziguangOtherAmount)}" /> name="ziguangOtherAmount" placeholder="单位(元)" min="0.00" max="9999999999.99" step="0.01" value="${Utils.format(project.ziguangOtherAmount)}" />
</div> </div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div> <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div> </div>

View File

@ -22,7 +22,7 @@
<li id="marqueeLi" style="margin-top: -10px"> <li id="marqueeLi" style="margin-top: -10px">
<marquee align="left" behavior="scroll" direction="left" height="20" width="200" hspace="50" vspace="20" loop="-1" scrollamount="10" scrolldelay="100" onMouseOut="this.start()" onMouseOver="this.stop()"> <marquee align="left" behavior="scroll" direction="left" height="20" width="200" hspace="50" vspace="20" loop="-1" scrollamount="10" scrolldelay="100" onMouseOut="this.start()" onMouseOver="this.stop()">
<a onclick="return removeMarquee()" href="${base}/project/listApprove" target="mainFrame">${hasApproveProjectsMessage!""}</a> <a href="${base}/project/listApprove" target="mainFrame">${hasApproveProjectsMessage!""}</a>
</marquee> </marquee>
</li> </li>
@ -43,9 +43,4 @@
</div> </div>
</div> </div>
</header> </header>
<script>
var removeMarquee = function () {
$("#marqueeLi").addClass("am-hide");
return true;
}
</script>