修改客户和订单
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--div class="am-form-group clearfix">
|
||||
<div class="am-form-group clearfix" v-if="parseInt(info.if_equity)">
|
||||
<p class="am-text-default mb10 ml30 pt15 pb10">
|
||||
权益确认书:
|
||||
</p>
|
||||
@@ -160,7 +160,7 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div-->
|
||||
</div>
|
||||
<div class="am-form-group clearfix">
|
||||
<p class="am-text-default mb10 ml30 pt15 pb10">
|
||||
发票:
|
||||
|
||||
@@ -92,5 +92,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-inline">
|
||||
<div class="am-form-group am-u-lg-6">
|
||||
<label class="am-para-label label-width"><span class="span-bold">投保买贵必赔:</span></label>
|
||||
<div class="am-para-input">
|
||||
<label class="am-para-label-con">{{parseInt(info.if_equity) ? '是':'否'}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group am-u-lg-6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -337,7 +337,9 @@ class Customers extends Wxapp
|
||||
}
|
||||
return ['code' => API_CODE_FAIL, 'msg' => $msg, 'data' => ['id' => $is_exit['id'], 'owner' => $owner]];
|
||||
}
|
||||
|
||||
if($cf_row['id']==10){ //自然到店直接改成到店客户
|
||||
$status = 1;
|
||||
}
|
||||
$this->load->helper("order");
|
||||
$biz_row = $this->biz_model->get(['id' => $this->biz_id]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user