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
a19b8bf5
authored
Jul 09, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. 添加ptag搜索;
2. 调整搜索栏样式;
parent
1ab16540
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
287 additions
and
238 deletions
app/Http/Controllers/OrderController.php
public/js/order.js
public/js/self_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 @
a19b8bf5
...
...
@@ -275,6 +275,7 @@ Class OrderController extends Controller
$map
[
'order_type_a'
]
=
$request
->
input
(
'order_type_a'
,
''
);
$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'
,
''
);
...
...
@@ -450,6 +451,7 @@ Class OrderController extends Controller
$map
[
'order_type_a'
]
=
$request
->
input
(
'order_type_a'
,
''
);
$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'
,
''
);
...
...
@@ -583,10 +585,22 @@ Class OrderController extends Controller
}
}
})
// ->where(function ($query) use ($map) {
// // adtags来源
// if (!empty($map['order_source_adtag'])) {
// $query->whereRaw('FIND_IN_SET("adtag='.$map['order_source_adtag'].'", o.order_source)');
// }
// })
->
where
(
function
(
$query
)
use
(
$map
)
{
// adtags来源
if
(
!
empty
(
$map
[
'order_source_adtag'
]))
{
$query
->
whereRaw
(
'FIND_IN_SET("adtag='
.
$map
[
'order_source_adtag'
]
.
'", o.order_source)'
);
$query
->
where
(
'o.order_source'
,
'like'
,
'%adtag='
.
$map
[
'order_source_adtag'
]
.
'%'
);
}
})
->
where
(
function
(
$query
)
use
(
$map
)
{
// ptag来源
if
(
!
empty
(
$map
[
'order_source_ptag'
]))
{
$query
->
where
(
'o.order_source'
,
'like'
,
'%ptag='
.
$map
[
'order_source_ptag'
]
.
'%'
);
}
})
->
where
(
function
(
$query
)
use
(
$map
)
{
...
...
public/js/order.js
View file @
a19b8bf5
...
...
@@ -78,6 +78,7 @@
order_send
=
$
(
'#order_send'
).
data
(
'default'
),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_source_adtag
=
$
(
'input[name="order_source_adtag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
test_order
=
$
(
'input[name=test_order]'
),
erp_order_id
=
$
(
'#erp_order_id'
).
data
(
'default'
),
listUrl
=
'/list'
;
...
...
@@ -128,6 +129,10 @@
listUrl
+=
'&order_source_adtag='
+
order_source_adtag
;
}
if
(
order_source_ptag
)
{
listUrl
+=
'&order_source_ptag='
+
order_source_ptag
;
}
if
(
erp_order_id
)
{
listUrl
+=
'&erp_order_id='
+
erp_order_id
;
}
...
...
@@ -136,7 +141,7 @@
listUrl
+=
'&test_order='
+
1
;
}
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
erp_order_id
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
erp_order_id
&&
!
test_order
.
is
(
':checked'
))
{
listUrl
=
'/list'
;
}
...
...
@@ -156,16 +161,17 @@
order_send
=
$
(
'#order_send'
).
data
(
'default'
),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_source_adtag
=
$
(
'input[name="order_source_adtag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
erp_order_id
=
$
(
'#erp_order_id'
).
data
(
'default'
),
test_order
=
$
(
'input[name=test_order]'
);
if
(
test_order
.
length
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
erp_order_id
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
erp_order_id
&&
!
test_order
.
is
(
':checked'
))
{
layer
.
msg
(
'请选择筛选条件,再导出!'
);
return
false
;
}
}
else
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
erp_order_id
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
erp_order_id
)
{
layer
.
msg
(
'请选择筛选条件,再导出!'
);
return
false
;
}
...
...
@@ -189,7 +195,7 @@
test_order
=
''
;
}
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_pay_type='
+
order_pay_type
+
'&order_status='
+
order_status
+
'&shipping_name='
+
shipping_name
+
'&order_send='
+
order_send
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&erp_order_id='
+
erp_order_id
+
'&test_order='
+
test_order
+
'&order_goods_type='
+
1
;
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_pay_type='
+
order_pay_type
+
'&order_status='
+
order_status
+
'&shipping_name='
+
shipping_name
+
'&order_send='
+
order_send
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&
order_source_ptag='
+
order_source_ptag
+
'&
erp_order_id='
+
erp_order_id
+
'&test_order='
+
test_order
+
'&order_goods_type='
+
1
;
})
// 选择查看测试订单
...
...
public/js/self_order.js
View file @
a19b8bf5
...
...
@@ -17,6 +17,7 @@
order_payment_mode
=
$
(
'#order_payment_mode'
).
data
(
'default'
),
order_invoice_status
=
$
(
'#order_invoice_status'
).
data
(
'default'
),
order_source_adtag
=
$
(
'input[name="order_source_adtag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
test_order
=
$
(
'input[name=test_order]'
),
listUrl
=
'/self_order'
;
...
...
@@ -62,11 +63,15 @@
listUrl
+=
'&order_source_adtag='
+
order_source_adtag
;
}
if
(
order_source_ptag
)
{
listUrl
+=
'&order_source_ptag='
+
order_source_ptag
;
}
if
(
test_order
.
is
(
':checked'
))
{
listUrl
+=
'&test_order='
+
1
;
}
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
test_order
.
is
(
':checked'
))
{
listUrl
=
'/self_order'
;
}
...
...
@@ -85,15 +90,16 @@
order_payment_mode
=
$
(
'#order_payment_mode'
).
data
(
'default'
),
order_invoice_status
=
$
(
'#order_invoice_status'
).
data
(
'default'
),
order_source_adtag
=
$
(
'input[name="order_source_adtag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
test_order
=
$
(
'input[name=test_order]'
);
if
(
test_order
.
length
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
test_order
.
is
(
':checked'
))
{
layer
.
msg
(
'请选择筛选条件,再导出!'
);
return
false
;
}
}
else
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
)
{
layer
.
msg
(
'请选择筛选条件,再导出!'
);
return
false
;
}
...
...
@@ -113,7 +119,7 @@
test_order
=
''
;
}
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_payment_mode='
+
order_payment_mode
+
'&order_status='
+
order_status
+
'&order_invoice_status='
+
order_invoice_status
+
'&order_send='
+
order_send
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&test_order='
+
test_order
+
'&order_goods_type='
+
2
;
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_payment_mode='
+
order_payment_mode
+
'&order_status='
+
order_status
+
'&order_invoice_status='
+
order_invoice_status
+
'&order_send='
+
order_send
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&
order_source_ptag='
+
order_source_ptag
+
'&
test_order='
+
test_order
+
'&order_goods_type='
+
2
;
})
// 选择查看测试订单
...
...
resources/views/erpOrder/content.blade.php
View file @
a19b8bf5
...
...
@@ -7,77 +7,85 @@
<div
class=
"tabs-box"
>
<div
class=
"row-fluid search-box"
>
<div
class=
"span12"
>
<dl>
<dt>
查询类型:
</dt>
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
</ul>
</div>
</dd>
<dd><input
type=
"text"
name=
"order_contain"
value=
"{{$condition['order_contain']}}"
placeholder=
"请输入内容"
></dd>
</dl>
<dl>
<dt>
创建日期:
</dt>
<dd>
<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>
<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>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['order_status']}}"
id=
"order_status"
name=
"order_status"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"-1"
>
已取消
</li>
<li
data-val=
"1"
>
待审核
</li>
<li
data-val=
"2"
>
待付款
</li>
<li
data-val=
"3"
>
待付尾款
</li>
<li
data-val=
"4"
>
待发货
</li>
<li
data-val=
"7"
>
部分发货
</li>
<li
data-val=
"8"
>
待收货
</li>
<li
data-val=
"10"
>
交易成功
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
订单来源:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['order_source']}}"
id=
"order_source"
name=
"order_source"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"2"
>
ERP
</li>
<li
data-val=
"3"
>
京东
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
推送业务员:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['order_send']}}"
id=
"order_send"
name=
"order_send"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
@foreach ($sale_list as $v)
<li
data-val=
"{{$v->userId}}"
>
{{$v->name}}
</li>
@endforeach
</ul>
</div>
</dd>
</dl>
<table
style=
"width:100%"
>
<tr>
<td
width=
"93%"
>
<dl>
<dt>
查询类型:
</dt>
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
</ul>
</div>
</dd>
<dd><input
type=
"text"
name=
"order_contain"
value=
"{{$condition['order_contain']}}"
placeholder=
"请输入内容"
></dd>
</dl>
<dl>
<dt>
创建日期:
</dt>
<dd>
<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>
<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>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_status']}}"
id=
"order_status"
name=
"order_status"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"-1"
>
已取消
</li>
<li
data-val=
"1"
>
待审核
</li>
<li
data-val=
"2"
>
待付款
</li>
<li
data-val=
"3"
>
待付尾款
</li>
<li
data-val=
"4"
>
待发货
</li>
<li
data-val=
"7"
>
部分发货
</li>
<li
data-val=
"8"
>
待收货
</li>
<li
data-val=
"10"
>
交易成功
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
订单来源:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_source']}}"
id=
"order_source"
name=
"order_source"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"2"
>
ERP
</li>
<li
data-val=
"3"
>
京东
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
推送业务员:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_send']}}"
id=
"order_send"
name=
"order_send"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
@foreach ($sale_list as $v)
<li
data-val=
"{{$v->userId}}"
>
{{$v->name}}
</li>
@endforeach
</ul>
</div>
</dd>
</dl>
</td>
<dl>
<dt>
<button
type=
"submit"
class=
"nbtn searchErpOrder"
>
搜索
</button>
</dt>
</dl>
<td
width=
"7%"
>
<dl>
<dt>
<button
type=
"submit"
class=
"nbtn searchErpOrder"
>
搜索
</button>
</dt>
</dl>
</td>
</tr>
</table>
</div>
</div>
</div>
...
...
resources/views/orderlist/content.blade.php
View file @
a19b8bf5
...
...
@@ -7,156 +7,162 @@
<div
class=
"tabs-box"
>
<div
class=
"row-fluid search-box"
>
<div
class=
"span12"
>
<!-- <form action="{{URL('list')}}" method="get"> -->
<dl>
<dt>
查询类型:
</dt>
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
</ul>
</div>
</dd>
<dd><input
type=
"text"
name=
"order_contain"
value=
"{{$condition['order_contain']}}"
placeholder=
"请输入内容"
></dd>
</dl>
<dl>
<dt>
创建日期:
</dt>
<dd>
<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>
<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>
<dd>
<div class="droplist" data-default="{{$condition['order_type_a']}}" id="order_type_a" name="order_type_a" >
<ul class="dropdown-menu">
<li data-val="" class="active">全部</li>
<li data-val="1">网站</li>
<li data-val="2">ERP</li>
</ul>
</div>
</dd>
</dl> -->
<table
style=
"width:100%"
>
<tr>
<td
width=
"85%"
>
<dl>
<dt>
查询类型:
</dt>
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
</ul>
</div>
</dd>
<dd><input
type=
"text"
name=
"order_contain"
value=
"{{$condition['order_contain']}}"
placeholder=
"请输入内容"
></dd>
</dl>
<dl>
<dt>
创建日期:
</dt>
<dd>
<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>
<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>
<style>
.bs-select-all
{
float
:
left
;
width
:
42%
!important
;}
.bs-deselect-all
{
float
:
right
;
width
:
50%
!important
;}
</style>
<dl>
<dt>
订单状态:
</dt>
<dd>
<select
id=
"order_status"
name=
"order_status"
class=
"form-control selectpicker"
title=
"全部"
multiple
>
<option
class=
"order_status"
value=
"-1"
>
已取消
</option>
<option
class=
"order_status"
value=
"1"
>
待审核
</option>
<option
class=
"order_status"
value=
"2"
>
待付款
</option>
<option
class=
"order_status"
value=
"3"
>
待付尾款
</option>
<option
class=
"order_status"
value=
"4"
>
待发货
</option>
<option
class=
"order_status"
value=
"7"
>
部分发货
</option>
<option
class=
"order_status"
value=
"8"
>
待收货
</option>
<option
class=
"order_status"
value=
"10"
>
交易成功
</option>
</select>
</dd>
</dl>
<dl>
<dt>
付款类型:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_pay_type']}}"
id=
"order_pay_type"
name=
"order_pay_type"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
全款
</li>
<li
data-val=
"2"
>
预付款
</li>
<!-- <li data-val="3">账期付款</li> -->
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
配送方式:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['shipping_name']}}"
id=
"shipping_name"
name=
"shipping_name"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
快递配送
</li>
<li
data-val=
"2"
>
自提
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
推送业务员:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_send']}}"
id=
"order_send"
name=
"order_send"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
@foreach ($sale_list as $v)
<li
data-val=
"{{$v->userId}}"
>
{{$v->name}}
</li>
@endforeach
</ul>
</div>
</dd>
</dl>
<!-- <dl>
<dt>支付状态:</dt>
<dd>
<div class="droplist" data-default="{$condition['order_pay_status']}" id="order_pay_status" name="order_pay_status" >
<ul class="dropdown-menu">
<li data-val="" class="active">全部</li>
<li data-val="1">已支付</li>
<li data-val="2">已付定金</li>
<li data-val="3">未支付</li>
</ul>
</div>
</dd>
</dl> -->
<dl>
<dt>
订单来源:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_source_pf']}}"
id=
"order_source_pf"
name=
"order_source_pf"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
PC端
</li>
<li
data-val=
"2"
>
移动端
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
adtag来源:
</dt>
<dd>
<input
type=
"text"
name=
"order_source_adtag"
value=
"{{$condition['order_source_adtag']}}"
placeholder=
"请输入内容"
>
</dd>
</dl>
<dl>
<dt>
ptag来源:
</dt>
<dd>
<input
type=
"text"
name=
"order_source_ptag"
value=
"{{$condition['order_source_ptag']}}"
placeholder=
"请输入内容"
>
</dd>
</dl>
<dl>
<dt>
同步状态:
</dt>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['erp_order_id']}}"
id=
"erp_order_id"
name=
"erp_order_id"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
已同步
</li>
</ul>
</div>
</dd>
</dl>
@if (in_array('check_test_order', $userPerms))
<dl>
<dt></dt>
<dd>
<input
type=
"checkbox"
name=
"test_order"
>
所有订单-包括测试
</dd>
</dl>
@endif
</td>
<td
width=
"15%"
>
<dl>
<dt>
<button
class=
"nbtn searchOrder"
>
搜索
</button>
</dt>
@if (in_array('export', $userPerms))
<dt>
<button
class=
"nbtn exportExcel"
style=
"background: #23c6c8 !important;"
>
导出
</button>
</dt>
@endif
</dl>
</td>
</tr>
</table>
<dl>
<dt>
订单状态:
</dt>
<dd>
<select
id=
"order_status"
name=
"order_status"
class=
"selectpicker"
title=
"全部"
multiple
>
<option
class=
"order_status"
value=
"-1"
>
已取消
</option>
<option
class=
"order_status"
value=
"1"
>
待审核
</option>
<option
class=
"order_status"
value=
"2"
>
待付款
</option>
<option
class=
"order_status"
value=
"3"
>
待付尾款
</option>
<option
class=
"order_status"
value=
"4"
>
待发货
</option>
<option
class=
"order_status"
value=
"7"
>
部分发货
</option>
<option
class=
"order_status"
value=
"8"
>
待收货
</option>
<option
class=
"order_status"
value=
"10"
>
交易成功
</option>
</select>
</dd>
</dl>
<dl>
<dt>
付款类型:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['order_pay_type']}}"
id=
"order_pay_type"
name=
"order_pay_type"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
全款
</li>
<li
data-val=
"2"
>
预付款
</li>
<!-- <li data-val="3">账期付款</li> -->
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
配送方式:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['shipping_name']}}"
id=
"shipping_name"
name=
"shipping_name"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
快递配送
</li>
<li
data-val=
"2"
>
自提
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
推送业务员:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['order_send']}}"
id=
"order_send"
name=
"order_send"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
@foreach ($sale_list as $v)
<li
data-val=
"{{$v->userId}}"
>
{{$v->name}}
</li>
@endforeach
</ul>
</div>
</dd>
</dl>
<!-- <dl>
<dt>支付状态:</dt>
<dd>
<div class="droplist" data-default="{$condition['order_pay_status']}" id="order_pay_status" name="order_pay_status" >
<ul class="dropdown-menu">
<li data-val="" class="active">全部</li>
<li data-val="1">已支付</li>
<li data-val="2">已付定金</li>
<li data-val="3">未支付</li>
</ul>
</div>
</dd>
</dl> -->
<dl>
<dt>
订单来源:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['order_source_pf']}}"
id=
"order_source_pf"
name=
"order_source_pf"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
PC端
</li>
<li
data-val=
"2"
>
移动端
</li>
</ul>
</div>
</dd>
</dl>
<dl>
<dt>
adtag来源:
</dt>
<dd>
<input
type=
"text"
name=
"order_source_adtag"
value=
"{{$condition['order_source_adtag']}}"
placeholder=
"请输入内容"
>
</dd>
</dl>
<dl>
<dt>
同步状态:
</dt>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['erp_order_id']}}"
id=
"erp_order_id"
name=
"erp_order_id"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"1"
>
已同步
</li>
</ul>
</div>
</dd>
</dl>
@if (in_array('check_test_order', $userPerms))
<dl>
<dt></dt>
<dd>
<input
type=
"checkbox"
name=
"test_order"
>
所有订单-包括测试
</dd>
</dl>
@endif
<dl>
<dt>
<button
type=
"submit"
class=
"nbtn searchOrder"
>
搜索
</button>
</dt>
</dl>
<!-- </form> -->
@if (in_array('export', $userPerms))
<div
class=
"order-export"
>
<a
href=
"javascript:;"
class=
"btn btn-primary exportExcel"
>
导出Excel
</a>
</div>
@endif
</div>
</div>
</div>
...
...
resources/views/selfOrder/content.blade.php
View file @
a19b8bf5
...
...
@@ -9,7 +9,7 @@
<div
class=
"span12"
>
<table
style=
"width:100%"
>
<tr>
<td
width=
"
93
%"
>
<td
width=
"
85
%"
>
<dl>
<dt>
查询类型:
</dt>
<dd
style=
"width:auto !important;"
>
...
...
@@ -34,7 +34,7 @@
</dl>
<dl>
<dt>
订单状态:
</dt>
<dd>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_status']}}"
id=
"order_status"
name=
"order_status"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
...
...
@@ -49,7 +49,7 @@
</dl>
<dl>
<dt>
客服:
</dt>
<dd>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_send']}}"
id=
"order_send"
name=
"order_send"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
...
...
@@ -62,7 +62,7 @@
</dl>
<dl>
<dt>
订单来源:
</dt>
<dd>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_source_pf']}}"
id=
"order_source_pf"
name=
"order_source_pf"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
...
...
@@ -74,7 +74,7 @@
</dl>
<dl>
<dt>
支付方式:
</dt>
<dd>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_payment_mode']}}"
id=
"order_payment_mode"
name=
"order_payment_mode"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
...
...
@@ -87,7 +87,7 @@
</dl>
<dl>
<dt>
发票类型:
</dt>
<dd>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_invoice_status']}}"
id=
"order_invoice_status"
name=
"order_invoice_status"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
...
...
@@ -104,6 +104,12 @@
<input
type=
"text"
name=
"order_source_adtag"
value=
"{{$condition['order_source_adtag']}}"
placeholder=
"请输入内容"
>
</dd>
</dl>
<dl>
<dt>
ptag来源:
</dt>
<dd>
<input
type=
"text"
name=
"order_source_ptag"
value=
"{{$condition['order_source_ptag']}}"
placeholder=
"请输入内容"
>
</dd>
</dl>
@if (in_array('self_check_test_order', $userPerms))
<dl>
...
...
@@ -115,15 +121,15 @@
@endif
</td>
<td
width=
"
7
%"
>
<td
width=
"
15
%"
>
<dl>
<dt>
<button
class=
"nbtn
btn-sm
search_self_order"
>
搜索
</button>
<button
class=
"nbtn search_self_order"
>
搜索
</button>
</dt>
@if (in_array('self_order_export', $userPerms))
<dt
class=
"order-export"
>
<button
class=
"nbtn
btn-sm
self_export"
style=
"background: #23c6c8 !important;"
>
导出
</button>
<button
class=
"nbtn self_export"
style=
"background: #23c6c8 !important;"
>
导出
</button>
</dt>
@endif
</dl>
...
...
@@ -300,8 +306,11 @@
</table>
</div>
<div
class=
"row-fluid pagination"
>
<span>
<span
style=
"float: left; width: 55%;"
>
共{{$count ? $count : 0}}单,
{{$paid_order_count}}单已付款(包含预付款),
下单用户数为{{$user_count}}人,
付款用户数为{{$paid_user_count}}人,
应付金额 ¥{{$pay_count['rmb_count'] ? $pay_count['rmb_count'] : 0}}, ${{$pay_count['usd_count'] ? $pay_count['usd_count'] : 0}},
实收金额 ¥{{$pay_count['rmb_pay'] ? $pay_count['rmb_pay'] : 0}},
${{$pay_count['usd_pay'] ? $pay_count['usd_pay'] : 0}}
...
...
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