From f4a8ec73801412dd8b75f026455682fe4e57abb7 Mon Sep 17 00:00:00 2001 From: qianhy Date: Wed, 1 Mar 2023 13:48:03 +0800 Subject: [PATCH] cost can modify bill_name,bill_price --- admin/controllers/items/Cost.php | 2 ++ admin/views/items/cost/get.php | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/controllers/items/Cost.php b/admin/controllers/items/Cost.php index 49884481..365e474c 100644 --- a/admin/controllers/items/Cost.php +++ b/admin/controllers/items/Cost.php @@ -319,6 +319,8 @@ class Cost extends HD_Controller{ } $data = [ + 'bill_name' => $post_data['bill_name'] ? $post_data['bill_name'] : '', + 'bill_price' => $post_data['bill_price'] ? $post_data['bill_price'] : 0, 'price' => $post_data['price'] ? $post_data['price'] : 0, 'cost_json' => json_encode($post_data['cost_json'],JSON_UNESCAPED_UNICODE), 'promotion_json' => json_encode($post_data['promotion_json'],JSON_UNESCAPED_UNICODE), diff --git a/admin/views/items/cost/get.php b/admin/views/items/cost/get.php index fb057020..2ff0a458 100644 --- a/admin/views/items/cost/get.php +++ b/admin/views/items/cost/get.php @@ -32,7 +32,7 @@
- +
@@ -92,7 +92,7 @@
- +
@@ -641,6 +641,8 @@ post_data['srv_json'] = vm.info.srv_json; post_data['price'] = vm.info.price; post_data['buy_price'] = vm.info.buy_price; + post_data['bill_name'] = vm.info.bill_name; + post_data['bill_price'] = vm.info.bill_price; post_data['insurance_price'] = vm.info.row.insurance_price; post_data['fee_carno_price'] = vm.info.row.fee_carno_price; post_data['loan_price'] = vm.info.row.loan_price;