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
bcf502ee
authored
Nov 11, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简码自动生成
parent
5768e19e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
2 deletions
+18
-2
app/Admin/Controllers/DiagnosiController.php
+1
-1
app/Admin/Controllers/DoctorCorrectionController.php
+1
-0
app/Admin/Controllers/DrugController.php
+1
-1
app/Admin/Controllers/PharmacyCorrectionController.php
+1
-0
app/Admin/Controllers/PharmacyDrugController.php
+1
-0
app/Admin/Controllers/PrescriptionController.php
+1
-0
app/Admin/Controllers/PrescriptionLogController.php
+1
-0
app/Admin/Controllers/PrescriptionPrintController.php
+1
-0
app/Admin/Controllers/SiteConfigController.php
+1
-0
app/Admin/Controllers/TagController.php
+1
-0
app/Models/DiagnosiModel.php
+8
-0
No files found.
app/Admin/Controllers/DiagnosiController.php
View file @
bcf502ee
...
...
@@ -78,7 +78,7 @@ protected function form()
$form
->
display
(
'id'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
)
->
required
();
$form
->
text
(
'content'
)
->
width
(
4
);
$form
->
text
(
'code'
)
->
width
(
4
);
$form
->
hidden
(
'code'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/DoctorCorrectionController.php
View file @
bcf502ee
...
...
@@ -8,6 +8,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 医师纠错
class
DoctorCorrectionController
extends
AdminController
{
/**
...
...
app/Admin/Controllers/DrugController.php
View file @
bcf502ee
...
...
@@ -9,7 +9,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 药品
// 药品
池
class
DrugController
extends
AdminController
{
/**
...
...
app/Admin/Controllers/PharmacyCorrectionController.php
View file @
bcf502ee
...
...
@@ -8,6 +8,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 药店-纠错
class
PharmacyCorrectionController
extends
AdminController
{
/**
...
...
app/Admin/Controllers/PharmacyDrugController.php
View file @
bcf502ee
...
...
@@ -11,6 +11,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 药店-药品
class
PharmacyDrugController
extends
AdminController
{
/**
...
...
app/Admin/Controllers/PrescriptionController.php
View file @
bcf502ee
...
...
@@ -8,6 +8,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 处方列表
class
PrescriptionController
extends
AdminController
{
/**
...
...
app/Admin/Controllers/PrescriptionLogController.php
View file @
bcf502ee
...
...
@@ -8,6 +8,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 处方日志
class
PrescriptionLogController
extends
AdminController
{
/**
...
...
app/Admin/Controllers/PrescriptionPrintController.php
View file @
bcf502ee
...
...
@@ -5,6 +5,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Layout\Content
;
// 药店-处方打印
class
PrescriptionPrintController
extends
AdminController
{
public
function
index
(
Content
$content
)
:
Content
...
...
app/Admin/Controllers/SiteConfigController.php
View file @
bcf502ee
...
...
@@ -6,6 +6,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Layout\Content
;
// 系统配置
class
SiteConfigController
extends
AdminController
{
public
function
index
(
Content
$content
)
:
Content
...
...
app/Admin/Controllers/TagController.php
View file @
bcf502ee
...
...
@@ -8,6 +8,7 @@
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 药品标签
class
TagController
extends
AdminController
{
/**
...
...
app/Models/DiagnosiModel.php
View file @
bcf502ee
...
...
@@ -5,6 +5,7 @@
use
Dcat\Admin\Traits\HasDateTimeFormatter
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Overtrue\Pinyin\Pinyin
;
class
DiagnosiModel
extends
Model
{
...
...
@@ -12,4 +13,11 @@ class DiagnosiModel extends Model
use
SoftDeletes
;
protected
$table
=
'diagnosis'
;
public
function
setCodeAttribute
(
$value
)
{
$pinyin
=
new
Pinyin
();
$abbr
=
$pinyin
->
abbr
(
$this
->
name
)
->
join
(
''
);
// 获取拼音首字母
$this
->
attributes
[
'code'
]
=
strtoupper
(
$abbr
);
}
}
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