Commit a803dd71 by 杨树贤

Merge branch 'master' into ysx-期货有效期-20230725

parents 50a32e03 8f9ce3ee
...@@ -53,6 +53,16 @@ class SkuListFilter ...@@ -53,6 +53,16 @@ class SkuListFilter
unset($map['source_type']); unset($map['source_type']);
} }
if (!empty($map['has_price'])) {
if ($map['has_price'] == 1) {
$map['single_price/sr'] = 'gt,0';
}else{
$map['single_price/eq'] = '0';
}
unset($map['source_type']);
}
if (!empty($map['stock_compare_type']) && !empty($map['stock_num'])) { if (!empty($map['stock_compare_type']) && !empty($map['stock_num'])) {
switch ($map['stock_compare_type']) { switch ($map['stock_compare_type']) {
case 'eq': case 'eq':
...@@ -84,4 +94,4 @@ class SkuListFilter ...@@ -84,4 +94,4 @@ class SkuListFilter
} }
return $map; return $map;
} }
} }
\ No newline at end of file
...@@ -87,6 +87,9 @@ class SkuService ...@@ -87,6 +87,9 @@ class SkuService
if (!empty($sku['ladder_price'])) { if (!empty($sku['ladder_price'])) {
$priceService = new PriceService(); $priceService = new PriceService();
$moqPrice = $priceService->getMoqPrice($sku['ladder_price']); $moqPrice = $priceService->getMoqPrice($sku['ladder_price']);
if (!is_array($sku['ladder_price'])) {
$sku['ladder_price'] = json_decode($sku['ladder_price'], true);
}
foreach ($sku['ladder_price'] as &$ladder) { foreach ($sku['ladder_price'] as &$ladder) {
$ladder['purchases'] = $ladder['purchases'] == 0 ? $sku['moq'] : $ladder['purchases']; $ladder['purchases'] = $ladder['purchases'] == 0 ? $sku['moq'] : $ladder['purchases'];
} }
...@@ -440,4 +443,4 @@ class SkuService ...@@ -440,4 +443,4 @@ class SkuService
{ {
} }
} }
\ No newline at end of file
...@@ -20,8 +20,8 @@ class SupplierStatisticsService ...@@ -20,8 +20,8 @@ class SupplierStatisticsService
return $result; return $result;
} }
$total = $this->getStatisticsCount('all'); $total = $this->getStatisticsCount('all');
// //待复审 //待复审
// $needReview = $this->getStatisticsCount('need_review'); $needReview = $this->getStatisticsCount('need_review');
// //待提审 // //待提审
// $pending = $this->getStatisticsCount('pending'); // $pending = $this->getStatisticsCount('pending');
// //审核中 // //审核中
...@@ -62,7 +62,7 @@ class SupplierStatisticsService ...@@ -62,7 +62,7 @@ class SupplierStatisticsService
//缺少品质协议(线上) //缺少品质协议(线上)
$result = [ $result = [
'total' => $total, 'total' => $total,
// 'need_review' => $needReview, 'need_review' => $needReview,
// 'pending' => $pending, // 'pending' => $pending,
// 'in_review' => $inReview, // 'in_review' => $inReview,
// 'passed' => $passed, // 'passed' => $passed,
...@@ -131,4 +131,4 @@ class SupplierStatisticsService ...@@ -131,4 +131,4 @@ class SupplierStatisticsService
} }
return $filter->defaultFilter($model, $type)->count(); return $filter->defaultFilter($model, $type)->count();
} }
} }
\ No newline at end of file
...@@ -25,7 +25,7 @@ class SupplierContactTransformer ...@@ -25,7 +25,7 @@ class SupplierContactTransformer
$item['supplier_email'] = $emailTemp; $item['supplier_email'] = $emailTemp;
} }
} }
if (!empty($item['supplier_mobile'])) { if (!empty($item['supplier_mobile']) && !preg_match("/[\x{4e00}-\x{9fa5}]/u", $item['supplier_mobile'])) {
$temp = substr($item['supplier_mobile'], 3, 4); $temp = substr($item['supplier_mobile'], 3, 4);
$item['supplier_mobile'] = str_replace($temp, '****', $item['supplier_mobile']); $item['supplier_mobile'] = str_replace($temp, '****', $item['supplier_mobile']);
} }
...@@ -52,4 +52,4 @@ class SupplierContactTransformer ...@@ -52,4 +52,4 @@ class SupplierContactTransformer
return $list; return $list;
} }
} }
\ No newline at end of file
...@@ -220,7 +220,7 @@ return [ ...@@ -220,7 +220,7 @@ return [
'CompassMenuMap' => [ 'CompassMenuMap' => [
'total' => '全部', 'total' => '全部',
// 'pending' => '待提审', // 'pending' => '待提审',
// 'need_review' => '待复审', 'need_review' => '待复审',
// 'in_review' => '审核中', // 'in_review' => '审核中',
// 'draft' => '草稿', // 'draft' => '草稿',
// 'passed' => '已通过', // 'passed' => '已通过',
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter') @inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('single_price/sr','有无价格',request()->get('single_price/sr'),['gt,0'=> '有','eq,0'=> '无']) !!} {!! $statusPresenter->render('has_price','有无价格',request()->get('has_price'),['1'=> '有','-1'=> '无']) !!}
</div> </div>
<div class="layui-inline" style="width: 600px"> <div class="layui-inline" style="width: 600px">
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter') @inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
......
...@@ -7,9 +7,14 @@ ...@@ -7,9 +7,14 @@
<div class="layui-card"> <div class="layui-card">
<div class="layui-card-body" style="padding: 0;"> <div class="layui-card-body" style="padding: 0;">
<div class="split-group" style="height: 170px;"> <div class="split-group" style="height: 170px;">
<div class="split-item" id="s1"> <div class="split-item" id="s1" style="text-align: center">
<div class="layui-row"> <div class="layui-row">
<a class="main_filter layui-badge layui-bg-green" id="total"></a> <a class="main_filter layui-badge layui-bg-green" id="total"></a>
<div class="layui-row">
<a class="main_filter" title="待复审" id="need_review">
待复审
</a>
</div>
</div> </div>
</div> </div>
{{-- <div class="split-item" id="s2" style="text-align: center">--}} {{-- <div class="split-item" id="s2" style="text-align: center">--}}
...@@ -284,4 +289,4 @@ ...@@ -284,4 +289,4 @@
</div> </div>
</form> </form>
@endif @endif
</div> </div>
\ No newline at end of file
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