liyinglin 2 years ago
parent 07d86471db
commit a06e0fb775

@ -101,7 +101,7 @@ class OrdersController extends CommonController
$factors = json_decode($order->factors, true);
$order->department = (collect($factors)->where('factor_name', '所在科室')->first()['factor_item_name']) ?? '';
}
return view($this->bladePath . ".index", compact("data", "project_id", "month", "project"));
return view($this->bladePath . ".index", compact("data", "project_id", "month", "project","hushizhang"));
}
public function changeItem(Request $request)

@ -48,7 +48,10 @@
<th>结束日期</th>
<th>状态</th>
<th>总计</th>
@if ($hushizhang)
<th>操作</th>
@endif
</tr>
</thead>
<tbody>
@ -69,11 +72,14 @@
<td>{!! $row->status == \App\Models\Orders::STATUS_FINISHED ? $row->to_date : "<label class='badge badge-danger'>未结</label> {$row->to_date}" !!}</td>
<td>{!! $row->getStatusLabelAttribute() !!} </td>
<td>{!! $row->status == \App\Models\Orders::STATUS_FINISHED ? "" : "<label class='badge badge-danger'>预计</label>" !!} {{ $row->total }} </td>
@if ($hushizhang)
<td>
<a class="btn btn-sm btn-primary"
href="javascript:;" onclick="toggleItems(this)"><i
class="mdi mdi-arrow-down"></i> 查看</a>
</td>
@endif
</tr>
<tr style="display: none">
<td colspan="11" class="p-0">

Loading…
Cancel
Save