diff --git a/database/migrations/2023_02_28_154442_create_cost_advices_table.php b/database/migrations/2023_02_28_154442_create_cost_advices_table.php index ce13f94..b43dc94 100644 --- a/database/migrations/2023_02_28_154442_create_cost_advices_table.php +++ b/database/migrations/2023_02_28_154442_create_cost_advices_table.php @@ -15,6 +15,7 @@ return new class extends Migration { Schema::create('cost_advices', function (Blueprint $table) { $table->id(); + $table->unsignedBigInteger('nape_p_id')->default(0)->comment('费用父项'); $table->unsignedBigInteger('nape_id')->default(0)->comment('费用项'); $table->unsignedBigInteger('nurse_lv')->default(0)->comment('护理等级'); $table->decimal('money', 10, 2)->default(0)->comment('金额'); diff --git a/database/seeders/KeywordsTableSeeder.php b/database/seeders/KeywordsTableSeeder.php index 8d367f1..22d1a3d 100644 --- a/database/seeders/KeywordsTableSeeder.php +++ b/database/seeders/KeywordsTableSeeder.php @@ -19,23 +19,24 @@ class KeywordsTableSeeder extends Seeder Keywords::truncate(); $list = [ ['key' => 'cost_nope', 'name' => '费用项', 'value' => '', 'list' => [ - ['key' => 'base_fee', 'name' => '养老费', 'type_key' => 'cost_nope', 'value' => ''], - ['key' => 'bonds_fee', 'name' => '保证金', 'type_key' => 'cost_nope', 'value' => '', 'list'=>[ - ['key' => 'live_in', 'name' => '入住', 'type_key' => 'bonds_fee', 'value' => ''], - ['key' => 'room_items', 'name' => '房间物品', 'type_key' => 'bonds_fee', 'value' => ''], - ['key' => 'health', 'name' => '医疗', 'type_key' => 'bonds_fee', 'value' => ''], - ]], ['key' => 'live_fee', 'name' => '入住费用项', 'type_key' => 'cost_nope', 'value' => '', 'list'=>[ + ['key' => 'live_base_fee', 'name' => '养老费', 'type_key' => 'live_fee', 'value' => ''], ['key' => 'physical', 'name' => '体检', 'type_key' => 'live_fee', 'value' => ''], ['key' => 'heating', 'name' => '暖气费', 'type_key' => 'live_fee', 'value' => ''], ['key' => 'bedding', 'name' => '床上用品', 'type_key' => 'live_fee', 'value' => ''], ]], ['key' => 'continue_fee', 'name' => '续住费用项', 'type_key' => 'cost_nope', 'value' => '', 'list'=>[ + ['key' => 'continue_base_fee', 'name' => '养老费', 'type_key' => 'continue_fee', 'value' => ''], ['key' => 'water_fee', 'name' => '水电费', 'type_key' => 'continue_fee', 'value' => ''], ['key' => 'nurse_items', 'name' => '护理用品', 'type_key' => 'continue_fee', 'value' => ''], ['key' => 'check_up', 'name' => '血糖检查', 'type_key' => 'continue_fee', 'value' => ''], ['key' => 'use_car', 'name' => '出车', 'type_key' => 'continue_fee', 'value' => ''], ]], + ['key' => 'bonds_fee', 'name' => '保证金', 'type_key' => 'cost_nope', 'value' => '', 'list'=>[ + ['key' => 'live_in', 'name' => '入住', 'type_key' => 'bonds_fee', 'value' => ''], + ['key' => 'room_items', 'name' => '房间物品', 'type_key' => 'bonds_fee', 'value' => ''], + ['key' => 'health', 'name' => '医疗', 'type_key' => 'bonds_fee', 'value' => ''], + ]], ]], ['key' => 'nurse_lv', 'name' => '护理等级', 'value' => '', 'list' => [ ['key' => 'nurse_lv_1', 'name' => '一级护理', 'type_key' => 'nurse_lv', 'value' => ''],