|
|
@ -155,7 +155,7 @@ use common\models\PriceT; |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
if($item->content != '') { |
|
|
|
if($item->content != '') { |
|
|
|
$tmp_items = explode(',',$item->content); |
|
|
|
$tmp_items = explode(',',$item->content); |
|
|
|
echo '<select name="types['.$item->id.']" id="types'.$item->id.'" class="form-control insurer-select" data-id="'.$item->id.'">'; |
|
|
|
echo '<select name="types['.$item->id.']" id="types_'.$item->id.'" class="form-control insurer-select" data-id="'.$item->id.'">'; |
|
|
|
$tmp_items = explode(',',$item->content); |
|
|
|
$tmp_items = explode(',',$item->content); |
|
|
|
foreach($tmp_items as $tmp_item) { |
|
|
|
foreach($tmp_items as $tmp_item) { |
|
|
|
echo '<option'; |
|
|
|
echo '<option'; |
|
|
@ -370,7 +370,93 @@ use common\models\PriceT; |
|
|
|
} |
|
|
|
} |
|
|
|
if(obj.data.SaveQuote) { |
|
|
|
if(obj.data.SaveQuote) { |
|
|
|
if(obj.data.SaveQuote.BoLi) { |
|
|
|
if(obj.data.SaveQuote.BoLi) { |
|
|
|
if(obj.data.SaveQuote.BoLi == '0') |
|
|
|
if(obj.data.SaveQuote.BoLi == '0') $('#types_6').val(''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BoLi == '1') $('#types_6').val('国产'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BoLi == '2') $('#types_6').val('进口'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianCheSun) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianCheSun == "0") $('#nopays_1').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianCheSun == "1") $('#nopays_1').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianChengKe) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianChengKe == "0") $('#nopays_5').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianChengKe == "1") $('#nopays_5').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianDaoQiang) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianDaoQiang == "0") $('#nopays_3').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianDaoQiang == "1") $('#nopays_3').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianHuaHen) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianHuaHen == "0") $('#nopays_7').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianHuaHen == "1") $('#nopays_7').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSanZhe) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSanZhe == "0") $('#nopays_2').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSanZhe == "1") $('#nopays_2').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSheShui) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSheShui == "0") $('#nopays_8').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSheShui == "1") $('#nopays_8').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSiJi) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSiJi == "0") $('#nopays_4').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianSiJi == "1") $('#nopays_4').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianZiRan) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianZiRan == "0") $('#nopays_9').prop('checked', ''); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.BuJiMianZiRan == "1") $('#nopays_9').prop('checked', 'checked'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.CheSun) { |
|
|
|
|
|
|
|
$('#types_1').val(obj.data.SaveQuote.CheSun); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.DaoQiang) { |
|
|
|
|
|
|
|
if(parseInt(obj.data.SaveQuote.DaoQiang) > 0) $('#types_3').val('是'); |
|
|
|
|
|
|
|
else $('#types_3').val('否'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe == "10000") $('#types_5').val('1万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe == "20000") $('#types_5').val('2万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe == "30000") $('#types_5').val('3万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe == "40000") $('#types_5').val('4万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe == "50000") $('#types_5').val('5万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ChengKe == "100000") $('#types_5').val('10万'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi == "10000") $('#types_4').val('1万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi == "20000") $('#types_4').val('2万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi == "30000") $('#types_4').val('3万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi == "40000") $('#types_4').val('4万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi == "50000") $('#types_4').val('5万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SiJi == "100000") $('#types_4').val('10万'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HcSanFangTeYue) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HcSanFangTeYue == "1") $('#types_12').val('是'); |
|
|
|
|
|
|
|
else $('#types_12').val('否'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HuaHen) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HuaHen == "2000") $('#types_7').val('2000元'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HuaHen == "5000") $('#types_7').val('5000元'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HuaHen == "10000") $('#types_7').val('10000元'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.HuaHen == "20000") $('#types_7').val('20000元'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "50000") $('#types_2').val('5万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "100000") $('#types_2').val('10万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "150000") $('#types_2').val('15万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "200000") $('#types_2').val('20万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "300000") $('#types_2').val('30万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "500000") $('#types_2').val('50万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "1000000") $('#types_2').val('100万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "1500000") $('#types_2').val('150万'); |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SanZhe == "2000000") $('#types_2').val('200万'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SheShui) { |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.SheShui == "1") $('#types_8').val('是'); |
|
|
|
|
|
|
|
else $('#types_8').val('否'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(obj.data.SaveQuote.ZiRan) { |
|
|
|
|
|
|
|
if(parseInt(obj.data.SaveQuote.ZiRan) > 0) $('#types_9').val('是'); |
|
|
|
|
|
|
|
else $('#types_9').val('否'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|