作者 王晓刚
1 个管道 的构建 通过 耗费 2 秒

去除保险时间字段

... ... @@ -184,7 +184,7 @@ class FormController extends WeChatBaseController
'subjoin_product_name' => $value,
'insurance_type_id' => $param['subjoin_insurance_type_id_arr'][$key] ? $param['subjoin_insurance_type_id_arr'][$key] : null,
'subjoin_price' => $param['subjoin_price_arr'][$key] ? $param['subjoin_price_arr'][$key] : null,
'subjoin_time' => $param['subjoin_time_arr'][$key] ? $param['subjoin_time_arr'][$key] : null,
// 'subjoin_time' => $param['subjoin_time_arr'][$key] ? $param['subjoin_time_arr'][$key] : null,
'payment_time' => $param['payment_time_arr'][$key] ? $param['payment_time_arr'][$key] : null,
'subjoin_pay_method_price' => $param['subjoin_pay_method_price_arr'][$key] ? $param['subjoin_pay_method_price_arr'][$key] : null,
'subjoin_guarantee_deadline_time'=>$param['subjoin_guarantee_deadline_time_arr'][$key] ? $param['subjoin_guarantee_deadline_time_arr'][$key] : null,
... ...
... ... @@ -477,7 +477,7 @@
var subjoin_product_name = $('.subjoin_product_name');//附加险产品名
var subjoin_insurance_type_id = $('.subjoin_insurance_type_id');//保单类型
var subjoin_price = $('.subjoin_price');//保险金额
var subjoin_time = $('.subjoin_time');//保险时间
//var subjoin_time = $('.subjoin_time');//保险时间
var payment_time = $('.payment_time');//缴费期限
var subjoin_pay_method_price = $('.subjoin_pay_method_price');//期缴保费
var subjoin_guarantee_deadline_time = $('.subjoin_guarantee_deadline_time');//保障期限
... ... @@ -502,10 +502,12 @@
}else if(subjoin_price.eq(i).val() == ''){
toast("附加险"+(i+1)+"的保险金额不能为空")
return false;
}else if(1==''){//subjoin_time.eq(i).text() == ''){
toast("附加险"+(i+1)+"的保险时间不能为空")
return false;
}else if(payment_time.eq(i).val() == ''){
}
// else if(1==''){//subjoin_time.eq(i).text() == ''){
// toast("附加险"+(i+1)+"的保险时间不能为空")
// return false;
// }
else if(payment_time.eq(i).val() == ''){
toast("附加险"+(i+1)+"的缴费期限不能为空")
return false;
}else if(subjoin_pay_method_price.eq(i).val() == ''){
... ... @@ -518,7 +520,7 @@
subjoin_product_name_arr.push(subjoin_product_name.eq(i).val());
subjoin_insurance_type_id_arr.push(subjoin_insurance_type_id.eq(i).attr('data-id'));
subjoin_price_arr.push(subjoin_price.eq(i).val());
subjoin_time_arr.push(subjoin_time.eq(i).text());
//subjoin_time_arr.push(subjoin_time.eq(i).text());
payment_time_arr.push(payment_time.eq(i).val());
subjoin_pay_method_price_arr.push(subjoin_pay_method_price.eq(i).val());
subjoin_guarantee_deadline_time_arr.push(subjoin_guarantee_deadline_time.eq(i).val());
... ... @@ -528,7 +530,7 @@
$.ajax({
url: "{:url('form/edit_post')}",
type: "GET",
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},
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},
success: function (data) {
var result1 = eval("(" + data + ")");
if(result1.code == 20000){
... ... @@ -940,13 +942,6 @@
' </div>\n' +
' </div>\n' +
' <div class="trust_m_item">\n' +
' <div>保险时间</div>\n' +
' <div class="trust_iteminput choose_iteminputcell">\n' +
' <div class="lxmaintxt subjoin_time"></div>\n' +
' <div class="sex_itemtxt fujia_time_item">选择</div>\n' +
' </div>\n' +
' </div>\n' +
' <div class="trust_m_item">\n' +
' <div>缴费期限</div>\n' +
' <div class="trust_iteminput choose_iteminputcell">\n' +
' <input type="number" placeholder="请输入或选择" value="" class="fujia_bzqs_input payment_time">\n' +
... ...