修改客户和订单
This commit is contained in:
@@ -62,6 +62,7 @@ class Cusorder extends Wxapp
|
||||
$if_num = $this->input_param('if_num');
|
||||
$if_insure = $this->input_param('if_insure');
|
||||
$register_amount = $this->input_param('register_amount'); //上牌费
|
||||
$if_equity = $this->input_param('if_equity');
|
||||
//贷款相关参数
|
||||
$downpayment_type = $this->input_param('downpayment_type');
|
||||
$loan_amount = $this->input_param('loan_amount');
|
||||
@@ -99,6 +100,7 @@ class Cusorder extends Wxapp
|
||||
$in_color && $data['in_color'] = $in_color;
|
||||
$if_num && $data['if_num'] = 1;
|
||||
$if_insure && $data['if_insure'] = 1;
|
||||
$if_equity && $data['if_equity'] = 1;
|
||||
$money_json = [];
|
||||
$money_json['confirm_amount'] = $confirm_amount ? $confirm_amount : 0;
|
||||
$money_json['discount_amount'] = $discount_amount ? $discount_amount : 0;
|
||||
@@ -143,6 +145,7 @@ class Cusorder extends Wxapp
|
||||
$delry_time = $this->input_param('delry_time');
|
||||
$if_num = $this->input_param('if_num');
|
||||
$if_insure = $this->input_param('if_insure');
|
||||
$if_equity = $this->input_param('if_equity');
|
||||
$register_amount = $this->input_param('register_amount'); //上牌费
|
||||
//贷款相关参数
|
||||
$downpayment_type = $this->input_param('downpayment_type');
|
||||
@@ -168,6 +171,7 @@ class Cusorder extends Wxapp
|
||||
$in_color && $data['in_color'] = $in_color;
|
||||
$data['if_num'] = $if_num ? 1 : 0;
|
||||
$data['if_insure'] = $if_insure ? 1 : 0;
|
||||
$data['if_equity'] = $if_equity ? 1 : 0;
|
||||
$money_json = json_decode($row['money_json'], true);
|
||||
$money_json['confirm_amount'] = $confirm_amount ? $confirm_amount : 0;
|
||||
$money_json['discount_amount'] = $discount_amount ? $discount_amount : 0;
|
||||
@@ -532,6 +536,7 @@ class Cusorder extends Wxapp
|
||||
if (!$payway) { // 分期
|
||||
$car_data['按揭信息'] = '';
|
||||
}
|
||||
$car_data['投保买贵必赔'] = $row['if_equity'] ? '是' : '否';
|
||||
$car_data['是否店内投保'] = $row['if_insure'] ? '是' : '否';
|
||||
$car_data['是否店内上牌'] = $row['if_num'] ? '是' : '否';
|
||||
if ($row['if_num']) {
|
||||
@@ -557,6 +562,7 @@ class Cusorder extends Wxapp
|
||||
'car_data' => $car_data,
|
||||
'if_num' => $row['if_num'],
|
||||
'if_insure' => $row['if_insure'],
|
||||
'if_equity' => $row['if_equity'],
|
||||
'delry_time' => date('Y-m-d', strtotime($row['delry_time'])),
|
||||
'money_json' => json_decode($row['money_json'], true),
|
||||
'downpayment_type' => $row['downpayment_type'],
|
||||
|
||||
Reference in New Issue
Block a user