From f2714f55fdc90b49584d0541b7cd82736428a6ef Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Sun, 5 Mar 2023 11:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B9=E7=94=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2023_02_28_154442_create_cost_advices_table.php | 1 + database/seeders/KeywordsTableSeeder.php | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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' => ''],