Commit 0ca154cc by lujunyi

本位码

parent bcf502ee
...@@ -33,6 +33,7 @@ protected function grid() ...@@ -33,6 +33,7 @@ protected function grid()
$grid->column('approval_no'); $grid->column('approval_no');
$grid->column('limit_buy_7'); $grid->column('limit_buy_7');
$grid->column('tag'); $grid->column('tag');
$grid->column('standard_code');
// $grid->column('created_at'); // $grid->column('created_at');
// $grid->column('updated_at')->sortable(); // $grid->column('updated_at')->sortable();
...@@ -79,6 +80,7 @@ protected function detail($id) ...@@ -79,6 +80,7 @@ protected function detail($id)
$show->field('limit_buy_7')->width(4); $show->field('limit_buy_7')->width(4);
$show->field('is_rx')->using(DrugModel::RX_MAP)->width(4); $show->field('is_rx')->using(DrugModel::RX_MAP)->width(4);
$show->field('tag')->width(4); $show->field('tag')->width(4);
$show->field('standard_code')->width(4);
$show->field('created_at')->width(4); $show->field('created_at')->width(4);
$show->field('updated_at')->width(4); $show->field('updated_at')->width(4);
...@@ -109,6 +111,7 @@ protected function form() ...@@ -109,6 +111,7 @@ protected function form()
$form->select('limit_buy_7')->placeholder('请选择限购数量')->width(4)->options($limitOption)->help('限购数量'); $form->select('limit_buy_7')->placeholder('请选择限购数量')->width(4)->options($limitOption)->help('限购数量');
$form->switch('is_rx')->width(4); $form->switch('is_rx')->width(4);
$form->text('tag')->width(4); $form->text('tag')->width(4);
$form->text('standard_code')->width(4);
$form->display('created_at')->width(4); $form->display('created_at')->width(4);
$form->display('updated_at')->width(4); $form->display('updated_at')->width(4);
......
...@@ -36,6 +36,7 @@ protected function grid() ...@@ -36,6 +36,7 @@ protected function grid()
$grid->column('drug.factory', '生产厂家'); $grid->column('drug.factory', '生产厂家');
$grid->column('drug.approval_no', '批准文号'); $grid->column('drug.approval_no', '批准文号');
$grid->column('drug.limit_buy_7', '7天限购'); $grid->column('drug.limit_buy_7', '7天限购');
$grid->column('drug.standard_code', '本位码');
$grid->column('dosage.dosage_desc', '用法用量'); $grid->column('dosage.dosage_desc', '用法用量');
$grid->column('batch_no'); $grid->column('batch_no');
$grid->column('created_at'); $grid->column('created_at');
......
...@@ -26,6 +26,7 @@ public function up() ...@@ -26,6 +26,7 @@ public function up()
$table->integer('limit_buy_7')->default(0)->comment('7天内限购数量'); $table->integer('limit_buy_7')->default(0)->comment('7天内限购数量');
$table->boolean('is_rx')->default(false)->comment('是否处方药'); $table->boolean('is_rx')->default(false)->comment('是否处方药');
$table->text('tag')->nullable()->comment('标签'); $table->text('tag')->nullable()->comment('标签');
$table->string('standard_code', 32)->comment('本位码');
$table->timestamps(); $table->timestamps();
$table->softDeletes(); $table->softDeletes();
}); });
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('drug', function (Blueprint $table) {
//
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('drug', function (Blueprint $table) {
//
});
}
};
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
'limit_buy_7' => '7天限购', 'limit_buy_7' => '7天限购',
'is_rx' => '是否处方药', 'is_rx' => '是否处方药',
'tag' => '标签', 'tag' => '标签',
'standard_code' => '本位码',
], ],
'options' => [ 'options' => [
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment