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
b7e7692b
authored
Nov 02, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/zhujilai/Order
into zjl_export_20181030
parents
96dc5278
e4c815c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
22 deletions
app/Http/Controllers/OrderController.php
public/css/detail.css
resources/views/changeShipping/content.blade.php
resources/views/detail/content.blade.php
app/Http/Controllers/OrderController.php
View file @
b7e7692b
...
...
@@ -1131,12 +1131,18 @@ Class OrderController extends Controller
public
function
changeShipping
(
Request
$request
,
$id
=
''
)
{
if
(
$request
->
isMethod
(
'post'
)){
$data
[
'map'
]
=
$request
->
input
();
$data
[
'k1'
]
=
time
();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
$data
[
'order_id'
]
=
$request
->
input
(
'order_id'
,
''
);
$data
[
'operator_id'
]
=
$request
->
user
->
userId
;
$data
[
'shipping_type'
]
=
$request
->
input
(
'shipping_type'
,
1
);
$data
[
'consignee'
]
=
$request
->
input
(
'consignee'
,
''
);
$data
[
'mobile'
]
=
$request
->
input
(
'mobile'
,
''
);
$data
[
'province'
]
=
$request
->
input
(
'province'
,
0
);
$data
[
'city'
]
=
$request
->
input
(
'city'
,
0
);
$data
[
'district'
]
=
$request
->
input
(
'district'
,
''
);
$data
[
'address'
]
=
$request
->
input
(
'address'
,
''
);
$data
[
'k1'
]
=
time
();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
$data
[
'order_id'
]
=
$request
->
input
(
'order_id'
,
''
);
$data
[
'operator_id'
]
=
$request
->
user
->
userId
;
$update_url
=
Config
(
'website.api_domain'
)
.
'order/updateOrderAddress'
;
...
...
public/css/detail.css
View file @
b7e7692b
...
...
@@ -80,10 +80,10 @@ li {
.shipping-info
select
{
width
:
150px
;
}
.shipping-info
textarea
{
/*
.shipping-info textarea {
width: 300px;
height: 100px;
}
}
*/
.order-amount
select
,
.order-invoice
select
,
#inv_shipping_id
{
height
:
28px
;
...
...
resources/views/changeShipping/content.blade.php
View file @
b7e7692b
...
...
@@ -19,30 +19,41 @@
<div
class=
"tabs-box shipping-info"
>
<form
action=
"{{URL('changeShipping')}}"
method=
"POST"
>
<input
type=
"hidden"
name=
"order_id"
value=
"{{$detail['order_id']}}"
>
<table
class=
"table"
>
<table
class=
"table
table-hover table-bordered
"
>
<caption><h3>
订单物流信息
</h3></caption>
<tr>
<td>
收货人
</td>
<th
width=
"10%"
>
配送方式
</th>
<td
colspan=
"3"
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"shipping_type"
class=
"shipping_type"
value=
"1"
>
快递配送
</label>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"shipping_type"
class=
"shipping_type"
value=
"2"
>
上门自提
</label>
</td>
</tr>
<tr>
<th
width=
"10%"
>
收货人
</th>
<td><input
type=
"text"
name=
"consignee"
value=
"{{$detail['consignee']}}"
></td>
<t
d>
联系电话
</td
>
<t
h
width=
"10%"
>
联系电话
</th
>
<td><input
type=
"text"
name=
"mobile"
value=
"{{$detail['mobile']}}"
></td>
</tr>
<tr
class=
"address-info"
>
<td>
收货地址
</td>
<td><select
class=
"address s_province"
name=
"province"
default=
"{{$detail['province']}}"
></select></td>
<td><select
class=
"address s_city"
name=
"city"
default=
"{{$detail['city']}}"
></select></td>
<td><select
class=
"address s_county"
name=
"district"
default=
"{{$detail['district']}}"
></select></td>
<th
width=
"10%"
>
收货地址
</th>
<td
colspan=
"3"
>
<select
class=
"address s_province"
name=
"province"
default=
"{{$detail['province']}}"
></select>
<select
class=
"address s_city"
name=
"city"
default=
"{{$detail['city']}}"
></select>
<select
class=
"address s_county"
name=
"district"
default=
"{{$detail['district']}}"
></select>
</td>
</tr>
<tr>
<t
d>
详细地址
</td
>
<td
colspan=
"3"
><textarea
name=
"address"
placeholder=
"请输入详细地址"
>
{{$detail['address']}}
</textarea></td>
<t
h
width=
"10%"
>
详细地址
</th
>
<td
colspan=
"3"
><textarea
class=
"form-control"
name=
"address"
placeholder=
"请输入详细地址"
>
{{$detail['address']}}
</textarea></td>
</tr>
<tr>
<td><input
type=
"submit"
value=
"保存"
class=
"btn btn-success"
></td>
<td></td>
<td></td>
<td></td>
<td
colspan=
"4"
><input
type=
"submit"
value=
"保存"
class=
"btn btn-success"
></td>
</tr>
</table>
</form>
...
...
@@ -52,6 +63,35 @@
<script>
var
tags
=
"{{isset($_REQUEST['tags']) ? $_REQUEST['tags'] : ''}}"
;
var
shipping_type
=
"{{isset($order_info) ? $order_info['order_shipping_type'] : 1}}"
;
var
goods_type
=
"{{isset($order_info) ? $order_info['order_goods_type'] : 1}}"
;
$
(
'.shipping_type'
).
each
(
function
()
{
if
(
$
(
this
).
val
()
==
shipping_type
)
{
$
(
this
).
attr
(
'checked'
,
true
);
}
})
// 自提时隐藏省市区
if
(
shipping_type
==
2
)
{
$
(
'.address-info'
).
hide
();
}
if
(
goods_type
==
2
)
{
var
self_addr
=
'深圳市光明新区新湖街道楼村社区荔都路32号A栋三楼'
;
}
else
{
var
self_addr
=
'深圳市龙岗区坂田五和大道南2号万科星火online六栋三楼猎芯科技'
;
}
$
(
'.shipping_type'
).
change
(
function
()
{
if
(
$
(
this
).
val
()
==
2
)
{
$
(
'.address-info'
).
hide
();
$
(
'textarea[name=address]'
).
val
(
self_addr
).
attr
(
'disabled'
,
true
);
}
else
{
$
(
'.address-info'
).
show
();
$
(
'textarea[name=address]'
).
val
(
''
).
attr
(
'disabled'
,
false
);
}
})
$
.
lie
.
order
.
details
();
</script>
\ No newline at end of file
resources/views/detail/content.blade.php
View file @
b7e7692b
...
...
@@ -182,7 +182,7 @@
<a
href=
"/changeShipping/{{$order_info['order_id']}}"
class=
"btn btn-success btn-sm changeBtn"
>
更改收货地址
</a>
@endif
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'self')
@if (in_array($order_info['status'], array(2, 4))
&&
in_array('self_order_update_address', $userPerms))
@if (in_array($order_info['status'], array(
1,
2, 4))
&&
in_array('self_order_update_address', $userPerms))
<a
href=
"/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}"
class=
"btn btn-success btn-sm changeBtn"
>
更改收货地址
</a>
@endif
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'erp')
...
...
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