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
ae9c9433
authored
Sep 10, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
自动新增账号
parent
6082d4d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
app/Http/Services/SupplierAccountService.php
app/Model/SupplierChannelModel.php
resources/views/script/SupplierAccountListScript.blade.php
app/Http/Services/SupplierAccountService.php
View file @
ae9c9433
...
...
@@ -74,7 +74,7 @@ class SupplierAccountService
return
;
}
//合作类型不包含芯链商家,则不创建账号
if
(
strpos
(
$supplier
->
cooperation_type
,
SupplierChannelModel
::
SUPPLIER_STOCKUP_TYPE
)
===
false
)
{
if
(
strpos
(
$supplier
->
stockup_type
,
(
string
)
SupplierChannelModel
::
SUPPLIER_STOCKUP_TYPE_XINLIAN
)
===
false
)
{
return
;
}
//新建账号
...
...
app/Model/SupplierChannelModel.php
View file @
ae9c9433
...
...
@@ -39,7 +39,7 @@ class SupplierChannelModel extends Model
const
SUPPLIER_GROUP_MIX
=
7
;
//混合分销商
//合作类型
const
SUPPLIER_STOCKUP_TYPE
=
5
;
//芯链商家
const
SUPPLIER_STOCKUP_TYPE
_XINLIAN
=
5
;
//芯链商家
//供应商地区
const
REGION_CN
=
2
;
//国内
...
...
resources/views/script/SupplierAccountListScript.blade.php
View file @
ae9c9433
...
...
@@ -18,8 +18,9 @@
{
field
:
'id'
,
title
:
'ID'
,
align
:
'center'
,
width
:
80
},
{
field
:
'contacts_name'
,
title
:
'联系人'
,
align
:
'center'
,
width
:
120
},
{
field
:
'email'
,
title
:
'邮箱'
,
align
:
'center'
,
width
:
170
},
{
field
:
'account_name'
,
title
:
'账号'
,
align
:
'center'
,
width
:
170
},
{
field
:
'mobile'
,
title
:
'
账
号'
,
align
:
'center'
,
width
:
170
,
field
:
'mobile'
,
title
:
'
手机
号'
,
align
:
'center'
,
width
:
170
,
templet
:
function
(
data
)
{
let
text
=
canViewAccountInfo
?
'查看'
:
''
;
return
'
<
span
>
' + data.mobile + '
<
/span><span style="color: dodgerblue;margin-left: 10px" class="viewAccount" type="mobile" id="' + data.id + '">' + text + '</
span
>
';
...
...
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