edit-api-edit_order
This commit is contained in:
@@ -324,7 +324,6 @@ class CusorderV2 extends Wxapp{
|
||||
$incolor_id = $this->input_param('incolor_id');
|
||||
$v_id = $this->input_param('v_id');
|
||||
$payway = $this->input_param('payway');
|
||||
$main_type = $this->input_param('main_type');
|
||||
$delry_time = $this->input_param('delry_time');
|
||||
$finance_id = $this->input_param('finance_id');
|
||||
$deposit = floatval($this->input_param('deposit'));
|
||||
@@ -338,6 +337,7 @@ class CusorderV2 extends Wxapp{
|
||||
$if_local_bill = $this->input_param('if_local_bill');//是否需要开具本地发票
|
||||
|
||||
$row = $this->orders_model->get(['id'=>$id]);
|
||||
$main_type = $row['main_type'];
|
||||
$series_row = $this->auto_series_model->get(['id'=>$car_id]);
|
||||
$biz = $this->biz_model->get(['id'=>$row['biz_id']],'id,type,city_id');
|
||||
$car_row = $this->auto_cars_model->get(['brand_id'=>$series_row['brand_id'],'s_id'=>$series_row['id'],'v_id'=>$v_id],'',$biz['city_id']);
|
||||
@@ -394,7 +394,6 @@ class CusorderV2 extends Wxapp{
|
||||
'if_local_bill' => $if_local_bill ? 1 : 0,
|
||||
'over_time' => $over_time,
|
||||
];
|
||||
$main_type && $data['main_type'] = 1;
|
||||
$delry_time && $data['delry_time'] = $delry_time;
|
||||
$finance_row && $data['finance_id'] = $finance_row['id'];
|
||||
$data['if_fine'] = $if_fine ? 1:0;
|
||||
|
||||
Reference in New Issue
Block a user