Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
67644af6
authored
Nov 21, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
必填字符长度
parent
3c116b7d
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
149 additions
and
172 deletions
+149
-172
app/Admin/Controllers/DiagnosiController.php
+3
-2
app/Admin/Controllers/DoctorController.php
+14
-15
app/Admin/Controllers/DosageController.php
+1
-1
app/Admin/Controllers/DrugController.php
+5
-5
app/Admin/Controllers/DrugUnitController.php
+1
-1
app/Admin/Controllers/InquiryController.php
+1
-1
app/Admin/Controllers/PatientController.php
+3
-3
app/Admin/Controllers/PharmacistController.php
+8
-8
app/Admin/Controllers/PharmacyController.php
+10
-10
app/Admin/Controllers/PharmacyDrugController.php
+1
-1
database/migrations/2014_10_12_000000_create_users_table.php
+1
-1
database/migrations/2024_11_04_000511_create_drug_table.php
+11
-13
database/migrations/2024_11_04_134643_create_diagnosis_table.php
+7
-8
database/migrations/2024_11_04_135741_create_patient_table.php
+2
-1
database/migrations/2024_11_04_145220_create_inquiry_table.php
+5
-7
database/migrations/2024_11_04_220223_create_doctor_table.php
+6
-7
database/migrations/2024_11_04_223543_create_pharmacy_table.php
+8
-7
database/migrations/2024_11_04_224709_create_pharmacist_table.php
+6
-7
database/migrations/2024_11_06_182148_create_drug_tag_table.php
+5
-7
database/migrations/2024_11_07_182705_create_doctor_correction_table.php
+5
-7
database/migrations/2024_11_07_184014_create_pharmacy_correction_table.php
+5
-7
database/migrations/2024_11_10_160715_create_dosage_table.php
+2
-0
database/migrations/2024_11_10_233001_create_prescription_table.php
+12
-4
database/migrations/2024_11_11_003002_create_prescription_log_table.php
+5
-7
database/migrations/2024_11_11_055836_create_pharmacy_drug_table.php
+2
-0
database/migrations/2024_11_11_153233_create_drug_tag_related_inquiry_table.php
+2
-0
database/migrations/2024_11_11_172239_create_drug_related_tag_table.php
+2
-0
database/migrations/2024_11_13_211744_create_drug_unit_table.php
+4
-6
database/migrations/2024_11_18_112046_add_is_open_to_pharmacy_table.php
+1
-3
database/migrations/2024_11_18_114538_add_business_to_pharmacy_table.php
+1
-5
database/migrations/2024_11_18_143124_add_default_to_pharmacist_table.php
+1
-3
database/migrations/2024_11_18_143545_add_datetime_to_prescription_table.php
+1
-4
database/migrations/2024_11_18_155308_add_prescription_pic_eseal_to_prescription_table.php
+1
-3
database/migrations/2024_11_18_190511_add_open_source_to_prescription_table.php
+1
-3
database/migrations/2024_11_19_105615_add_is_auto_to_doctor_table.php
+1
-3
database/migrations/2024_11_19_110550_add_is_auto_to_pharmacy_table.php
+1
-3
database/migrations/2024_11_19_155001_add_is_abnormal_to_prescription_table.php
+1
-3
database/migrations/2024_11_20_153412_add_doctor_introduction_to_prescription_table.php
+1
-3
database/migrations/2024_11_20_162040_add_encoding_to_diagnosis_table.php
+1
-3
lang/zh_CN/diagnosi.php
+1
-0
No files found.
app/Admin/Controllers/DiagnosiController.php
View file @
67644af6
...
...
@@ -75,9 +75,10 @@ protected function form()
{
return
Form
::
make
(
new
DiagnosiRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'content'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
text
(
'content'
)
->
width
(
4
)
->
required
()
->
maxLength
(
255
,
'最多输入255个字符'
)
;
$form
->
display
(
'code'
)
->
width
(
4
);
$form
->
display
(
'encoding'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/DoctorController.php
View file @
67644af6
...
...
@@ -3,7 +3,6 @@
namespace
App\Admin\Controllers
;
use
App\Admin\Repositories\DoctorRepository
;
use
App\Models\User
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
...
...
@@ -108,22 +107,22 @@ protected function form()
{
return
Form
::
make
(
new
DoctorRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
text
(
'id_card'
)
->
width
(
4
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
text
(
'license_no'
)
->
width
(
4
);
$form
->
image
(
'license_no_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
32
,
'最多输入32个字符'
)
;
$form
->
text
(
'id_card'
)
->
width
(
4
)
->
required
()
;
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
)
->
required
()
;
$form
->
text
(
'license_no'
)
->
width
(
4
)
->
required
()
->
maxLength
(
30
,
'最多输入30个字符'
)
;
$form
->
image
(
'license_no_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
text
(
'license_no_period'
)
->
width
(
4
);
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'id_card_front_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'id_card_back_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
text
(
'online_hospital_name'
)
->
width
(
4
);
$form
->
text
(
'department'
)
->
width
(
4
);
$form
->
text
(
'doctor_title'
)
->
width
(
4
);
$form
->
textarea
(
'be_good_at'
)
->
width
(
4
);
$form
->
textarea
(
'introduction'
)
->
width
(
4
);
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'id_card_front_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'id_card_back_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
text
(
'online_hospital_name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
text
(
'department'
)
->
width
(
4
)
->
required
()
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
text
(
'doctor_title'
)
->
width
(
4
)
->
required
()
->
maxLength
(
64
,
'最多输入64个字符'
)
;
$form
->
textarea
(
'be_good_at'
)
->
width
(
4
)
->
required
()
;
$form
->
textarea
(
'introduction'
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
select
(
'user_id'
)
->
options
(
User
::
all
()
->
pluck
(
'openid'
,
'id'
)
)
->
width
(
4
);
$form
->
display
(
'user_id'
)
->
width
(
4
);
$form
->
switch
(
'status'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/DosageController.php
View file @
67644af6
...
...
@@ -90,7 +90,7 @@ protected function form()
}
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
hidden
(
'pharmacy_id'
);
$form
->
text
(
'dosage_desc'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'dosage_desc'
)
->
width
(
4
)
->
required
()
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
textarea
(
'dosage_show'
)
->
width
(
4
)
->
required
();
$form
->
display
(
'created_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/DrugController.php
View file @
67644af6
...
...
@@ -121,13 +121,13 @@ protected function form()
{
return
Form
::
make
(
new
DrugRepository
(
'tag'
),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
64
,
'最多输入64个字符'
)
;
$form
->
text
(
'code'
)
->
readonly
()
->
width
(
4
);
$form
->
select
(
'unit'
)
->
options
(
DrugUnitModel
::
all
()
->
pluck
(
'name'
,
'name'
))
->
width
(
4
);
$form
->
text
(
'spec'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'dosage_form'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'factory'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'approval_no'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'spec'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
text
(
'dosage_form'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
text
(
'factory'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
text
(
'approval_no'
)
->
width
(
4
)
->
required
()
->
maxLength
(
64
,
'最多输入64个字符'
)
;
$array
=
range
(
1
,
10
);
$limitOption
=
array_combine
(
$array
,
$array
);
$form
->
select
(
'limit_buy_7'
)
->
placeholder
(
'请选择限购数量'
)
->
width
(
4
)
->
options
(
$limitOption
)
->
help
(
'限购数量'
);
...
...
app/Admin/Controllers/DrugUnitController.php
View file @
67644af6
...
...
@@ -70,7 +70,7 @@ protected function form()
{
return
Form
::
make
(
new
DrugUnitRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
maxLength
(
32
,
'最多输入32个字符'
)
;
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/InquiryController.php
View file @
67644af6
...
...
@@ -74,7 +74,7 @@ protected function form()
{
return
Form
::
make
(
new
InquiryRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'question'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'question'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
switch
(
'is_common'
)
->
default
(
1
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/PatientController.php
View file @
67644af6
...
...
@@ -95,9 +95,9 @@ protected function form()
{
return
Form
::
make
(
new
PatientRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
text
(
'id_card'
)
->
width
(
4
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
32
,
'最多输入32个字符'
)
;
$form
->
text
(
'id_card'
)
->
width
(
4
)
->
required
()
->
maxLength
(
18
,
'最多输入18个字符'
)
;
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
r
equired
()
->
r
ules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
display
(
'user_id'
)
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
disable
()
->
width
(
4
);
...
...
app/Admin/Controllers/PharmacistController.php
View file @
67644af6
...
...
@@ -140,15 +140,15 @@ protected function form()
{
return
Form
::
make
(
new
PharmacistRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
text
(
'id_card'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'license_number'
)
->
width
(
4
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
image
(
'practicing_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
date
(
'practicing_license_expired_time'
)
->
width
(
4
);
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
32
,
'最多输入32个字符'
)
;
$form
->
text
(
'id_card'
)
->
width
(
4
)
->
required
()
->
maxLength
(
18
,
'最多输入18个字符'
)
;
$form
->
text
(
'license_number'
)
->
width
(
4
)
->
required
()
->
maxLength
(
32
,
'最多输入32个字符'
)
;
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
r
equired
()
->
r
ules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
image
(
'practicing_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
date
(
'practicing_license_expired_time'
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
)
->
required
()
;
$form
->
switch
(
'status'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/PharmacyController.php
View file @
67644af6
...
...
@@ -115,16 +115,16 @@ protected function form()
{
return
Form
::
make
(
new
PharmacyRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
();
$form
->
image
(
'business_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'drug_biz_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'food_biz_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'med_device_biz_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'drug_info_service_cert'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
image
(
'pre_packaged_food'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
);
$form
->
text
(
'area'
)
->
width
(
4
);
$form
->
text
(
'address'
)
->
width
(
4
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
required
()
->
help
(
'药店登录账号'
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
()
->
maxLength
(
64
,
'最多输入64个字符'
)
;
$form
->
image
(
'business_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'drug_biz_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'food_biz_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'med_device_biz_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'drug_info_service_cert'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
image
(
'pre_packaged_food'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
width
(
4
)
->
required
()
;
$form
->
text
(
'area'
)
->
width
(
4
)
->
required
()
->
maxLength
(
64
,
'最多输入64个字符'
)
;
$form
->
text
(
'address'
)
->
width
(
4
)
->
required
()
->
maxLength
(
128
,
'最多输入128个字符'
)
;
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
required
()
->
help
(
'药店登录账号'
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
)
;
$form
->
timeRange
(
'business_start'
,
'business_end'
,
'营业时间'
)
->
required
();
$form
->
map
(
'lat'
,
'lng'
,
'经纬度坐标'
);
// $form->select('user_id')->options(User::all()->pluck('openid', 'id'))->width(4)->help('实际后台操作可以不用关联');
...
...
app/Admin/Controllers/PharmacyDrugController.php
View file @
67644af6
...
...
@@ -121,7 +121,7 @@ protected function form()
$form
->
select
(
'unit'
)
->
options
(
DrugUnitModel
::
all
()
->
pluck
(
'name'
,
'name'
))
->
width
(
4
)
->
required
();
$disageList
=
DosageModel
::
pluck
(
'dosage_desc'
,
'id'
);
$form
->
select
(
'dosage_id'
,
'用法用量'
)
->
options
(
$disageList
)
->
width
(
4
)
->
required
();
$form
->
text
(
'batch_no'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'batch_no'
)
->
width
(
4
)
->
required
()
->
maxLength
(
64
,
'最多输入64个字符'
)
;
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
database/migrations/2014_10_12_000000_create_users_table.php
View file @
67644af6
...
...
@@ -21,7 +21,7 @@ public function up(): void
$table
->
string
(
'openid'
,
40
)
->
unique
(
'uk_openid'
)
->
comment
(
'小程序openid'
);
$table
->
string
(
'avatar'
)
->
nullable
()
->
comment
(
'头像'
);
$table
->
string
(
'nick_name'
,
1
00
)
->
nullable
()
->
comment
(
'昵称'
);
$table
->
string
(
'nick_name'
,
1
28
)
->
nullable
()
->
comment
(
'昵称'
);
$table
->
tinyInteger
(
'last_login_type'
)
->
default
(
0
)
->
comment
(
'最后一次登录类型[0=普通用户,1=医师,2=药师]'
);
$table
->
timestamps
();
});
...
...
database/migrations/2024_11_04_000511_create_drug_table.php
View file @
67644af6
...
...
@@ -8,26 +8,26 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'drug'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药品'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
)
->
index
(
'idx_name'
)
->
comment
(
'药品名称'
);
$table
->
string
(
'code'
)
->
index
(
'idx_code'
)
->
comment
(
'简码'
);
$table
->
string
(
'standard_code'
)
->
unique
(
'uk_standardcode'
)
->
comment
(
'本位码'
);
$table
->
string
(
'name'
,
64
)
->
index
(
'idx_name'
)
->
comment
(
'药品名称'
);
$table
->
string
(
'code'
,
64
)
->
index
(
'idx_code'
)
->
comment
(
'简码'
);
$table
->
string
(
'standard_code'
,
64
)
->
unique
(
'uk_standardcode'
)
->
comment
(
'本位码'
);
$table
->
string
(
'unit'
,
20
)
->
nullable
()
->
comment
(
'单位'
);
$table
->
string
(
'spec'
)
->
comment
(
'规格'
);
$table
->
string
(
'dosage_form'
)
->
comment
(
'剂型'
);
$table
->
string
(
'factory'
)
->
index
(
'idx_factory'
)
->
comment
(
'生产厂家'
);
$table
->
string
(
'approval_no'
)
->
comment
(
'批准文号'
);
$table
->
string
(
'spec'
,
128
)
->
comment
(
'规格'
);
$table
->
string
(
'dosage_form'
,
128
)
->
comment
(
'剂型'
);
$table
->
string
(
'factory'
,
128
)
->
index
(
'idx_factory'
)
->
comment
(
'生产厂家'
);
$table
->
string
(
'approval_no'
,
64
)
->
comment
(
'批准文号'
);
$table
->
integer
(
'limit_buy_7'
)
->
default
(
0
)
->
comment
(
'7天内限购数量'
);
$table
->
boolean
(
'is_rx'
)
->
default
(
false
)
->
comment
(
'是否处方药'
);
$table
->
boolean
(
'is_si'
)
->
default
(
false
)
->
comment
(
'是否医保药品'
);
$table
->
integer
(
'product_id'
)
->
default
(
0
)
->
comment
(
'君元ID'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -35,10 +35,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'drug'
);
}
...
...
database/migrations/2024_11_04_134643_create_diagnosis_table.php
View file @
67644af6
...
...
@@ -8,17 +8,18 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'diagnosis'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'诊断'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
)
->
comment
(
'诊断'
);
$table
->
string
(
'name'
,
128
)
->
comment
(
'诊断'
);
$table
->
string
(
'content'
)
->
comment
(
'显示内容'
);
$table
->
string
(
'code'
)
->
comment
(
'诊断编码'
);
$table
->
string
(
'code'
,
128
)
->
comment
(
'诊断简码'
);
$table
->
string
(
'encoding'
,
128
)
->
comment
(
'外部编码'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -26,10 +27,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'diagnosis'
);
}
...
...
database/migrations/2024_11_04_135741_create_patient_table.php
View file @
67644af6
...
...
@@ -13,8 +13,9 @@ public function up(): void
{
Schema
::
create
(
'patient'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'问诊人'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
50
)
->
comment
(
'姓名'
);
$table
->
string
(
'name'
,
32
)
->
comment
(
'姓名'
);
$table
->
tinyInteger
(
'gender'
)
->
default
(
0
)
->
comment
(
'性别。[1=男性,2=女性,0=未知]'
);
$table
->
string
(
'id_card'
,
18
)
->
index
(
'idx_idcard'
)
->
comment
(
'身份证号'
);
$table
->
string
(
'mobile'
,
11
)
->
index
(
'idx_mobile'
)
->
comment
(
'手机号'
);
...
...
database/migrations/2024_11_04_145220_create_inquiry_table.php
View file @
67644af6
...
...
@@ -8,16 +8,16 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'inquiry'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'问诊问题'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'question'
)
->
index
(
'idx_question'
)
->
comment
(
'问诊问题'
);
$table
->
string
(
'question'
,
128
)
->
index
(
'idx_question'
)
->
comment
(
'问诊问题'
);
$table
->
boolean
(
'is_common'
)
->
default
(
1
)
->
comment
(
'通用[0=不是通用,1=通用]'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -25,10 +25,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'inquiry'
);
}
...
...
database/migrations/2024_11_04_220223_create_doctor_table.php
View file @
67644af6
...
...
@@ -8,15 +8,14 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'doctor'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'医师'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
50
)
->
index
(
'idx_name'
)
->
comment
(
'姓名'
);
$table
->
string
(
'name'
,
32
)
->
index
(
'idx_name'
)
->
comment
(
'姓名'
);
$table
->
string
(
'mobile'
,
11
)
->
index
(
'idx_mobile'
)
->
comment
(
'手机号'
);
$table
->
string
(
'id_card'
,
18
)
->
comment
(
'身份证号码'
);
$table
->
string
(
'license_no'
,
30
)
->
comment
(
'执照编号'
);
...
...
@@ -33,6 +32,8 @@ public function up()
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'是否启用[0=未启用,1=启用]'
);
$table
->
longText
(
'signed_pic'
)
->
nullable
()
->
comment
(
'签名照'
);
$table
->
bigInteger
(
'user_id'
)
->
nullable
()
->
unique
(
'uk_userid'
)
->
comment
(
'用户表ID'
);
$table
->
boolean
(
'is_auto'
)
->
default
(
1
)
->
comment
(
'是否自动开方[0=否,1=是]'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -40,10 +41,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'doctor'
);
}
...
...
database/migrations/2024_11_04_223543_create_pharmacy_table.php
View file @
67644af6
...
...
@@ -8,13 +8,12 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药店'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
64
)
->
comment
(
'药店名称'
);
$table
->
string
(
'business_license'
)
->
comment
(
'营业执照'
);
...
...
@@ -26,11 +25,15 @@ public function up()
$table
->
string
(
'area'
,
64
)
->
comment
(
'地区'
);
$table
->
string
(
'address'
,
128
)
->
comment
(
'详细地址'
);
$table
->
string
(
'mobile'
,
11
)
->
unique
(
'uk_mobile'
)
->
comment
(
'药店管理员手机号'
);
$table
->
string
(
'business_hours'
,
32
)
->
comment
(
'营业时间'
);
$table
->
time
(
'business_start'
)
->
comment
(
'营业开始时间'
);
$table
->
time
(
'business_end'
)
->
comment
(
'营业结束时间'
);
$table
->
string
(
'lng'
,
20
)
->
nullable
()
->
comment
(
'经度'
);
$table
->
string
(
'lat'
,
20
)
->
nullable
()
->
comment
(
'纬度'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'启用[0=未启用,1=启用]'
);
$table
->
bigInteger
(
'user_id'
)
->
nullable
()
->
unique
(
'uk_userid'
)
->
comment
(
'用户表ID'
);
$table
->
boolean
(
'is_auto'
)
->
default
(
1
)
->
comment
(
'是否自动审方[0=否,1=是]'
);
$table
->
boolean
(
'is_open'
)
->
default
(
0
)
->
comment
(
'是否开店[0=闭店,1=开店]'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -38,10 +41,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'pharmacy'
);
}
...
...
database/migrations/2024_11_04_224709_create_pharmacist_table.php
View file @
67644af6
...
...
@@ -8,15 +8,14 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'pharmacist'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药师'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
50
)
->
comment
(
'姓名'
);
$table
->
string
(
'name'
,
32
)
->
comment
(
'姓名'
);
$table
->
string
(
'id_card'
,
18
)
->
comment
(
'身份证号'
);
$table
->
string
(
'license_number'
,
32
)
->
comment
(
'执照编号'
);
$table
->
string
(
'mobile'
,
11
)
->
comment
(
'手机号码'
);
...
...
@@ -26,6 +25,8 @@ public function up()
$table
->
longText
(
'signed_pic'
)
->
nullable
()
->
comment
(
'签名照'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'启用[0=未启用,1=启用]'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
index
(
'idx_pharmacyid'
)
->
comment
(
'药店ID'
);
$table
->
boolean
(
'is_default'
)
->
default
(
0
)
->
comment
(
'默认药师[0=否,1=是]'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -33,10 +34,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'pharmacist'
);
}
...
...
database/migrations/2024_11_06_182148_create_drug_tag_table.php
View file @
67644af6
...
...
@@ -8,15 +8,15 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'drug_tag'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药品标签'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'tag_name'
)
->
comment
(
'标签名称'
);
$table
->
string
(
'tag_name'
,
64
)
->
comment
(
'标签名称'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -24,10 +24,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'drug_tag'
);
}
...
...
database/migrations/2024_11_07_182705_create_doctor_correction_table.php
View file @
67644af6
...
...
@@ -8,18 +8,18 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'doctor_correction'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'医师'
);
$table
->
bigIncrements
(
'id'
);
$table
->
integer
(
'doctor_id'
)
->
comment
(
'医师表ID'
);
$table
->
string
(
'doctor_name'
)
->
comment
(
'医师姓名'
);
$table
->
string
(
'doctor_name'
,
32
)
->
comment
(
'医师姓名'
);
$table
->
tinyInteger
(
'is_handle'
)
->
comment
(
'是否处理[0=待处理,1=已处理]'
);
$table
->
text
(
'content'
)
->
comment
(
'纠错内容'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -27,10 +27,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'doctor_correction'
);
}
...
...
database/migrations/2024_11_07_184014_create_pharmacy_correction_table.php
View file @
67644af6
...
...
@@ -8,18 +8,18 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'pharmacy_correction'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药店纠错'
);
$table
->
bigIncrements
(
'id'
);
$table
->
integer
(
'pharmacy_id'
)
->
comment
(
'药店编号'
);
$table
->
string
(
'pharmacy_name'
)
->
default
(
''
)
->
comment
(
'药店名称'
);
$table
->
string
(
'pharmacy_name'
,
64
)
->
default
(
''
)
->
comment
(
'药店名称'
);
$table
->
tinyInteger
(
'is_handle'
)
->
comment
(
'是否处理'
);
$table
->
string
(
'content'
)
->
default
(
''
)
->
comment
(
'纠错内容'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -27,10 +27,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'pharmacy_correction'
);
}
...
...
database/migrations/2024_11_10_160715_create_dosage_table.php
View file @
67644af6
...
...
@@ -13,10 +13,12 @@ public function up(): void
{
Schema
::
create
(
'dosage'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'用法用量'
);
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
comment
(
'药店表ID'
);
$table
->
string
(
'dosage_desc'
,
128
)
->
comment
(
'用法用量'
);
$table
->
string
(
'dosage_show'
)
->
comment
(
'显示内容'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
database/migrations/2024_11_10_233001_create_prescription_table.php
View file @
67644af6
...
...
@@ -13,30 +13,33 @@ public function up(): void
{
Schema
::
create
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'处方单'
);
$table
->
bigIncrements
(
'id'
)
->
startingValue
(
10000001
)
->
comment
(
'处方单编号'
);
// $table->string('prescription_
umber', 64)->nullable(
)->comment('处方单编号');
// $table->string('prescription_
nmber', 64
)->comment('处方单编号');
$table
->
tinyInteger
(
'status'
)
->
comment
(
'审方状态[0=待开方,1=待审方,2=审方成功]'
);
$table
->
bigInteger
(
'user_id'
)
->
default
(
0
)
->
comment
(
'用户表ID。药店添加则为0'
);
$table
->
bigInteger
(
'patient_id'
)
->
default
(
0
)
->
comment
(
'问诊人表ID'
);
$table
->
string
(
'patient_name'
,
50
)
->
comment
(
'问诊人姓名'
);
$table
->
string
(
'patient_name'
,
32
)
->
comment
(
'问诊人姓名'
);
$table
->
integer
(
'patient_age'
)
->
default
(
0
)
->
comment
(
'问诊人年龄'
);
$table
->
tinyInteger
(
'patient_gender'
)
->
default
(
0
)
->
comment
(
'问诊人性别。[1=男性,2=女性,0=未知]'
);
$table
->
bigInteger
(
'diagnosis_id'
)
->
default
(
0
)
->
comment
(
'诊断表ID'
);
$table
->
string
(
'diagnosis_name'
)
->
nullable
()
->
comment
(
'诊断'
);
$table
->
string
(
'diagnosis_name'
,
128
)
->
nullable
()
->
comment
(
'诊断'
);
$table
->
text
(
'inquiry_info'
)
->
comment
(
'问诊问题'
);
$table
->
boolean
(
'is_abnormal'
)
->
default
(
0
)
->
comment
(
'是否异常处方[0=否,1=是]'
);
$table
->
text
(
'drug_info'
)
->
nullable
()
->
comment
(
'用药信息'
);
$table
->
bigInteger
(
'doctor_id'
)
->
default
(
0
)
->
comment
(
'医师表ID'
);
$table
->
string
(
'doctor_name'
,
50
)
->
nullable
()
->
comment
(
'医师姓名'
);
$table
->
string
(
'doctor_name'
,
32
)
->
nullable
()
->
comment
(
'医师姓名'
);
$table
->
string
(
'doctor_online_hospital_name'
,
128
)
->
nullable
()
->
comment
(
'医师互联网医院名称'
);
$table
->
string
(
'doctor_department'
,
128
)
->
nullable
()
->
comment
(
'医师科室'
);
$table
->
string
(
'doctor_title'
,
64
)
->
nullable
()
->
comment
(
'医师职称'
);
$table
->
string
(
'doctor_license_no'
,
30
)
->
nullable
()
->
comment
(
'医师执照编号'
);
$table
->
longText
(
'doctor_signed_pic'
)
->
nullable
()
->
comment
(
'医师签名照'
);
$table
->
text
(
'doctor_introduction'
)
->
nullable
()
->
comment
(
'医师简介'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
default
(
0
)
->
comment
(
'药店表ID'
);
$table
->
string
(
'pharmacy_name'
,
64
)
->
nullable
()
->
comment
(
'药店名称'
);
...
...
@@ -47,7 +50,12 @@ public function up(): void
$table
->
longText
(
'pharmacist_signed_pic'
)
->
nullable
()
->
comment
(
'药师签名照'
);
$table
->
string
(
'prescription_pic'
)
->
nullable
()
->
comment
(
'处方单图片地址'
);
$table
->
string
(
'prescription_pic_eseal'
)
->
nullable
()
->
comment
(
'处方单带电子印章图片地址'
);
$table
->
timestamp
(
'prescription_at'
)
->
nullable
()
->
comment
(
'开方时间'
);
$table
->
timestamp
(
'review_at'
)
->
nullable
()
->
comment
(
'审方时间'
);
$table
->
boolean
(
'open_source'
)
->
default
(
0
)
->
comment
(
'开方来源[0=客开,1=店开]'
);
$table
->
boolean
(
'is_voided'
)
->
default
(
0
)
->
comment
(
'作废状态[0=未作废,1=作废]'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
database/migrations/2024_11_11_003002_create_prescription_log_table.php
View file @
67644af6
...
...
@@ -8,17 +8,17 @@
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'prescription_log'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'处方日志'
);
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
comment
(
'药店ID'
);
$table
->
string
(
'pharmacy_name'
)
->
comment
(
'药店名称'
);
$table
->
string
(
'pharmacy_name'
,
64
)
->
comment
(
'药店名称'
);
$table
->
text
(
'log_info'
)
->
comment
(
'日志描述'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -26,10 +26,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'prescription_log'
);
}
...
...
database/migrations/2024_11_11_055836_create_pharmacy_drug_table.php
View file @
67644af6
...
...
@@ -13,6 +13,7 @@ public function up(): void
{
Schema
::
create
(
'pharmacy_drug'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药店药品'
);
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
comment
(
'药店ID'
);
$table
->
bigInteger
(
'drug_id'
)
->
comment
(
'药品池ID'
);
...
...
@@ -20,6 +21,7 @@ public function up(): void
$table
->
bigInteger
(
'dosage_id'
)
->
nullable
()
->
comment
(
'用法用量表ID'
);
$table
->
string
(
'batch_no'
,
64
)
->
nullable
()
->
comment
(
'批次号'
);
$table
->
unique
([
'pharmacy_id'
,
'drug_id'
],
'uk_pharmacyid_drugid'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
database/migrations/2024_11_11_153233_create_drug_tag_related_inquiry_table.php
View file @
67644af6
...
...
@@ -13,9 +13,11 @@ public function up(): void
{
Schema
::
create
(
'drug_tag_related_inquiry'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药品标签和问诊问题关联表'
);
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'tag_id'
)
->
comment
(
'药品标签ID'
);
$table
->
bigInteger
(
'inquiry_id'
)
->
comment
(
'问诊问题ID'
);
$table
->
timestamps
();
});
}
...
...
database/migrations/2024_11_11_172239_create_drug_related_tag_table.php
View file @
67644af6
...
...
@@ -13,9 +13,11 @@ public function up(): void
{
Schema
::
create
(
'drug_related_tag'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药品和标签关联表'
);
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'drug_id'
)
->
comment
(
'药品ID'
);
$table
->
bigInteger
(
'tag_id'
)
->
comment
(
'标签ID'
);
$table
->
timestamps
();
});
}
...
...
database/migrations/2024_11_13_211744_create_drug_unit_table.php
View file @
67644af6
...
...
@@ -8,15 +8,15 @@ class CreateDrugUnitTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
public
function
up
()
:
void
{
Schema
::
create
(
'drug_unit'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药品单位'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
32
)
->
comment
(
'单位'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
...
...
@@ -24,10 +24,8 @@ public function up()
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
public
function
down
()
:
void
{
Schema
::
dropIfExists
(
'drug_unit'
);
}
...
...
database/migrations/2024_11_18_112046_add_is_open_to_pharmacy_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_open'
)
->
default
(
0
)
->
comment
(
'是否开店[0=闭店,1=开店]'
);
});
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_18_114538_add_business_to_pharmacy_table.php
View file @
67644af6
...
...
@@ -11,11 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
$table
->
time
(
'business_start'
)
->
comment
(
'营业开始时间'
);
$table
->
time
(
'business_end'
)
->
comment
(
'营业结束时间'
);
$table
->
dropColumn
(
'business_hours'
);
});
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_18_143124_add_default_to_pharmacist_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'pharmacist'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_default'
)
->
default
(
0
)
->
comment
(
'默认药师[0=否,1=是]'
);
});
Schema
::
table
(
'pharmacist'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_18_143545_add_datetime_to_prescription_table.php
View file @
67644af6
...
...
@@ -11,10 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
timestamp
(
'prescription_at'
)
->
nullable
()
->
comment
(
'开方时间'
);
$table
->
timestamp
(
'review_at'
)
->
nullable
()
->
comment
(
'审方时间'
);
});
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_18_155308_add_prescription_pic_eseal_to_prescription_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'prescription_pic_eseal'
)
->
nullable
()
->
comment
(
'处方单带电子印章图片地址'
);
});
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_18_190511_add_open_source_to_prescription_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'open_source'
)
->
default
(
0
)
->
comment
(
'开方来源[0=客开,1=店开]'
);
});
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_19_105615_add_is_auto_to_doctor_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'doctor'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_auto'
)
->
default
(
1
)
->
comment
(
'是否自动开方[0=否,1=是]'
);
});
Schema
::
table
(
'doctor'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_19_110550_add_is_auto_to_pharmacy_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_auto'
)
->
default
(
1
)
->
comment
(
'是否自动审方[0=否,1=是]'
);
});
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_19_155001_add_is_abnormal_to_prescription_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_abnormal'
)
->
default
(
0
)
->
comment
(
'是否异常处方[0=否,1=是]'
);
});
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_20_153412_add_doctor_introduction_to_prescription_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
text
(
'doctor_introduction'
)
->
nullable
()
->
comment
(
'医师简介'
);
});
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
database/migrations/2024_11_20_162040_add_encoding_to_diagnosis_table.php
View file @
67644af6
...
...
@@ -11,9 +11,7 @@
*/
public
function
up
()
:
void
{
Schema
::
table
(
'diagnosis'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'encoding'
)
->
comment
(
'外部编码'
);
});
Schema
::
table
(
'diagnosis'
,
function
(
Blueprint
$table
)
{});
}
/**
...
...
lang/zh_CN/diagnosi.php
View file @
67644af6
...
...
@@ -8,6 +8,7 @@
'name'
=>
'诊断'
,
'content'
=>
'显示内容'
,
'code'
=>
'诊断简码'
,
'encoding'
=>
'外部编码'
,
],
'options'
=>
[
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment