weizong song 1 year ago
parent de780c9bbc
commit f4549aee3f

@ -48,7 +48,7 @@ class ProjectController extends CommonController
public function index(Request $request)
{
$data = $this->model->with("paramedicLevels")->paginate(10);
$data = $this->model->with(["paramedicLevels","wechatpayAccount"])->paginate(10);
return view($this->bladePath . ".index", compact("data"));
}

@ -61,4 +61,9 @@ class Project extends SoftDeletesModel
{
return $this->hasManyThrough(Manager::class, ManagerProject::class, "project_id", "id", "id", "manager_id");
}
public function wechatpayAccount()
{
return $this->hasOne(WechatpayAccount::class, "id", "wechatpay_account_id");
}
}

@ -19,6 +19,7 @@
</th>
<th>地址</th>
<th>项目结算比例</th>
<th>微信支付账号</th>
<th>操作</th>
</tr>
</thead>
@ -30,9 +31,11 @@
</td>
<td>{{ $row->address }}</td>
<td>{{ $row->percent_first_party }}</td>
<td>{{ $row->wechatpayAccount ? $row->wechatpayAccount->mchid : ""}}</td>
<td>
<a class="btn btn-sm btn-info"
href="{{url("{$urlPrefix}/beds/{$row['id']}")}}"><i class="mdi mdi-bed-empty"></i> 床位管理</a>
href="{{url("{$urlPrefix}/beds/{$row['id']}")}}"><i
class="mdi mdi-bed-empty"></i> 床位管理</a>
<a class="btn btn-sm btn-info"
href="{{url("{$urlPrefix}/asksubmit/{$row['id']}")}}">护士长满意度调查</a>
<a class="btn btn-sm btn-primary"

Loading…
Cancel
Save