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
33b3c4fe
authored
Nov 08, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_adjust_20181026' into development
parents
aa82008f
70b73aed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
app/Model/OrderModel.php
app/Model/OrderModel.php
View file @
33b3c4fe
...
...
@@ -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
);
...
...
@@ -293,6 +293,8 @@ class OrderModel extends Model
$tmp
[
$i
][
'goods_price'
]
=
$order
[
$i
][
'goods_price'
];
$tmp
[
$i
][
'single_pre_price'
]
=
$order
[
$i
][
'single_pre_price'
];
$tmp
[
$i
][
'goods_amount'
]
=
$order
[
$i
][
'goods_number'
]
*
$order
[
$i
][
'goods_price'
];
$tmp
[
$i
][
'currency'
]
=
$order
[
$i
][
'currency'
]
==
1
?
'RMB'
:
'USD'
;
$tmp
[
$i
][
'sale_name'
]
=
isset
(
$sales
)
?
$sales
->
name
:
''
;
// 推送业务员
if
(
$i
>
0
&&
$order
[
$i
][
'order_id'
]
==
$order
[
$i
-
1
][
'order_id'
])
{
// $tmp[$i]['order_sn'] = '';
...
...
@@ -323,7 +325,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'extra_fee'
]
=
$this
->
getOrderPrice
(
$order
[
$i
][
'order_id'
],
2
);
$tmp
[
$i
][
'coupon'
]
=
$this
->
getOrderPrice
(
$order
[
$i
][
'order_id'
],
-
4
);
$tmp
[
$i
][
'order_amount'
]
=
$order
[
$i
][
'order_amount'
];
$tmp
[
$i
][
'currency'
]
=
$order
[
$i
][
'currency'
]
==
1
?
'RMB'
:
'USD'
;
$tmp
[
$i
][
'order_type'
]
=
!
empty
(
$order
[
$i
][
'order_pay_type'
])
?
$order_type
[
$order
[
$i
][
'order_pay_type'
]]
:
'未知'
;
$tmp
[
$i
][
'order_status'
]
=
!
empty
(
$order
[
$i
][
'status'
])
?
$order_status
[
$order
[
$i
][
'status'
]]
:
'未知'
;
$tmp
[
$i
][
'shipping_status'
]
=
!
empty
(
$order
[
$i
][
'shipping_status'
])
?
$shipping_status
[
$order
[
$i
][
'shipping_status'
]]
:
'无发货信息'
;
// 发货状态
...
...
@@ -333,10 +335,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'tax_title'
]
=
$order
[
$i
][
'tax_title'
];
$tmp
[
$i
][
'company_address'
]
=
$order
[
$i
][
'company_address'
];
$tmp
[
$i
][
'company_phone'
]
=
$order
[
$i
][
'company_phone'
];
$tmp
[
$i
][
'tax_no'
]
=
$order
[
$i
][
'tax_no'
];
$tmp
[
$i
][
'bank_name'
]
=
$order
[
$i
][
'bank_name'
];
$tmp
[
$i
][
'bank_account'
]
=
$order
[
$i
][
'bank_account'
];
$tmp
[
$i
][
'sale_name'
]
=
isset
(
$sales
)
?
$sales
->
name
:
''
;
// 推送业务员
$tmp
[
$i
][
'adtags'
]
=
$order
[
$i
][
'order_source'
];
$tmp
[
$i
][
'client_source'
]
=
$order
[
$i
][
'client_source'
];
$tmp
[
$i
][
'cancel_reason'
]
=
$order
[
$i
][
'cancel_reason'
];
...
...
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