自动添加新车购置价

dev
曾超新 5 years ago
parent 36f7d869db
commit 6be5edf082
  1. 10
      frontend/views/car/order-add.php

@ -37,7 +37,7 @@ use common\models\PriceT;
<th class="bg-warning" nowrap>厂牌型号</th> <th class="bg-warning" nowrap>厂牌型号</th>
<td><input name="factory_model" class="form-control" style="width:100%;" type="text" value="<?=$order_info->factory_model!='' ? $order_info->factory_model:$car_info->factory_model?>"></td> <td><input name="factory_model" class="form-control" style="width:100%;" type="text" value="<?=$order_info->factory_model!='' ? $order_info->factory_model:$car_info->factory_model?>"></td>
<th class="bg-warning" nowrap>新车购置价</th> <th class="bg-warning" nowrap>新车购置价</th>
<td><input name="purchase_price" class="form-control" style="width:100%;" type="text" value="<?=$order_info->purchase_price!='' ? $order_info->purchase_price:$car_info->purchase_price?>"></td> <td><input name="purchase_price" id="purchase_price" class="form-control" style="width:100%;" type="text" value="<?=$order_info->purchase_price!='' ? $order_info->purchase_price:$car_info->purchase_price?>"></td>
</tr> </tr>
<tr> <tr>
<th class="bg-warning">车主</th> <th class="bg-warning">车主</th>
@ -357,7 +357,13 @@ use common\models\PriceT;
$('#insurer2_begin_date').val(obj.data.UserInfo.NextForceStartDate); $('#insurer2_begin_date').val(obj.data.UserInfo.NextForceStartDate);
} }
if(obj.data.UserInfo.CarUsedType) { if(obj.data.UserInfo.CarUsedType) {
$('#car_use_id').val(obj.data.UserInfo.CarUsedType); $('#car_use_id').val(parseint(obj.data.UserInfo.CarUsedType));
}
//purchase_price
}
if(obj.data.VehicleItems && obj.data.VehicleItems[0]) {
if(obj.data.VehicleItems[0].PurchasePrice) {
$('#purchase_price').val(obj.data.VehicleItems[0].PurchasePrice);
} }
} }
} }

Loading…
Cancel
Save