|
@@ -477,7 +477,7 @@ |
|
@@ -477,7 +477,7 @@ |
477
|
var subjoin_product_name = $('.subjoin_product_name');//附加险产品名
|
477
|
var subjoin_product_name = $('.subjoin_product_name');//附加险产品名
|
478
|
var subjoin_insurance_type_id = $('.subjoin_insurance_type_id');//保单类型
|
478
|
var subjoin_insurance_type_id = $('.subjoin_insurance_type_id');//保单类型
|
479
|
var subjoin_price = $('.subjoin_price');//保险金额
|
479
|
var subjoin_price = $('.subjoin_price');//保险金额
|
480
|
- var subjoin_time = $('.subjoin_time');//保险时间
|
480
|
+ //var subjoin_time = $('.subjoin_time');//保险时间
|
481
|
var payment_time = $('.payment_time');//缴费期限
|
481
|
var payment_time = $('.payment_time');//缴费期限
|
482
|
var subjoin_pay_method_price = $('.subjoin_pay_method_price');//期缴保费
|
482
|
var subjoin_pay_method_price = $('.subjoin_pay_method_price');//期缴保费
|
483
|
var subjoin_guarantee_deadline_time = $('.subjoin_guarantee_deadline_time');//保障期限
|
483
|
var subjoin_guarantee_deadline_time = $('.subjoin_guarantee_deadline_time');//保障期限
|
|
@@ -502,10 +502,12 @@ |
|
@@ -502,10 +502,12 @@ |
502
|
}else if(subjoin_price.eq(i).val() == ''){
|
502
|
}else if(subjoin_price.eq(i).val() == ''){
|
503
|
toast("附加险"+(i+1)+"的保险金额不能为空")
|
503
|
toast("附加险"+(i+1)+"的保险金额不能为空")
|
504
|
return false;
|
504
|
return false;
|
505
|
- }else if(1==''){//subjoin_time.eq(i).text() == ''){
|
|
|
506
|
- toast("附加险"+(i+1)+"的保险时间不能为空")
|
|
|
507
|
- return false;
|
|
|
508
|
- }else if(payment_time.eq(i).val() == ''){
|
505
|
+ }
|
|
|
506
|
+ // else if(1==''){//subjoin_time.eq(i).text() == ''){
|
|
|
507
|
+ // toast("附加险"+(i+1)+"的保险时间不能为空")
|
|
|
508
|
+ // return false;
|
|
|
509
|
+ // }
|
|
|
510
|
+ else if(payment_time.eq(i).val() == ''){
|
509
|
toast("附加险"+(i+1)+"的缴费期限不能为空")
|
511
|
toast("附加险"+(i+1)+"的缴费期限不能为空")
|
510
|
return false;
|
512
|
return false;
|
511
|
}else if(subjoin_pay_method_price.eq(i).val() == ''){
|
513
|
}else if(subjoin_pay_method_price.eq(i).val() == ''){
|
|
@@ -518,7 +520,7 @@ |
|
@@ -518,7 +520,7 @@ |
518
|
subjoin_product_name_arr.push(subjoin_product_name.eq(i).val());
|
520
|
subjoin_product_name_arr.push(subjoin_product_name.eq(i).val());
|
519
|
subjoin_insurance_type_id_arr.push(subjoin_insurance_type_id.eq(i).attr('data-id'));
|
521
|
subjoin_insurance_type_id_arr.push(subjoin_insurance_type_id.eq(i).attr('data-id'));
|
520
|
subjoin_price_arr.push(subjoin_price.eq(i).val());
|
522
|
subjoin_price_arr.push(subjoin_price.eq(i).val());
|
521
|
- subjoin_time_arr.push(subjoin_time.eq(i).text());
|
523
|
+ //subjoin_time_arr.push(subjoin_time.eq(i).text());
|
522
|
payment_time_arr.push(payment_time.eq(i).val());
|
524
|
payment_time_arr.push(payment_time.eq(i).val());
|
523
|
subjoin_pay_method_price_arr.push(subjoin_pay_method_price.eq(i).val());
|
525
|
subjoin_pay_method_price_arr.push(subjoin_pay_method_price.eq(i).val());
|
524
|
subjoin_guarantee_deadline_time_arr.push(subjoin_guarantee_deadline_time.eq(i).val());
|
526
|
subjoin_guarantee_deadline_time_arr.push(subjoin_guarantee_deadline_time.eq(i).val());
|
|
@@ -528,7 +530,7 @@ |
|
@@ -528,7 +530,7 @@ |
528
|
$.ajax({
|
530
|
$.ajax({
|
529
|
url: "{:url('form/edit_post')}",
|
531
|
url: "{:url('form/edit_post')}",
|
530
|
type: "GET",
|
532
|
type: "GET",
|
531
|
- data: {'id':id,'subjoin_guarantee_deadline_time_arr':subjoin_guarantee_deadline_time_arr?subjoin_guarantee_deadline_time_arr:0,'subjoin_pay_method_price_arr':subjoin_pay_method_price_arr ? subjoin_pay_method_price_arr : 0,'payment_time_arr':payment_time_arr ? payment_time_arr : 0,'subjoin_time_arr':subjoin_time_arr ? subjoin_time_arr : 0,'subjoin_price_arr':subjoin_price_arr ? subjoin_price_arr : 0,'subjoin_insurance_type_id_arr':subjoin_insurance_type_id_arr ? subjoin_insurance_type_id_arr : 0,'subjoin_product_name_arr':subjoin_product_name_arr ? subjoin_product_name_arr :0,'insurance_company_id':gs,'product_name':cp,'insurance_type_id':lx,'insurance_price':jr,'pay_method_id':jf,'payment_time':qx,'pay_method_price':bf,'guarantee_deadline_time':bzqs,'insurance_num':danhao,'application':toubaor,'insurer':beibaor,'relation':guanxi,'insurer_birthday':shengr,'insurer_time':toubaorq,'take_time':hetongshengxr,'insure_time':baoxianshijian,'remit':beibaorhm,'remark':remark,'agent_name':agent_name,'agent_phone':agent_phone,'imgs':imgs},
|
533
|
+ data: {'id':id,'subjoin_guarantee_deadline_time_arr':subjoin_guarantee_deadline_time_arr?subjoin_guarantee_deadline_time_arr:0,'subjoin_pay_method_price_arr':subjoin_pay_method_price_arr ? subjoin_pay_method_price_arr : 0,'payment_time_arr':payment_time_arr ? payment_time_arr : 0,'subjoin_price_arr':subjoin_price_arr ? subjoin_price_arr : 0,'subjoin_insurance_type_id_arr':subjoin_insurance_type_id_arr ? subjoin_insurance_type_id_arr : 0,'subjoin_product_name_arr':subjoin_product_name_arr ? subjoin_product_name_arr :0,'insurance_company_id':gs,'product_name':cp,'insurance_type_id':lx,'insurance_price':jr,'pay_method_id':jf,'payment_time':qx,'pay_method_price':bf,'guarantee_deadline_time':bzqs,'insurance_num':danhao,'application':toubaor,'insurer':beibaor,'relation':guanxi,'insurer_birthday':shengr,'insurer_time':toubaorq,'take_time':hetongshengxr,'insure_time':baoxianshijian,'remit':beibaorhm,'remark':remark,'agent_name':agent_name,'agent_phone':agent_phone,'imgs':imgs},
|
532
|
success: function (data) {
|
534
|
success: function (data) {
|
533
|
var result1 = eval("(" + data + ")");
|
535
|
var result1 = eval("(" + data + ")");
|
534
|
if(result1.code == 20000){
|
536
|
if(result1.code == 20000){
|
|
@@ -940,13 +942,6 @@ |
|
@@ -940,13 +942,6 @@ |
940
|
' </div>\n' +
|
942
|
' </div>\n' +
|
941
|
' </div>\n' +
|
943
|
' </div>\n' +
|
942
|
' <div class="trust_m_item">\n' +
|
944
|
' <div class="trust_m_item">\n' +
|
943
|
- ' <div>保险时间</div>\n' +
|
|
|
944
|
- ' <div class="trust_iteminput choose_iteminputcell">\n' +
|
|
|
945
|
- ' <div class="lxmaintxt subjoin_time"></div>\n' +
|
|
|
946
|
- ' <div class="sex_itemtxt fujia_time_item">选择</div>\n' +
|
|
|
947
|
- ' </div>\n' +
|
|
|
948
|
- ' </div>\n' +
|
|
|
949
|
- ' <div class="trust_m_item">\n' +
|
|
|
950
|
' <div>缴费期限</div>\n' +
|
945
|
' <div>缴费期限</div>\n' +
|
951
|
' <div class="trust_iteminput choose_iteminputcell">\n' +
|
946
|
' <div class="trust_iteminput choose_iteminputcell">\n' +
|
952
|
' <input type="number" placeholder="请输入或选择" value="" class="fujia_bzqs_input payment_time">\n' +
|
947
|
' <input type="number" placeholder="请输入或选择" value="" class="fujia_bzqs_input payment_time">\n' +
|