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
c239fb1a
authored
Nov 21, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去掉是否为新用户
parent
667f16d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Model/OrderModel.php
app/Model/OrderModel.php
View file @
c239fb1a
...
...
@@ -214,7 +214,7 @@ class OrderModel extends Model
$cellData
=
$this
->
exportList
(
$list
);
// 标题
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'是否为新
用户'
,
'是否为新
订单'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
$sale_name
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'订单类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'是否为新订单'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
$sale_name
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'订单类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
];
array_unshift
(
$cellData
,
$headerCell
);
...
...
@@ -297,7 +297,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'
]
=
$order
[
$i
][
'is_new'
]
==
1
?
'是'
:
'否'
;
// 是否为新用户
//
$tmp[$i]['is_new'] = $order[$i]['is_new'] == 1 ? '是' : '否'; // 是否为新用户
$tmp
[
$i
][
'is_new_order'
]
=
$order
[
$i
][
'is_new_order'
]
==
1
?
'是'
:
'否'
;
// 是否为新订单
$tmp
[
$i
][
'consignee'
]
=
isset
(
$order
[
$i
][
'consignee'
])
?
$order
[
$i
][
'consignee'
]
:
''
;
$tmp
[
$i
][
'create_time_date'
]
=
date
(
'Y-m-d'
,
$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