调整户籍变动明细

main
vine_liutk 2024-02-22 20:57:50 +08:00
parent eb3a01f6d9
commit caa22815f8
3 changed files with 9 additions and 3 deletions

View File

@ -2,6 +2,7 @@
namespace App\Admin\Controllers;
use App\Models\PersonChange;
use Slowlyo\OwlAdmin\Admin;
use Slowlyo\OwlAdmin\Renderers\Page;
use Slowlyo\OwlAdmin\Renderers\Form;
@ -29,10 +30,12 @@ class PersonChangeController extends AdminController
]))
->columns([
amis()->TableColumn('person.organized_body.name', __('admin.persons.organized_body'))->width('100px'),
amis()->TableColumn('changed_at', __('admin.person_changes.changed_at'))->width('100px'),
amis()->TableColumn('type', __('admin.person_changes.type'))->type('mapping')->map(PersonChange::typeMap()),
amis()->TableColumn('person.name', __('admin.persons.name'))->width('100px')->copyable(),
amis()->TableColumn('extends_mark', __('admin.person_changes.extends_mark')),
amis()->TableColumn('phone', __('admin.person_changes.phone')),
amis()->TableColumn('created_at', __('admin.created_at'))->type('datetime')->sortable(true),
amis()->TableColumn('created_at', __('admin.person_changes.created_at'))->type('datetime')->sortable(true),
]);
return $this->baseList($crud);

View File

@ -15,7 +15,7 @@ return new class extends Migration
$table->id();
$table->unsignedBigInteger('person_id');
$table->unsignedTinyInteger('type')->comment('变动类型(1-迁入,2-出生,3-迁出(迁出本村),4-死亡,5-合户,6-分户,7-迁移(内部变动),8-更换户主)');
$table->timestamp('changed_at')->nullable()->comment('发生时间');
$table->date('changed_at')->nullable()->comment('发生时间');
$table->string('reason')->nullable()->comment('原因');
$table->unsignedBigInteger('old_master')->nullable()->comment('老户主');
$table->unsignedBigInteger('new_master')->nullable()->comment('新户主');

View File

@ -380,7 +380,10 @@ return [
'split_master' => '分户',
],
'person_changes'=>[
'changed_at' => '变动日期',
'extends_mark'=>'变动明细',
'phone'=>'联系方式'
'type' => '类别',
'phone'=>'联系方式',
'created_at' => '操作时间'
]
];