//******************************** //投资规划------ //******************************** var ProposalId = 0; //建议书Id var DelObjs = new Array(); var indexFlag = 0; var ShowPupTagId = "";//记录弹出层标记 var ShowRadioTag = "";//记录选择对象 var param = ""; var TagNavi = false; var selecVal = "";//记录你选择完的对象 ---为了给搜索用的。 //判断是否非法字符 function CheckNum(num) { var pattern6 = /^[-]?\d+(\.\d{1,6})?$/;//只能输入两位小数 if (!pattern6.test(num)) { num = 0; return num; } return num; } //计算百分百比。输入值不为百分之百 function CalcPerCent(HoldRate, IncreaseRate, SpeculationRate) { var HoldRate1 = CheckNum(HoldRate); var IncreaseRate1 = CheckNum(IncreaseRate); var SpeculationRate1 = CheckNum(SpeculationRate); var sum = 0; if (HoldRate1 == HoldRate && IncreaseRate1 == IncreaseRate && SpeculationRate1 == SpeculationRate) { sum = HoldRate * 1 + IncreaseRate * 1 + SpeculationRate * 1; } else { sum = 0; } return sum; } //("意外险", "重疾险", "寿险", "教育年金", "养老年金", "看护险"); var InsureArry = ["意外险", "重疾险", "寿险", "教育年金", "养老年金", "看护险"]; //赋值事件 var SetPercentVal = (function () { //百分比事件 var setPercentValue = function (obj) { var selVal = $(obj).val(); if (selVal == "1") {//单身期 $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[1]); //同时还要改变 保 -增 -投的值 $("#HoldRate").val(10); $("#IncreaseRate").val(10); $("#SpeculationRate").val(80); ShowPieInfo(10, 10, 80); } else if (selVal == "2") {//家庭形成期(筑巢期) $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[1] + "、" + InsureArry[2]); //同时还要改变 保 -增 -投的值 $("#HoldRate").val(20); $("#IncreaseRate").val(10); $("#SpeculationRate").val(70); ShowPieInfo(20, 10, 70); } else if (selVal == "3") {//家庭成长期(满巢期) $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[1] + "、" + InsureArry[2] + "、" + InsureArry[3]); //同时还要改变 保 -增 -投的值 $("#HoldRate").val(10); $("#IncreaseRate").val(30); $("#SpeculationRate").val(60); ShowPieInfo(10, 30, 60); } else if (selVal == "4") {//家庭成熟期(离巢期) $("#InsureShow").val("意外险" + "、" + "重疾险" + "、" + "养老年金"); //同时还要改变 保 -增 -投的值 $("#HoldRate").val(10); $("#IncreaseRate").val(40); $("#SpeculationRate").val(50); ShowPieInfo(10, 40, 50); } else if (selVal == "5") {//家庭衰老期(空巢期) $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[5]); //同时还要改变 保 -增 -投的值 $("#HoldRate").val(20); $("#IncreaseRate").val(60); $("#SpeculationRate").val(20); ShowPieInfo(20, 60, 20); } else if (selVal == "0") {//当为选择的时候全部要清空 $("#InsureShow").val(""); $("#HoldRate").val(0); $("#IncreaseRate").val(0); $("#SpeculationRate").val(0); ShowPieInfo(0, 0, 0); } ////HedgeDiv 保值层 AddStar 增值层 SpeculateDiv 投机层 if (selVal != "0") { AddStarSpan("HedgeDiv", "保值层"); AddStarSpan("AddStar", "增值层"); AddStarSpan("SpeculateDiv", "投机层"); } else { ClearStarSpan("HedgeDiv", "保值层"); ClearStarSpan("AddStar", "增值层"); ClearStarSpan("SpeculateDiv", "投机层"); } }; //加载给值方法 var setPercentValueTwo = function (selVal) { if (selVal == "1") {//单身期 $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[1]); } else if (selVal == "2") {//家庭形成期(筑巢期) $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[1] + "、" + InsureArry[2]); } else if (selVal == "3") {//家庭成长期(满巢期) $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[1] + "、" + InsureArry[2] + "、" + InsureArry[3]); } else if (selVal == "4") {//家庭成熟期(离巢期) $("#InsureShow").val("意外险" + "、" + "重疾险" + "、" + "养老年金"); } else if (selVal == "5") {//家庭衰老期(空巢期) $("#InsureShow").val(InsureArry[0] + "、" + InsureArry[5]); } } //已完成规划事件的方案所需投资收益率 var setInsetmentVal = function (PlanId, InsetmentType, ProposalId) { var ProductSelectDiv = $(PlanId).parent().parent().parent().parent().attr("id"); $.ajax({ url: "/Student/InvestmentPlan/RequestInsetmentVal", type: "POST", async: false, dataType: "json", data: { PlanType: InsetmentType, ProposalId: ProposalId }, success: function (data) { if (data != null) { $("#" + ProductSelectDiv).find("input[eacflag='PlanRate']").val(data.TargetAmount); } else { $("#" + ProductSelectDiv).find("input[eacflag='PlanRate']").val("0"); } } }); }; //已完成保险规划的预算金额和欠缺额度 var SetInsurancePlanVal = function (PlanId, InsetmentType, ProposalId) { var ProductSelectDiv = $(PlanId).parent().parent().parent().parent().attr("id"); $.ajax({ url: "/Student/InvestmentPlan/RequestInsetmentVal", type: "POST", async: false, dataType: "json", data: { PlanType: InsetmentType, ProposalId: ProposalId }, success: function (data) { if (data != null) { $("#" + ProductSelectDiv).find("input[eacflag='planLimit']").val(data.planLimit.toMyFixed(2)); $("#" + ProductSelectDiv).find("input[eacflag='planBudget']").val(data.planBudget.toMyFixed(2)); } else { $("#" + ProductSelectDiv).find("input[eacflag='planLimit']").val("0"); $("#" + ProductSelectDiv).find("input[eacflag='planBudget']").val("0"); } } }); } return { setPercentValue: setPercentValue, setPercentValueTwo: setPercentValueTwo, setInsetmentVal: setInsetmentVal, SetInsurancePlanVal: SetInsurancePlanVal } })(); var FundList2 = new arrayHelper("Id");//基金数据集合 var FundList1 = new arrayHelper("Id");//基金数据临时集合 var P2PList = new arrayHelper("Id");//P2P数据临时集合 var P2PList2 = new arrayHelper("Id");//P2P数据临时集合 var BankList = new arrayHelper("Id");//银行数据集合 var InsuranceList = new arrayHelper("Id");//保险数据集合 var GoldList = new arrayHelper("Id");//黄金数据集合 var OldFundList = new arrayHelper("Id");//基金数据临时集合 var OldP2PList = new arrayHelper("Id");//P2P数据临时集合 var OldBankList = new arrayHelper("Id");//银行数据集合 var OldInsuranceList = new arrayHelper("Id");//保险数据集合 var OldGoldList = new arrayHelper("Id");//黄金数据集合 $(function () { IsProposalSave()//客户验证 param = $("#hdParam").val(); var sum = 0; //获取URL参数 ProposalId = $.getUrlParam("ProposalId"); //投资规划信息加载 if (ProposalId != null && ProposalId != "" && ProposalId != undefined) { //加载 LoadInvestmentPlan(ProposalId); //进行计算 productIncomeRateVal(); } else { return false } //绑定下拉选择事件(当前客户所处家庭生命周期) $("#LifeCycleId").unbind("change").change(function () { var obj = new Object(this); SetPercentVal.setPercentValue(obj); //同时要联动有边动态图 productIncomeRateVal(); }); //弹出层OK事件(基金产品) $("#popFundTypes .btn-ok").unbind("click").bind("click", function () { //把临时集合的数据加入到正式集合中 var List = FundList2.GetList(); var Id = 0; if (List.length >= 1) { var l = List.length; var model = List[l - 1]; Id = model.Id + 1; } else { Id = 1; } var list = FundList1.GetList(); var FundDetail = new Object(); var mon = 0; $(list).each(function (i, n) { FundDetail["Id"] = Id; FundDetail["ProposalId"] = ProposalId; FundDetail["FundId"] = n.FundId; FundDetail["FundCode"] = n.FundCode; FundDetail["FundName"] = n.FundName; FundDetail["FundType"] = n.FundType; FundDetail["YearlyEarningsRate"] = n.YearlyEarningsRate; FundDetail["NAV"] = n.NAV; FundDetail["InvestmentType"] = n.InvestmentType; FundDetail["ProductSelectType"] = n.ProductSelectType; FundDetail["index"] = n.index; FundDetail["InvestmentPlanProductId"] = $("#guihua_" + $("#FundHidden").val() + "").val();//已选规划 FundDetail["HostingFees"] = n.HostingFees; FundDetail["InvestmentType"] = $("#InvestmentType").find("option:selected").text();//购买方式 if ($("#InvestmentType").find("option:selected").text() == "一次性购买") { FundDetail["FundInvestMoney"] = $("#FundgoumaiMoney").val();//购买金额 FundDetail["FundInvestmentAllMoney"] = $("#FundgoumaiMoney").val();//投资总额 var myDate = new Date(); FundDetail["FundDeductMoneyTime"] = myDate.toLocaleDateString();//扣款日期 FundDetail["strFundDeductMoneyTime"] = myDate.toLocaleDateString(); } else { FundDetail["FundInvestTime"] = $("#FundInvestTime").find("option:selected").text();//定投期间 FundDetail["FundDeductMoneyTime"] = $("#FundDeductMoneyTime").val();//扣款日期 FundDetail["strFundDeductMoneyTime"] = $("#FundDeductMoneyTime").val();//扣款日期 FundDetail["FundInvestMoney"] = Number($("#FundInvestMoney").val());//投资金额 FundDetail["FundInvestDate"] = Number($("#FundInvestDate").val());//投资年限 var money = Number($("#FundInvestMoney").val()) * (Number($("#FundInvestDate").val()) * 12); FundDetail["FundInvestmentAllMoney"] = money;//投资总额 } mon = Number(n.FundInvestmentAllMoney * n.NAV).toMyFixed(2); }); if ($("#InvestmentType").find("option:selected").text() == "一次性购买") { $("#FundgoumaiMoney").attr("strNumber", mon); $("#FundgoumaiMoney").addClass("CompareNumber2"); $("#FundgoumaiMoney").attr("minfloat", mon); $("#FundgoumaiMoney").attr("msgreg", "请输入" + mon + "到999999999.99的数字"); } //判断文本是否符合要求 if (!VerificationHelper.checkFrom("FundHtml")) { return; } //加入集合 FundList2.Add(FundDetail); OkClick(); //计算 productIncomeRateVal(); }); //单选框选择事件(基金产品) $("#popFundTypes").on("click", "input[name=Fund]", function () { //清除临时集合 FundList1.RemoveAll(); var Fund = new Object(); Fund["Id"] = 0; Fund["FundId"] = $(this).val(); Fund["FundCode"] = $(this).parents("tr").find("td").eq(1).find("span").html(); Fund["FundName"] = $(this).parents("tr").find("td").eq(2).find("span").html(); Fund["FundType"] = $(this).parents("tr").find("td").eq(3).find("span").html(); Fund["YearlyEarningsRate"] = $(this).parents("tr").find("td").eq(4).find("span").html(); Fund["NAV"] = $(this).parents("tr").find("td").eq(5).find("span").html(); Fund["InvestmentType"] = "一次性购买"; Fund["FundInvestmentAllMoney"] = $(this).parents("tr").find("td").eq(6).find("span").html(); Fund["ProductSelectType"] = $(this).attr("tit"); Fund["index"] = $(this).attr("val"); Fund["HostingFees"] = $(this).attr("fes"); FundList1.Add(Fund); }); //弹出层取消事件(基金产品) $("#popFundTypes .btn-cancel").unbind("click").bind("click", function () { $("#popFundTypes input[type='radio']").each(function () { $(this).attr("checked", false); }); //清除临时集合 FundList1.RemoveAll(); dialogHelper.Close("popFundTypes"); }); //搜索按钮(基金产品) $("#popFundTypes .btnSearch").bind("click", function () { var keywords = $.trim($("#FundSearch").val()); var type = $.trim($("#FundSelectType").val()); var index = $("#FundHidden").val(); GetList(type, keywords, index); }); //基金下一步事件 $("#Last").bind("click", function () { var list = FundList1.GetList(); if (list.length == 0) { dialogHelper.Error({ content: "至少选择一样产品!" }) return false; } $(this).hide(); $("#Next").show(); $("#OK").show(); $("#fund1").hide(); $("#fund2").show(); //居中显示 dialogHelper.Reset("popFundTypes"); }); //基金上一步事件 $("#Next").bind("click", function () { $(this).hide(); $("#Next").hide(); $("#OK").hide(); $("#Last").show(); $("#fund1").show(); $("#fund2").hide(); //居中显示 dialogHelper.Reset("popFundTypes"); }); //配置产品下拉框选择事件 $("#InvestmentType").change(function () { dajianhtml2($("#InvestmentType").val()); //居中显示 dialogHelper.Reset("popFundTypes"); }); //弹出层OK事件(P2p产品) $("#popPTPType .btn-ok").unbind("click").bind("click", function () { var mod = $("#popPTPType input[type='radio']:checked"); var ListLength = P2PList2.GetList(); if (ListLength.length > 0) { var DivId = $(mod).parents("tr").find("td").eq(6).find("div").attr("Id") if (DivId == undefined && ListLength[0].P2PInvestmentMoney == "") { if (ListLength[0].P2PInvestmentMoney == null || ListLength[0].P2PInvestmentMoney == "") { dialogHelper.Error({ content: "请输入符合要求的投资金额!" }) return false; } } else if (DivId == undefined && ListLength[0].P2PInvestmentMoney != "") { if (ListLength[0].qitouMoney < ListLength[0].P2PInvestmentMoney) { dialogHelper.Error({ content: "输入金额不能小于投资金额!" }) return false; } } else if (DivId != undefined) { //判断文本是否符合要求 if (!VerificationHelper.checkFrom(DivId)) { return; } } var bj = $("#popPTPType input[type='radio']:checked"); var money = $(mod).parents("tr").find("td").eq(6).find("input").val(); var List = P2PList.GetList(); var Id = 0; if (List.length >= 1) { var l = List.length; var model = List[l - 1]; Id = model.Id + 1; } else { Id = 1; } //首先清理一下集合缓存 var obj = new Object(); obj["Id"] = Id; obj["P2PId"] = $(bj).val(); obj["ProposalId"] = ProposalId; obj["P2PName"] = $(bj).parents("tr").find("td").eq(1).find("div").html(); obj["InvestmentField"] = $(bj).parents("tr").find("td").eq(2).find("div").html(); obj["InvestmentCycle"] = $(bj).parents("tr").find("td").eq(3).find("div").html();//投资周期 obj["EarningsRate"] = $(bj).parents("tr").find("td").eq(5).find("div").html(); obj["BeginInvestmentMoney"] = $(bj).parents("tr").find("td").eq(4).find("div").html(); obj["P2PInvestmentMoney"] = money;//投资金额 obj["ProductSelectType"] = $("#P2PSelectType").val();;//产品选择类型(基础层/保值层..) obj["index"] = $("#P2PHidden").val(); obj["InvestmentPlanProductId"] = $("#guihua_" + $("#P2PHidden").val() + "").val();//已选规划 P2PList.Add(obj); PTPOnclick(); } else { dialogHelper.Error({ content: "至少选择一样产品!" }) return false; } //计算 productIncomeRateVal(); }); //弹出层取消事件(P2p产品) $("#popPTPType .btn-cancel").unbind("click").bind("click", function () { $("#popPTPType input[type='radio']").each(function () { $(this).attr("checked", false); }); dialogHelper.Close("popPTPType"); }); //搜索按钮(P2p产品) $("#popPTPType .btnSearch").bind("click", function () { var keywords = $.trim($("#PTPSearch").val()); var type = $("#P2PSelectType").val(); var index = $("#P2PHidden").val(); pTwoProduct("", keywords, type, index); }); //P2P选中单选事件(P2p产品) $("#popPTPType #mianBodyPTP tbody").on("click", ".P2P", function () { var index = $(this).attr("na"); $("#popPTPType #mianBodyPTP tbody").find("input[name=P2PMoney]").attr("disabled", "disabled").val(""); $("#P2PMoney" + index + "").attr("disabled", false); //清理掉错误提示 $("#popPTPType #mianBodyPTP tbody").find("input[name=P2PMoney]").siblings("div").remove(); }); //单选框选择事件(P2p产品) $("#popPTPType").on("click", "input[name=cz]", function () { //清除临时集合 P2PList2.RemoveAll(); var obj = new Object(); obj["Id"] = 0; obj["P2PName"] = $(this).parents("tr").find("td").eq(1).find("div").html(); obj["InvestmentField"] = $(this).parents("tr").find("td").eq(2).find("div").html(); obj["P2PInvestmentMoney"] = $(this).parents("tr").find("td").eq(6).find("input").val();//投资金额 obj["qitouMoney"] = $(this).parents("tr").find("td").eq(4).find("input").html();//投资金额 P2PList2.Add(obj); }); //弹出层OK事件(银行产品) $("#popBank .btn-ok").unbind("click").bind("click", function () { //判断文本是否符合要求 if (!VerificationHelper.checkFrom("popBank")) { return; } var List = BankList.GetList(); var Id = 0; if (List.length >= 1) { var l = List.length; var model = List[l - 1]; Id = model.Id + 1; } else { Id = 1; } //获取值 var obj = new Object(); obj["Id"] = Id; obj["ProposalId"] = ProposalId; obj["BankName"] = $("#BankName2").find("option:selected").text(); obj["Currency"] = $("#Currency2").find("option:selected").text(); var mod = $("#popBank input[type='radio']:checked"); obj["DepositType"] = $(mod).val(); obj["DepositTime"] = $("#DepositTime1").find("option:selected").text(); obj["YearRate"] = Number($("#BankRate2").html()).toMyFixed(4); obj["DepositMoney"] = $("#DepositMoney1").val(); obj["ProductSelectType"] = $("#BankSelectType").val(); //产品选择类型(基础层/保值层..) obj["InvestmentPlanProductId"] = $("#guihua_" + $("#BankHidden").val() + "").val();//已选规划 obj["index"] = $("#BankHidden").val(); obj["Curcd"] = GetCurrency($("#Currency2").find("option:selected").text()); var rate = GetRate($("#Currency2").find("option:selected").text()); obj["NewRate"] = rate; BankList.Add(obj); BankOKClick(); //计算 productIncomeRateVal(); }); //银行单选框事件(银行产品) $("#popBank input[name=radType1]").on("click", function () { var radType = $(this).val(); if (radType == "活期") { $("#DepositTime1").attr("disabled", true); $("#DepositTime1").addClass("disabled"); $("#DepositTime1").html(""); $("#DepositTime1").removeClass("IsRequired"); var BankName = $("#BankName2").find("option:selected").text() var Currency = $("#Currency2").find("option:selected").text(); var DepositType = $("#DepositTime1").val(); JiSuanBankRate(BankName, Currency, DepositType, radType) } else { $("#DepositTime1").attr("disabled", false); //银行存款类型HTML拼接 DepositTypeHTML(); $("#DepositTime1").addClass("IsRequired"); $("#DepositTime1").removeClass("disabled"); $("#BankRate2").html("--"); } }); //存款币种选择事件(银行产品) $("#Currency2").change(function () { //银行存款类型HTML拼接 DepositTypeHTML(); var BankName = $("#BankName2").find("option:selected").text() var Currency = $("#Currency2").find("option:selected").text(); var DepositType = $("#DepositTime1").val(); var radType = $("#popBank input[type='radio']:checked").val();//定期、活期 JiSuanBankRate(BankName, Currency, DepositType, radType) }); //银行下拉框事件(银行产品) $("#BankName2").change(function () { var valu = $("#BankName2").val(); var html = ''; if (valu != 0) { var model = CurrencyList[valu - 1]; var list = model.Profession; $(list).each(function (i, n) { html += ''; }); $("#Currency2").html(html); } else { $("#Currency2").html(html); $("#DepositTime1").html(html); } $("#BankRate2").html("--"); }); //存款类型下拉框事件(银行产品) $("#DepositTime1").change(function () { var BankName = $("#BankName2").find("option:selected").text() var Currency = $("#Currency2").find("option:selected").text(); var DepositType = $("#DepositTime1").val(); var radType = $("#popBank input[type='radio']:checked").val();//定期、活期 JiSuanBankRate(BankName, Currency, DepositType, radType) }); //保险产品类别选择事件(保险产品) $("#InsuranceType2").change(function () { var valu = $("#InsuranceType2").val(); if (valu != 0) { var model = InsuranceTypeList[valu - 1]; var typeList = model.Profession; var html = ''; $(typeList).each(function (i, n) { html += ''; }); $("#InsuranceType").html(html);//产品类型 $("#ProductName,#InsuranceMoney,#ContinueTime,#PayType").html('');//产品类型 } else { $("#InsuranceType,#ProductName,#InsuranceMoney,#ContinueTime,#PayType").html('');//产品类型 } }); $("#InsuranceType").change(function () { var valu = $("#InsuranceType2").val(); var valu2 = $("#InsuranceType").val(); if (valu != 0) { var model = InsuranceTypeList[valu - 1]; var typeList = model.Profession[valu2 - 1].Value; var html = ''; $(typeList).each(function (i, n) { html += ''; }); $("#ProductName").html(html);//产品名称 $("#InsuranceMoney,#ContinueTime,#PayType").html('');//产品名称 } else { $("#ProductName,#InsuranceMoney,#ContinueTime,#PayType").html('');//产品名称 } }); //产品名称选择事件(保险产品) $("#ProductName").change(function () { var ParentId = $("#ProductName").val(); if (ParentId != 0) { //处理两个特殊产品 if (ParentId == 37 || ParentId == 38) { var strr = ''; if (ParentId == 37) { //友诚优裕投资连结计划 strr += ' '; } else { strr += ' '; } $("#addHtml").html(strr); strr2 = '*年缴保费:'; $("#addHtml2").html(strr2); } else { var strr = ' '; strr += ' '; $("#addHtml").html(strr); strr2 = '*保险金额:'; $("#addHtml2").html(strr2); //保险金额 var list = CostList; var html = ''; $(list).each(function (i, n) { if (n.Id == ParentId) { $(n.Profession).each(function (a, b) { html += ''; }); return; } }); $("#InsuranceMoney").html(""); $("#InsuranceMoney").append(html); } //保险期间 var list2 = PeriodList; var html2 = ''; $(list2).each(function (i, n2) { if (n2.Id == ParentId) { $(n2.Profession).each(function (a, b2) { html2 += ''; }); return; } }); //保险金额 $("#InsuranceMoney").html(""); $("#InsuranceMoney").append(html); //保险期间 $("#ContinueTime").html(""); $("#ContinueTime").append(html2); //缴费方式清空 $("#PayType").html(''); } else { $("#InsuranceMoney,#ContinueTime,#PayType").html(''); } }); //保险期间选择事件(保险产品) $("#ContinueTime").change(function () { var ParentId = $("#ContinueTime").find("option:selected").attr("name"); if (ParentId != 0) { var list = ChargeWayList; var html = ''; $(list).each(function (i, n) { if (n.Id == Number(ParentId)) { $(n.Profession).each(function (a, b) { html += ''; }); } }); //缴费方式 $("#PayType").html(html); } else { $("#PayType").html(''); } }); //弹出层OK事件(保险产品) $("#InsuranceCheck .btn-ok").unbind("click").bind("click", function () { //页面字段检测 if (!VerificationHelper.checkFrom("InsuranceCheck")) { return; } //var ProductName = $("#ProductName").find("option:selected").text() var InsuranceMoney = 0; //var BaoFei = 0; //if (ProductName != "友诚优裕投资连结计划" && ProductName != "聚财宝两全保险(万能型)") { //InsuranceMoney = $("#InsuranceMoney").find("option:selected").val();//保险金额 var ProductId = $("#ProductName").val(); if (ProductId == 37 || ProductId == 38) { InsuranceMoney = $("#baofeiId").val(); } else { InsuranceMoney = $("#InsuranceMoney").val(); } var PayType = $("#PayType").val(); var Sex = $("#Sex").val() var Age = $("#Age").val() var fee = InquiryRate(ProductId, InsuranceMoney, PayType, Sex, Age); if (fee == 0) { //dialogHelper.Error({ content: "您选择的产品不符合要求,请重新选择!" }) return; } if (ProductId == 37 || ProductId == 38) { var _temp = InsuranceMoney; InsuranceMoney = fee; fee = _temp; } //var InsuranceMoney2 = $("#InsuranceMoney").find("option:selected").val();//保险金额 //var times = Scale(InsuranceMoney2, ProductName) //BaoFei = fee; //} else { // BaoFei = $("#baofeiId").val(); // var ProductId = $("#ProductName").val();//产品Id // if (ProductName == "友诚优裕投资连结计划") { // if ($("#Age").val() >= 18 && $("#Age").val() <= 69) { // var Continue = $("#ContinueTime").val();//保险期间 // InsuranceMoney = CountBaoEr(Continue, BaoFei, ProductId); // } else { // dialogHelper.Error({ content: "您选择的产品不符合要求,请重新选择!" }) // return; // } // } else if (ProductName == "聚财宝两全保险(万能型)") { // if ($("#Age").val() >= 0 && $("#Age").val() <= 80) { // var Continue = $("#ContinueTime").val();//保险期间 // var Pay = $("#PayType").find("option:selected").attr("vals"); // if (Pay == "趸交") { // Pay = 1; // } // InsuranceMoney = CountBaoEr(Pay, BaoFei, ProductId); // } else { // dialogHelper.Error({ content: "您选择的产品不符合要求,请重新选择!" }) // return; // } // } //} var List = InsuranceList.GetList(); var Id = 0; if (List.length >= 1) { var l = List.length; var model = List[l - 1]; Id = model.Id + 1; } else { Id = 1; } var obj = new Object(); obj["Id"] = Id; obj["ProposalId"] = ProposalId; obj["InsuranceType1"] = $("#InsuranceType2").find("option:selected").text(); obj["InsuranceType2"] = $("#InsuranceType").find("option:selected").text(); obj["InsuranceName"] = $("#ProductName").find("option:selected").text(); obj["InsuranceMoney"] = InsuranceMoney; obj["InsuranceTime"] = $("#ContinueTime").find("option:selected").text(); obj["ChargeType"] = $("#PayType").find("option:selected").text(); obj["Theinsured"] = $("#Theinsured").val(); obj["Sex"] = $("#Sex").val(); obj["Age"] = $("#Age").val(); obj["AnnualPremium"] = (fee); obj["ProductSelectType"] = $("#InsuranceSelectType").val(); obj["index"] = $("#InsuranceHidden").val(); obj["InvestmentPlanProductId"] = $("#guihua_" + $("#InsuranceHidden").val() + "").val();//已选规划 InsuranceList.Add(obj); InsuranceOKClick(); //计算 productIncomeRateVal(); }) //弹出层取消事件(保险产品) $("#InsuranceCheck .btn-cancel").unbind("click").bind("click", function () { dialogHelper.Close("InsuranceCheck"); }); //下一步事件 $("#Nextbtns").unbind("click").bind("click", function () { //页面字段检测 if (!VerificationHelper.checkFrom("Insurance_1")) { return; } //显示隐藏 $("#Insurance_1").hide(); $("#Insurance_2").show(); $("#Lastbtns").show(); $("#btns").show(); $("#Nextbtns").hide(); //居中显示 dialogHelper.Reset("InsuranceCheck"); }) //上一步事件 $("#Lastbtns").unbind("click").bind("click", function () { //显示隐藏 $("#Insurance_1").show(); $("#Insurance_2").hide(); $("#Lastbtns").hide(); $("#btns").hide(); $("#Nextbtns").show(); //居中显示 dialogHelper.Reset("InsuranceCheck"); }) //弹出层OK事件(黄金产品) $("#popGold .btn-ok").unbind("click").bind("click", function () { //判断文本是否符合要求 if (!VerificationHelper.checkFrom("popGold")) { return; } var List = GoldList.GetList(); var Id = 0; if (List.length >= 1) { var l = List.length; var model = List[l - 1]; Id = model.Id + 1; } else { Id = 1; } //获取值 var obj = new Object(); obj["Id"] = Id; obj["ProposalId"] = ProposalId; obj["GoldBuyType"] = $("#GoldBuyType").find("option:selected").text();//黄金购买方式 if ($("#GoldBuyType").find("option:selected").text() == "单笔购买") { obj["GoldInvestMoney"] = $("#goumaiMoney").val();//购买金额 var myDate = new Date(); obj["GoldDeductMoneyTime"] = myDate.toLocaleDateString();//黄金扣款日期 obj["strGoldDeductMoneyTime"] = myDate.toLocaleDateString();//黄金扣款日期 } else { obj["GoldInvestTime"] = $("#GoldInvestTime").find("option:selected").text();//黄金定投期间 obj["GoldDeductMoneyTime"] = $("#GoldDeductMoneyTime").val();//黄金扣款日期 obj["strGoldDeductMoneyTime"] = $("#GoldDeductMoneyTime").val();//黄金扣款日期 obj["GoldInvestMoney"] = $("#GoldInvestMoney").val();//黄金投资金额 obj["GoldInvestDate"] = $("#GoldInvestDate").val();//黄金投资年限 } obj["ProductSelectType"] = $("#GoldSelectType").val(); //产品选择类型(基础层/保值层..) obj["InvestmentPlanProductId"] = $("#guihua_" + $("#GoldHidden").val() + "").val();//已选规划 obj["index"] = $("#GoldHidden").val(); obj["NearAnnualYield"] = GetGoldRate(); GoldList.Add(obj); GoldOnclick(); //计算 productIncomeRateVal(); }); //弹出层取消事件(黄金产品) $("#popGold .btn-cancel").unbind("click").bind("click", function () { dialogHelper.Close("popGold"); }); //下拉框选择事件 $("#GoldBuyType").change(function () { dajianhtml($("#GoldBuyType").val()); //居中显示 dialogHelper.Reset("popGold"); }); //点击新增产品选择区域 $("#Add").unbind("click").bind("click", function () { var num = $("div[eacflag='ProductSelect']").size(); if (num == 0) { AddList(num); } else { var mo = $("div[eacflag='ProductSelect']")[num - 1]; var DivId = $(mo).attr("id"); var obj = DivId.split('_'); var ind = obj[1]; if (num < 8) { AddList(ind); } else { dialogHelper.Error({ content: "产品组合最多添加8个!" }); } } }); //规划目标选择事件 $("body").on("change", ".guihua", function () { var type = $(this).val(); var id = $(this).attr("id"); var Num = id.split('_'); PlanTarget(type, Num[1]); var InsetmentType = $(this).val();//获得值 var obj = new Object(this); if (InsetmentType == 5) { SetPercentVal.SetInsurancePlanVal(obj, InsetmentType, ProposalId); } else { SetPercentVal.setInsetmentVal(obj, InsetmentType, ProposalId); } var mysel = $(this); var oldvalue = mysel.data("last");//这次改变之前的值 mysel.data("last", mysel.val()); //每次改变都附加上去,以便下次变化时获取 var newvalue = mysel.val(); //当前选中值 //改变规划目标修改集合数据 UpdateGuiHua(oldvalue, newvalue, Num[1]); //计算 productIncomeRateVal(); }); //定投配置弹框OK事件 $("#popMonthCast .btn-ok").unbind("click").bind("click", function () { //后关闭 dialogHelper.Close("popMonthCast"); }); //保存 $("#btnSave").bind("click", function () { SaveProductPlan(); }); //下一步事件 $("#btnNext").unbind("click").bind("click", function () { SaveProductPlan(0); if (TagNavi) { window.location.href = "/Student/TaxPlan/index" + param; } }); //移出事件 $("#HoldRate,#IncreaseRate,#SpeculationRate").unbind("blur").blur(function () { var HoldRate = $.trim($("#HoldRate").val()); var IncreaseRate = $.trim($("#IncreaseRate").val()); var SpeculationRate = $.trim($("#SpeculationRate").val()); var ckinputId = $(this).attr("id"); if (HoldRate != "" && IncreaseRate != "" && SpeculationRate != "") { //页面字段检测 if (!VerificationHelper.checkFrom("headInvestment", function () { sum = CalcPerCent(HoldRate, IncreaseRate, SpeculationRate); if (sum * 1 != 100) { showValidateMsg(ckinputId, "保值层,增值层,投机层之和必须为百分之百"); }; })) { return; } //同时还要加个*号 ////HedgeDiv 保值层 AddStar 增值层 SpeculateDiv 投机层 if (HoldRate > 0) { AddStarSpan("HedgeDiv", "保值层"); } else { //去除星号 ClearStarSpan("HedgeDiv", "保值层"); } if (IncreaseRate > 0) { AddStarSpan("AddStar", "增值层"); } else { //去除星号 ClearStarSpan("AddStar", "增值层"); } if (SpeculationRate > 0) { AddStarSpan("SpeculateDiv", "投机层"); } else { //去除星号 ClearStarSpan("SpeculateDiv", "投机层"); } //运算结果正常的话就执行 ShowPieInfo(HoldRate * 1, IncreaseRate * 1, SpeculationRate * 1); //然后开始计算 productIncomeRateVal(); } }); //保存原值 SaveDefaultValueCommon("FinanceInvestmentPlanDiv"); }); //投资规划信息加载 function LoadInvestmentPlan(ProposalId) { $.ajax({ url: "/Student/InvestmentPlan/LoadInvestmentPlan", type: "POST", async: false, dataType: "json", data: { ProposalId: ProposalId }, success: function (data) { if (data != null) { var obj = new Object(data); analysisData(obj); } else { AddList(0); } }, error: function (data) { alert("异常错误!"); } }); }; //分解data数据 function analysisData(data) { $(data).each(function (a, b) { var InvestmentPlanProductList = b.InvestmentPlanProductList; var Id = b.Id; var LifeCycleId = b.LifeCycleId; var HoldRate = b.HoldRate * 1; var IncreaseRate = b.IncreaseRate * 1; var SpeculationRate = b.SpeculationRate * 1; var Analysis = b.Analysis; $("#InvestmentPlanId").val(Id); $("#LifeCycleId").val(LifeCycleId); $("#HoldRate").val(HoldRate); $("#IncreaseRate").val(IncreaseRate); $("#SpeculationRate").val(SpeculationRate); $("#Analysis").val(Analysis); //赋值饼状图 ShowPieInfo(HoldRate, IncreaseRate, SpeculationRate) if (data.InsureShow == null || data.InsureShow == "") { //同时还要给隔壁的对象赋值 SetPercentVal.setPercentValueTwo(LifeCycleId); } else { $("#InsureShow").val(data.InsureShow); } if (InvestmentPlanProductList != null && InvestmentPlanProductList.length > 0) { $(InvestmentPlanProductList).each(function (index, dom) { $(dom.FundList).each(function (c, d) { if (d.FundDeductMoneyTime.indexOf("Date")) { d.FundDeductMoneyTime = d.strFundDeductMoneyTime; } FundList2.Add(d); OldFundList.Add(d); }); $(dom.P2PList).each(function (a, b) { P2PList.Add(b); OldP2PList.Add(b); }); $(dom.BankList).each(function (e, f) { BankList.Add(f); OldBankList.Add(f); }); $(dom.InsuranceList).each(function (g, h) { InsuranceList.Add(h); OldInsuranceList.Add(h); }); $(dom.GoldList).each(function (i, j) { if (j.GoldDeductMoneyTime.indexOf("Date")) { var ticks = j.GoldDeductMoneyTime.replace("/Date(", "").replace(")/", ""); var date = new Date(parseInt(ticks)); j.GoldDeductMoneyTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate(); } GoldList.Add(j); OldGoldList.Add(j); }); AddList2(dom.index, dom); $("#guihua_" + (dom.index) + "").val(dom.PlanId); if (dom.PlanId == 5) { $("#planLimit_" + (dom.index) + "").val(dom.PlanLimit); $("#planBudget_" + (dom.index) + "").val(dom.PlanBudget); $("#productInsured_" + (dom.index) + "").val(dom.ProductInsured); $("#productPremium_" + (dom.index) + "").val(dom.ProductPremium); } else { $("#investRate_" + (dom.index) + "").val(dom.PlanRate); $("#productRate_" + (dom.index) + "").val(dom.ProductRate); $("#productMoney_" + (dom.index) + "").val(dom.ProductMoney); } }); CreateHtml1(); CreateHtml2(); CreateHtml3(); CreateHtml4(); CreateHtml5(); } }); } //弹出基金列表 function PupCashFund(str, index) { //隐藏按钮 $("#Last").show(); $("#Next").hide(); $("#OK").hide(); $("#fund1").show(); $("#fund2").hide(); //清空文本框 $("#popFundTypes").find("select").val("0"); $("#popFundTypes").find("input[type=text]").val(""); //清除临时集合 FundList1.RemoveAll(); //先可以获得对对象的值 GetList(str, "", index); dialogHelper.Show("popFundTypes", 800); dajianhtml2(0); } //获得基金产品 function GetList(Type, keyword, index) { var code = ""; var pageindex = 0; var pageSize = 10; if (typeof keyword == "undefined") { keyword = ""; } var url = "/Student/FundProduct/GetFundProductList"; keyword = keyword.replace(/[<>&"]/g, function (c) { return { '<': '<', '>': '>', '&': '&', '"': '"', '"': '"', "'": '′', "'": '′' }[c]; }),//搜索关键字 $("#FundHidden").val(index); $("#FundSelectType").val(Type); pageHelper.Init({ url: url, type: "POST", pageDiv: "#pageDiv", data: { keywords: keyword, pageindex: 1, pageSize: 10 }, bind: function (data) { var html = ""; if (data.Data.length > 0) { $(data.Data).each(function (i, dom) { //每行html var trHtml = ""; trHtml += "
代码 | '; html += '产品名称 | '; html += '基金类型 | '; html += '近一年收益率 | '; html += '最新净值(元) | '; html += '投资方式 | '; html += '投资总额(元) | '; html += '操作 | '; html += '|
---|---|---|---|---|---|---|---|---|
' + n.FundCode + ' | '; html += '' + n.FundName + ' | ';
html += '' + n.FundType + ' | '; html += '' + n.YearlyEarningsRate + '% | '; html += '' + Number(n.NAV).toMyFixed(4) + ' | '; if (n.InvestmentType == "定期定额投资") { html += ''; } else { html += ' | 一次性购买 | ';
}
html += ' ' + Number(n.FundInvestmentAllMoney).toMyFixed(2) + ' | '; html += '删除 | '; html += '
代码 | '; html += '产品名称 | '; html += '基金类型 | '; html += '近一年收益率 | '; html += '最新净值(元) | '; html += '投资方式 | '; html += '投资总额(元) | '; html += '操作 | '; html += '|
---|---|---|---|---|---|---|---|---|
' + n.FundCode + ' | '; html += '' + n.FundName + ' | ';
html += '' + n.FundType + ' | '; html += '' + n.YearlyEarningsRate + '% | '; html += '' + Number(n.NAV).toMyFixed(4) + ' | '; if (n.InvestmentType == "定期定额投资") { html += ''; } else { html += ' | 一次性购买 | ';
}
html += ' ' + Number(n.FundInvestmentAllMoney).toMyFixed(2) + ' | '; html += '删除 | '; html += '
银行名称 | '; html += '存款币种 | '; html += '存款类型 | '; html += '存期 | '; html += '年利率(%) | '; html += '存款金额 | '; html += '操作 | '; html += '|
---|---|---|---|---|---|---|---|
' + n.BankName + ' | ';
html += '' + n.Currency + ' | ';
html += '' + n.DepositType + ' | '; if (n.DepositType == "活期") { html += '-- | '; } else { html += '' + n.DepositTime + ' | '; } html += '' + Number(n.YearRate).toMyFixed(4) + ' | '; html += '' + Number(n.DepositMoney).toMyFixed(2) + ' | '; html += '删除 | '; html += '
银行名称 | '; html += '存款币种 | '; html += '存款类型 | '; html += '存期 | '; html += '年利率(%) | '; html += '存款金额 | '; html += '操作 | '; html += '|
---|---|---|---|---|---|---|---|
' + n.BankName + ' | ';
html += '' + n.Currency + ' | ';
html += '' + n.DepositType + ' | '; if (n.DepositType == "活期") { html += '-- | '; } else { html += '' + n.DepositTime + ' | '; } html += '' + Number(n.YearRate).toMyFixed(4) + ' | '; html += '' + Number(n.DepositMoney).toMyFixed(2) + ' | '; html += '删除 | '; html += '
产品名称 | '; html += '所属平台 | '; html += '投资周期(月) | '; html += '预期收益率(%) | '; html += '投资金额(元) | '; html += '操作 | '; html += '
---|---|---|---|---|---|
' + n.P2PName + ' | ';
html += '' + n.InvestmentField + ' | ';
html += '' + n.InvestmentCycle + ' | '; html += '' + n.EarningsRate + ' | '; html += '' + Number(n.P2PInvestmentMoney).toMyFixed(2) + ' | '; html += '删除 | '; html += '
产品名称 | '; html += '所属平台 | '; html += '投资周期(月) | '; html += '预期收益率(%) | '; html += '投资金额(元) | '; html += '操作 | '; html += '
---|---|---|---|---|---|
' + n.P2PName + ' | ';
html += '' + n.InvestmentField + ' | ';
html += '' + n.InvestmentCycle + ' | '; html += '' + n.EarningsRate + ' | '; html += '' + Number(n.P2PInvestmentMoney).toMyFixed(2) + ' | '; html += '删除 | '; html += '
被保险人 | '; html += '险种类别 | '; html += '产品名称 | '; html += '保险金额(万元) | '; html += '保险期间 | '; html += '缴费方式 | '; html += '年缴保费(元) | '; html += '操作 | '; html += '
---|---|---|---|---|---|---|---|
' + n.Theinsured + ' | ';
html += '' + n.InsuranceType2 + ' | ';
html += '' + n.InsuranceName + ' | ';
html += '' + n.InsuranceMoney + ' | '; html += '' + n.InsuranceTime + ' | '; html += '' + n.ChargeType + ' | '; html += '' + Number(n.AnnualPremium).toMyFixed(2) + ' | '; html += '删除 | '; html += '
被保险人 | '; html += '险种类别 | '; html += '产品名称 | '; html += '保险金额(万元) | '; html += '保险期间 | '; html += '缴费方式 | '; html += '年缴保费(元) | '; html += '操作 | '; html += '
---|---|---|---|---|---|---|---|
' + n.Theinsured + ' | ';
html += '' + n.InsuranceType2 + ' | ';
html += '' + n.InsuranceName + ' | ';
html += '' + n.InsuranceMoney + ' | '; html += '' + n.InsuranceTime + ' | '; html += '' + n.ChargeType + ' | '; html += '' + Number(n.AnnualPremium).toMyFixed(2) + ' | '; html += '删除 | '; html += '
投资总额(元) | '; html += '购买方式 | '; html += '近一年收益率(%) | '; html += '操作 | '; html += '||
---|---|---|---|---|---|
' + money + ' | ';
html += '单笔购买 | ';
} else {
money = n.GoldInvestMoney * n.GoldInvestDate * 12;
html += '' + money + ' | ';
html += ''; } //近一年收益率(%) html += ' | ' + Number(n.NearAnnualYield).toMyFixed(2) + ' | '; html += '删除 | '; html += '
投资总额(元) | '; html += '购买方式 | '; html += '近一年收益率(%) | '; html += '操作 | '; html += '||
---|---|---|---|---|---|
' + money + ' | ';
html += '单笔购买 | ';
} else {
money = n.GoldInvestMoney * n.GoldInvestDate * 12;
html += '' + money + ' | ';
html += ''; } html += ' | 0.02 | '; html += '删除 | '; html += '
基础层 | '; trHtml += '
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += " ";
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
保值层 |
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += '';
trHtml += ' ';
trHtml += " ";
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
增值层 |
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += '';
trHtml += ' ';
trHtml += " ";
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
投机层 |
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += '';
trHtml += ' ';
trHtml += " ";
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
代码 | '; html1 += '产品名称 | '; html1 += '基金类型 | '; html1 += '近一年收益率 | '; html1 += '最新净值(元) | '; html1 += '投资方式 | '; html1 += '投资总额(元) | '; html1 += '操作 | '; html1 += '||
---|---|---|---|---|---|---|---|---|---|
' + n.FundCode + ' | '; html1_1 += '' + n.FundName + ' | ';
html1_1 += '' + n.FundType + ' | '; html1_1 += '' + n.YearlyEarningsRate + '% | '; if (n.NAV == 0) { html1_1 += '-- | '; } else { html1_1 += '' + n.NAV.toMyFixed(4) + ' | '; } if (n.InvestmentType == "定期定额投资") { html1_1 += ''; } else { html1_1 += ' | 一次性购买 | ';
}
html1_1 += ' ' + n.FundInvestmentAllMoney.toMyFixed(2) + ' | '; html1_1 += '删除 | '; html1_1 += '
' + n.FundCode + ' | '; html1_2 += '' + n.FundName + ' | ';
html1_2 += '' + n.FundType + ' | '; html1_2 += '' + n.YearlyEarningsRate + '% | '; if (n.NAV == 0) { html1_2 += '-- | '; } else { html1_2 += '' + n.NAV.toMyFixed(4) + ' | '; } if (n.InvestmentType == "定期定额投资") { html1_2 += ''; } else { html1_2 += ' | 一次性购买 | ';
}
html1_2 += ' ' + n.FundInvestmentAllMoney.toMyFixed(2) + ' | '; html1_2 += '删除 | '; html1_2 += '
' + n.FundCode + ' | '; html1_3 += '' + n.FundName + ' | ';
html1_3 += '' + n.FundType + ' | '; html1_3 += '' + n.YearlyEarningsRate + '% | '; if (n.NAV == 0) { html1_3 += '-- | '; } else { html1_3 += '' + n.NAV.toMyFixed(4) + ' | '; } if (n.InvestmentType == "定期定额投资") { html1_3 += ''; } else { html1_3 += ' | 一次性购买 | ';
}
html1_3 += ' ' + n.FundInvestmentAllMoney.toMyFixed(2) + ' | '; html1_3 += '删除 | '; html1_3 += '
' + n.FundCode + ' | '; html1_4 += '' + n.FundName + ' | ';
html1_4 += '' + n.FundType + ' | '; html1_4 += '' + n.YearlyEarningsRate + '% | '; if (n.NAV == 0) { html1_4 += '-- | '; } else { html1_4 += '' + n.NAV.toMyFixed(4) + ' | '; } if (n.InvestmentType == "定期定额投资") { html1_4 += ''; } else { html1_4 += ' | 一次性购买 | ';
}
html1_4 += ' ' + n.FundInvestmentAllMoney.toMyFixed(2) + ' | '; html1_4 += '删除 | '; html1_4 += '
银行名称 | '; html1 += '存款币种 | '; html1 += '存款类型 | '; html1 += '存期 | '; html1 += '年利率(%) | '; html1 += '存款金额 | '; html1 += '操作 | '; html1 += '|
---|---|---|---|---|---|---|---|
' + n.BankName + ' | ';
html1_1 += '' + n.Currency + ' | ';
html1_1 += '' + n.DepositType + ' | '; if (n.DepositType == "活期") { html1_1 += '-- | '; } else { html1_1 += '' + n.DepositTime + ' | '; } html1_1 += '' + n.YearRate.toMyFixed(4) + ' | '; html1_1 += '' + n.DepositMoney.toMyFixed(2) + ' | '; html1_1 += '删除 | '; html1_1 += '
' + n.BankName + ' | ';
html1_2 += '' + n.Currency + ' | ';
html1_2 += '' + n.DepositType + ' | '; if (n.DepositType == "活期") { html1_2 += '-- | '; } else { html1_2 += '' + n.DepositTime + ' | '; } html1_2 += '' + n.YearRate.toMyFixed(4) + ' | '; html1_2 += '' + n.DepositMoney.toMyFixed(2) + ' | '; html1_2 += '删除 | '; html1_2 += '
' + n.BankName + ' | ';
html1_3 += '' + n.Currency + ' | ';
html1_3 += '' + n.DepositType + ' | '; if (n.DepositType == "活期") { html1_3 += '-- | '; } else { html1_3 += '' + n.DepositTime + ' | '; } html1_3 += '' + n.YearRate.toMyFixed(4) + ' | '; html1_3 += '' + n.DepositMoney.toMyFixed(2) + ' | '; html1_3 += '删除 | '; html1_3 += '
' + n.BankName + ' | ';
html1_4 += '' + n.Currency + ' | ';
html1_4 += '' + n.DepositType + ' | '; if (n.DepositType == "活期") { html1_4 += '-- | '; } else { html1_4 += '' + n.DepositTime + ' | '; } html1_4 += '' + n.YearRate.toMyFixed(4) + ' | '; html1_4 += '' + n.DepositMoney.toMyFixed(2) + ' | '; html1_4 += '删除 | '; html1_4 += '
产品名称 | '; html1 += '所属平台 | '; html1 += '投资周期(月) | '; html1 += '预期收益率(%) | '; html1 += '投资金额(元) | '; html1 += '操作 | '; html1 += '
---|---|---|---|---|---|
' + n.P2PName + ' | ';
html1_1 += '' + n.InvestmentField + ' | ';
html1_1 += '' + n.InvestmentCycle + ' | '; html1_1 += '' + n.EarningsRate + ' | '; html1_1 += '' + n.P2PInvestmentMoney.toMyFixed(2) + ' | '; html1_1 += '删除 | '; html1_1 += '
' + n.P2PName + ' | ';
html1_2 += '' + n.InvestmentField + ' | ';
html1_2 += '' + n.InvestmentCycle + ' | '; html1_2 += '' + n.EarningsRate + ' | '; html1_2 += '' + n.P2PInvestmentMoney.toMyFixed(2) + ' | '; html1_2 += '删除 | '; html1_2 += '
' + n.P2PName + ' | ';
html1_3 += '' + n.InvestmentField + ' | ';
html1_3 += '' + n.InvestmentCycle + ' | '; html1_3 += '' + n.EarningsRate + ' | '; html1_3 += '' + n.P2PInvestmentMoney.toMyFixed(2) + ' | '; html1_3 += '删除 | '; html1_3 += '
' + n.P2PName + ' | ';
html1_4 += '' + n.InvestmentField + ' | ';
html1_4 += '' + n.InvestmentCycle + ' | '; html1_4 += '' + n.EarningsRate + ' | '; html1_4 += '' + n.P2PInvestmentMoney.toMyFixed(2) + ' | '; html1_4 += '删除 | '; html1_4 += '
被保险人 | '; html1 += '险种类别 | '; html1 += '产品名称 | '; html1 += '保险金额(万元) | '; html1 += '保险期间 | '; html1 += '缴费方式 | '; html1 += '年缴保费(元) | '; html1 += '操作 | '; html1 += '
---|---|---|---|---|---|---|---|
' + n.Theinsured + ' | ';
html1_1 += '' + n.InsuranceType2 + ' | ';
html1_1 += '' + n.InsuranceName + ' | ';
html1_1 += '' + n.InsuranceMoney + ' | '; html1_1 += '' + n.InsuranceTime + ' | '; html1_1 += '' + n.ChargeType + ' | '; html1_1 += '' + n.AnnualPremium.toMyFixed(2) + ' | '; html1_1 += '删除 | '; html1_1 += '
' + n.Theinsured + ' | ';
html1_2 += '' + n.InsuranceType2 + ' | ';
html1_2 += '' + n.InsuranceName + ' | ';
html1_2 += '' + n.InsuranceMoney + ' | '; html1_2 += '' + n.InsuranceTime + ' | '; html1_2 += '' + n.ChargeType + ' | '; html1_2 += '' + n.AnnualPremium.toMyFixed(2) + ' | '; html1_2 += '删除 | '; html1_2 += '
' + n.Theinsured + ' | ';
html1_3 += '' + n.InsuranceType2 + ' | ';
html1_3 += '' + n.InsuranceName + ' | ';
html1_3 += '' + n.InsuranceMoney + ' | '; html1_3 += '' + n.InsuranceTime + ' | '; html1_3 += '' + n.ChargeType + ' | '; html1_3 += '' + n.AnnualPremium.toMyFixed(2) + ' | '; html1_3 += '删除 | '; html1_3 += '
' + n.Theinsured + ' | ';
html1_4 += '' + n.InsuranceType2 + ' | ';
html1_4 += '' + n.InsuranceName + ' | ';
html1_4 += '' + n.InsuranceMoney + ' | '; html1_4 += '' + n.InsuranceTime + ' | '; html1_4 += '' + n.ChargeType + ' | '; html1_4 += '' + n.AnnualPremium.toMyFixed(2) + ' | '; html1_4 += '删除 | '; html1_4 += '
投资总额(元) | '; html1 += '购买方式 | '; html1 += '近一年收益率(%) | '; html1 += '操作 | '; html1 += '||
---|---|---|---|---|---|
' + money + ' | ';
html1_1 += '单笔购买 | ';
} else {
money = n.GoldInvestMoney * n.GoldInvestDate * 12;
html1_1 += '' + money.toMyFixed(2) + ' | ';
html1_1 += ''; } //近一年收益率(%) html1_1 += ' | ' + Number(n.NearAnnualYield).toMyFixed(2) + ' | '; html1_1 += '删除 | '; html1_1 += '
' + money + ' | ';
html1_2 += '单笔购买 | ';
} else {
money = n.GoldInvestMoney * n.GoldInvestDate * 12;
html1_2 += '' + money.toMyFixed(2) + ' | ';
html1_2 += ''; } //近一年收益率(%) html1_2 += ' | ' + Number(n.NearAnnualYield).toMyFixed(2) + ' | '; html1_2 += '删除 | '; html1_2 += '
' + money + ' | ';
html1_3 += '单笔购买 | ';
} else {
money = n.GoldInvestMoney * n.GoldInvestDate * 12;
html1_3 += '' + money.toMyFixed(2) + ' | ';
html1_3 += ''; } //近一年收益率(%) html1_3 += ' | ' + Number(n.NearAnnualYield).toMyFixed(2) + ' | '; html1_3 += '删除 | '; html1_3 += '
' + money + ' | ';
html1_4 += '单笔购买 | ';
} else {
money = n.GoldInvestMoney * n.GoldInvestDate * 12;
html1_4 += '' + money.toMyFixed(2) + ' | ';
html1_4 += ''; } //近一年收益率(%) html1_4 += ' | ' + Number(n.NearAnnualYield).toMyFixed(2) + ' | '; html1_4 += '删除 | '; html1_4 += '
基础层 | '; trHtml += '
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += " ";
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
保值层 |
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += '';
trHtml += ' ';
trHtml += " ";
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
增值层 |
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += '';
trHtml += ' ';
trHtml += " ";
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '
投机层 |
';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += '';
trHtml += ' ';
trHtml += " ";
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' ';
trHtml += ' ';
trHtml += '';
trHtml += ' ';
trHtml += ' | ';
trHtml += '