Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
24714fdc
authored
Jul 06, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
1724f4fb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Controllers/SupplierController.php
resources/views/script/supplier/SupplierContactScript.blade.php
resources/views/web/SupplierDetail.blade.php
resources/views/web/UpdateSupplier.blade.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
24714fdc
...
...
@@ -527,7 +527,7 @@ class SupplierApiController extends Controller
$adminService
=
new
AdminUserService
();
$user
=
$adminService
->
getAdminUserInfoByCodeId
(
$channelUid
);
$logService
=
new
LogService
();
$logService
->
AddLog
(
$supplierId
,
LogModel
::
UPDATE_OPERATE
,
'设置
云芯采购员'
,
'设置云芯
采购员为 : '
.
$user
[
'name'
]);
$logService
->
AddLog
(
$supplierId
,
LogModel
::
UPDATE_OPERATE
,
'设置
SKU采购员'
,
'设置SKU
采购员为 : '
.
$user
[
'name'
]);
$this
->
response
(
0
,
'设置云芯采购成功'
);
}
else
{
$this
->
response
(
-
1
,
'设置云芯采购失败'
);
...
...
app/Http/Controllers/SupplierController.php
View file @
24714fdc
...
...
@@ -299,7 +299,7 @@ class SupplierController extends Controller
return
view
(
'web'
,
$data
);
}
//分配
云芯
采购员
//分配
SKU
采购员
public
function
SetYunxinChannelUser
(
$request
)
{
$supplierId
=
$request
->
get
(
'supplier_id'
);
...
...
@@ -309,7 +309,7 @@ class SupplierController extends Controller
$this
->
data
[
'supplier'
]
=
$supplier
;
$intraCodeModel
=
new
IntracodeModel
();
$userCodes
=
$intraCodeModel
->
getSampleEncode
();
//去除非当前供应商所拥有的采购的人员,只能从当前供应商设置的采购里面选择
云芯
采购员
//去除非当前供应商所拥有的采购的人员,只能从当前供应商设置的采购里面选择
SKU
采购员
$channelUids
=
explode
(
','
,
$supplier
[
'channel_uid'
]);
foreach
(
$userCodes
as
$codeId
=>
$value
)
{
if
(
!
in_array
(
$codeId
,
$channelUids
))
{
...
...
resources/views/script/supplier/SupplierContactScript.blade.php
View file @
24714fdc
...
...
@@ -60,7 +60,7 @@
type
:
2
,
content
:
'/supplier/SetYunxinChannelUser?view=iframe&supplier_id='
+
supplierId
,
area
:
[
'600px'
,
'525px'
],
title
:
'配置
云芯
采购员'
,
title
:
'配置
SKU
采购员'
,
end
:
function
()
{
// 监听弹窗关闭
table
.
reload
(
'contactList'
);
}
...
...
resources/views/web/SupplierDetail.blade.php
View file @
24714fdc
...
...
@@ -51,7 +51,7 @@
</div>
<div
class=
"layui-col-md2"
>
云芯
采购员 : {{$supplier['yunxin_channel_username']}}
SKU
采购员 : {{$supplier['yunxin_channel_username']}}
</div>
<div
class=
"layui-col-md3"
>
<span
title=
"{{$supplier['channel_username']}}"
>
...
...
resources/views/web/UpdateSupplier.blade.php
View file @
24714fdc
...
...
@@ -59,7 +59,7 @@
@endif
</div>
<div
class=
"layui-col-md2"
>
云芯
采购员 : {{$supplier['yunxin_channel_username']}}
SKU
采购员 : {{$supplier['yunxin_channel_username']}}
</div>
<div
class=
"layui-col-md3"
>
<span
title=
"{{$supplier['channel_username']}}"
>
...
...
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