From 4dc1925d69c9086127fa1bd426b954d08661d3bf Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Wed, 16 Oct 2019 17:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=9B=9E=E5=8D=95=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/FinanceController.php | 6 +- frontend/controllers/InsurerController.php | 2 + frontend/views/finance/receipt-info.php | 162 ++++++++++++--------- frontend/views/finance/receipt.php | 16 +- 4 files changed, 109 insertions(+), 77 deletions(-) diff --git a/frontend/controllers/FinanceController.php b/frontend/controllers/FinanceController.php index 5606036..74e8880 100644 --- a/frontend/controllers/FinanceController.php +++ b/frontend/controllers/FinanceController.php @@ -213,7 +213,7 @@ class FinanceController extends \frontend\controllers\UserBaseController foreach($items as $item) { $row = $item->toArray(); $row['group'] = $item->user->group->name; - $row['company_name'] = $item->order->company->name; + $row['company_name'] = $item->order->company2->name; $row['username'] = $item->user->getShowName(); $row['submit_date'] = $item->order->submit_date; $row['print_date'] = $item->order->print_date; @@ -3607,8 +3607,7 @@ class FinanceController extends \frontend\controllers\UserBaseController return $this->render('receipt-info', [ - 'caiwu_info' => $caiwu_info, - 'back_params' => $back_params, + 'caiwu_info' => $caiwu_info ]); } public function actionEmsReceiptInfo() @@ -6417,7 +6416,6 @@ class FinanceController extends \frontend\controllers\UserBaseController $car_info = CarT::findOne(['car_frame_no' => $car_frame_no]); if ($car_info) { - if($car_no != ''){ $car_info->car_no = $car_no; } diff --git a/frontend/controllers/InsurerController.php b/frontend/controllers/InsurerController.php index 692a3ab..801ac1a 100644 --- a/frontend/controllers/InsurerController.php +++ b/frontend/controllers/InsurerController.php @@ -1253,6 +1253,7 @@ class InsurerController extends BaseController $row->car_no = $order_info->car_no; $row->factory_model = $order_info->car->factory_model; $row->id_man = $order_info->id_man; + $row->company = $order_info->company2->name(); $row->total = sprintf("%.2f",$order_info->total1); $row->total_clear = sprintf("%.2f",$order_info->total1_clear); $row->total_clear_real = sprintf("%.2f",($order_info->total1_clear * $order_info->total1_rate/100)); @@ -1277,6 +1278,7 @@ class InsurerController extends BaseController $row->insurer_no = $order_info->insurer2_no; $row->car_no = $order_info->car_no; $row->factory_model = $order_info->car->factory_model; + $row->company = $order_info->company2->name(); $row->id_man = $order_info->id_man; $row->total = sprintf("%.2f",$order_info->total2); $row->total_clear = sprintf("%.2f",$order_info->total2_clear); diff --git a/frontend/views/finance/receipt-info.php b/frontend/views/finance/receipt-info.php index 62a7751..79ef837 100644 --- a/frontend/views/finance/receipt-info.php +++ b/frontend/views/finance/receipt-info.php @@ -1,79 +1,105 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
车牌号 - car_no?> -
保险公司 - company?> - 保单号 - -
总保费 - total?> - 净保费 - total_clear?> -
手续费比例 - % -
回款金额 - - 回款日期 - -
- -    - -
- - - - + +beginBlock('header_css'); ?> + +endBlock(); ?> + +
+
+
+
+
+
+ +
+ +
+

car_no?>

+
+
+
+ +
+

order->company2->name?>

+
+ +
+ +
+
+
+ +
+

total?>

+
+ +
+

total_clear?>

+
+
+
+ +
+
+ +
%
+
+
+
+
+ +
+ +
+ +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +beginBlock('footer_js'); ?> + +endBlock('footer_js'); ?> + diff --git a/frontend/views/finance/receipt.php b/frontend/views/finance/receipt.php index ef5c8b4..c12a509 100644 --- a/frontend/views/finance/receipt.php +++ b/frontend/views/finance/receipt.php @@ -19,7 +19,7 @@ use \common\libs\MyLib;
-
+