添加单据编号显示
parent
6ff4fc63c2
commit
e8379b17fd
|
|
@ -28,12 +28,13 @@ class ConstFlowController extends AdminController
|
|||
$this->baseFilter()->body([
|
||||
amisMake()->TextControl('name', '名称')->size('md'),
|
||||
amisMake()->TextControl('card_no', '身份证')->size('md'),
|
||||
amisMake()->TextControl('sn', '单据编号')->size('md'),
|
||||
amis('button')->label(__('admin.reset'))->actionType('clear-and-submit'),
|
||||
amis('submit')->label(__('admin.search'))->level('primary'),
|
||||
])->actions([])
|
||||
)
|
||||
->columns([
|
||||
amisMake()->TableColumn('id', 'ID')->sortable(),
|
||||
amisMake()->TableColumn('sn', '单据编号')->copyable(true),
|
||||
amisMake()->TableColumn('oldman.name', '客人'),
|
||||
amisMake()->TableColumn('const_type', '缴费类型')->type('mapping')->map(ConstFlow::typeMapLabel())->className('text-primary'),
|
||||
amisMake()->TableColumn('money', '金额'),
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ class ConstFlowFilter extends ModelFilter
|
|||
return $this->where('oldman_id', $oldmanId);
|
||||
}
|
||||
|
||||
public function sn($sn){
|
||||
return $this->where('sn', $sn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue