待使用订单搜索
This commit is contained in:
parent
5f5fa2f82e
commit
4a7ce8cb3f
|
@ -108,7 +108,7 @@
|
||||||
>
|
>
|
||||||
<el-option key="1" label="30天待使用" value="1" />
|
<el-option key="1" label="30天待使用" value="1" />
|
||||||
<el-option key="2" label="60天待使用" value="2" />
|
<el-option key="2" label="60天待使用" value="2" />
|
||||||
<el-option key="3" label="60天待使用" value="3" />
|
<el-option key="3" label="80天待使用" value="3" />
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,6 @@ class OrderController extends base
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($unUseType = $request->get('un_use_type', 0)) {
|
if ($unUseType = $request->get('un_use_type', 0)) {
|
||||||
$query->whereRaw(Orders::AllOssStatusSql[1]);
|
|
||||||
switch ($unUseType) {
|
switch ($unUseType) {
|
||||||
case 1:
|
case 1:
|
||||||
list($start, $end) = calculateDateRange(30, 60);
|
list($start, $end) = calculateDateRange(30, 60);
|
||||||
|
@ -165,6 +164,9 @@ class OrderController extends base
|
||||||
}else{
|
}else{
|
||||||
$orders = $query->paginate($request->get('limit',10));
|
$orders = $query->paginate($request->get('limit',10));
|
||||||
}
|
}
|
||||||
|
if ($unUseType > 0) {
|
||||||
|
Log::info('sql:' . $query->getLastSql());
|
||||||
|
}
|
||||||
|
|
||||||
foreach($orders as &$order) {
|
foreach($orders as &$order) {
|
||||||
if(empty($order->personnel)) {
|
if(empty($order->personnel)) {
|
||||||
|
|
|
@ -83,7 +83,7 @@ function calculateDateRange($startDays, $endDays) {
|
||||||
|
|
||||||
// 返回格式化后的日期
|
// 返回格式化后的日期
|
||||||
return [
|
return [
|
||||||
|
$endDate->format('Y-m-d H:i:s'), // 结束日期
|
||||||
$startDate->format('Y-m-d'), // 开始日期
|
$startDate->format('Y-m-d'), // 开始日期
|
||||||
$endDate->format('Y-m-d H:i:s') // 结束日期
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.app-container[data-v-37ee8c4e]{position:relative;padding-bottom:60px}.el-table[data-v-37ee8c4e],.filter-container[data-v-37ee8c4e]{padding-bottom:5px}
|
.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.app-container[data-v-34046ddb]{position:relative;padding-bottom:60px}.el-table[data-v-34046ddb],.filter-container[data-v-34046ddb]{padding-bottom:5px}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue