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
5acc8b59
authored
Aug 18, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改部分限制
parent
28be712b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
app/Http/Validators/SupplierAccountValidator.php
resources/views/script/SupplierAccountListScript.blade.php
resources/views/script/UpdateSupplierScript.blade.php
app/Http/Validators/SupplierAccountValidator.php
View file @
5acc8b59
...
...
@@ -34,7 +34,7 @@ class SupplierAccountValidator
$yunxinChannelUid
=
$supplierModel
->
where
(
'supplier_code'
,
$account
[
'supplier_code'
])
->
value
(
'yunxin_channel_uid'
);
if
(
empty
(
$yunxinChannelUid
))
{
return
'该供应商没有绑定SKU采购,请完善相关信息'
;
//
return '该供应商没有绑定SKU采购,请完善相关信息';
}
$model
=
new
SupplierAccountModel
();
$supplierCount
=
$model
->
where
(
'supplier_code'
,
$account
[
'supplier_code'
])
...
...
@@ -63,4 +63,4 @@ class SupplierAccountValidator
'password_raw.required'
=>
'账号密码不能为空'
,
];
}
}
\ No newline at end of file
}
resources/views/script/SupplierAccountListScript.blade.php
View file @
5acc8b59
...
...
@@ -28,7 +28,7 @@
{
field: '
password_raw
', title: '
密码
', align: '
center
', width: 170,
templet: function (data) {
let text = canViewAccountInfo ? '
查看
' : '';
let text = canViewAccountInfo ? '' : '';
return '
<
span
>
' + data.password_raw + '
<
/span><span style="color: dodgerblue;margin-left: 10px" class="viewAccount" type="password_raw" id="' + data.id + '">' + text + '</
span
>
';
}
},
...
...
@@ -41,8 +41,8 @@
{
field
:
'supplier_code'
,
title
:
'供应商编码'
,
align
:
'center'
,
width
:
120
},
{
field
:
'supplier_name'
,
title
:
'供应商名称'
,
align
:
'center'
},
{
field
:
'type_name'
,
title
:
'账号类型'
,
align
:
'center'
},
{
field
:
'supplier_name'
,
title
:
'供应商名称'
,
align
:
'center'
,
width
:
180
},
{
field
:
'type_name'
,
title
:
'账号类型'
,
align
:
'center'
,
width
:
120
},
{
field
:
'is_entity'
,
title
:
'实体名单'
,
align
:
'center'
,
width
:
80
,
templet
:
function
(
data
)
{
let
color
=
''
;
...
...
resources/views/script/UpdateSupplierScript.blade.php
View file @
5acc8b59
...
...
@@ -28,8 +28,8 @@
if
(
res
.
err_code
===
0
)
{
}
else
{
layer
.
msg
(
'请先去魔方系统配置阶梯系数,再新建芯链账号'
,
{
icon
:
5
})
$
(
'input[name="stockup_type[5]"]'
).
next
().
click
();
//
layer.msg('请先去魔方系统配置阶梯系数,再新建芯链账号', {icon: 5})
//
$('input[name="stockup_type[5]"]').next().click();
}
},
error
:
function
()
{
...
...
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