调整费用配置结构

develop
vine_liutk 2023-03-05 11:14:48 +08:00
parent 2f6135015b
commit f2714f55fd
2 changed files with 8 additions and 6 deletions

View File

@ -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('金额');

View File

@ -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' => ''],