Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
05731b1b
authored
Mar 07, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
取消列表页异步加载
parent
ddfbe6c3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
78 deletions
app/Http/Controllers/OrderController.php
public/js/order.js
resources/views/erpOrder/content.blade.php
resources/views/orderlist/content.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
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
)
...
...
public/js/order.js
View file @
05731b1b
...
...
@@ -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
();
...
...
resources/views/erpOrder/content.blade.php
View file @
05731b1b
...
...
@@ -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>
...
...
resources/views/orderlist/content.blade.php
View file @
05731b1b
...
...
@@ -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>
...
...
resources/views/selfOrder/content.blade.php
View file @
05731b1b
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment