手动获取订单调度并输出页面

feature/pay
lyt 7 years ago
parent 6bce4aca18
commit ddf0319e20

@ -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

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<title>operation</title>
<style type=text/css>* { margin:0; font-family: Verdana, Arial, Helvetica, sans-serif; }body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:13px; color:#545454; right: auto; background-color: #FFFBF0;}img, ul, ul li { padding:0; margin:0; border:0; }#warp { border-top:8px solid #a31022!important; }#logo { border: none!important}#logo, #surveyContent { width:160mm; margin:5px auto; padding:5px; }h1 { margin:15px 0 10px 0; font-size:24px; border-bottom:1px solid #d9d9d9; color:#545454; }h2 { margin:15px 0 10px 0; font-size:20px; color:#545454; } h3{background-color: #ccc; font-size: 14px; font-weight: bold;margin:5px 0;padding: 10px 0;} .tableSurvey table td { padding:5px; }.tableSurvey table td strong { margin-top:8px; }.tableSurvey1 { border:1px solid #e1e1e1; }.tableSurvey1 th { border:1px solid #fff; height:30px; padding-right:10px; text-align:right; background:#f1f1f1; }.tableSurvey1 td { border:1px solid #f9f9f9; padding:5px; text-align:center; width:80px; }.tableSurvey2 { border:1px solid #e1e1e1; }.tableSurvey2 th { border:1px solid #fff; padding:5px 10px; text-align:right; background:#f1f1f1; font-weight:normal; }.tableSurvey2 td { border:1px solid #f9f9f9; padding:5px; text-align:center; width:80px; }.blue{ color:#0070C0}
</style>
</head>
<body>
<?php
$operation_type = array(
"guiderOperations" => "导服",
"otherCosts" => "其他",
"touristCarOperations" => "用车",
"sceneryOperations" => "门票",
"restraurantOperations" => "用餐"
);
?>
<div id=warp>
<div id=surveyContent>
<?php foreach ($combineNo_arr as $kcn => $vcn) { ?>
<h3 height=33 colspan=2 class=captd align=center>
<?php echo intval($vcn->GCI_groupType)===1 ? "PVT" : "拼团号" ?>&nbsp;&nbsp;
<?php echo $vcn->GCI_combineNo; ?>
</h3>
<table border=1 cellspacing=0 cellpadding=3 width=100%>
<tr>
<td colspan=2 bgcolor=#ECECEC>
<b>总成本: ¥&nbsp;<?php echo $vcn->cost->cost_sum; ?></b>
</td>
</tr>
<tr>
<td colspan=2 bgcolor=#ECECEC>
<b>成本明细: </b>
</td>
</tr>
<?php foreach ($vcn->cost->cost_detail as $kc => $vc) { ?>
<tr>
<td width=60% >
<p>
<?php echo $operation_type[$vc->GCOD_operationType]; ?>
<?php //echo $vc->GCOD_subType;
if ($vc->GCOD_subType) {
echo " - " . $vc->GCOD_subType;
}
?>
</p>
</td>
<td width=40% align="right">
<div>
<?php echo ($vc->cost); ?>
</div>
</td>
</tr>
<?php } ?>
</table>
<?php } ?>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save