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
0657e742
authored
Jun 04, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug fix
parent
9851d46f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
104 deletions
.gitignore
resources/views/script/SkuListScript.blade.php
storage/framework/views/5238497145456f693cc29f1fe0a7ff8fb43fd269.php
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
.gitignore
View file @
0657e742
...
...
@@ -13,3 +13,5 @@ Homestead.json
CLAUDE.md
/.windsurf
/skills-lock.json
/.codewhale
/.codebuddy
\ No newline at end of file
resources/views/script/SkuListScript.blade.php
View file @
0657e742
...
...
@@ -15,6 +15,7 @@
let
colSettingsData
=
{
!!
$colSettings
!!
};
let
colSettingsUserId
=
'{{request()->user->userId}}'
;
let
colSettingsPageKey
=
'sku_list'
;
let
deadStockGoodsLabel
=
'{{ \App\Http\Services\SkuService::GOODS_LABEL_DEAD_STOCK }}'
;
//点击罗盘筛选
$
(
'.main_filter'
).
click
(
function
()
{
...
...
@@ -629,6 +630,17 @@
$
(
"#update_goods_label"
).
click
(
function
()
{
let
checkStatus
=
table
.
checkStatus
(
'skuList'
);
let
data
=
checkStatus
.
data
;
if
(
data
.
length
===
0
)
{
layer
.
msg
(
'请选择要操作的sku'
,
{
icon
:
5
});
return
false
;
}
let
hasDeadStockGoodsLabel
=
data
.
some
(
function
(
item
)
{
return
String
(
item
.
goods_label
)
===
String
(
deadStockGoodsLabel
);
});
if
(
hasDeadStockGoodsLabel
)
{
layer
.
msg
(
'不可修改sku显示类型'
,
{
icon
:
5
});
return
false
;
}
let
skuIds
=
Array
.
from
(
data
,
({
goods_id
})
=>
goods_id
);
skuIds
=
skuIds
.
join
(
','
);
layer
.
open
({
...
...
storage/framework/views/5238497145456f693cc29f1fe0a7ff8fb43fd269.php
deleted
100644 → 0
View file @
9851d46f
<?php
echo
$__env
->
make
(
'web.supplier.SupplierListFilter'
,
array_except
(
get_defined_vars
(),
array
(
'__data'
,
'__path'
)))
->
render
();
?>
<div
class=
"layui-btn-group demoTable"
style=
"margin-bottom: 15px;margin-top: 15px"
>
<?php
if
(
checkPerm
(
'AddSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"add_supplier"
>
新增
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'DisableSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"disable_supplier"
>
禁用
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'AuditSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"audit_supplier"
>
审核
</button>
<?php
endif
;
?>
<?php
/* <?php if(checkPerm('AllocatePurchaseUser')): ?>*/
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" id="allocate_purchase_user">分配数据维护员</button>*/
?>
<?php
/* <?php endif; ?>*/
?>
<?php
if
(
checkPerm
(
'BatchAllocatePurchaseUser'
))
:
?>
<?php
/* <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>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'BatchAllocateReversePurchaser'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"batch_allocate_reverse_purchaser"
>
分配逆向采购员
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'AllocateChannelUser'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"allocate_channel_user"
>
分配采购员
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ChangeSupplierIsType'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
title=
"该操作可以将竞调供应商转为正式供应商"
id=
"change_supplier_is_type"
>
转正供应商
</button>
<?php
endif
;
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" title="点击确定审核后会进入审核中状态"*/
?>
<?php
/* id="batch_apply_in_review_supplier">*/
?>
<?php
/* 申请审核*/
?>
<?php
/* </button>*/
?>
<?php
if
(
checkPerm
(
'BlockSupplier'
))
:
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" id="block_supplier">*/
?>
<?php
/* 拉黑*/
?>
<?php
/* </button>*/
?>
<?php
endif
;
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
title=
"该操作可以将供应商同步到供应商"
id=
"sync_supplier_to_erp"
>
金蝶同步
</button>
<?php
if
(
request
()
->
user
->
userId
==
1000
||
request
()
->
user
->
userId
==
2082
)
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
title=
"该操作可以将供应商同步到一体化"
id=
"sync_supplier_to_united"
>
一体化同步
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ApplySupplierShare'
))
:
?>
<?php
/* <?php if(checkPerm('BlockSupplier')): ?>*/
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"apply_supplier_share"
>
共用申请
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'AuditSupplierShare'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"audit_supplier_share_apply"
>
共用审核
<?php
if
(
!
empty
(
$shareApplyCount
))
:
?>
(
<?php
echo
e
(
$shareApplyCount
);
?>
)
<span
style=
"margin-left: 0"
class=
"layui-badge-dot layui-bg-orange"
></span>
<?php
endif
;
?>
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'BatchAddTag'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"batch_add_tags"
>
新增供应商标签
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'BatchAllocateYunxinChannelUser'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"batch_allocate_yunxin_channel_user"
>
设置SKU采购
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ExportSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"export_supplier"
>
导出采购员全离职供应商
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'QuerySupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"query_supplier"
>
查询供应商
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'TransferSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"transfer_supplier"
>
供应商交接
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ConfirmCrmSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"confirm_crm_supplier"
>
确认客户转化供应商
</button>
<?php
endif
;
?>
</div>
<button
type=
"button"
id=
"refreshWindow"
style=
"display: none"
>
刷新页面
</button>
<table
class=
"layui-table"
id=
"list"
lay-filter=
"list"
></table>
<script>
</script>
<script
type=
"text/html"
id=
"operate"
>
<
div
style
=
"text-align: left;"
>
<?php
if
(
$canAudit
)
:
?>
<
a
href
=
"/supplier/AddSupplier?supplier_id={{ d.supplier_id}}"
class
=
"btn btn-xs btn-outline btn-success"
target
=
"_blank"
>
修改
<
/a
>
<?php
else
:
?>
<
a
href
=
"/supplier/AddSupplier?supplier_id={{ d.supplier_id}}"
class
=
"btn btn-xs btn-outline btn-success"
target
=
"_blank"
>
查看
<
/a
>
<?php
endif
;
?>
<
/div
>
</script>
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
deleted
100644 → 0
View file @
9851d46f
This diff is collapsed.
Click to expand it.
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
deleted
100644 → 0
View file @
9851d46f
This diff is collapsed.
Click to expand it.
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