给险种添加ID字段

dev
曾超新 5 years ago
parent 99e560aa09
commit 7b929dd283
  1. 9
      frontend/views/car/order-add.php

@ -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.']" 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';
@ -165,7 +165,7 @@ use common\models\PriceT;
} }
echo '</select>'; echo '</select>';
} else { } else {
echo '<input name="types['.$item->id.']" class="form-control insurer-input" data-id="'.$item->id.'" style="width:100px;" type="text"'; echo '<input name="types['.$item->id.']" id="types_'.$item->id.'" class="form-control insurer-input" data-id="'.$item->id.'" style="width:100px;" type="text"';
if(!empty($tmp_row)) if(!empty($tmp_row))
echo ' value="'.$tmp_row->val.'" '; echo ' value="'.$tmp_row->val.'" ';
echo '>'; echo '>';
@ -368,6 +368,11 @@ use common\models\PriceT;
$('#purchase_price').val(obj.data.VehicleItems[0].PurchasePrice); $('#purchase_price').val(obj.data.VehicleItems[0].PurchasePrice);
} }
} }
if(obj.data.SaveQuote) {
if(obj.data.SaveQuote.BoLi) {
if(obj.data.SaveQuote.BoLi == '0')
}
}
} }
}, 'json'); }, 'json');
} }

Loading…
Cancel
Save