edit-api-protocol
This commit is contained in:
@@ -192,7 +192,7 @@ class Cusorder extends Wxapp{
|
||||
];
|
||||
if(!$payway){
|
||||
$orders_entity = new Orders_entity();
|
||||
$money_json['price_finance'] = $series_row['brand_id'] == 4 ? $orders_entity::PRICE_FINANCE_NZ : $orders_entity::PRICE_FINANCE;
|
||||
$money_json['price_insure'] = $series_row['brand_id'] == 4 ? $orders_entity::PRICE_FINANCE_NZ : $orders_entity::PRICE_FINANCE;
|
||||
}
|
||||
//获取挂牌价
|
||||
if($series_row['brand_id']==3){ //狸车品牌写死挂牌费用0.01 测试用
|
||||
|
||||
@@ -223,7 +223,7 @@ class Cusorder2 extends Wxapp{
|
||||
$money_json['price_discount'] = $disc_money;
|
||||
$orders_entity = new Orders_entity();
|
||||
if(!$payway){
|
||||
$money_json['price_finance'] = $series_row['brand_id'] == 4 ? $orders_entity::PRICE_FINANCE_NZ : $orders_entity::PRICE_FINANCE;
|
||||
$money_json['price_insure'] = $series_row['brand_id'] == 4 ? $orders_entity::PRICE_FINANCE_NZ : $orders_entity::PRICE_FINANCE;
|
||||
}
|
||||
$data['money_json'] = json_encode($money_json,JSON_UNESCAPED_UNICODE);
|
||||
|
||||
|
||||
@@ -100,13 +100,18 @@ class Protocol extends CI_Controller{
|
||||
//获取门店信息
|
||||
$biz = $this->biz_model->get(['id'=>$row['biz_id']]);
|
||||
$row['company'] = $this->sys_company_model->get(["title like '%服务%'"=>null,'status'=>1]);
|
||||
$is_insure = false;
|
||||
if($row['srv_ids']){
|
||||
$services = $this->services_model->select(["id in ({$row['srv_ids']})"=>null],'','','','title');
|
||||
$srv_id_arr = explode(',',$row['srv_ids']);
|
||||
$is_insure = in_array(1,$srv_id_arr) ? true : false;
|
||||
}
|
||||
$this->load->library('receiver/orders_entity');
|
||||
$srv_price = $this->orders_entity->order_srv_money($row['id']);
|
||||
$total_price = $srv_price + $money_json['price_insure'];
|
||||
$total_price = $srv_price;
|
||||
$is_insure && $total_price = $total_price + $money_json['price_insure'];
|
||||
}
|
||||
$row['is_insure'] = $is_insure;
|
||||
$row['services'] = $services;
|
||||
$row['total_price'] = $total_price;
|
||||
$row['info_json'] = json_decode($row['info_json'],true);
|
||||
@@ -321,9 +326,12 @@ class Protocol extends CI_Controller{
|
||||
//获取门店信息
|
||||
$biz = $this->biz_model->get(['id'=>$row['biz_id']]);
|
||||
$row['company'] = $this->sys_company_model->get(["title like '%服务%'"=>null,'status'=>1]);
|
||||
$is_insure = false;
|
||||
if($row['srv_ids']){
|
||||
$service_rows = $this->services_model->select(["id in ({$row['srv_ids']})"=>null],'','','','title');
|
||||
$services = implode(',',array_column($service_rows,'title'));
|
||||
$srv_id_arr = explode(',',$row['srv_ids']);
|
||||
$is_insure = in_array(1,$srv_id_arr) ? true : false;
|
||||
}
|
||||
if($opt_row['srv_ids']){
|
||||
$service_rows = $this->services_model->select(["id in ({$opt_row['srv_ids']})"=>null],'','','','title');
|
||||
@@ -331,7 +339,8 @@ class Protocol extends CI_Controller{
|
||||
}
|
||||
$this->load->library('receiver/orders_entity');
|
||||
$srv_price = $this->orders_entity->order_srv_money($row['id']);
|
||||
$total_price = $srv_price + $money_json['price_insure'];
|
||||
$total_price = $srv_price;
|
||||
$is_insure && $total_price = $total_price + $money_json['price_insure'];
|
||||
}
|
||||
$row['services'] = $services;
|
||||
$row['old_services'] = $old_services;
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<?foreach($services as $val){?>
|
||||
<div><?=$val['title']?></div>
|
||||
<?}?>
|
||||
<div>代办服务总价:<?=$total_price?>元, <?=num_to_rmb($total_price)?>,保险费用由乙方直接支付给保险公司。</div>
|
||||
<div>代办服务总价:<?=$total_price?>元, <?=num_to_rmb($total_price)?><?if($is_insure){?>,保险费用由乙方直接支付给保险公司。<?}?></div>
|
||||
<div><b>二、双方特别约定</b></div>
|
||||
<div>1、车牌选号若为代选号牌时,均由甲方电话通知乙方,因乙方未能及时选号等其它原因,甲方有权代理决定并不对最终选号结果负责;若为自选号牌,甲方可配合乙方上牌,但不对最终选号结果负责。</div>
|
||||
<div>2、乙方委托甲方代办车辆挂牌服务时,乙方应事先办妥机动车车辆保险,投保险种包括但不限于车辆损失险和第三者责任险。甲方在代办服务过程中造成车辆毁损、灭失的,乙方应当先向保险公司索赔,赔付不足部分由甲方予以修复或赔偿。</div>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<?foreach($services as $val){?>
|
||||
<div><?=$val['title']?></div>
|
||||
<?}?>
|
||||
<div>代办服务总价:<?=$total_price?>元,<?=num_to_rmb($total_price)?>,保险费用由乙方直接支付给保险公司。</div>
|
||||
<div>代办服务总价:<?=$total_price?>元,<?=num_to_rmb($total_price)?><?if($is_insure){?>,保险费用由乙方直接支付给保险公司。<?}?></div>
|
||||
<div><b>二、双方特别约定</b></div>
|
||||
<div>1、车牌选号若为代选号牌时,均由甲方电话通知乙方,因乙方未能及时选号等其它原因,甲方有权代理决定并不对最终选号结果负责;若为自选号牌,甲方可配合乙方上牌,但不对最终选号结果负责。</div>
|
||||
<div>2、乙方委托甲方代办车辆挂牌服务时,乙方应事先办妥机动车车辆保险,投保险种包括但不限于车辆损失险和第三者责任险。甲方在代办服务过程中造成车辆毁损、灭失的,乙方应当先向保险公司索赔,赔付不足部分由甲方予以修复或赔偿。</div>
|
||||
|
||||
Reference in New Issue
Block a user