|
|
@ -29,6 +29,7 @@ class LanzuEmployeesController extends AdminController |
|
|
|
|
|
|
|
|
$grid->column('id')->sortable(); |
|
|
$grid->column('id')->sortable(); |
|
|
$grid->column('name'); |
|
|
$grid->column('name'); |
|
|
|
|
|
$grid->column('tel'); |
|
|
$grid->column('user_id'); |
|
|
$grid->column('user_id'); |
|
|
$grid->column('market_id')->display(function($marketId) use($marketList){ |
|
|
$grid->column('market_id')->display(function($marketId) use($marketList){ |
|
|
return isset($marketList[$marketId]) ? $marketList[$marketId] : ''; |
|
|
return isset($marketList[$marketId]) ? $marketList[$marketId] : ''; |
|
|
@ -73,6 +74,7 @@ class LanzuEmployeesController extends AdminController |
|
|
return Show::make($id, new LanzuEmployees(), function (Show $show) { |
|
|
return Show::make($id, new LanzuEmployees(), function (Show $show) { |
|
|
$show->field('id'); |
|
|
$show->field('id'); |
|
|
$show->field('name'); |
|
|
$show->field('name'); |
|
|
|
|
|
$show->field('tel'); |
|
|
$show->field('user_id'); |
|
|
$show->field('user_id'); |
|
|
$show->field('store_id')->as(function($storeId){ |
|
|
$show->field('store_id')->as(function($storeId){ |
|
|
$item = StoreModel::getStoreInfo($storeId,'name'); |
|
|
$item = StoreModel::getStoreInfo($storeId,'name'); |
|
|
@ -124,7 +126,8 @@ class LanzuEmployeesController extends AdminController |
|
|
$form->hidden('id'); |
|
|
$form->hidden('id'); |
|
|
$form->number('user_id')->required()->min(0); |
|
|
$form->number('user_id')->required()->min(0); |
|
|
// $form->select('user_id')->required()->options($userList);
|
|
|
// $form->select('user_id')->required()->options($userList);
|
|
|
$form->text('name','真实姓名')->width(4)->required(); |
|
|
|
|
|
|
|
|
$form->text('name','真实姓名')->width(2)->required(); |
|
|
|
|
|
$form->mobile('tel')->width(4)->required(); |
|
|
$form->select('market_id')->required()->options($marketList); |
|
|
$form->select('market_id')->required()->options($marketList); |
|
|
$form->multipleSelect('position')->required()->options(config('role.position')); |
|
|
$form->multipleSelect('position')->required()->options(config('role.position')); |
|
|
$form->select('store_id')->options($storeList); |
|
|
$form->select('store_id')->options($storeList); |
|
|
|