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
40c8a34a
authored
Jun 03, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. 象牙宝订单筛选、导出;
2. 调整订单导出字段; 3. 内部采购下单去掉供应商显示;
parent
8cf098f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
app/Http/Controllers/OrderController.php
app/Model/OrderModel.php
resources/views/addOffline/content.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
40c8a34a
...
...
@@ -188,6 +188,8 @@ function getOrderSource($order_id, $order_type=1)
$source
=
'移动端'
;
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
$source
=
'小程序'
;
}
else
if
(
preg_match
(
'/pf=7/'
,
$order_source
->
order_source
))
{
$source
=
'象牙宝'
;
}
else
{
$source
=
'未知'
;
}
...
...
app/Model/OrderModel.php
View file @
40c8a34a
...
...
@@ -140,6 +140,7 @@ class OrderModel extends Model
case
'1'
:
case
'2'
:
case
'6'
:
case
'7'
:
$string
.=
"FIND_IN_SET('pf="
.
$v
.
"', o.order_source) OR "
;
break
;
case
'3'
:
...
...
@@ -256,17 +257,11 @@ class OrderModel extends Model
// 订单数据处理
$cellData
=
$this
->
exportList
(
$list
);
if
(
$map
[
'order_goods_type'
]
==
1
)
{
$sale_name
=
'推送业务员'
;
}
else
{
$sale_name
=
'客服'
;
}
// 标题
if
(
$map
[
'order_goods_type'
]
==
1
)
{
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'
是否为新订单'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
$sale_name
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试
订单'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'
收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'是否为新
订单'
];
}
else
{
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'
销售类型'
,
'业务类型'
,
'会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
$sale_name
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单
'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'
会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'销售类型'
,
'业务类型
'
];
}
array_unshift
(
$cellData
,
$headerCell
);
...
...
@@ -443,6 +438,8 @@ class OrderModel extends Model
$source
=
'移动端'
;
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
$source
=
'小程序'
;
}
else
if
(
preg_match
(
'/pf=7/'
,
$order_source
->
order_source
))
{
$source
=
'象牙宝'
;
}
else
{
$source
=
'未知'
;
}
...
...
resources/views/addOffline/content.blade.php
View file @
40c8a34a
...
...
@@ -120,12 +120,12 @@
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<
!-- <
div class="col-sm-6">
<div class="form-group">
<span>供应商:</span>
<span class="supplier_name"></span>
</div>
</div>
</div>
-->
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
...
...
@@ -133,25 +133,23 @@
<span
class=
"stock"
></span>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
起订量:
</span>
<span
class=
"moq"
></span>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
标准包装量:
</span>
<span
class=
"mpq"
></span>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
状态:
</span>
...
...
@@ -159,6 +157,15 @@
</div>
</div>
</div>
<!-- <div class="row">
<div class="col-sm-6">
<div class="form-group">
<span>状态:</span>
<span class="status"></span>
</div>
</div>
</div> -->
</div>
<div
class=
"sku-info-right table-responsive"
>
...
...
resources/views/selfOrder/content.blade.php
View file @
40c8a34a
...
...
@@ -84,6 +84,7 @@
<option
value=
"3"
>
后台
</option>
<option
value=
"4"
>
京东
</option>
<option
value=
"6"
>
小程序
</option>
<option
value=
"7"
>
象牙宝
</option>
</select>
</dd>
</dl>
...
...
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