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
06921702
authored
Jul 25, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
业务员多选、导出
parent
aa41fc7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
app/Model/OrderModel.php
resources/views/orderlist/content.blade.php
app/Model/OrderModel.php
View file @
06921702
...
...
@@ -120,7 +120,7 @@ class OrderModel extends Model
->
where
(
function
(
$query
)
use
(
$map
)
{
// 订单推送业务员
if
(
!
empty
(
$map
[
'order_send'
]))
{
$query
->
where
(
'o.sale_id'
,
'='
,
$map
[
'order_send'
]
);
$query
->
where
In
(
'o.sale_id'
,
explode
(
','
,
$map
[
'order_send'
])
);
}
})
->
where
(
function
(
$query
)
use
(
$map
)
{
...
...
@@ -269,9 +269,9 @@ class OrderModel extends Model
// 标题
if
(
$map
[
'order_goods_type'
]
==
1
)
{
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'SKUID'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'是否为新订单'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'
京东订单编号'
,
'
会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'SKUID'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'是否为新订单'
];
}
else
{
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'SKUID'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'销售类型'
,
'业务类型'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'
京东订单编号'
,
'
会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'SKUID'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'销售类型'
,
'业务类型'
];
}
array_unshift
(
$cellData
,
$headerCell
);
...
...
resources/views/orderlist/content.blade.php
View file @
06921702
...
...
@@ -75,8 +75,8 @@
<dl>
<dt>
推送业务员:
</dt>
<dd>
<select
id=
"order_send"
name=
"order_send"
class=
"form-control order_send selectpicker"
title=
"全部"
data-live-search=
"true"
data-size=
"7"
>
<
option
value=
""
>
全部
</option
>
<select
id=
"order_send"
name=
"order_send"
class=
"form-control order_send selectpicker"
title=
"全部"
data-live-search=
"true"
data-size=
"7"
multiple
>
<
!-- <option value="">全部</option> --
>
<option
value=
"0"
>
无推送
</option>
<optgroup
label=
"在职"
>
@foreach ($sale_list as $v)
...
...
@@ -488,7 +488,8 @@
$
(
'.order_payment_mode'
).
selectpicker
(
'val'
,
order_payment_mode
.
split
(
','
)).
trigger
(
"change"
);
$
(
'.order_source_pf'
).
selectpicker
(
'val'
,
order_source_pf
.
split
(
','
)).
trigger
(
"change"
);
$
(
'#shipping_name'
).
selectpicker
(
'val'
,
shipping_name
);
$
(
'#order_send'
).
selectpicker
(
'val'
,
order_send
);
// $('#order_send').selectpicker('val', order_send);
$
(
'#order_send'
).
selectpicker
(
'val'
,
order_send
.
split
(
','
)).
trigger
(
"change"
);
$
(
'.order_pay_type'
).
selectpicker
(
'val'
,
order_pay_type
.
split
(
','
)).
trigger
(
"change"
);
$
(
'.is_new'
).
selectpicker
(
'val'
,
is_new
.
split
(
','
)).
trigger
(
"change"
);
$
(
'#erp_order_id'
).
selectpicker
(
'val'
,
erp_order_id
);
...
...
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