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
e37e0993
authored
Mar 07, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' into development
parents
dbf783a9
05731b1b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
82 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 @
e37e0993
...
@@ -484,22 +484,22 @@ Class OrderController extends Controller
...
@@ -484,22 +484,22 @@ Class OrderController extends Controller
}
}
// 订单其他信息
// 订单其他信息
public
function
orderOtherInfoLoading
(
Request
$request
)
//
public function orderOtherInfoLoading(Request $request)
{
//
{
// 判断页面
//
// 判断页面
$tid
=
$request
->
input
(
'pid'
,
1
);
//
$tid = $request->input('pid', 1);
$info
=
$this
->
_search
(
$request
,
$tid
);
//
$info = $this->_search($request, $tid);
$url
=
Config
(
'website.api_domain'
)
.
'order/getOrderOtherInfo'
;
//
$url = Config('website.api_domain').'order/getOrderOtherInfo';
$data
[
'k1'
]
=
time
();
//
$data['k1'] = time();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
//
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
$data
[
'map'
]
=
$info
[
'map'
];
//
$data['map'] = $info['map'];
$response
=
json_decode
(
curlApi
(
$url
,
$data
),
true
);
//
$response = json_decode(curlApi($url, $data), true);
return
$response
;
//
return $response;
}
//
}
// erp订单
// erp订单
public
function
erpOrder
(
Request
$request
)
public
function
erpOrder
(
Request
$request
)
...
...
public/js/order.js
View file @
e37e0993
...
@@ -330,76 +330,76 @@
...
@@ -330,76 +330,76 @@
})
})
// 非尽调账号时加载信息
// 非尽调账号时加载信息
if
(
username
!=
'vpadmin@ichunt.com'
)
{
//
if (username != 'vpadmin@ichunt.com') {
// 订单其他信息
//
// 订单其他信息
var
page_type
=
$
(
'#page_type'
).
val
();
//
var page_type = $('#page_type').val();
orderOtherInfo
(
page_type
);
//
orderOtherInfo(page_type);
// 订单其他信息:已付款, 下单用户数, 付款用户数, 金额
//
// 订单其他信息:已付款, 下单用户数, 付款用户数, 金额
function
orderOtherInfo
(
pid
)
{
//
function orderOtherInfo(pid) {
var
order_contain
=
$
(
'input[name=order_contain]'
).
val
(),
//
var order_contain = $('input[name=order_contain]').val(),
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
//
time_start = $('input[name="time_start"]').val(),
time_end
=
$
(
'input[name="time_end"]'
).
val
();
//
time_end = $('input[name="time_end"]').val();
if
(
time_start
){
//
if(time_start){
time_start
=
Date
.
parse
(
time_start
)
/
1000
;
//
time_start = Date.parse(time_start) / 1000;
}
//
}
if
(
time_end
){
//
if(time_end){
time_end
=
Date
.
parse
(
time_end
)
/
1000
+
(
24
*
60
*
60
-
1
);
//
time_end = Date.parse(time_end) / 1000 + (24*60*60-1);
}
//
}
var
datax
=
{
//
var datax = {
order_type
:
$
(
'#order_type'
).
data
(
'default'
),
//
order_type : $('#order_type').data('default'),
order_contain
:
specialStr
(
order_contain
),
//
order_contain : specialStr(order_contain),
time_start
:
time_start
,
//
time_start : time_start,
time_end
:
time_end
,
//
time_end : time_end,
order_pay_type
:
$
(
'#order_pay_type'
).
val
()
?
$
(
'#order_pay_type'
).
val
()
:
''
,
//
order_pay_type : $('#order_pay_type').val() ? $('#order_pay_type').val() : '',
order_status
:
$
(
'#order_status'
).
val
()
?
$
(
'#order_status'
).
val
()
:
''
,
//
order_status : $('#order_status').val() ? $('#order_status').val() : '',
sale_type
:
$
(
'#sale_type'
).
val
()
?
$
(
'#sale_type'
).
val
()
:
''
,
//
sale_type : $('#sale_type').val() ? $('#sale_type').val() : '',
shipping_name
:
$
(
'#shipping_name'
).
val
()
?
$
(
'#shipping_name'
).
val
()
:
''
,
//
shipping_name : $('#shipping_name').val() ? $('#shipping_name').val() : '',
order_send
:
$
(
'#order_send'
).
val
(),
//
order_send : $('#order_send').val(),
order_source_pf
:
$
(
'#order_source_pf'
).
val
()
?
$
(
'#order_source_pf'
).
val
()
:
''
,
//
order_source_pf : $('#order_source_pf').val() ? $('#order_source_pf').val() : '',
order_invoice_status
:
$
(
'#order_invoice_status'
).
val
()
?
$
(
'#order_invoice_status'
).
val
()
:
''
,
//
order_invoice_status : $('#order_invoice_status').val() ? $('#order_invoice_status').val() : '',
order_source_adtag
:
$
(
'input[name="order_source_adtag"]'
).
val
(),
//
order_source_adtag : $('input[name="order_source_adtag"]').val(),
order_source_ptag
:
$
(
'input[name="order_source_ptag"]'
).
val
(),
//
order_source_ptag : $('input[name="order_source_ptag"]').val(),
erp_order_id
:
$
(
'#erp_order_id'
).
val
()
?
$
(
'#erp_order_id'
).
val
()
:
''
,
//
erp_order_id : $('#erp_order_id').val() ? $('#erp_order_id').val() : '',
test_order
:
$
(
'input[name=test_order]'
).
is
(
':checked'
)
?
1
:
0
,
//
test_order : $('input[name=test_order]').is(':checked') ? 1 : 0,
is_new
:
$
(
'#is_new'
).
val
()
?
$
(
'#is_new'
).
val
()
:
''
,
//
is_new : $('#is_new').val() ? $('#is_new').val() : '',
order_payment_mode
:
$
(
'#order_payment_mode'
).
val
()
?
$
(
'#order_payment_mode'
).
val
()
:
''
,
//
order_payment_mode : $('#order_payment_mode').val() ? $('#order_payment_mode').val() : '',
is_new_order
:
$
(
'#is_new_order'
).
val
()
?
$
(
'#is_new_order'
).
val
()
:
''
,
//
is_new_order : $('#is_new_order').val() ? $('#is_new_order').val() : '',
business_type
:
$
(
'#business_type'
).
val
()
?
$
(
'#business_type'
).
val
()
:
''
,
//
business_type : $('#business_type').val() ? $('#business_type').val() : '',
pid
:
pid
,
//
pid : pid,
};
//
};
$
.
ajax
({
//
$.ajax({
type
:
"POST"
,
//
type: "POST",
url
:
'/ajax/orderOtherInfoLoading'
,
//
url: '/ajax/orderOtherInfoLoading',
data
:
datax
,
//
data: datax,
dataType
:
"json"
,
//
dataType: "json",
success
:
function
(
resp
){
//
success: function(resp){
if
(
resp
.
err_code
!=
0
)
{
//
if (resp.err_code != 0) {
layer
.
msg
(
resp
.
err_msg
);
//
layer.msg(resp.err_msg);
return
false
;
//
return false;
}
//
}
var
data
=
resp
.
data
;
//
var data = resp.data;
var
html
=
''
;
//
var html = '';
if
(
pid
!=
3
)
{
//
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="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
)
{
//
if (pid != 3 && data.noreason_count) {
html
+=
'<span class="error">共有'
+
data
.
noreason_count
+
'单已取消订单未填写取消原因</span>'
;
//
html += '<span class="error">共有'+data.noreason_count+'单已取消订单未填写取消原因</span>';
}
//
}
$
(
'.show-other-info'
).
append
(
html
);
//
$('.show-other-info').append(html);
},
//
},
})
//
})
}
//
}
}
//
}
// 填写取消原因
// 填写取消原因
this
.
cancelorder
();
this
.
cancelorder
();
...
...
resources/views/erpOrder/content.blade.php
View file @
e37e0993
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
<div
class=
"row-fluid pagination"
>
<div
class=
"row-fluid pagination"
>
@if ($username != 'vpadmin@ichunt.com')
@if ($username != 'vpadmin@ichunt.com')
<span
class=
"show-list-info"
>
<span
class=
"show-list-info"
>
共{{$count ? $count : 0}}单
,
共{{$count ? $count : 0}}单
<span
class=
"show-other-info"
></span>
<span
class=
"show-other-info"
></span>
</span>
</span>
...
...
resources/views/orderlist/content.blade.php
View file @
e37e0993
...
@@ -458,7 +458,7 @@
...
@@ -458,7 +458,7 @@
<div
class=
"row-fluid pagination"
>
<div
class=
"row-fluid pagination"
>
@if ($username != 'vpadmin@ichunt.com')
@if ($username != 'vpadmin@ichunt.com')
<span
class=
"show-list-info"
>
<span
class=
"show-list-info"
>
共{{$count ? $count : 0}}单
,
共{{$count ? $count : 0}}单
<span
class=
"show-other-info"
></span>
<span
class=
"show-other-info"
></span>
</span>
</span>
...
...
resources/views/selfOrder/content.blade.php
View file @
e37e0993
...
@@ -351,7 +351,7 @@
...
@@ -351,7 +351,7 @@
<div
class=
"row-fluid pagination"
>
<div
class=
"row-fluid pagination"
>
@if ($username != 'vpadmin@ichunt.com')
@if ($username != 'vpadmin@ichunt.com')
<span
class=
"show-list-info"
>
<span
class=
"show-list-info"
>
共{{$count ? $count : 0}}单
,
共{{$count ? $count : 0}}单
<span
class=
"show-other-info"
></span>
<span
class=
"show-other-info"
></span>
</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