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
61efaa0d
authored
Nov 13, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
65a19837
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
282 additions
and
49 deletions
+282
-49
app/Admin/Controllers/DosageController.php
+5
-2
app/Admin/Controllers/DrugController.php
+2
-1
app/Admin/Controllers/DrugUnitController.php
+81
-0
app/Admin/Controllers/PharmacyController.php
+45
-3
app/Admin/Controllers/PharmacyDrugController.php
+5
-2
app/Admin/Controllers/PrescriptionLogController.php
+3
-3
app/Admin/Repositories/DrugUnitRepository.php
+16
-0
app/Admin/routes.php
+2
-0
app/Models/DosageModel.php
+6
-0
app/Models/DrugUnitModel.php
+15
-0
app/Models/PrescriptionLogModel.php
+7
-0
database/migrations/2016_01_04_173148_create_admin_tables.php
+2
-0
database/migrations/2024_11_04_000511_create_drug_table.php
+1
-1
database/migrations/2024_11_11_055836_create_pharmacy_drug_table.php
+2
-0
database/migrations/2024_11_13_211744_create_drug_unit_table.php
+15
-9
dcat_admin_ide_helper.php
+60
-28
lang/zh_CN/dosage.php
+1
-0
lang/zh_CN/drug-unit.php
+12
-0
lang/zh_CN/pharmacy-drug.php
+2
-0
No files found.
app/Admin/Controllers/DosageController.php
View file @
61efaa0d
...
...
@@ -3,6 +3,7 @@
namespace
App\Admin\Controllers
;
use
App\Admin\Repositories\DosageRepository
;
use
App\Models\PharmacyModel
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
...
...
@@ -18,10 +19,11 @@ class DosageController extends AdminController
*/
protected
function
grid
()
{
return
Grid
::
make
(
new
DosageRepository
(),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
new
DosageRepository
(
'pharmacy'
),
function
(
Grid
$grid
)
{
$grid
->
model
()
->
orderBy
(
'id'
,
'DESC'
);
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'pharmacy.name'
,
'药店'
);
$grid
->
column
(
'dosage_desc'
);
$grid
->
column
(
'dosage_show'
);
...
...
@@ -70,8 +72,9 @@ protected function form()
{
return
Form
::
make
(
new
DosageRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
)
->
required
();
$form
->
text
(
'dosage_desc'
)
->
width
(
4
)
->
required
();
$form
->
textarea
(
'dosage_show'
)
->
width
(
4
);
$form
->
textarea
(
'dosage_show'
)
->
width
(
4
)
->
required
()
;
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/DrugController.php
View file @
61efaa0d
...
...
@@ -5,6 +5,7 @@
use
App\Admin\Repositories\DrugRepository
;
use
App\Models\DrugModel
;
use
App\Models\DrugTagModel
;
use
App\Models\DrugUnitModel
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
...
...
@@ -107,7 +108,7 @@ protected function form()
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'code'
)
->
readonly
()
->
width
(
4
);
$form
->
text
(
'unit'
)
->
width
(
4
)
->
required
(
);
$form
->
select
(
'unit'
)
->
options
(
DrugUnitModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
);
$form
->
text
(
'spec'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'dosage_form'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'factory'
)
->
width
(
4
)
->
required
();
...
...
app/Admin/Controllers/DrugUnitController.php
0 → 100755
View file @
61efaa0d
<?php
namespace
App\Admin\Controllers
;
use
App\Admin\Repositories\DrugUnitRepository
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
class
DrugUnitController
extends
AdminController
{
/**
* Make a grid builder.
*
* @return Grid
*/
protected
function
grid
()
{
return
Grid
::
make
(
new
DrugUnitRepository
(),
function
(
Grid
$grid
)
{
$grid
->
model
()
->
orderBy
(
'id'
,
'DESC'
);
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'name'
);
$grid
->
filter
(
function
(
Grid\Filter
$filter
)
{
$filter
->
panel
();
// 更改为 panel 布局
$filter
->
expand
();
// 默认展开搜索框
$filter
->
like
(
'name'
)
->
width
(
3
);
});
// 行按钮控制
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
// 工具栏按钮控制
$grid
->
disableBatchDelete
();
// 禁用批量删除
});
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected
function
detail
(
$id
)
{
return
Show
::
make
(
$id
,
new
DrugUnitRepository
(),
function
(
Show
$show
)
{
$show
->
field
(
'id'
);
$show
->
field
(
'name'
);
$show
->
field
(
'created_at'
);
$show
->
field
(
'updated_at'
);
$show
->
panel
()
->
tools
(
function
(
$tools
)
{
$tools
->
disableEdit
();
// 禁止编辑
$tools
->
disableDelete
();
// 禁止删除按钮
});
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected
function
form
()
{
return
Form
::
make
(
new
DrugUnitRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
// 右上角按钮控制
$form
->
disableDeleteButton
();
// 去掉删除按钮
});
}
}
app/Admin/Controllers/PharmacyController.php
View file @
61efaa0d
...
...
@@ -7,7 +7,11 @@
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Models\Administrator
;
use
Dcat\Admin\Models\Role
;
use
Dcat\Admin\Show
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Str
;
// 药店
class
PharmacyController
extends
AdminController
...
...
@@ -102,7 +106,7 @@ protected function form()
{
return
Form
::
make
(
new
PharmacyRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
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
);
...
...
@@ -111,15 +115,53 @@ protected function form()
$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
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
required
()
->
help
(
'药店登录账号'
)
;
$form
->
text
(
'business_hours'
)
->
width
(
4
);
$form
->
map
(
'lat'
,
'lng'
,
'经纬度坐标'
);
$form
->
select
(
'user_id'
)
->
options
(
User
::
all
()
->
pluck
(
'openid'
,
'id'
))
->
width
(
4
);
$form
->
select
(
'user_id'
)
->
options
(
User
::
all
()
->
pluck
(
'openid'
,
'id'
))
->
width
(
4
)
->
help
(
'实际后台操作可以不用关联'
)
;
$form
->
switch
(
'status'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
$form
->
saved
(
function
(
Form
$form
,
$result
)
{
DB
::
beginTransaction
();
try
{
// 获取店铺管理员角色
$role
=
Role
::
where
(
'slug'
,
'pharmacy'
)
->
first
();
// 从表单模型获取手机号和其他信息
$mobile
=
$form
->
model
()
->
mobile
;
$name
=
$form
->
model
()
->
name
;
$pharmacyId
=
$form
->
model
()
->
id
;
// 查找当前是否已有管理员
$admin
=
Administrator
::
where
(
'pharmacy_id'
,
$pharmacyId
)
->
first
();
if
(
$admin
)
{
// 如果存在,更新相应字段
$admin
->
username
=
$mobile
;
// 更新账号名
$admin
->
name
=
$name
;
// 更新账号名
$admin
->
save
();
}
else
{
// 如果不存在,新增管理员
$admin
=
new
Administrator
();
$admin
->
username
=
$mobile
;
// 药店手机号作为管理员账号
$admin
->
name
=
$name
;
// 药店名称当做用户的姓名
$admin
->
password
=
bcrypt
(
Str
::
random
(
10
));
// 设置管理员密码
$admin
->
pharmacy_id
=
$pharmacyId
;
// 药店ID
$admin
->
save
();
// 保存新管理员
// 关联药店管理员角色
$admin
->
roles
()
->
attach
(
$role
->
id
);
}
DB
::
commit
();
}
catch
(
\Exception
$e
)
{
DB
::
rollBack
();
throw
new
\Exception
(
'创建或者更新店铺管理员错误~'
);
}
});
// 右上角按钮控制
$form
->
disableDeleteButton
();
// 去掉删除按钮
});
...
...
app/Admin/Controllers/PharmacyDrugController.php
View file @
61efaa0d
...
...
@@ -6,6 +6,7 @@
use
App\Admin\Repositories\PharmacyDrugRepository
;
use
App\Models\DosageModel
;
use
App\Models\DrugModel
;
use
App\Models\DrugUnitModel
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
...
...
@@ -58,6 +59,7 @@ protected function grid()
// 行按钮控制
$grid
->
disableCreateButton
();
// 禁用创建按钮
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
// 工具栏按钮控制
$grid
->
disableBatchDelete
();
// 禁用批量删除
...
...
@@ -98,9 +100,10 @@ protected function form()
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'pharmacy.name'
,
'药店'
)
->
disable
()
->
width
(
4
);
$form
->
text
(
'drug.name'
,
'药品名称'
)
->
disable
()
->
width
(
4
);
$form
->
select
(
'unit'
)
->
options
(
DrugUnitModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
)
->
required
();
$disageList
=
DosageModel
::
pluck
(
'dosage_desc'
,
'id'
);
$form
->
select
(
'dosage_id'
,
'用法用量'
)
->
options
(
$disageList
)
->
width
(
4
);
$form
->
text
(
'batch_no'
)
->
width
(
4
);
$form
->
select
(
'dosage_id'
,
'用法用量'
)
->
options
(
$disageList
)
->
width
(
4
)
->
required
()
;
$form
->
text
(
'batch_no'
)
->
width
(
4
)
->
required
()
;
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/PrescriptionLogController.php
View file @
61efaa0d
...
...
@@ -3,6 +3,7 @@
namespace
App\Admin\Controllers
;
use
App\Admin\Repositories\PrescriptionLogRepository
;
use
App\Models\PharmacyModel
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
...
...
@@ -77,9 +78,8 @@ protected function form()
{
return
Form
::
make
(
new
PrescriptionLogRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'pharmacy_id'
)
->
width
(
4
);
$form
->
text
(
'pharmacy_name'
)
->
width
(
4
);
$form
->
text
(
'log_info'
)
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
)
->
required
();
$form
->
textarea
(
'log_info'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Repositories/DrugUnitRepository.php
0 → 100755
View file @
61efaa0d
<?php
namespace
App\Admin\Repositories
;
use
App\Models\DrugUnitModel
as
Model
;
use
Dcat\Admin\Repositories\EloquentRepository
;
class
DrugUnitRepository
extends
EloquentRepository
{
/**
* Model.
*
* @var string
*/
protected
$eloquentClass
=
Model
::
class
;
}
app/Admin/routes.php
View file @
61efaa0d
...
...
@@ -21,6 +21,8 @@
$router
->
resource
(
'drug'
,
'DrugController'
);
// 药品-标签
$router
->
resource
(
'drug-tag'
,
'DrugTagController'
);
// 药品-单位
$router
->
resource
(
'drug-unit'
,
'DrugUnitController'
);
// 问诊-问诊人
$router
->
resource
(
'patient'
,
'PatientController'
);
...
...
app/Models/DosageModel.php
View file @
61efaa0d
...
...
@@ -12,4 +12,10 @@ class DosageModel extends Model
use
SoftDeletes
;
protected
$table
=
'dosage'
;
// 关联药店
public
function
pharmacy
()
{
return
$this
->
belongsTo
(
PharmacyModel
::
class
,
'pharmacy_id'
,
'id'
);
}
}
app/Models/DrugUnitModel.php
0 → 100755
View file @
61efaa0d
<?php
namespace
App\Models
;
use
Dcat\Admin\Traits\HasDateTimeFormatter
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
DrugUnitModel
extends
Model
{
use
HasDateTimeFormatter
;
use
SoftDeletes
;
protected
$table
=
'drug_unit'
;
}
app/Models/PrescriptionLogModel.php
View file @
61efaa0d
...
...
@@ -12,4 +12,11 @@ class PrescriptionLogModel extends Model
use
SoftDeletes
;
protected
$table
=
'prescription_log'
;
public
function
setPharmacyIdAttribute
(
$pharmacyId
)
{
$this
->
attributes
[
'pharmacy_id'
]
=
$pharmacyId
;
$pharmacy_name
=
PharmacyModel
::
find
(
$pharmacyId
)
->
name
;
$this
->
attributes
[
'pharmacy_name'
]
=
$pharmacy_name
;
}
}
database/migrations/2016_01_04_173148_create_admin_tables.php
View file @
61efaa0d
...
...
@@ -29,6 +29,8 @@ public function up()
$table
->
string
(
'password'
,
80
);
$table
->
string
(
'name'
);
$table
->
string
(
'avatar'
)
->
nullable
();
$table
->
boolean
(
'is_block'
)
->
default
(
0
)
->
comment
(
'黑名单[0=未开启,1=开启]'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
nullable
()
->
unique
(
'uk_pharmacyid'
)
->
comment
(
'药店ID'
);
$table
->
string
(
'remember_token'
,
100
)
->
nullable
();
$table
->
timestamps
();
});
...
...
database/migrations/2024_11_04_000511_create_drug_table.php
View file @
61efaa0d
...
...
@@ -19,7 +19,7 @@ public function up()
$table
->
string
(
'name'
)
->
index
(
'idx_name'
)
->
comment
(
'药品名称'
);
$table
->
string
(
'code'
)
->
index
(
'idx_code'
)
->
comment
(
'简码'
);
$table
->
string
(
'standard_code'
)
->
unique
(
'uk_standardcode'
)
->
comment
(
'本位码'
);
$table
->
string
(
'unit'
)
->
comment
(
'单位'
);
$table
->
integer
(
'unit'
)
->
nullable
(
)
->
comment
(
'单位'
);
$table
->
string
(
'spec'
)
->
comment
(
'规格'
);
$table
->
string
(
'dosage_form'
)
->
comment
(
'剂型'
);
$table
->
string
(
'factory'
)
->
index
(
'idx_factory'
)
->
comment
(
'生产厂家'
);
...
...
database/migrations/2024_11_11_055836_create_pharmacy_drug_table.php
View file @
61efaa0d
...
...
@@ -16,8 +16,10 @@ public function up(): void
$table
->
bigIncrements
(
'id'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
comment
(
'药店ID'
);
$table
->
bigInteger
(
'drug_id'
)
->
comment
(
'药品池ID'
);
$table
->
integer
(
'unit'
)
->
nullable
()
->
comment
(
'单位'
);
$table
->
bigInteger
(
'dosage_id'
)
->
default
(
0
)
->
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_
04_09_182427_add_is_block_to_admin_users
_table.php
→
database/migrations/2024_
11_13_211744_create_drug_unit
_table.php
100644 → 100755
View file @
61efaa0d
...
...
@@ -4,25 +4,31 @@
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
return
new
class
extends
Migration
class
CreateDrugUnitTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
:
void
public
function
up
()
{
Schema
::
table
(
'admin_users'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_block'
)
->
unsigned
()
->
default
(
false
)
->
comment
(
'黑名单。[0=未开启,1=开启]'
);
Schema
::
create
(
'drug_unit'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'药品单位'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
32
)
->
comment
(
'单位'
);
$table
->
timestamps
();
$table
->
softDeletes
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
:
void
public
function
down
()
{
Schema
::
table
(
'admin_users'
,
function
(
Blueprint
$table
)
{
//
});
Schema
::
dropIfExists
(
'drug_unit'
);
}
}
;
}
dcat_admin_ide_helper.php
View file @
61efaa0d
...
...
@@ -62,8 +62,10 @@
* @property Grid\Column|Collection doctor_id
* @property Grid\Column|Collection doctor_name
* @property Grid\Column|Collection is_handle
* @property Grid\Column|Collection pharmacy_id
* @property Grid\Column|Collection dosage_desc
* @property Grid\Column|Collection dosage_show
* @property Grid\Column|Collection standard_code
* @property Grid\Column|Collection unit
* @property Grid\Column|Collection spec
* @property Grid\Column|Collection dosage_form
...
...
@@ -71,7 +73,10 @@
* @property Grid\Column|Collection approval_no
* @property Grid\Column|Collection limit_buy_7
* @property Grid\Column|Collection is_rx
* @property Grid\Column|Collection tag
* @property Grid\Column|Collection drug_id
* @property Grid\Column|Collection tag_id
* @property Grid\Column|Collection tag_name
* @property Grid\Column|Collection inquiry_id
* @property Grid\Column|Collection uuid
* @property Grid\Column|Collection connection
* @property Grid\Column|Collection queue
...
...
@@ -83,8 +88,7 @@
* @property Grid\Column|Collection email
* @property Grid\Column|Collection token
* @property Grid\Column|Collection gender
* @property Grid\Column|Collection miniapp_openid
* @property Grid\Column|Collection nick_name
* @property Grid\Column|Collection is_default
* @property Grid\Column|Collection tokenable_type
* @property Grid\Column|Collection tokenable_id
* @property Grid\Column|Collection abilities
...
...
@@ -104,12 +108,10 @@
* @property Grid\Column|Collection business_hours
* @property Grid\Column|Collection lng
* @property Grid\Column|Collection lat
* @property Grid\Column|Collection pharmacy_id
* @property Grid\Column|Collection pharmacy_name
* @property Grid\Column|Collection drug_id
* @property Grid\Column|Collection dosage_id
* @property Grid\Column|Collection batch_no
* @property Grid\Column|Collection p
rescription_umber
* @property Grid\Column|Collection p
atient_id
* @property Grid\Column|Collection patient_name
* @property Grid\Column|Collection patient_age
* @property Grid\Column|Collection patient_gender
...
...
@@ -120,12 +122,18 @@
* @property Grid\Column|Collection doctor_online_hospital_name
* @property Grid\Column|Collection doctor_department
* @property Grid\Column|Collection doctor_license_no
* @property Grid\Column|Collection doctor_signed_pic
* @property Grid\Column|Collection pharmacist_id
* @property Grid\Column|Collection pharmacist_name
* @property Grid\Column|Collection pharmacist_license_number
* @property Grid\Column|Collection pharmacist_signed_pic
* @property Grid\Column|Collection prescription_pic
* @property Grid\Column|Collection is_voided
* @property Grid\Column|Collection log_info
* @property Grid\Column|Collection tag_name
* @property Grid\Column|Collection email_verified_at
* @property Grid\Column|Collection openid
* @property Grid\Column|Collection nick_name
* @property Grid\Column|Collection last_login_type
*
* @method Grid\Column|Collection id(string $label = null)
* @method Grid\Column|Collection name(string $label = null)
...
...
@@ -178,8 +186,10 @@
* @method Grid\Column|Collection doctor_id(string $label = null)
* @method Grid\Column|Collection doctor_name(string $label = null)
* @method Grid\Column|Collection is_handle(string $label = null)
* @method Grid\Column|Collection pharmacy_id(string $label = null)
* @method Grid\Column|Collection dosage_desc(string $label = null)
* @method Grid\Column|Collection dosage_show(string $label = null)
* @method Grid\Column|Collection standard_code(string $label = null)
* @method Grid\Column|Collection unit(string $label = null)
* @method Grid\Column|Collection spec(string $label = null)
* @method Grid\Column|Collection dosage_form(string $label = null)
...
...
@@ -187,7 +197,10 @@
* @method Grid\Column|Collection approval_no(string $label = null)
* @method Grid\Column|Collection limit_buy_7(string $label = null)
* @method Grid\Column|Collection is_rx(string $label = null)
* @method Grid\Column|Collection tag(string $label = null)
* @method Grid\Column|Collection drug_id(string $label = null)
* @method Grid\Column|Collection tag_id(string $label = null)
* @method Grid\Column|Collection tag_name(string $label = null)
* @method Grid\Column|Collection inquiry_id(string $label = null)
* @method Grid\Column|Collection uuid(string $label = null)
* @method Grid\Column|Collection connection(string $label = null)
* @method Grid\Column|Collection queue(string $label = null)
...
...
@@ -199,8 +212,7 @@
* @method Grid\Column|Collection email(string $label = null)
* @method Grid\Column|Collection token(string $label = null)
* @method Grid\Column|Collection gender(string $label = null)
* @method Grid\Column|Collection miniapp_openid(string $label = null)
* @method Grid\Column|Collection nick_name(string $label = null)
* @method Grid\Column|Collection is_default(string $label = null)
* @method Grid\Column|Collection tokenable_type(string $label = null)
* @method Grid\Column|Collection tokenable_id(string $label = null)
* @method Grid\Column|Collection abilities(string $label = null)
...
...
@@ -220,12 +232,10 @@
* @method Grid\Column|Collection business_hours(string $label = null)
* @method Grid\Column|Collection lng(string $label = null)
* @method Grid\Column|Collection lat(string $label = null)
* @method Grid\Column|Collection pharmacy_id(string $label = null)
* @method Grid\Column|Collection pharmacy_name(string $label = null)
* @method Grid\Column|Collection drug_id(string $label = null)
* @method Grid\Column|Collection dosage_id(string $label = null)
* @method Grid\Column|Collection batch_no(string $label = null)
* @method Grid\Column|Collection p
rescription_umber
(string $label = null)
* @method Grid\Column|Collection p
atient_id
(string $label = null)
* @method Grid\Column|Collection patient_name(string $label = null)
* @method Grid\Column|Collection patient_age(string $label = null)
* @method Grid\Column|Collection patient_gender(string $label = null)
...
...
@@ -236,12 +246,18 @@
* @method Grid\Column|Collection doctor_online_hospital_name(string $label = null)
* @method Grid\Column|Collection doctor_department(string $label = null)
* @method Grid\Column|Collection doctor_license_no(string $label = null)
* @method Grid\Column|Collection doctor_signed_pic(string $label = null)
* @method Grid\Column|Collection pharmacist_id(string $label = null)
* @method Grid\Column|Collection pharmacist_name(string $label = null)
* @method Grid\Column|Collection pharmacist_license_number(string $label = null)
* @method Grid\Column|Collection pharmacist_signed_pic(string $label = null)
* @method Grid\Column|Collection prescription_pic(string $label = null)
* @method Grid\Column|Collection is_voided(string $label = null)
* @method Grid\Column|Collection log_info(string $label = null)
* @method Grid\Column|Collection tag_name(string $label = null)
* @method Grid\Column|Collection email_verified_at(string $label = null)
* @method Grid\Column|Collection openid(string $label = null)
* @method Grid\Column|Collection nick_name(string $label = null)
* @method Grid\Column|Collection last_login_type(string $label = null)
*/
class
Grid
{}
...
...
@@ -299,8 +315,10 @@ class MiniGrid extends Grid {}
* @property Show\Field|Collection doctor_id
* @property Show\Field|Collection doctor_name
* @property Show\Field|Collection is_handle
* @property Show\Field|Collection pharmacy_id
* @property Show\Field|Collection dosage_desc
* @property Show\Field|Collection dosage_show
* @property Show\Field|Collection standard_code
* @property Show\Field|Collection unit
* @property Show\Field|Collection spec
* @property Show\Field|Collection dosage_form
...
...
@@ -308,7 +326,10 @@ class MiniGrid extends Grid {}
* @property Show\Field|Collection approval_no
* @property Show\Field|Collection limit_buy_7
* @property Show\Field|Collection is_rx
* @property Show\Field|Collection tag
* @property Show\Field|Collection drug_id
* @property Show\Field|Collection tag_id
* @property Show\Field|Collection tag_name
* @property Show\Field|Collection inquiry_id
* @property Show\Field|Collection uuid
* @property Show\Field|Collection connection
* @property Show\Field|Collection queue
...
...
@@ -320,8 +341,7 @@ class MiniGrid extends Grid {}
* @property Show\Field|Collection email
* @property Show\Field|Collection token
* @property Show\Field|Collection gender
* @property Show\Field|Collection miniapp_openid
* @property Show\Field|Collection nick_name
* @property Show\Field|Collection is_default
* @property Show\Field|Collection tokenable_type
* @property Show\Field|Collection tokenable_id
* @property Show\Field|Collection abilities
...
...
@@ -341,12 +361,10 @@ class MiniGrid extends Grid {}
* @property Show\Field|Collection business_hours
* @property Show\Field|Collection lng
* @property Show\Field|Collection lat
* @property Show\Field|Collection pharmacy_id
* @property Show\Field|Collection pharmacy_name
* @property Show\Field|Collection drug_id
* @property Show\Field|Collection dosage_id
* @property Show\Field|Collection batch_no
* @property Show\Field|Collection p
rescription_umber
* @property Show\Field|Collection p
atient_id
* @property Show\Field|Collection patient_name
* @property Show\Field|Collection patient_age
* @property Show\Field|Collection patient_gender
...
...
@@ -357,12 +375,18 @@ class MiniGrid extends Grid {}
* @property Show\Field|Collection doctor_online_hospital_name
* @property Show\Field|Collection doctor_department
* @property Show\Field|Collection doctor_license_no
* @property Show\Field|Collection doctor_signed_pic
* @property Show\Field|Collection pharmacist_id
* @property Show\Field|Collection pharmacist_name
* @property Show\Field|Collection pharmacist_license_number
* @property Show\Field|Collection pharmacist_signed_pic
* @property Show\Field|Collection prescription_pic
* @property Show\Field|Collection is_voided
* @property Show\Field|Collection log_info
* @property Show\Field|Collection tag_name
* @property Show\Field|Collection email_verified_at
* @property Show\Field|Collection openid
* @property Show\Field|Collection nick_name
* @property Show\Field|Collection last_login_type
*
* @method Show\Field|Collection id(string $label = null)
* @method Show\Field|Collection name(string $label = null)
...
...
@@ -415,8 +439,10 @@ class MiniGrid extends Grid {}
* @method Show\Field|Collection doctor_id(string $label = null)
* @method Show\Field|Collection doctor_name(string $label = null)
* @method Show\Field|Collection is_handle(string $label = null)
* @method Show\Field|Collection pharmacy_id(string $label = null)
* @method Show\Field|Collection dosage_desc(string $label = null)
* @method Show\Field|Collection dosage_show(string $label = null)
* @method Show\Field|Collection standard_code(string $label = null)
* @method Show\Field|Collection unit(string $label = null)
* @method Show\Field|Collection spec(string $label = null)
* @method Show\Field|Collection dosage_form(string $label = null)
...
...
@@ -424,7 +450,10 @@ class MiniGrid extends Grid {}
* @method Show\Field|Collection approval_no(string $label = null)
* @method Show\Field|Collection limit_buy_7(string $label = null)
* @method Show\Field|Collection is_rx(string $label = null)
* @method Show\Field|Collection tag(string $label = null)
* @method Show\Field|Collection drug_id(string $label = null)
* @method Show\Field|Collection tag_id(string $label = null)
* @method Show\Field|Collection tag_name(string $label = null)
* @method Show\Field|Collection inquiry_id(string $label = null)
* @method Show\Field|Collection uuid(string $label = null)
* @method Show\Field|Collection connection(string $label = null)
* @method Show\Field|Collection queue(string $label = null)
...
...
@@ -436,8 +465,7 @@ class MiniGrid extends Grid {}
* @method Show\Field|Collection email(string $label = null)
* @method Show\Field|Collection token(string $label = null)
* @method Show\Field|Collection gender(string $label = null)
* @method Show\Field|Collection miniapp_openid(string $label = null)
* @method Show\Field|Collection nick_name(string $label = null)
* @method Show\Field|Collection is_default(string $label = null)
* @method Show\Field|Collection tokenable_type(string $label = null)
* @method Show\Field|Collection tokenable_id(string $label = null)
* @method Show\Field|Collection abilities(string $label = null)
...
...
@@ -457,12 +485,10 @@ class MiniGrid extends Grid {}
* @method Show\Field|Collection business_hours(string $label = null)
* @method Show\Field|Collection lng(string $label = null)
* @method Show\Field|Collection lat(string $label = null)
* @method Show\Field|Collection pharmacy_id(string $label = null)
* @method Show\Field|Collection pharmacy_name(string $label = null)
* @method Show\Field|Collection drug_id(string $label = null)
* @method Show\Field|Collection dosage_id(string $label = null)
* @method Show\Field|Collection batch_no(string $label = null)
* @method Show\Field|Collection p
rescription_umber
(string $label = null)
* @method Show\Field|Collection p
atient_id
(string $label = null)
* @method Show\Field|Collection patient_name(string $label = null)
* @method Show\Field|Collection patient_age(string $label = null)
* @method Show\Field|Collection patient_gender(string $label = null)
...
...
@@ -473,12 +499,18 @@ class MiniGrid extends Grid {}
* @method Show\Field|Collection doctor_online_hospital_name(string $label = null)
* @method Show\Field|Collection doctor_department(string $label = null)
* @method Show\Field|Collection doctor_license_no(string $label = null)
* @method Show\Field|Collection doctor_signed_pic(string $label = null)
* @method Show\Field|Collection pharmacist_id(string $label = null)
* @method Show\Field|Collection pharmacist_name(string $label = null)
* @method Show\Field|Collection pharmacist_license_number(string $label = null)
* @method Show\Field|Collection pharmacist_signed_pic(string $label = null)
* @method Show\Field|Collection prescription_pic(string $label = null)
* @method Show\Field|Collection is_voided(string $label = null)
* @method Show\Field|Collection log_info(string $label = null)
* @method Show\Field|Collection tag_name(string $label = null)
* @method Show\Field|Collection email_verified_at(string $label = null)
* @method Show\Field|Collection openid(string $label = null)
* @method Show\Field|Collection nick_name(string $label = null)
* @method Show\Field|Collection last_login_type(string $label = null)
*/
class
Show
{}
...
...
lang/zh_CN/dosage.php
View file @
61efaa0d
...
...
@@ -7,6 +7,7 @@
'fields'
=>
[
'dosage_desc'
=>
'用法用量'
,
'dosage_show'
=>
'显示内容'
,
'pharmacy_id'
=>
'药店'
,
],
'options'
=>
[
],
...
...
lang/zh_CN/drug-unit.php
0 → 100755
View file @
61efaa0d
<?php
return
[
'labels'
=>
[
'DrugUnit'
=>
'药品单位'
,
'drug-unit'
=>
'药品单位'
,
],
'fields'
=>
[
'name'
=>
'单位'
,
],
'options'
=>
[
],
];
lang/zh_CN/pharmacy-drug.php
View file @
61efaa0d
...
...
@@ -9,6 +9,8 @@
'drug_id'
=>
'药品池'
,
'dosage_id'
=>
'用法用量表'
,
'batch_no'
=>
'批次号'
,
'unit'
=>
'单位'
,
'pharmacy_id'
=>
'药店'
,
],
'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