From ddf0319e2038ed4b1e7f714bf4c3cc48ad5900ae Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 10 Aug 2018 17:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E8=8E=B7=E5=8F=96=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=B0=83=E5=BA=A6=E5=B9=B6=E8=BE=93=E5=87=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/TulanduoApi.php | 12 ++++ .../trippestOrderSync/views/operation.php | 61 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 webht/third_party/trippestOrderSync/views/operation.php diff --git a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php index 6afa0a6f..4f600884 100644 --- a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php +++ b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php @@ -803,6 +803,18 @@ log_message('error','in GCI ' . json_decode($resp)->responseData->orderId); return $this->output->set_content_type('application/json')->set_output(json_encode($ret)); } + public function refresh_operation($coli_sn=0) + { + $this->load->model('OrderFinance_model', 'combine_model'); + // $this->insert_HT_order_operation($coli_sn); + echo "string"; + $data['combineNo_arr'] = $this->combine_model->get_order_combineNo($coli_sn); + foreach ($data['combineNo_arr'] as $kcn => $vcn) { + $data['combineNo_arr'][$kcn]->cost = $this->combine_model->get_combine_sumMoney($vcn->GCI_combineNo); + } + $this->load->view('operation',$data); + } + /*! * 目的地项目组的订单计划的团号分析 * 去除添加的后缀, 只保留前两部分: XXXXXX-YYYYYYYYYYYY diff --git a/webht/third_party/trippestOrderSync/views/operation.php b/webht/third_party/trippestOrderSync/views/operation.php new file mode 100644 index 00000000..01570053 --- /dev/null +++ b/webht/third_party/trippestOrderSync/views/operation.php @@ -0,0 +1,61 @@ + + + + + operation + + + + "导服", + "otherCosts" => "其他", + "touristCarOperations" => "用车", + "sceneryOperations" => "门票", + "restraurantOperations" => "用餐" + ); + ?> +
+
+ $vcn) { ?> +

+ GCI_groupType)===1 ? "PVT" : "拼团号" ?>   + GCI_combineNo; ?> +

+ + + + + + + + cost->cost_detail as $kc => $vc) { ?> + + + + + +
+ 总成本: ¥ cost->cost_sum; ?> +
+ 成本明细: +
+

+ GCOD_operationType]; ?> + GCOD_subType; + if ($vc->GCOD_subType) { + echo " - " . $vc->GCOD_subType; + } + ?> +

+
+
+ cost); ?> +
+
+ +
+
+ +