diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php index e0b884f3..df35b0d2 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -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 测试用 diff --git a/api/controllers/wxapp/licheb/Cusorder2.php b/api/controllers/wxapp/licheb/Cusorder2.php index a94fa6f9..d4987ef3 100644 --- a/api/controllers/wxapp/licheb/Cusorder2.php +++ b/api/controllers/wxapp/licheb/Cusorder2.php @@ -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); diff --git a/api/controllers/wxapp/licheb/Protocol.php b/api/controllers/wxapp/licheb/Protocol.php index 229cdd6d..83a11f21 100644 --- a/api/controllers/wxapp/licheb/Protocol.php +++ b/api/controllers/wxapp/licheb/Protocol.php @@ -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; diff --git a/api/views/wxapp/licheb/html2pdf/agent.php b/api/views/wxapp/licheb/html2pdf/agent.php index 98c6bb4a..74e34c46 100644 --- a/api/views/wxapp/licheb/html2pdf/agent.php +++ b/api/views/wxapp/licheb/html2pdf/agent.php @@ -48,7 +48,7 @@
-
代办服务总价:元, ,保险费用由乙方直接支付给保险公司。
+
代办服务总价:元, ,保险费用由乙方直接支付给保险公司。
二、双方特别约定
1、车牌选号若为代选号牌时,均由甲方电话通知乙方,因乙方未能及时选号等其它原因,甲方有权代理决定并不对最终选号结果负责;若为自选号牌,甲方可配合乙方上牌,但不对最终选号结果负责。
2、乙方委托甲方代办车辆挂牌服务时,乙方应事先办妥机动车车辆保险,投保险种包括但不限于车辆损失险和第三者责任险。甲方在代办服务过程中造成车辆毁损、灭失的,乙方应当先向保险公司索赔,赔付不足部分由甲方予以修复或赔偿。
diff --git a/api/views/wxapp/licheb/protocol/agent.php b/api/views/wxapp/licheb/protocol/agent.php index cb5d42c7..9ef87cab 100644 --- a/api/views/wxapp/licheb/protocol/agent.php +++ b/api/views/wxapp/licheb/protocol/agent.php @@ -29,7 +29,7 @@
-
代办服务总价:元,,保险费用由乙方直接支付给保险公司。
+
代办服务总价:元,,保险费用由乙方直接支付给保险公司。
二、双方特别约定
1、车牌选号若为代选号牌时,均由甲方电话通知乙方,因乙方未能及时选号等其它原因,甲方有权代理决定并不对最终选号结果负责;若为自选号牌,甲方可配合乙方上牌,但不对最终选号结果负责。
2、乙方委托甲方代办车辆挂牌服务时,乙方应事先办妥机动车车辆保险,投保险种包括但不限于车辆损失险和第三者责任险。甲方在代办服务过程中造成车辆毁损、灭失的,乙方应当先向保险公司索赔,赔付不足部分由甲方予以修复或赔偿。