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
b0110348
authored
Jun 21, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去掉转正限制
parent
3e183539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
resources/views/script/SupplierListScript.blade.php
resources/views/script/SupplierListScript.blade.php
View file @
b0110348
...
...
@@ -257,11 +257,11 @@
layer
.
msg
(
'该操作不支持多选'
,
{
icon
:
5
})
return
;
}
const
is_type
=
data
[
0
].
is_type
;
if
(
is_type
===
1
)
{
layer
.
msg
(
'该供应商为非正式供应商,请先将该供应商转正'
,
{
icon
:
5
})
return
false
;
}
//
const is_type = data[0].is_type;
//
if (is_type === 1) {
//
layer.msg('该供应商为非正式供应商,请先将该供应商转正', {icon: 5})
//
return false;
//
}
const
status
=
data
[
0
].
status
;
if
((
status
===
3
||
status
===
2
||
status
===
-
2
))
{
let
supplierId
=
data
[
0
].
supplier_id
;
...
...
@@ -299,12 +299,12 @@
layer
.
msg
(
'选择的供应商里,存在审核状态的供应商,无法分配渠道员'
,
{
icon
:
5
})
return
}
let
is_type
=
Array
.
from
(
data
,
({
is_type
})
=>
is_type
);
//分配采购员的多选操作,需要先去判断是否存在审核中的供应商,存在的话,要提示
if
(
is_type
.
indexOf
(
1
)
!==
-
1
)
{
layer
.
msg
(
'选择的供应商里,存在非正式供应商,请先将其转正'
,
{
icon
:
5
})
return
}
//
let is_type = Array.from(data, ({is_type}) => is_type);
//
//
分配采购员的多选操作,需要先去判断是否存在审核中的供应商,存在的话,要提示
//
if (is_type.indexOf(1) !== -1) {
//
layer.msg('选择的供应商里,存在非正式供应商,请先将其转正', {icon: 5})
//
return
//
}
layer
.
open
({
type
:
2
,
content
:
'/supplier/BatchAllocatePurchaseUser?view=iframe&supplier_ids='
+
supplierIds
,
...
...
@@ -330,11 +330,11 @@
layer
.
msg
(
'该操作不支持多选'
,
{
icon
:
5
})
return
;
}
const
is_type
=
data
[
0
].
is_type
;
if
(
is_type
===
1
)
{
layer
.
msg
(
'该供应商为非正式供应商,请先将该供应商转正'
,
{
icon
:
5
})
return
false
;
}
//
const is_type = data[0].is_type;
//
if (is_type === 1) {
//
layer.msg('该供应商为非正式供应商,请先将该供应商转正', {icon: 5})
//
return false;
//
}
const
status
=
data
[
0
].
status
;
if
((
status
===
3
||
status
===
2
||
status
===
-
2
))
{
let
supplierId
=
data
[
0
].
supplier_id
;
...
...
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