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
f177edeb
authored
Dec 19, 2019
by
allen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单周迭代 变更
parent
a7f0fb99
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
15 deletions
app/Http/Controllers/OrderController.php
public/js/order.js
resources/views/detail/content.blade.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
f177edeb
...
...
@@ -402,6 +402,7 @@ Class OrderController extends Controller
// 页面参数
$map
[
'order_type'
]
=
$request
->
input
(
'order_type'
,
''
);
$map
[
'select_time_val'
]
=
$request
->
input
(
'select_time_val'
,
''
);
$map
[
'order_contain'
]
=
$request
->
input
(
'order_contain'
,
''
);
$map
[
'order_sn'
]
=
$request
->
input
(
'order_sn'
,
''
);
$map
[
'erp_sn'
]
=
$request
->
input
(
'erp_sn'
,
''
);
...
...
public/js/order.js
View file @
f177edeb
...
...
@@ -80,6 +80,9 @@
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
select_time_val
=
$
(
'.select_time_val.active'
).
attr
(
'data-val'
),
confirm_time_start
=
$
(
'input[name="confirm_time_start"]'
).
val
(),
confirm_time_end
=
$
(
'input[name="confirm_time_end"]'
).
val
(),
...
...
@@ -169,6 +172,11 @@
listUrl
+=
'&time_end='
+
time_end
;
}
if
(
select_time_val
){
listUrl
+=
'&select_time_val='
+
select_time_val
;
}
if
(
confirm_time_start
){
confirm_time_start
=
Date
.
parse
(
confirm_time_start
)
/
1000
;
...
...
resources/views/detail/content.blade.php
View file @
f177edeb
...
...
@@ -477,7 +477,7 @@
<th>
自采标记
</th>
<th
hidden
>
批号
</th>
<th
>
批号
</th>
@if ($order_info['order_goods_type'] == 1)
<th>
生产跟踪
</th>
...
...
@@ -549,7 +549,7 @@
</td>
<td
hidden
class=
"batch"
>
<td
class=
"batch"
>
<?php
echo
!
empty
(
$v
[
'batch'
])
?
$v
[
'batch'
]
:
''
;
?>
</td>
...
...
@@ -570,7 +570,7 @@
@endif
<td>
<button
type=
"button"
class=
"btn btn-success btn-xs remarks"
>
填写备注
</button>
<button
type=
"button"
class=
"btn btn-success btn-xs remarks"
>
编辑
</button>
</td>
@if ($action_name == 'changeOrder'
&&
count($order_items_info) > 1
&&
in_array($order_info['status'], [1, 2]))
...
...
@@ -1095,9 +1095,7 @@
if
(
$remarks
.
length
>
0
||
user_id
>
0
||
$batch
.
length
>
0
){
$
.
post
(
'/api/update_order_items'
,{
id
:
$id
,
remarks
:
$remarks
,
userId
:
user_id
,
batch
:
$batch
},
function
(
data
){
if
(
data
.
errcode
==
1
){
history
.
go
(
0
)
}
history
.
go
(
0
);
},
'json'
)
}
else
{
...
...
resources/views/orderlist/content.blade.php
View file @
f177edeb
...
...
@@ -37,15 +37,11 @@
<input
type=
"text"
name=
"erp_sn"
value=
"{{$condition['erp_sn']}}"
placeholder=
"请输入ERP订单号"
>
</dd>
</dl>
<dl>
<dt>
创建日期:
</dt>
<dd
style=
"width:auto !important;"
>
<input
type=
"text"
name=
"time_start"
value=
"{{ !empty($condition['time_start']) ? date('Y/m/d', $condition['time_start']) : '' }}"
class=
"Wdate "
onfocus=
"WdatePicker({dateFmt:'yyyy/MM/dd'})"
placeholder=
"开始时间"
autocomplete=
"off"
/>
</dd>
<dd
style=
"width:auto !important;"
>
<input
type=
"text"
name=
"time_end"
value=
"{{ !empty($condition['time_end']) ? date('Y/m/d', $condition['time_end']) : '' }}"
class=
"Wdate "
onfocus=
"WdatePicker({dateFmt:'yyyy/MM/dd'})"
placeholder=
"结束时间"
autocomplete=
"off"
/>
</dd>
</dl>
<!-- <dl>
<dt>审核日期: </dt>
...
...
@@ -93,6 +89,62 @@
<input
type=
"text"
name=
"goods_name"
value=
"{{$condition['goods_name']}}"
placeholder=
"请输入型号名称"
>
</dd>
</dl>
<?php
if
(
!
empty
(
$_REQUEST
[
'time_start'
])){
$time_str_start
=
'time_start'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'confirm_time_start'
])){
$time_str_start
=
'confirm_time_start'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'pay_time_start'
])){
$time_str_start
=
'pay_time_start'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'shipping_time_start'
])){
$time_str_start
=
'shipping_time_start'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'finish_time_start'
])){
$time_str_start
=
'finish_time_start'
;
}
else
{
$time_str_start
=
'time_start'
;
}
if
(
!
empty
(
$_REQUEST
[
'time_end'
])){
$time_str_end
=
'time_end'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'confirm_time_end'
])){
$time_str_end
=
'confirm_time_end'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'pay_time_end'
])){
$time_str_end
=
'pay_time_end'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'shipping_time_end'
])){
$time_str_end
=
'shipping_time_end'
;
}
else
if
(
!
empty
(
$_REQUEST
[
'finish_time_end'
])){
$time_str_end
=
'finish_time_end'
;
}
else
{
$time_str_end
=
'time_end'
;
}
?>
<dl
style=
"width:792px"
>
<dt>
按时间筛选:
</dt>
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['select_time_val']}}"
id=
"select_time"
name=
"select_time"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"select_time_val"
data-val=
""
>
创建日期:
</li>
<li
class=
"select_time_val"
data-val=
"1"
>
审核日期:
</li>
<li
class=
"select_time_val"
data-val=
"2"
>
收款日期:
</li>
<li
class=
"select_time_val"
data-val=
"3"
>
发货日期:
</li>
<li
class=
"select_time_val"
data-val=
"4"
>
订单完成:
</li>
</ul>
</div>
</dd>
<dd
style=
"width:auto !important;"
id=
"start_time"
>
<input
type=
"text"
name=
"{{$time_str_start}}"
value=
"{{ !empty($condition[$time_str_start]) ? date('Y/m/d', $condition[$time_str_start]) : '' }}"
class=
"Wdate "
onfocus=
"WdatePicker({dateFmt:'yyyy/MM/dd'})"
placeholder=
"开始时间"
autocomplete=
"off"
/>
</dd>
<dd
style=
"width:auto !important;"
id =
"end_time"
>
<input
type=
"text"
name=
"{{$time_str_end}}"
value=
"{{ !empty($condition[$time_str_end]) ? date('Y/m/d', $condition[$time_str_end]) : '' }}"
class=
"Wdate "
onfocus=
"WdatePicker({dateFmt:'yyyy/MM/dd'})"
placeholder=
"结束时间"
autocomplete=
"off"
/>
</dd>
</dl>
<dl>
<dt>
订单状态:
</dt>
<dd>
...
...
@@ -105,6 +157,9 @@
</select>
</dd>
</dl>
<dl>
<dt>
付款类型:
</dt>
<dd>
...
...
@@ -477,4 +532,44 @@
// 展开菜单
$
(
'#side-menu'
).
children
(
'li'
).
eq
(
1
).
addClass
(
'active'
);
$
(
'#side-menu'
).
children
(
'li'
).
eq
(
1
).
children
(
'ul'
).
children
(
'li'
).
eq
(
0
).
addClass
(
'active'
);
$
(
function
(){
$
(
'#select_time'
).
find
(
'li'
).
click
(
function
(){
var
$id
=
$
(
this
).
attr
(
'data-val'
);
console
.
log
(
$id
);
if
(
$id
==
''
){
//创建日期
$
(
'#start_time'
).
find
(
'input'
).
attr
(
'name'
,
'time_start'
);
$
(
'#end_time'
).
find
(
'input'
).
attr
(
'name'
,
'time_start'
);
}
else
if
(
$id
==
1
){
//审核日期
$
(
'#start_time'
).
find
(
'input'
).
attr
(
'name'
,
'confirm_time_start'
);
$
(
'#end_time'
).
find
(
'input'
).
attr
(
'name'
,
'confirm_time_end'
);
}
else
if
(
$id
==
2
){
//收款日期
$
(
'#start_time'
).
find
(
'input'
).
attr
(
'name'
,
'pay_time_start'
);
$
(
'#end_time'
).
find
(
'input'
).
attr
(
'name'
,
'pay_time_end'
);
}
else
if
(
$id
==
3
){
//发货日期
$
(
'#start_time'
).
find
(
'input'
).
attr
(
'name'
,
'shipping_time_start'
);
$
(
'#end_time'
).
find
(
'input'
).
attr
(
'name'
,
'shipping_time_end'
);
}
else
if
(
$id
==
4
){
//订单完成
$
(
'#start_time'
).
find
(
'input'
).
attr
(
'name'
,
'finish_time_start'
);
$
(
'#end_time'
).
find
(
'input'
).
attr
(
'name'
,
'finish_time_end'
);
}
})
})
</script>
\ No newline at end of file
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