Commit 0657e742 by 杨树贤

bug fix

parent 9851d46f
......@@ -13,3 +13,5 @@ Homestead.json
CLAUDE.md
/.windsurf
/skills-lock.json
/.codewhale
/.codebuddy
\ No newline at end of file
......@@ -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({
......
<?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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment