admin_transfer_308_4

This commit is contained in:
dengbw
2022-03-08 17:07:21 +08:00
committed by lccsw
parent 7e6ba726ad
commit 7fc8168c7f
+6 -4
View File
@@ -64,12 +64,14 @@ class Goods extends Wxapp
$list && $warning = ['title' => '库存超期预警', 'note' => '库存天数已超过20天,请尽快销售,以免造成损失!', 'list' => $list];
}
if ($warning) {//库存预警
$date = ['show' => 1, 'inventory' => ['title' => "库存车辆({$total})", 'value' => '库存超期'
, 'color1' => '#fe606c', 'color2' => '#ff9026'], 'warning' => $warning];
$inventory_title = '库存超期';
$inventory_color = '#f00';
} else {
$date = ['show' => 1, 'inventory' => ['title' => "库存车辆({$total})", 'value' => '库存良好'
, 'color1' => '#30cfbd', 'color2' => '#2cbf8b'], 'warning' => $warning];
$inventory_title = '库存良好';
$inventory_color = '#666';
}
$date = ['show' => 1, 'inventory' => ['title' => $inventory_title, 'value' => $total
, 'color' => $inventory_color], 'warning' => $warning];
return $date;
}