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
6e46ab24
authored
Jul 21, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
审核中字符
parent
a90e6cff
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
98 additions
and
41 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Controllers/Api/SupplierReceiptApiController.php
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Services/DataService.php
app/Http/Services/SupplierAuditService.php
app/Http/Services/SupplierContactService.php
app/Http/Services/SupplierStatisticsService.php
app/Model/SupplierChannelModel.php
config/field.php
config/fixed.php
resources/views/script/SupplierDetailScript.blade.php
resources/views/script/SupplierListScript.blade.php
resources/views/script/UpdateSupplierScript.blade.php
resources/views/web/SupplierDetail.blade.php
resources/views/web/SupplierList.blade.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
6e46ab24
...
@@ -144,7 +144,7 @@ class SupplierApiController extends Controller
...
@@ -144,7 +144,7 @@ class SupplierApiController extends Controller
public
function
DisableSupplier
(
$request
)
public
function
DisableSupplier
(
$request
)
{
{
//禁用不是直接修改为无法交易,而是改为
待审核
,然后审核通过后,变成无法交易
//禁用不是直接修改为无法交易,而是改为
审核中
,然后审核通过后,变成无法交易
$supplierId
=
$request
->
get
(
'supplier_id'
);
$supplierId
=
$request
->
get
(
'supplier_id'
);
$model
=
new
SupplierChannelModel
();
$model
=
new
SupplierChannelModel
();
$redis
=
new
RedisModel
();
$redis
=
new
RedisModel
();
...
@@ -404,4 +404,20 @@ class SupplierApiController extends Controller
...
@@ -404,4 +404,20 @@ class SupplierApiController extends Controller
$this
->
response
(
-
1
,
'无法进行审核操作,因为该供应商最后(修改人/创建人)和您不属于同一个部门'
);
$this
->
response
(
-
1
,
'无法进行审核操作,因为该供应商最后(修改人/创建人)和您不属于同一个部门'
);
}
}
}
}
//拉黑供应商
public
function
BlockSupplier
(
$request
)
{
$supplierId
=
$request
->
get
(
'supplier_id'
);
$channelModel
=
new
SupplierChannelModel
();
$result
=
$channelModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'status'
=>
-
3
,
'update_time'
=>
time
(),
]);
if
(
$result
)
{
$this
->
response
(
0
,
'拉黑成功'
);
}
else
{
$this
->
response
(
-
1
,
'拉黑操作失败 '
);
}
}
}
}
app/Http/Controllers/Api/SupplierReceiptApiController.php
View file @
6e46ab24
...
@@ -94,7 +94,7 @@ class SupplierReceiptApiController extends Controller
...
@@ -94,7 +94,7 @@ class SupplierReceiptApiController extends Controller
$this
->
response
(
-
1
,
'操作失败'
);
$this
->
response
(
-
1
,
'操作失败'
);
}
}
//判断是否要进入
待审核
状态,因为部分字段修改是不需要走审核的
//判断是否要进入
审核中
状态,因为部分字段修改是不需要走审核的
private
function
checkNeedAudit
(
$oldReceipt
,
$newReceipt
)
private
function
checkNeedAudit
(
$oldReceipt
,
$newReceipt
)
{
{
$notNeedAuditField
=
[
$notNeedAuditField
=
[
...
...
app/Http/Controllers/Filter/SupplierFilter.php
View file @
6e46ab24
...
@@ -159,7 +159,7 @@ class SupplierFilter
...
@@ -159,7 +159,7 @@ class SupplierFilter
$query
->
where
(
'status'
,
SupplierChannelModel
::
STATUS_PENDING
);
$query
->
where
(
'status'
,
SupplierChannelModel
::
STATUS_PENDING
);
break
;
break
;
case
"in_review"
:
case
"in_review"
:
//
待审核
//
审核中
$query
->
where
(
'status'
,
SupplierChannelModel
::
STATUS_IN_REVIEW
);
$query
->
where
(
'status'
,
SupplierChannelModel
::
STATUS_IN_REVIEW
);
break
;
break
;
case
"passed"
:
case
"passed"
:
...
...
app/Http/Services/DataService.php
View file @
6e46ab24
...
@@ -398,7 +398,7 @@ class DataService
...
@@ -398,7 +398,7 @@ class DataService
}
}
//同时记录被修改的supplier_id列表到redis以防万一
//同时记录被修改的supplier_id列表到redis以防万一
$redis
->
hset
(
'lie_change_is_type_suppliers'
,
$supplier
[
'supplier_id'
],
json_encode
(
$supplier
));
$redis
->
hset
(
'lie_change_is_type_suppliers'
,
$supplier
[
'supplier_id'
],
json_encode
(
$supplier
));
//没有的话直接修改成
待审核
,并且转正
//没有的话直接修改成
审核中
,并且转正
$model
->
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
$model
->
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
update
([
->
update
([
'update_time'
=>
time
(),
'update_time'
=>
time
(),
...
...
app/Http/Services/SupplierAuditService.php
View file @
6e46ab24
...
@@ -30,7 +30,7 @@ class SupplierAuditService
...
@@ -30,7 +30,7 @@ class SupplierAuditService
//先找出原来供应商的状态
//先找出原来供应商的状态
$supplierModel
=
new
SupplierChannelModel
();
$supplierModel
=
new
SupplierChannelModel
();
$supplier
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
$supplier
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
//如果需要复审并且审核状态为
待审核
,则代表这次审核为第一次审核
//如果需要复审并且审核状态为
审核中
,则代表这次审核为第一次审核
if
(
$supplier
[
'status'
]
==
SupplierChannelModel
::
STATUS_IN_REVIEW
&&
$supplier
[
'need_review'
]
==
1
)
{
if
(
$supplier
[
'status'
]
==
SupplierChannelModel
::
STATUS_IN_REVIEW
&&
$supplier
[
'need_review'
]
==
1
)
{
//第一次审核,通过是将审核状态置为待复审
//第一次审核,通过是将审核状态置为待复审
//通过
//通过
...
@@ -189,7 +189,7 @@ class SupplierAuditService
...
@@ -189,7 +189,7 @@ class SupplierAuditService
return
true
;
return
true
;
}
}
//判断是否要进入
待审核
状态,因为部分字段修改是不需要走审核的
//判断是否要进入
审核中
状态,因为部分字段修改是不需要走审核的
public
function
checkNeedAudit
(
$supplierId
,
$channel
)
public
function
checkNeedAudit
(
$supplierId
,
$channel
)
{
{
$notNeedAuditField
=
[
$notNeedAuditField
=
[
...
...
app/Http/Services/SupplierContactService.php
View file @
6e46ab24
...
@@ -124,7 +124,7 @@ class SupplierContactService
...
@@ -124,7 +124,7 @@ class SupplierContactService
return
!
empty
(
$contact
)
?
$contact
->
toArray
()
:
[];
return
!
empty
(
$contact
)
?
$contact
->
toArray
()
:
[];
}
}
//判断是否要进入
待审核
状态,因为部分字段修改是不需要走审核的
//判断是否要进入
审核中
状态,因为部分字段修改是不需要走审核的
private
function
checkNeedAudit
(
$oldContact
,
$newContact
)
private
function
checkNeedAudit
(
$oldContact
,
$newContact
)
{
{
$notNeedAuditField
=
[
$notNeedAuditField
=
[
...
...
app/Http/Services/SupplierStatisticsService.php
View file @
6e46ab24
...
@@ -16,7 +16,7 @@ class SupplierStatisticsService
...
@@ -16,7 +16,7 @@ class SupplierStatisticsService
$total
=
$this
->
getStatisticsCount
(
'all'
);
$total
=
$this
->
getStatisticsCount
(
'all'
);
//待复审
//待复审
$pending
=
$this
->
getStatisticsCount
(
'pending'
);
$pending
=
$this
->
getStatisticsCount
(
'pending'
);
//
待审核
//
审核中
$inReview
=
$this
->
getStatisticsCount
(
'in_review'
);
$inReview
=
$this
->
getStatisticsCount
(
'in_review'
);
//通过
//通过
$passed
=
$this
->
getStatisticsCount
(
'passed'
);
$passed
=
$this
->
getStatisticsCount
(
'passed'
);
...
...
app/Model/SupplierChannelModel.php
View file @
6e46ab24
...
@@ -12,7 +12,7 @@ class SupplierChannelModel extends Model
...
@@ -12,7 +12,7 @@ class SupplierChannelModel extends Model
//待复审(第一次新增)
//待复审(第一次新增)
const
STATUS_PENDING
=
-
1
;
const
STATUS_PENDING
=
-
1
;
//
待审核
//
审核中
const
STATUS_IN_REVIEW
=
1
;
const
STATUS_IN_REVIEW
=
1
;
//通过
//通过
const
STATUS_PASSED
=
2
;
const
STATUS_PASSED
=
2
;
...
@@ -20,6 +20,8 @@ class SupplierChannelModel extends Model
...
@@ -20,6 +20,8 @@ class SupplierChannelModel extends Model
const
STATUS_REJECT
=
3
;
const
STATUS_REJECT
=
3
;
//禁止交易(禁用)
//禁止交易(禁用)
const
STATUS_DISABLE
=
-
2
;
const
STATUS_DISABLE
=
-
2
;
//黑名单
const
STATUS_BLOCK
=
-
3
;
//黑名单信息
//黑名单信息
public
function
blacklist
()
public
function
blacklist
()
...
...
config/field.php
View file @
6e46ab24
...
@@ -15,7 +15,7 @@ return [
...
@@ -15,7 +15,7 @@ return [
//sku列表用
//sku列表用
'SkuStatus'
=>
[
'SkuStatus'
=>
[
0
=>
'
待审核
'
,
0
=>
'
审核中
'
,
1
=>
'上架'
,
1
=>
'上架'
,
2
=>
'审核不通过'
,
2
=>
'审核不通过'
,
3
=>
'下架'
,
3
=>
'下架'
,
...
...
config/fixed.php
View file @
6e46ab24
...
@@ -88,10 +88,11 @@ return [
...
@@ -88,10 +88,11 @@ return [
'SupplierStatus'
=>
[
'SupplierStatus'
=>
[
-
1
=>
'待复审'
,
-
1
=>
'待复审'
,
1
=>
'
待审核
'
,
1
=>
'
审核中
'
,
3
=>
'未通过'
,
3
=>
'未通过'
,
2
=>
'已通过'
,
2
=>
'已通过'
,
-
2
=>
'禁止交易'
,
-
2
=>
'禁止交易'
,
-
3
=>
'黑名单'
,
],
],
'Currency'
=>
[
'Currency'
=>
[
...
@@ -205,7 +206,7 @@ return [
...
@@ -205,7 +206,7 @@ return [
'CompassMenuMap'
=>
[
'CompassMenuMap'
=>
[
'total'
=>
'全部'
,
'total'
=>
'全部'
,
'pending'
=>
'待复审'
,
'pending'
=>
'待复审'
,
'in_review'
=>
'
待审核
'
,
'in_review'
=>
'
审核中
'
,
'passed'
=>
'已通过'
,
'passed'
=>
'已通过'
,
'rejected'
=>
'未通过'
,
'rejected'
=>
'未通过'
,
'disable'
=>
'禁止交易'
,
'disable'
=>
'禁止交易'
,
...
...
resources/views/script/SupplierDetailScript.blade.php
View file @
6e46ab24
...
@@ -15,6 +15,22 @@
...
@@ -15,6 +15,22 @@
window
.
location
.
href
=
"/supplier/UpdateSupplier?view=iframe&supplier_id={{$supplier['supplier_id']}}&tab="
+
tabName
;
window
.
location
.
href
=
"/supplier/UpdateSupplier?view=iframe&supplier_id={{$supplier['supplier_id']}}&tab="
+
tabName
;
})
})
$
(
'#cancel_block_supplier'
).
click
(
function
()
{
layer
.
confirm
(
'你确定要取消拉黑该供应商吗,取消后会进入审核中状态?'
,
function
(
index
)
{
let
supplierId
=
data
[
0
].
supplier_id
;
let
res
=
ajax
(
'/api/supplier/ChangeSupplierIsType'
,
{
supplier_id
:
supplierId
,
is_type
:
0
})
if
(
res
.
err_code
===
0
)
{
saveRefreshData
(
'detail'
,
supplierId
)
table
.
reload
(
'list'
)
supplierStatistics
();
layer
.
closeAll
();
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
})
}
else
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
})
}
});
});
{{
--
index
.
setTabTitle
(
'供应商详情 - {{$supplier['
supplier_code
'] or ''}}'
);
--
}}
{{
--
index
.
setTabTitle
(
'供应商详情 - {{$supplier['
supplier_code
'] or ''}}'
);
--
}}
function
openLogView
()
{
function
openLogView
()
{
...
...
resources/views/script/SupplierListScript.blade.php
View file @
6e46ab24
...
@@ -33,8 +33,6 @@
...
@@ -33,8 +33,6 @@
}
}
,
where
:
whereCondition
,
where
:
whereCondition
});
});
// $('#status').val('');
// form.render('select')
});
});
//多加了个区分根据状态去筛选
//多加了个区分根据状态去筛选
...
@@ -86,6 +84,8 @@
...
@@ -86,6 +84,8 @@
field
:
'status_name'
,
title
:
'状态'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
data
)
{
field
:
'status_name'
,
title
:
'状态'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
data
)
{
if
(
data
.
status
===
3
)
{
if
(
data
.
status
===
3
)
{
return
"
<
span
style
=
'color: red'
title
=
'" + data.reject_reason + "'
>
" + data.status_name + "
<
/span>
"
return
"
<
span
style
=
'color: red'
title
=
'" + data.reject_reason + "'
>
" + data.status_name + "
<
/span>
"
}
else
if
(
data
.
status
===
-
3
)
{
return
"
<
span
style
=
'color: red'
title
=
'" + data.block_reason + "'
>
" + data.status_name + "
<
/span>
"
}
else
{
}
else
{
return
data
.
status_name
;
return
data
.
status_name
;
}
}
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
return
return
}
}
// if (status === -1) {
// if (status === -1) {
// layer.msg('要
待审核
的供应商才可以审核', {icon: 5});
// layer.msg('要
审核中
的供应商才可以审核', {icon: 5});
// return
// return
// }
// }
let
checkAuditMsg
=
checkCanAudit
(
supplierId
);
let
checkAuditMsg
=
checkCanAudit
(
supplierId
);
...
@@ -309,12 +309,6 @@
...
@@ -309,12 +309,6 @@
layer
.
msg
(
'选择的供应商里,存在审核状态的供应商,无法分配渠道员'
,
{
icon
:
5
})
layer
.
msg
(
'选择的供应商里,存在审核状态的供应商,无法分配渠道员'
,
{
icon
:
5
})
return
return
}
}
// let is_type = Array.from(data, ({is_type}) => is_type);
// //分配采购员的多选操作,需要先去判断是否存在审核中的供应商,存在的话,要提示
// if (is_type.indexOf(1) !== -1) {
// layer.msg('选择的供应商里,存在非正式供应商,请先将其转正', {icon: 5})
// return
// }
layer
.
open
({
layer
.
open
({
type
:
2
,
type
:
2
,
content
:
'/supplier/BatchAllocatePurchaseUser?view=iframe&supplier_ids='
+
supplierIds
,
content
:
'/supplier/BatchAllocatePurchaseUser?view=iframe&supplier_ids='
+
supplierIds
,
...
@@ -405,7 +399,6 @@
...
@@ -405,7 +399,6 @@
}
}
});
});
//转正供应商
//转正供应商
$
(
"#change_supplier_is_type"
).
click
(
function
()
{
$
(
"#change_supplier_is_type"
).
click
(
function
()
{
let
checkStatus
=
table
.
checkStatus
(
'list'
);
let
checkStatus
=
table
.
checkStatus
(
'list'
);
...
@@ -422,7 +415,7 @@
...
@@ -422,7 +415,7 @@
layer
.
msg
(
'该供应商已经是正式供应商'
,
{
'icon'
:
5
});
layer
.
msg
(
'该供应商已经是正式供应商'
,
{
'icon'
:
5
});
return
return
}
}
layer
.
confirm
(
'如果转成正式供应商,会进入
待审核
状态,需要补全相关信息申请审核,确定要转正该供应商吗?'
,
function
(
index
)
{
layer
.
confirm
(
'如果转成正式供应商,会进入
审核中
状态,需要补全相关信息申请审核,确定要转正该供应商吗?'
,
function
(
index
)
{
let
supplierId
=
data
[
0
].
supplier_id
;
let
supplierId
=
data
[
0
].
supplier_id
;
let
res
=
ajax
(
'/api/supplier/ChangeSupplierIsType'
,
{
supplier_id
:
supplierId
,
is_type
:
0
})
let
res
=
ajax
(
'/api/supplier/ChangeSupplierIsType'
,
{
supplier_id
:
supplierId
,
is_type
:
0
})
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
...
@@ -438,6 +431,31 @@
...
@@ -438,6 +431,31 @@
}
}
});
});
$
(
"#block_supplier"
).
click
(
function
()
{
let
checkStatus
=
table
.
checkStatus
(
'list'
);
let
data
=
checkStatus
.
data
;
if
(
!
data
.
length
)
{
layer
.
msg
(
'请先选择要操作的供应商'
,
{
icon
:
5
})
}
else
{
if
(
data
.
length
>
1
)
{
layer
.
msg
(
'该操作不支持多选'
,
{
icon
:
5
})
return
;
}
layer
.
confirm
(
'确定要拉黑这家供应商吗?'
,
function
(
index
)
{
let
supplierId
=
data
[
0
].
supplier_id
;
let
res
=
ajax
(
'/api/supplier/block_supplier'
,
{
supplier_id
:
supplierId
,
is_type
:
0
})
if
(
res
.
err_code
===
0
)
{
saveRefreshData
(
'detail'
,
supplierId
)
table
.
reload
(
'list'
)
supplierStatistics
();
layer
.
closeAll
();
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
})
}
else
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
})
}
});
}
});
//点击查询按钮
//点击查询按钮
form
.
on
(
'submit(load)'
,
function
(
data
)
{
form
.
on
(
'submit(load)'
,
function
(
data
)
{
//罗盘选项会跳回全部
//罗盘选项会跳回全部
...
...
resources/views/script/UpdateSupplierScript.blade.php
View file @
6e46ab24
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
}
else
if
(
data
.
field
.
status
===
'-1'
)
{
}
else
if
(
data
.
field
.
status
===
'-1'
)
{
confirmMessage
=
'确定要提交新增供应商信息吗?一旦提交,该供应商就会进入待复审阶段,审核过程中无法进行信息修改'
confirmMessage
=
'确定要提交新增供应商信息吗?一旦提交,该供应商就会进入待复审阶段,审核过程中无法进行信息修改'
}
else
if
(
data
.
field
.
status
===
'3'
)
{
}
else
if
(
data
.
field
.
status
===
'3'
)
{
confirmMessage
=
'确定要重新提交审核吗?一旦提交,该供应商就会再次进入
待审核
阶段,审核过程中无法进行信息修改'
;
confirmMessage
=
'确定要重新提交审核吗?一旦提交,该供应商就会再次进入
审核中
阶段,审核过程中无法进行信息修改'
;
}
else
{
}
else
{
confirmMessage
=
'确定要修改供应商信息吗?一旦修改关键字段,该供应商就会再次进入
待审核
阶段,审核过程中无法进行信息修改'
;
confirmMessage
=
'确定要修改供应商信息吗?一旦修改关键字段,该供应商就会再次进入
审核中
阶段,审核过程中无法进行信息修改'
;
}
}
layer
.
confirm
(
confirmMessage
,
function
(
index
)
{
layer
.
confirm
(
confirmMessage
,
function
(
index
)
{
let
res
=
ajax
(
'/api/supplier/UpdateSupplier'
,
data
.
field
)
let
res
=
ajax
(
'/api/supplier/UpdateSupplier'
,
data
.
field
)
...
...
resources/views/web/SupplierDetail.blade.php
View file @
6e46ab24
...
@@ -48,41 +48,38 @@
...
@@ -48,41 +48,38 @@
</div>
</div>
<div
class=
"layui-col-md3"
></div>
<div
class=
"layui-col-md3"
></div>
</div>
</div>
@if($supplier['is_type']==1)
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
@if($supplier['is_type']==1)
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn layui-btn-disabled"
>
供应商为非正式供应商,请先转正
class=
"layui-btn layui-btn layui-btn-disabled"
>
供应商为非正式供应商,请先转正
</button>
</button>
</div>
@else
@else
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_PENDING)
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_PENDING)
<div
class=
"layui-row"
>
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn layui-btn-disabled"
>
待复审,不能修改
class=
"layui-btn layui-btn layui-btn-disabled"
>
待复审,不能修改
</button>
</button>
</div>
@elseif($supplier['status']==\App\Model\SupplierChannelModel::STATUS_PASSED||$supplier['status']==\App\Model\SupplierChannelModel::STATUS_REJECT)
@elseif($supplier['status']==\App\Model\SupplierChannelModel::STATUS_PASSED||$supplier['status']==\App\Model\SupplierChannelModel::STATUS_REJECT)
<div
class=
"layui-row"
>
<a
id=
"updateSupplierUrl"
<a
id=
"updateSupplierUrl"
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn"
>
修改
</a>
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn"
>
修改
</a>
</div>
@endif
@endif
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_DISABLE)
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_DISABLE)
<div
class=
"layui-row"
>
<a
id=
"updateSupplierUrl"
<a
id=
"updateSupplierUrl"
href=
"/supplier/UpdateSupplier?view=iframe&supplier_id={{$supplier['supplier_id']}}"
href=
"/supplier/UpdateSupplier?view=iframe&supplier_id={{$supplier['supplier_id']}}"
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn"
>
申请重新入驻
</a>
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn"
>
申请重新入驻
</a>
</div>
@endif
@endif
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_IN_REVIEW)
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_IN_REVIEW)
<div
class=
"layui-row"
>
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn layui-btn-disabled"
>
待审核
,不能修改
class=
"layui-btn layui-btn layui-btn-disabled"
>
审核中
,不能修改
</button>
</button>
</div>
@endif
@endif
@if($supplier['status']==\App\Model\SupplierChannelModel::STATUS_BLOCK
&&
checkPerm('CancelBlockSupplier'))
<button
type=
"button"
style=
"margin-bottom: 25px;margin-top: 5px"
id=
"cancel_block_supplier"
class=
"layui-btn layui-btn"
>
取消拉黑
</button>
@endif
@endif
@endif
<a
href=
"/supplier/print"
style=
"margin-bottom: 25px;margin-top: 5px"
class=
"layui-btn layui-btn"
>
打印
</a>
</div>
</div>
</div>
<div
class=
"layui-card-body"
style=
"margin-top: 140px"
>
<div
class=
"layui-card-body"
style=
"margin-top: 140px"
>
<div
class=
"layui-tab"
>
<div
class=
"layui-tab"
>
...
...
resources/views/web/SupplierList.blade.php
View file @
6e46ab24
...
@@ -10,11 +10,12 @@
...
@@ -10,11 +10,12 @@
@if(checkPerm('AuditSupplier'))
@if(checkPerm('AuditSupplier'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
audit_supplier
">审核</button>
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
audit_supplier
">审核</button>
@endif
@endif
@if(checkPerm('AllocatePurchaseUser'))
{{-- @if(checkPerm('AllocatePurchaseUser'))--}}
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
allocate_purchase_user
">分配渠道员</button>
{{-- <button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
allocate_purchase_user
">分配渠道员</button>--}}
@endif
{{-- @endif--}}
@if(checkPerm('BatchAllocatePurchaseUser'))
@if(checkPerm('BatchAllocatePurchaseUser'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
batch_allocate_purchase_user
">批量分配渠道员</button>
{{-- <button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
batch_allocate_purchase_user
">批量分配渠道员</button>--}}
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
batch_allocate_purchase_user
">分配渠道员</button>
@endif
@endif
@if(checkPerm('AllocateChannelUser'))
@if(checkPerm('AllocateChannelUser'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
allocate_channel_user
">分配采购员</button>
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
allocate_channel_user
">分配采购员</button>
...
@@ -24,6 +25,12 @@
...
@@ -24,6 +25,12 @@
转正供应商
转正供应商
</button>
</button>
@endif
@endif
@if(checkPerm('ChangeSupplierIsType'))
{{-- @if(checkPerm('BlockSupplier'))--}}
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
block_supplier
">
拉黑
</button>
@endif
@if(request()->user->userId==1000)
@if(request()->user->userId==1000)
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" title="
该操作可以将供应商同步到供应商
" id="
sync_supplier_to_erp
">
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" title="
该操作可以将供应商同步到供应商
" id="
sync_supplier_to_erp
">
金蝶同步
金蝶同步
...
...
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