edit-admin-add_price

This commit is contained in:
lccsw
2022-06-20 09:34:06 +08:00
parent 1b5a42bdd4
commit f437825a90
2 changed files with 2 additions and 2 deletions
@@ -837,8 +837,8 @@ class Orders extends HD_Controller
$companys = $this->sys_company_model->select(['status' => 1, 'wx_mchid!=' => ''], 'id desc', '', '', 'id,wx_mchid,short');
$type = [];
$srv_price >0 && $type[] = ['id'=>2,'name'=>'服务费'];
$type[] = ['id'=>6,'name'=>'车款'];
$srv_price >0 && $type[] = ['id'=>2,'name'=>'服务费'];
$this->data['type'] = $type;
$this->data['companys'] = $companys;
$this->data['id'] = $this->input->get('id');
@@ -534,6 +534,7 @@ class Orders_v2_entity{
$need_sign = $biz['city_id'] == '350900' ? true : false;
}
$fill_info = $this->pdf_data($this->order_row);
$this->ci->load->library('pdftk');
if($need_sign) {
$fill_data = [
'sid' => $this->order_row['sid'],
@@ -562,7 +563,6 @@ class Orders_v2_entity{
$pdf_path = 'pdf/car_sa_tpl.pdf';
}
$save_path = "pdf/{$this->order_row['sid']}/car.pdf";
$this->ci->load->library('pdftk');
$req = $this->ci->pdftk->esign_fill_pdf($pdf_path, $save_path, $fill_data);
if (!$req['code']) {
return ['code' => 0, 'msg' => $req['msg']];