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
c0dc7026
authored
Nov 06, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整导出会员标签,添加订单来源;
parent
defdb1ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
app/Http/Controllers/OrderController.php
app/Model/OrderModel.php
app/Http/Controllers/OrderController.php
View file @
c0dc7026
...
...
@@ -240,6 +240,8 @@ function getOrderSource($order_id, $order_type=1)
$source
=
'PC端'
;
}
else
if
(
preg_match
(
'/pf=2/'
,
$order_source
->
order_source
))
{
$source
=
'移动端'
;
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
$source
=
'小程序'
;
}
else
{
$source
=
'未知'
;
}
...
...
app/Model/OrderModel.php
View file @
c0dc7026
...
...
@@ -197,7 +197,7 @@ class OrderModel extends Model
$cellData
=
$this
->
exportList
(
$list
);
// 标题
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'币种'
,
'订单类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'税务登记号'
,
'开户银行'
,
'银行卡号'
,
$sale_name
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'
会员标签'
,
'
收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'币种'
,
'订单类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'税务登记号'
,
'开户银行'
,
'银行卡号'
,
$sale_name
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
];
array_unshift
(
$cellData
,
$headerCell
);
...
...
@@ -280,7 +280,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'order_id'
]
=
$order
[
$i
][
'order_id'
];
$tmp
[
$i
][
'order_sn'
]
=
"
\t
"
.
$order
[
$i
][
'order_sn'
]
.
"
\t
"
;
$tmp
[
$i
][
'user_account'
]
=
$order
[
$i
][
'mobile'
]
?
$order
[
$i
][
'mobile'
]
:
$order
[
$i
][
'email'
];
// $tmp[$i]['is_new'] = isset($order[$i]['is_new']) ? $user_tags[$order[$i]['is_new']] : ''; // 会员标签
$tmp
[
$i
][
'is_new'
]
=
$order
[
$i
][
'is_new'
]
==
1
?
'是'
:
'否'
;
// 是否为新用户
$tmp
[
$i
][
'consignee'
]
=
isset
(
$order
[
$i
][
'consignee'
])
?
$order
[
$i
][
'consignee'
]
:
''
;
$tmp
[
$i
][
'create_time_date'
]
=
date
(
'Y-m-d'
,
$order
[
$i
][
'create_time'
]);
$tmp
[
$i
][
'create_time_sec'
]
=
date
(
'H:i:s'
,
$order
[
$i
][
'create_time'
]);
...
...
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