Compare commits

..

No commits in common. 'd572da219bbc5412a68a89e1f4b07d42cf676d31' and 'eab63a35b0102fe84898e2b10f104c3f9f6e199f' have entirely different histories.

  1. 23
      frontend/controllers/CarController.php
  2. 9
      frontend/views/car/order-add.php

@ -599,7 +599,7 @@ class CarController extends BaseController
'ForceTax' => 1, 'ForceTax' => 1,
'BizTimeStamp' => $request->post('insurer1_begin_date'), 'BizTimeStamp' => $request->post('insurer1_begin_date'),
'ForceTimeStamp' => $request->post('insurer2_begin_date'), 'ForceTimeStamp' => $request->post('insurer2_begin_date'),
'BoLi' => 0, 'BoLi' => $types[6] == '否' ? 0 : $types[6] == '国产' ? 1 : 2,
'BuJiMianCheSun' => isset($nopays[1])?1:0, 'BuJiMianCheSun' => isset($nopays[1])?1:0,
'BuJiMianDaoQiang' => isset($nopays[3])?1:0, 'BuJiMianDaoQiang' => isset($nopays[3])?1:0,
'BuJiMianSanZhe' => isset($nopays[2])?1:0, 'BuJiMianSanZhe' => isset($nopays[2])?1:0,
@ -612,7 +612,7 @@ class CarController extends BaseController
'HuaHen' => $types[7], 'HuaHen' => $types[7],
'SiJi' => $types[4], 'SiJi' => $types[4],
'ChengKe' => $types[5], 'ChengKe' => $types[5],
'CheSun' => floatval($types[1]), 'CheSun' => $types[1],
'DaoQiang' => $types[3]=='是'?1:0, 'DaoQiang' => $types[3]=='是'?1:0,
'SanZhe' => $types[2], 'SanZhe' => $types[2],
'ZiRan' => $types[9]=='是'?1:0, 'ZiRan' => $types[9]=='是'?1:0,
@ -636,26 +636,13 @@ class CarController extends BaseController
if($params['HolderIdType'] == '身份证') $params['HolderIdType'] = 1; if($params['HolderIdType'] == '身份证') $params['HolderIdType'] = 1;
else $params['HolderIdType'] = 9; else $params['HolderIdType'] = 9;
$min_chesun = floatval($request->post('min_chesun')); if($types[1] > 0 && $types[10] == '是' && $types[11] == '是') {
$max_chesun = floatval($request->post('max_chesun'));
if($params['CheSun'] > 0 && $min_chesun > 0 && $max_chesun > 0 && ($params['CheSun'] < $min_chesun || $params['CheSun'] > $max_chesun)) {
return MyLib::error3('车损只能填写:'.$min_chesun.' ~ '.$max_chesun.' 之间的值');
}
if($params['CheSun'] > 0 && $types[10] == '是' && $types[11] == '是') {
$params['ForceTax'] = 1; $params['ForceTax'] = 1;
} } else if($types[10] == '是' && $types[11] == '是') {
if($params['CheSun'] == 0 && $types[10] == '是' && $types[11] == '是') {
$params['ForceTax'] = 2; $params['ForceTax'] = 2;
} } else if($types[10] > 0) {
if($params['CheSun'] > 0 && $types[10] == '否' && $types[11] == '否') {
$params['ForceTax'] = 0; $params['ForceTax'] = 0;
} }
if($types[6] == '国产') {
$params['BoLi'] = 1;
}
if($types[6] == '进口') {
$params['BoLi'] = 2;
}
switch($types[7]) { switch($types[7]) {
case '2000元': case '2000元':
$params['HuaHen'] = 2000; $params['HuaHen'] = 2000;

@ -17,8 +17,6 @@ use common\models\PriceT;
<input type="hidden" name="fanxian_id" id="fanxian_id" value="<?=$order_info->fanxian_id?>"> <input type="hidden" name="fanxian_id" id="fanxian_id" value="<?=$order_info->fanxian_id?>">
<input type="hidden" name="auto_mold_code" id="auto_mold_code" value=""> <input type="hidden" name="auto_mold_code" id="auto_mold_code" value="">
<input type="hidden" name="vehicle_year" id="vehicle_year" value=""> <input type="hidden" name="vehicle_year" id="vehicle_year" value="">
<input type="hidden" name="min_chesun" id="min_chesun" value="">
<input type="hidden" name="max_chesun" id="max_chesun" value="">
<div class="ibox float-e-margins"> <div class="ibox float-e-margins">
<div class="ibox-title"> <div class="ibox-title">
<h5>保单信息</h5> <h5>保单信息</h5>
@ -479,8 +477,11 @@ use common\models\PriceT;
} }
if(obj.data.VehicleItems[0].DepreciationPrice) { if(obj.data.VehicleItems[0].DepreciationPrice) {
$('#types_1').val(obj.data.VehicleItems[0].DepreciationPrice); $('#types_1').val(obj.data.VehicleItems[0].DepreciationPrice);
$('#min_chesun').val(obj.data.VehicleItems[0].DownPrice); $('#types_1').ionRangeSlider({
$('#max_chesun').val(obj.data.VehicleItems[0].UpPrice); min: obj.data.VehicleItems[0].DownPrice,
max: obj.data.VehicleItems[0].UpPrice,
from: obj.data.VehicleItems[0].DepreciationPrice,
});
} }
if(obj.data.VehicleItems[0].VehicleSeat) { if(obj.data.VehicleItems[0].VehicleSeat) {
$('#seats').val(obj.data.VehicleItems[0].VehicleSeat); $('#seats').val(obj.data.VehicleItems[0].VehicleSeat);

Loading…
Cancel
Save