Commit 2231ac1c by 杨树贤

筛选

parent adbf7650
......@@ -60,8 +60,8 @@ class SupplierFilter
if (!empty($map['purchase_uid'])) {
$query->where('purchase_uid', $map['purchase_uid']);
}
if (!empty($map['uploaded_sku'])) {
$query->where('uploaded_sku', $map['uploaded_sku']);
if (!empty($map['has_uploaded_sku'])) {
$query->where('uploaded_sku', $map['has_uploaded_sku']);
}
if (!empty($map['channel_uid'])) {
$query->where('channel_uid', 'like', "%{$map['channel_uid']}%");
......@@ -219,10 +219,10 @@ class SupplierFilter
//是因为无论什么角色,都可以看到黑名单和禁用供应商
if ($subordinateCodeIds) {
if ($canViewFakeSupplier) {
$query->whereRaw(DB::raw("(create_uid in $inUserIdSql or purchase_uid in $inCodeIdSql
$query->whereRaw(DB::raw("(create_uid in $inUserIdSql or purchase_uid in $inCodeIdSql
or channel_uid REGEXP '$likeSqlRaw' or is_type = 1 or (status = -3 or status = -2)) "));
} else {
$query->whereRaw(DB::raw("(create_uid in $inUserIdSql or purchase_uid in $inCodeIdSql
$query->whereRaw(DB::raw("(create_uid in $inUserIdSql or purchase_uid in $inCodeIdSql
or channel_uid REGEXP '$likeSqlRaw' or (status = -3 or status = -2)) "));
}
} else {
......@@ -411,4 +411,4 @@ class SupplierFilter
}
return $query;
}
}
\ No newline at end of file
}
......@@ -62,6 +62,17 @@
$('.hide_filter_type').show();
});
$('#show_filter_row2').click(function () {
let isHidden = $('#filter_row2').is(':hidden');
if (isHidden) {
$('#filter_row2').show();
$('#show_filter_row2').text('隐藏');
} else {
$('#filter_row2').hide();
$('#show_filter_row2').text('展开');
}
});
//这个是页面点击刷新方法,隐藏起来是为了页面切换回这个列表的时候触发的
$('#refreshWindow').click(function () {
//判断当前是否有layui弹窗窗口,有的话不刷新
......
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