|
@@ -44,16 +44,24 @@ class MedicationEntrustmentController extends AdminController
|
|
protected function detail($id)
|
|
protected function detail($id)
|
|
{
|
|
{
|
|
return Show::make($id, new MedicationEntrustment(), function (Show $show) {
|
|
return Show::make($id, new MedicationEntrustment(), function (Show $show) {
|
|
- $show->field('id');
|
|
|
|
- $show->field('student_id');
|
|
|
|
- $show->field('reason');
|
|
|
|
- $show->field('use_time');
|
|
|
|
- $show->field('detail');
|
|
|
|
- $show->field('desc');
|
|
|
|
- $show->field('photos');
|
|
|
|
- $show->field('sign');
|
|
|
|
- $show->field('created_at');
|
|
|
|
- $show->field('updated_at');
|
|
|
|
|
|
+ $show->row(function (Show\Row $show) {
|
|
|
|
+ $show->field('content','用药委托详情')
|
|
|
|
+ ->width(8)
|
|
|
|
+ ->unescape()
|
|
|
|
+ ->as(function () {
|
|
|
|
+ $html = '';
|
|
|
|
+ $html .= '<div style="text-align:left">';
|
|
|
|
+ $html .= '<div style="margin-top:5px">用药对象:' . config('map.students')[$this->student_id] . '</div>';
|
|
|
|
+ $html .= '<div style="margin-top:5px">用药时间:' . $this->use_time . '</div>';
|
|
|
|
+ $html .= '<div style="margin-top:5px">用药明细:' . $this->detail . '</div>';
|
|
|
|
+ $html .= '<div style="margin-top:5px">用药说明:' . $this->desc . '</div>';
|
|
|
|
+ $html .= '<div style="margin-top:5px">接回照片:</div>';
|
|
|
|
+ $html .= '<img data-action="preview-img" src="' . $this->photos . '" style="height:50px;width:50px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
|
|
|
|
+ $html .= '<div style="margin-top:5px">签名:' . $this->sign . '</div>';
|
|
|
|
+ $html .= '</div>';
|
|
|
|
+ return $html;
|
|
|
|
+ });
|
|
|
|
+ });
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|