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
d38893df
authored
Feb 18, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
ccabf4ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
0 deletions
app/Http/Controllers/OrderController.php
app/Http/routes.php
public/js/order.js
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
d38893df
...
...
@@ -488,6 +488,42 @@ Class OrderController extends Controller
return
$info
;
}
// 订单其他信息
public
function
orderOtherInfoLoading
(
Request
$request
)
{
// 页面参数
$map
[
'order_type'
]
=
$request
->
input
(
'order_type'
,
''
);
$map
[
'order_contain'
]
=
$request
->
input
(
'order_contain'
,
''
);
$map
[
'time_start'
]
=
$request
->
input
(
'time_start'
,
''
);
$map
[
'time_end'
]
=
$request
->
input
(
'time_end'
,
''
);
$map
[
'order_status'
]
=
$request
->
input
(
'order_status'
,
''
);
$map
[
'sale_type'
]
=
$request
->
input
(
'sale_type'
,
''
);
$map
[
'shipping_name'
]
=
$request
->
input
(
'shipping_name'
,
''
);
$map
[
'order_send'
]
=
$request
->
input
(
'order_send'
,
''
);
$map
[
'test_order'
]
=
$request
->
input
(
'test_order'
,
''
);
$map
[
'order_pay_type'
]
=
$request
->
input
(
'order_pay_type'
,
''
);
$map
[
'order_type_a'
]
=
$request
->
input
(
'order_type_a'
,
''
);
$map
[
'order_source'
]
=
$request
->
input
(
'order_source'
,
''
);
$map
[
'order_source_pf'
]
=
$request
->
input
(
'order_source_pf'
,
''
);
$map
[
'order_source_adtag'
]
=
$request
->
input
(
'order_source_adtag'
,
''
);
$map
[
'order_source_ptag'
]
=
$request
->
input
(
'order_source_ptag'
,
''
);
$map
[
'erp_order_id'
]
=
$request
->
input
(
'erp_order_id'
,
''
);
$map
[
'order_payment_mode'
]
=
$request
->
input
(
'order_payment_mode'
,
''
);
$map
[
'order_invoice_status'
]
=
$request
->
input
(
'order_invoice_status'
,
''
);
$map
[
'is_new'
]
=
$request
->
input
(
'is_new'
,
''
);
$map
[
'is_new_order'
]
=
$request
->
input
(
'is_new_order'
,
''
);
$url
=
Config
(
'website.api_domain'
)
.
'order/getOrderOtherInfo'
;
$data
[
'k1'
]
=
time
();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
$data
[
'map'
]
=
$map
;
echo
'<pre>'
;
print_r
(
curlApi
(
$url
,
$data
));
die
;
$response
=
json_decode
(
curlApi
(
$url
,
$data
),
true
);
}
// erp订单
public
function
erpOrder
(
Request
$request
)
{
...
...
app/Http/routes.php
View file @
d38893df
...
...
@@ -33,6 +33,7 @@ Route::pattern('roleId', '[0-9]+');
Route
::
group
([
'middleware'
=>
'web'
],
function
()
{
Route
::
get
(
'/'
,
'OrderController@orderList'
);
Route
::
get
(
'/list'
,
'OrderController@orderList'
);
Route
::
post
(
'/ajax/orderOtherInfoLoading'
,
'OrderController@orderOtherInfoLoading'
);
Route
::
get
(
'/erp_order'
,
'OrderController@erpOrder'
);
Route
::
get
(
'/export'
,
'OrderController@export'
);
...
...
public/js/order.js
View file @
d38893df
...
...
@@ -323,9 +323,50 @@
location
.
href
=
listUrl
;
})
// 订单其他信息
this
.
orderOtherInfo
();
// 填写取消原因
this
.
cancelorder
();
},
// 订单其他信息:已付款, 下单用户数, 付款用户数, 金额
orderOtherInfo
:
function
()
{
var
datax
=
{
order_type
:
$
(
'#order_type'
).
data
(
'default'
),
order_contain
:
$
(
'input[name=order_contain]'
).
val
(),
time_start
:
$
(
'input[name="time_start"]'
).
val
(),
time_end
:
$
(
'input[name="time_end"]'
).
val
(),
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
()
:
''
,
};
console
.
log
(
datax
)
$
.
ajax
({
type
:
"POST"
,
url
:
'/ajax/orderOtherInfoLoading'
,
data
:
datax
,
dataType
:
"json"
,
success
:
function
(
resp
){
if
(
resp
.
errcode
!=
0
)
{
layer
.
msg
(
resp
.
errmsg
);
return
false
;
}
},
})
},
// 取消订单弹框
cancelorder
:
function
()
{
// 填写订单取消原因
...
...
resources/views/orderlist/content.blade.php
View file @
d38893df
...
...
@@ -468,6 +468,7 @@
<span
class=
"error"
>
共有{{$noreason_count}}单已取消订单未填写取消原因
</span>
@endif
</span>
<span
class=
"show-other-info"
></span>
@endif
<?php
echo
$page
;
?>
...
...
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