Commit e37e0993 by 朱继来

Merge branch 'master' into development

parents dbf783a9 05731b1b
......@@ -484,22 +484,22 @@ Class OrderController extends Controller
}
// 订单其他信息
public function orderOtherInfoLoading(Request $request)
{
// 判断页面
$tid = $request->input('pid', 1);
$info = $this->_search($request, $tid);
// public function orderOtherInfoLoading(Request $request)
// {
// // 判断页面
// $tid = $request->input('pid', 1);
// $info = $this->_search($request, $tid);
$url = Config('website.api_domain').'order/getOrderOtherInfo';
// $url = Config('website.api_domain').'order/getOrderOtherInfo';
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
$data['map'] = $info['map'];
// $data['k1'] = time();
// $data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
// $data['map'] = $info['map'];
$response = json_decode(curlApi($url, $data), true);
// $response = json_decode(curlApi($url, $data), true);
return $response;
}
// return $response;
// }
// erp订单
public function erpOrder(Request $request)
......
......@@ -330,76 +330,76 @@
})
// 非尽调账号时加载信息
if (username != 'vpadmin@ichunt.com') {
// 订单其他信息
var page_type = $('#page_type').val();
orderOtherInfo(page_type);
// 订单其他信息:已付款, 下单用户数, 付款用户数, 金额
function orderOtherInfo(pid) {
var order_contain = $('input[name=order_contain]').val(),
time_start = $('input[name="time_start"]').val(),
time_end = $('input[name="time_end"]').val();
if(time_start){
time_start = Date.parse(time_start) / 1000;
}
// if (username != 'vpadmin@ichunt.com') {
// // 订单其他信息
// var page_type = $('#page_type').val();
// orderOtherInfo(page_type);
// // 订单其他信息:已付款, 下单用户数, 付款用户数, 金额
// function orderOtherInfo(pid) {
// var order_contain = $('input[name=order_contain]').val(),
// time_start = $('input[name="time_start"]').val(),
// time_end = $('input[name="time_end"]').val();
// if(time_start){
// time_start = Date.parse(time_start) / 1000;
// }
if(time_end){
time_end = Date.parse(time_end) / 1000 + (24*60*60-1);
}
// if(time_end){
// time_end = Date.parse(time_end) / 1000 + (24*60*60-1);
// }
var datax = {
order_type : $('#order_type').data('default'),
order_contain : specialStr(order_contain),
time_start : time_start,
time_end : time_end,
order_pay_type : $('#order_pay_type').val() ? $('#order_pay_type').val() : '',
order_status : $('#order_status').val() ? $('#order_status').val() : '',
sale_type : $('#sale_type').val() ? $('#sale_type').val() : '',
shipping_name : $('#shipping_name').val() ? $('#shipping_name').val() : '',
order_send : $('#order_send').val(),
order_source_pf : $('#order_source_pf').val() ? $('#order_source_pf').val() : '',
order_invoice_status : $('#order_invoice_status').val() ? $('#order_invoice_status').val() : '',
order_source_adtag : $('input[name="order_source_adtag"]').val(),
order_source_ptag : $('input[name="order_source_ptag"]').val(),
erp_order_id : $('#erp_order_id').val() ? $('#erp_order_id').val() : '',
test_order : $('input[name=test_order]').is(':checked') ? 1 : 0,
is_new : $('#is_new').val() ? $('#is_new').val() : '',
order_payment_mode : $('#order_payment_mode').val() ? $('#order_payment_mode').val() : '',
is_new_order : $('#is_new_order').val() ? $('#is_new_order').val() : '',
business_type : $('#business_type').val() ? $('#business_type').val() : '',
pid : pid,
};
// var datax = {
// order_type : $('#order_type').data('default'),
// order_contain : specialStr(order_contain),
// time_start : time_start,
// time_end : time_end,
// order_pay_type : $('#order_pay_type').val() ? $('#order_pay_type').val() : '',
// order_status : $('#order_status').val() ? $('#order_status').val() : '',
// sale_type : $('#sale_type').val() ? $('#sale_type').val() : '',
// shipping_name : $('#shipping_name').val() ? $('#shipping_name').val() : '',
// order_send : $('#order_send').val(),
// order_source_pf : $('#order_source_pf').val() ? $('#order_source_pf').val() : '',
// order_invoice_status : $('#order_invoice_status').val() ? $('#order_invoice_status').val() : '',
// order_source_adtag : $('input[name="order_source_adtag"]').val(),
// order_source_ptag : $('input[name="order_source_ptag"]').val(),
// erp_order_id : $('#erp_order_id').val() ? $('#erp_order_id').val() : '',
// test_order : $('input[name=test_order]').is(':checked') ? 1 : 0,
// is_new : $('#is_new').val() ? $('#is_new').val() : '',
// order_payment_mode : $('#order_payment_mode').val() ? $('#order_payment_mode').val() : '',
// is_new_order : $('#is_new_order').val() ? $('#is_new_order').val() : '',
// business_type : $('#business_type').val() ? $('#business_type').val() : '',
// pid : pid,
// };
$.ajax({
type: "POST",
url: '/ajax/orderOtherInfoLoading',
data: datax,
dataType: "json",
success: function(resp){
if (resp.err_code != 0) {
layer.msg(resp.err_msg);
return false;
}
var data = resp.data;
var html = '';
// $.ajax({
// type: "POST",
// url: '/ajax/orderOtherInfoLoading',
// data: datax,
// dataType: "json",
// success: function(resp){
// if (resp.err_code != 0) {
// layer.msg(resp.err_msg);
// return false;
// }
// var data = resp.data;
// var html = '';
if (pid != 3) {
html += '<span class="paid_order_count">'+data.paid_order_count+'单已付款(包含预付款),</span><span class="user_count">下单用户数为'+data.user_count+'人,</span><span class="paid_user_count">付款用户数为'+data.paid_user_count+'人,</span>';
}
// if (pid != 3) {
// html += ',<span class="paid_order_count">'+data.paid_order_count+'单已付款(包含预付款),</span><span class="user_count">下单用户数为'+data.user_count+'人,</span><span class="paid_user_count">付款用户数为'+data.paid_user_count+'人,</span>';
// }
html += '<span class="rmb_count">应付金额 ¥'+data.pay_count.rmb_count+',</span><span class="usd_count">$'+data.pay_count.usd_count+',</span><span class="rmb_pay">实收金额 ¥'+data.pay_count.rmb_pay+',</span><span class="usd_pay">$'+data.pay_count.usd_pay+',</span>';
// html += '<span class="rmb_count">应付金额 ¥'+data.pay_count.rmb_count+',</span><span class="usd_count">$'+data.pay_count.usd_count+',</span><span class="rmb_pay">实收金额 ¥'+data.pay_count.rmb_pay+',</span><span class="usd_pay">$'+data.pay_count.usd_pay+',</span>';
if (pid != 3 && data.noreason_count) {
html += '<span class="error">共有'+data.noreason_count+'单已取消订单未填写取消原因</span>';
}
// if (pid != 3 && data.noreason_count) {
// html += '<span class="error">共有'+data.noreason_count+'单已取消订单未填写取消原因</span>';
// }
$('.show-other-info').append(html);
},
})
}
}
// $('.show-other-info').append(html);
// },
// })
// }
// }
// 填写取消原因
this.cancelorder();
......
......@@ -289,7 +289,7 @@
<div class="row-fluid pagination">
@if ($username != 'vpadmin@ichunt.com')
<span class="show-list-info">
共{{$count ? $count : 0}}单
共{{$count ? $count : 0}}单
<span class="show-other-info"></span>
</span>
......
......@@ -458,7 +458,7 @@
<div class="row-fluid pagination">
@if ($username != 'vpadmin@ichunt.com')
<span class="show-list-info">
共{{$count ? $count : 0}}单
共{{$count ? $count : 0}}单
<span class="show-other-info"></span>
</span>
......
......@@ -351,7 +351,7 @@
<div class="row-fluid pagination">
@if ($username != 'vpadmin@ichunt.com')
<span class="show-list-info">
共{{$count ? $count : 0}}单
共{{$count ? $count : 0}}单
<span class="show-other-info"></span>
</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment