|
|
|
@ -499,16 +499,21 @@ use common\models\PriceT; |
|
|
|
|
$.post('/car/post-precise-price', params, function(obj) { |
|
|
|
|
if(obj.code == 200) { |
|
|
|
|
$.post('/car/get-precise-price', params, function(obj) { |
|
|
|
|
console.log(obj); |
|
|
|
|
parent.layer.close(index); |
|
|
|
|
if(obj.code == 200) { |
|
|
|
|
if(obj.data.QuoteStatus > 0) { |
|
|
|
|
if(obj.data && obj.data.QuoteStatus > 0) { |
|
|
|
|
parent.layer.msg('获取成功'); |
|
|
|
|
$('#total1').val(obj.data.BizTotal); |
|
|
|
|
$('#total2').val(obj.data.ForceTotal); |
|
|
|
|
$('#total3').val(obj.data.TaxTotal); |
|
|
|
|
$('#total_rate').html('折扣系数:' + obj.data.TotalRate); |
|
|
|
|
} else { |
|
|
|
|
parent.layer.msg(obj.data.QuoteResult); |
|
|
|
|
if(obj.data) { |
|
|
|
|
parent.layer.msg(obj.data.QuoteResult); |
|
|
|
|
} else { |
|
|
|
|
parent.layer.msg('数据为空'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
parent.layer.msg(obj.msg); |
|
|
|
|