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
83c40a4f
authored
Jun 04, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_erp_syn_20190514' into development
parents
0f03f375
9ee1a62c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
137 additions
and
56 deletions
app/Http/Controllers/OrderController.php
app/Http/Controllers/PermController.php
app/Model/OrderModel.php
resources/views/addOffline/content.blade.php
resources/views/detail/content.blade.php
resources/views/detail/sendSales.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
83c40a4f
...
@@ -188,6 +188,8 @@ function getOrderSource($order_id, $order_type=1)
...
@@ -188,6 +188,8 @@ function getOrderSource($order_id, $order_type=1)
$source
=
'移动端'
;
$source
=
'移动端'
;
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
$source
=
'小程序'
;
$source
=
'小程序'
;
}
else
if
(
preg_match
(
'/pf=7/'
,
$order_source
->
order_source
))
{
$source
=
'象牙宝'
;
}
else
{
}
else
{
$source
=
'未知'
;
$source
=
'未知'
;
}
}
...
@@ -403,8 +405,8 @@ Class OrderController extends Controller
...
@@ -403,8 +405,8 @@ Class OrderController extends Controller
$map
[
'is_new_order'
]
=
$request
->
input
(
'is_new_order'
,
''
);
$map
[
'is_new_order'
]
=
$request
->
input
(
'is_new_order'
,
''
);
$map
[
'business_type'
]
=
$request
->
input
(
'business_type'
,
''
);
$map
[
'business_type'
]
=
$request
->
input
(
'business_type'
,
''
);
// 订单查看权限---交易员、客服、
测试
// 订单查看权限---交易员、客服、
自营客服
if
(
in_array
(
$info
[
'role'
],
[
3
,
4
]))
{
if
(
in_array
(
$info
[
'role'
],
[
3
,
4
,
7
]))
{
// 筛选自己的订单
// 筛选自己的订单
$map
[
'sale_id'
]
=
$request
->
user
->
userId
;
$map
[
'sale_id'
]
=
$request
->
user
->
userId
;
}
}
...
@@ -448,14 +450,17 @@ Class OrderController extends Controller
...
@@ -448,14 +450,17 @@ Class OrderController extends Controller
// 获取所有的业务员 (包括经理、交易员、客服、测试)
// 获取所有的业务员 (包括经理、交易员、客服、测试)
$perm
=
new
PermController
;
$perm
=
new
PermController
;
if
(
$tid
==
1
||
$tid
==
3
)
{
if
(
$tid
==
1
)
{
$manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$sales
=
$perm
->
getRoleUsers
(
$request
,
'交易员'
);
$sales
=
$perm
->
getRoleUsers
(
$request
,
'交易员'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
$sale_list
=
array_merge
(
$manager
,
$sales
,
$test
,
$kefu
);
$sale_list
=
array_merge
(
$manager
,
$sales
,
$test
,
$kefu
);
}
else
{
}
else
if
(
$tid
==
2
)
{
$sale_list
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
$manager
=
$perm
->
getRoleUsers
(
$request
,
'自营客服主管'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'自营客服'
);
$sale_list
=
array_merge
(
$manager
,
$test
,
$kefu
);
}
}
//获取订单列表
//获取订单列表
...
@@ -822,15 +827,21 @@ Class OrderController extends Controller
...
@@ -822,15 +827,21 @@ Class OrderController extends Controller
$info
=
$this
->
orderDetail
(
$request
,
$id
);
$info
=
$this
->
orderDetail
(
$request
,
$id
);
$this
->
pageHeader
(
$request
,
$info
,
'推送业务员'
,
[
"title"
=>
'推送业务员'
,
"href"
=>
'#'
]);
$this
->
pageHeader
(
$request
,
$info
,
'推送业务员'
,
[
"title"
=>
'推送业务员'
,
"href"
=>
'#'
]);
// 获取所有的业务员
$sale_list
=
$this
->
getSales
(
'销售'
);
$perm
=
new
PermController
;
$perm
=
new
PermController
;
$tags
=
$request
->
input
(
'tags'
,
''
);
if
(
$tags
&&
$tags
==
'self'
)
{
$manager
=
$perm
->
getRoleUsers
(
$request
,
'自营客服主管'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$sale_list
=
''
;
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'自营客服'
);
}
else
{
$manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$manager
=
$perm
->
getRoleUsers
(
$request
,
'经理'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$test
=
$perm
->
getRoleUsers
(
$request
,
'测试'
);
$sale_list
=
$perm
->
getRoleUsers
(
$request
,
'交易员'
);
$sale_list
=
$perm
->
getRoleUsers
(
$request
,
'交易员'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
$kefu
=
$perm
->
getRoleUsers
(
$request
,
'客服'
);
}
$info
[
'manager'
]
=
$this
->
filterLeave
(
$manager
);
$info
[
'manager'
]
=
$this
->
filterLeave
(
$manager
);
$info
[
'test'
]
=
$this
->
filterLeave
(
$test
);
$info
[
'test'
]
=
$this
->
filterLeave
(
$test
);
...
@@ -1244,6 +1255,7 @@ Class OrderController extends Controller
...
@@ -1244,6 +1255,7 @@ Class OrderController extends Controller
'user_mobile'
=>
$mobile
,
'user_mobile'
=>
$mobile
,
'order_info'
=>
$temp
[
'data'
][
'order_info'
],
'order_info'
=>
$temp
[
'data'
][
'order_info'
],
'user_info'
=>
$temp
[
'data'
][
'order_info'
][
'user_info'
],
'user_info'
=>
$temp
[
'data'
][
'order_info'
][
'user_info'
],
'company_info'
=>
$temp
[
'data'
][
'order_info'
][
'company_info'
],
'order_invoice_info'
=>
$temp
[
'data'
][
'order_invoice_info'
],
'order_invoice_info'
=>
$temp
[
'data'
][
'order_invoice_info'
],
'order_items_info'
=>
$temp
[
'data'
][
'order_items_info'
],
'order_items_info'
=>
$temp
[
'data'
][
'order_items_info'
],
'order_address_info'
=>
$temp
[
'data'
][
'order_address_info'
],
'order_address_info'
=>
$temp
[
'data'
][
'order_address_info'
],
...
...
app/Http/Controllers/PermController.php
View file @
83c40a4f
...
@@ -88,6 +88,8 @@
...
@@ -88,6 +88,8 @@
return
8
;
return
8
;
}
else
if
(
$department
->
name
==
'财务'
)
{
}
else
if
(
$department
->
name
==
'财务'
)
{
return
9
;
return
9
;
}
else
if
(
$department
->
name
==
'自营客服主管'
)
{
return
10
;
}
else
{
}
else
{
return
0
;
return
0
;
}
}
...
...
app/Model/OrderModel.php
View file @
83c40a4f
...
@@ -140,6 +140,7 @@ class OrderModel extends Model
...
@@ -140,6 +140,7 @@ class OrderModel extends Model
case
'1'
:
case
'1'
:
case
'2'
:
case
'2'
:
case
'6'
:
case
'6'
:
case
'7'
:
$string
.=
"FIND_IN_SET('pf="
.
$v
.
"', o.order_source) OR "
;
$string
.=
"FIND_IN_SET('pf="
.
$v
.
"', o.order_source) OR "
;
break
;
break
;
case
'3'
:
case
'3'
:
...
@@ -256,17 +257,11 @@ class OrderModel extends Model
...
@@ -256,17 +257,11 @@ class OrderModel extends Model
// 订单数据处理
// 订单数据处理
$cellData
=
$this
->
exportList
(
$list
);
$cellData
=
$this
->
exportList
(
$list
);
if
(
$map
[
'order_goods_type'
]
==
1
)
{
$sale_name
=
'推送业务员'
;
}
else
{
$sale_name
=
'客服'
;
}
// 标题
// 标题
if
(
$map
[
'order_goods_type'
]
==
1
)
{
if
(
$map
[
'order_goods_type'
]
==
1
)
{
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'
是否为新订单'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
$sale_name
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试
订单'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'会员账号'
,
'
收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'是否为新
订单'
];
}
else
{
}
else
{
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'
销售类型'
,
'业务类型'
,
'会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
$sale_name
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单
'
];
$headerCell
=
[
'订单ID'
,
'订单编号'
,
'
会员账号'
,
'收货人'
,
'下单日期'
,
'下单时间'
,
'客户名称'
,
'平台来源'
,
'商品型号'
,
'制造商'
,
'供应商'
,
'数量'
,
'单价'
,
'均摊后单价'
,
'商品小计'
,
'币种'
,
'客服'
,
'商品总额'
,
'运费'
,
'附加费'
,
'优惠券'
,
'订单总额'
,
'付款类型'
,
'订单状态'
,
'发货状态'
,
'收货地址'
,
'发票类型'
,
'发票状态'
,
'发票抬头'
,
'公司注册地址'
,
'公司电话'
,
'adtags来源'
,
'新用户来源'
,
'取消原因'
,
'推送备注'
,
'是否为测试订单'
,
'销售类型'
,
'业务类型
'
];
}
}
array_unshift
(
$cellData
,
$headerCell
);
array_unshift
(
$cellData
,
$headerCell
);
...
@@ -443,6 +438,8 @@ class OrderModel extends Model
...
@@ -443,6 +438,8 @@ class OrderModel extends Model
$source
=
'移动端'
;
$source
=
'移动端'
;
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
}
else
if
(
preg_match
(
'/pf=6/'
,
$order_source
->
order_source
))
{
$source
=
'小程序'
;
$source
=
'小程序'
;
}
else
if
(
preg_match
(
'/pf=7/'
,
$order_source
->
order_source
))
{
$source
=
'象牙宝'
;
}
else
{
}
else
{
$source
=
'未知'
;
$source
=
'未知'
;
}
}
...
...
resources/views/addOffline/content.blade.php
View file @
83c40a4f
...
@@ -120,12 +120,12 @@
...
@@ -120,12 +120,12 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<
!-- <
div class="col-sm-6">
<div class="form-group">
<div class="form-group">
<span>供应商:</span>
<span>供应商:</span>
<span class="supplier_name"></span>
<span class="supplier_name"></span>
</div>
</div>
</div>
</div>
-->
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
@@ -133,25 +133,23 @@
...
@@ -133,25 +133,23 @@
<span
class=
"stock"
></span>
<span
class=
"stock"
></span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span>
起订量:
</span>
<span>
起订量:
</span>
<span
class=
"moq"
></span>
<span
class=
"moq"
></span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span>
标准包装量:
</span>
<span>
标准包装量:
</span>
<span
class=
"mpq"
></span>
<span
class=
"mpq"
></span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span>
状态:
</span>
<span>
状态:
</span>
...
@@ -159,6 +157,15 @@
...
@@ -159,6 +157,15 @@
</div>
</div>
</div>
</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>
<div
class=
"sku-info-right table-responsive"
>
<div
class=
"sku-info-right table-responsive"
>
...
...
resources/views/detail/content.blade.php
View file @
83c40a4f
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
@if(in_array($order_info['status'], [1, 2, 3, 4])
&&
$order_invoice_info['invoice_status']
<
2
&&
in_array
('
update_invoice
',
$
userPerms
))
@if(in_array($order_info['status'], [1, 2, 3, 4])
&&
$order_invoice_info['invoice_status']
<
2
&&
in_array
('
update_invoice
',
$
userPerms
))
<
a
href=
"/changeInvoice/{{$order_info['order_id']}}"
class=
"btn btn-success btn-sm changeBtn"
>
更改发票
</a>
<
a
href=
"/changeInvoice/{{$order_info['order_id']}}"
class=
"btn btn-success btn-sm changeBtn"
>
更改发票
</a>
@endif
@endif
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'self'
&&
!$extend)
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'self'
&&
isset($extend)
&&
!$extend)
<?php
<?php
if
(
$order_info
[
'status'
]
>
3
)
{
// 已付款请求财务接口判断是否能修改发票
if
(
$order_info
[
'status'
]
>
3
)
{
// 已付款请求财务接口判断是否能修改发票
$isChangeInvoice
=
App\Http\Controllers\isChangeInvoice
(
$order_info
[
'order_sn'
]);
$isChangeInvoice
=
App\Http\Controllers\isChangeInvoice
(
$order_info
[
'order_sn'
]);
...
@@ -302,7 +302,7 @@
...
@@ -302,7 +302,7 @@
</table>
</table>
@endif
@endif
<!--
<table class="table table-bordered">
<table
class=
"table table-bordered"
>
<tr
class=
"caption"
>
<tr
class=
"caption"
>
<th
colspan=
"4"
style=
"text-align: center; background: #f9f9f9;"
>
合同乙方信息
<th
colspan=
"4"
style=
"text-align: center; background: #f9f9f9;"
>
合同乙方信息
@if ($order_info['status'] == 1)
@if ($order_info['status'] == 1)
...
@@ -317,19 +317,47 @@
...
@@ -317,19 +317,47 @@
<th>
联系人
</th>
<th>
联系人
</th>
<th>
联系电话
</th>
<th>
联系电话
</th>
</tr>
</tr>
@if ($order_temp_info['contract_com_name'])
<tr>
<?php
<td>{{ $order_temp_info['contract_com_name'] }}</td>
if
(
$order_temp_info
[
'contract_com_name'
])
{
<td>{{ $order_temp_info['contract_com_addr'] }}</td>
$contract_com_name
=
$order_temp_info
[
'contract_com_name'
];
<td>{{ $order_temp_info['contract_link_name'] }}</td>
$contract_com_addr
=
$order_temp_info
[
'contract_com_addr'
];
<td>{{ $order_temp_info['contract_link_tel'] }}</td>
$contract_link_name
=
$order_temp_info
[
'contract_link_name'
];
</tr>
$contract_link_tel
=
$order_temp_info
[
'contract_link_tel'
];
@else
}
else
{
// 若未填写乙方信息,则拉取相关数据
// 公司名称
if
(
isset
(
$order_invoice_info
[
'tax_title'
])
&&
$order_invoice_info
[
'tax_title'
])
$contract_com_name
=
$order_invoice_info
[
'tax_title'
];
else
if
(
isset
(
$company_info
[
'com_name'
])
&&
$company_info
[
'com_name'
])
$contract_com_name
=
$company_info
[
'com_name'
];
else
$contract_com_name
=
$user_info
[
'mobile'
]
?
$user_info
[
'mobile'
]
:
$user_info
[
'email'
];
// 公司地址
if
(
isset
(
$order_invoice_info
[
'company_address'
])
&&
$order_invoice_info
[
'company_address'
])
$contract_com_addr
=
$order_invoice_info
[
'company_address'
];
else
if
(
isset
(
$company_info
[
'com_address'
])
&&
$company_info
[
'com_address'
])
$contract_com_addr
=
$company_info
[
'com_address'
];
else
$contract_com_addr
=
$order_address_info
[
'province_val'
]
.
$order_address_info
[
'city_val'
]
.
$order_address_info
[
'district_val'
]
.
$order_address_info
[
'address'
];
// 联系人
$contract_link_name
=
$order_address_info
[
'consignee'
];
// 联系电话
if
(
isset
(
$user_info
[
'mobile'
]))
$contract_link_tel
=
$user_info
[
'mobile'
];
else
$contract_link_tel
=
$order_address_info
[
'mobile'
];
}
?>
<tr>
<tr>
<td colspan="4" style="text-align: center;">无乙方信息</td>
<td>
{{ $contract_com_name }}
</td>
<td>
{{ $contract_com_addr }}
</td>
<td>
{{ $contract_link_name }}
</td>
<td>
{{ $contract_link_tel }}
</td>
</tr>
</tr>
@endif
</table>
</table> -->
<!-- 发票收货地址 -->
<!-- 发票收货地址 -->
@if ($order_invoice_address_info)
@if ($order_invoice_address_info)
...
@@ -893,25 +921,25 @@
...
@@ -893,25 +921,25 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
公司名称:
</label>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
公司名称:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
type=
"text"
name=
"contract_com_name"
class=
"form-control contract_com_name"
value=
"{{
$order_temp_info['contract_com_name']
}}"
>
<input
type=
"text"
name=
"contract_com_name"
class=
"form-control contract_com_name"
value=
"{{
$contract_com_name
}}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
公司地址:
</label>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
公司地址:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<textarea
name=
"contract_com_addr"
class=
"form-control contract_com_addr"
cols=
"30"
rows=
"3"
>
{{
$order_temp_info['contract_com_addr']
}}
</textarea>
<textarea
name=
"contract_com_addr"
class=
"form-control contract_com_addr"
cols=
"30"
rows=
"3"
>
{{
$contract_com_addr
}}
</textarea>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
联系人:
</label>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
联系人:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
type=
"text"
name=
"contract_link_name"
class=
"form-control contract_link_name"
value=
"{{
$order_temp_info['contract_link_name']
}}"
>
<input
type=
"text"
name=
"contract_link_name"
class=
"form-control contract_link_name"
value=
"{{
$contract_link_name
}}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
联系电话:
</label>
<label
class=
"col-sm-4 control-label"
><i
class=
"text-danger"
>
*
</i>
联系电话:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
type=
"text"
name=
"contract_link_tel"
class=
"form-control contract_link_tel"
value=
"{{
$order_temp_info['contract_link_tel']
}}"
>
<input
type=
"text"
name=
"contract_link_tel"
class=
"form-control contract_link_tel"
value=
"{{
$contract_link_tel
}}"
>
</div>
</div>
</div>
</div>
</form>
</form>
...
...
resources/views/detail/sendSales.blade.php
View file @
83c40a4f
...
@@ -9,10 +9,14 @@
...
@@ -9,10 +9,14 @@
<input
type=
"hidden"
name=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<input
type=
"hidden"
name=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<table
class=
"table table-bordered table-hover check-table"
style=
"min-height:150px;"
>
<table
class=
"table table-bordered table-hover check-table"
style=
"min-height:150px;"
>
@if (!empty($manager))
<tr>
<tr>
<td
class=
"check-table-title"
width=
"20%"
>
经理:
</td>
@if ($order_info['order_goods_type'] == 1)
<td
class=
"check-table-title"
width=
"10%"
>
经理:
</td>
@else
<td
class=
"check-table-title"
width=
"10%"
>
客服主管:
</td>
@endif
<td>
<td>
@if (!empty($manager))
<ul>
<ul>
@foreach ($manager as $k => $v)
@foreach ($manager as $k => $v)
@if ($v->userId == $order_info['sale_id'])
@if ($v->userId == $order_info['sale_id'])
...
@@ -22,14 +26,14 @@
...
@@ -22,14 +26,14 @@
@endif
@endif
@endforeach
@endforeach
</ul>
</ul>
@endif
</td>
</td>
</tr>
</tr>
@endif
@if (!empty($sale_list))
<tr>
<tr>
<td
class=
"check-table-title"
width=
"20%"
>
交易员:
</td>
<td
class=
"check-table-title"
>
交易员:
</td>
<td>
<td>
@if (!empty($sale_list))
<ul>
<ul>
@foreach ($sale_list as $key => $vo)
@foreach ($sale_list as $key => $vo)
@if ($vo->userId == $order_info['sale_id'])
@if ($vo->userId == $order_info['sale_id'])
...
@@ -39,14 +43,14 @@
...
@@ -39,14 +43,14 @@
@endif
@endif
@endforeach
@endforeach
</ul>
</ul>
@endif
</td>
</td>
</tr>
</tr>
@endif
@if (!empty($kefu))
<tr>
<tr>
<td
class=
"check-table-title"
width=
"20%"
>
客服:
</td>
<td
class=
"check-table-title"
>
客服:
</td>
<td>
<td>
@if (!empty($kefu))
<ul>
<ul>
@foreach ($kefu as $key => $vo)
@foreach ($kefu as $key => $vo)
@if ($vo->userId == $order_info['sale_id'])
@if ($vo->userId == $order_info['sale_id'])
...
@@ -56,14 +60,14 @@
...
@@ -56,14 +60,14 @@
@endif
@endif
@endforeach
@endforeach
</ul>
</ul>
@endif
</td>
</td>
</tr>
</tr>
@endif
@if (!empty($test))
<tr>
<tr>
<td
class=
"check-table-title"
width=
"20%"
>
测试:
</td>
<td
class=
"check-table-title"
>
测试:
</td>
<td>
<td>
@if (!empty($test))
<ul>
<ul>
@foreach ($test as $key => $vo)
@foreach ($test as $key => $vo)
@if ($vo->userId == $order_info['sale_id'])
@if ($vo->userId == $order_info['sale_id'])
...
@@ -73,14 +77,14 @@
...
@@ -73,14 +77,14 @@
@endif
@endif
@endforeach
@endforeach
</ul>
</ul>
@endif
</td>
</td>
</tr>
</tr>
@endif
<!-- 查看权限:当前推送人
或管理员、经理、测试、运营助理
-->
<!-- 查看权限:当前推送人
或 管理员、经理、测试、运营助理 或 自营客服主管
-->
@if ($sale_id == $order_info['sale_id'] ||
in_array($role, [1, 2, 5, 8]
))
@if ($sale_id == $order_info['sale_id'] ||
(in_array($role, [1, 2, 5, 8]) || in_array($role, [1, 10])
))
<tr>
<tr>
<td
class=
"check-table-title"
width=
"20%"
>
备注信息:
</td>
<td
class=
"check-table-title"
>
备注信息:
</td>
<td>
<td>
<textarea
name=
"send_remark"
id=
"send_remark"
class=
"form-control"
>
{{$order_temp_info['send_remark']}}
</textarea>
<textarea
name=
"send_remark"
id=
"send_remark"
class=
"form-control"
>
{{$order_temp_info['send_remark']}}
</textarea>
</td>
</td>
...
...
resources/views/selfOrder/content.blade.php
View file @
83c40a4f
...
@@ -59,7 +59,29 @@
...
@@ -59,7 +59,29 @@
</select>
</select>
</dd>
</dd>
</dl>
</dl>
<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>
<option
value=
"0"
>
无推送
</option>
<optgroup
label=
"在职"
>
@foreach ($sale_list as $v)
@if ($v->status != 4)
<option
value=
"{{$v->userId}}"
>
{{$v->name}}
</option>
@endif
@endforeach
</optgroup>
<optgroup
label=
"离职"
>
@foreach ($sale_list as $v)
@if ($v->status == 4)
<option
value=
"{{$v->userId}}"
>
{{$v->name}}
</option>
@endif
@endforeach
</optgroup>
</select>
</dd>
</dl>
<dl>
<dl>
<dt>
支付方式:
</dt>
<dt>
支付方式:
</dt>
<dd>
<dd>
...
@@ -84,6 +106,7 @@
...
@@ -84,6 +106,7 @@
<option
value=
"3"
>
后台
</option>
<option
value=
"3"
>
后台
</option>
<option
value=
"4"
>
京东
</option>
<option
value=
"4"
>
京东
</option>
<option
value=
"6"
>
小程序
</option>
<option
value=
"6"
>
小程序
</option>
<option
value=
"7"
>
象牙宝
</option>
</select>
</select>
</dd>
</dd>
</dl>
</dl>
...
@@ -186,6 +209,7 @@
...
@@ -186,6 +209,7 @@
<th
class=
"pl30"
>
订单状态
</th>
<th
class=
"pl30"
>
订单状态
</th>
<th
class=
"pl30"
>
销售类型
</th>
<th
class=
"pl30"
>
销售类型
</th>
<th
class=
"pl30"
>
支付方式
</th>
<th
class=
"pl30"
>
支付方式
</th>
<th
class=
"pl30"
>
客服
</th>
<th
class=
"pl30"
>
订单来源
</th>
<th
class=
"pl30"
>
订单来源
</th>
<th
class=
"pl30"
>
发货状态
</th>
<th
class=
"pl30"
>
发货状态
</th>
<th
class=
"pl30"
>
下单时间
</th>
<th
class=
"pl30"
>
下单时间
</th>
...
@@ -229,6 +253,8 @@
...
@@ -229,6 +253,8 @@
<td
class=
"show-list"
>
<?php
print_r
(
App\Http\Controllers\getPayName
(
$v
[
'order_id'
]));
?>
</td>
<td
class=
"show-list"
>
<?php
print_r
(
App\Http\Controllers\getPayName
(
$v
[
'order_id'
]));
?>
</td>
<td
class=
"show-list"
>
<?php
print_r
(
App\Http\Controllers\getSalesName
(
$v
[
'sale_id'
]));
?>
</td>
<td
class=
"show-list"
>
<?php
echo
App\Http\Controllers\getOrderSource
(
$v
[
'order_id'
],
$v
[
'order_type'
]);
?>
</td>
<td
class=
"show-list"
>
<?php
echo
App\Http\Controllers\getOrderSource
(
$v
[
'order_id'
],
$v
[
'order_type'
]);
?>
</td>
<td
class=
"show-list"
class=
"show-list"
>
<td
class=
"show-list"
class=
"show-list"
>
...
@@ -266,6 +292,11 @@
...
@@ -266,6 +292,11 @@
<a
class=
"btn btn-success"
href=
"/change/{{$v['order_id']}}?tags=self"
target=
"_blank"
>
人工审单
</a>
<a
class=
"btn btn-success"
href=
"/change/{{$v['order_id']}}?tags=self"
target=
"_blank"
>
人工审单
</a>
@endif
@endif
<!-- 管理员和自营客服主管或有推送权限显示 -->
@if ((in_array($role, [1, 10]) || in_array('self_send_salesman', $userPerms)))
<a
class=
"btn btn-info"
href=
"/sendSales/{{ $v['order_id'] }}?tags=self"
target=
"_blank"
>
推送
</a>
@endif
@if ($v['status'] > 1
&&
in_array('self_order_download_contract', $userPerms))
@if ($v['status'] > 1
&&
in_array('self_order_download_contract', $userPerms))
<a
class=
"btn btn-default download-contract"
data-id=
"{{$v['order_id']}}"
href=
"javascript:;"
>
下载合同
</a>
<a
class=
"btn btn-default download-contract"
data-id=
"{{$v['order_id']}}"
href=
"javascript:;"
>
下载合同
</a>
@endif
@endif
...
@@ -279,7 +310,7 @@
...
@@ -279,7 +310,7 @@
<!-- 点击展示内容 -->
<!-- 点击展示内容 -->
<tr
class=
"show-other-content"
>
<tr
class=
"show-other-content"
>
<td
colspan=
"1
0
"
>
<td
colspan=
"1
1
"
>
<table
class=
"table table-hover table-bordered"
>
<table
class=
"table table-hover table-bordered"
>
<tr>
<tr>
<td
class=
"table-list-title"
>
公司名称
</td>
<td
class=
"table-list-title"
>
公司名称
</td>
...
...
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