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
e44e0db7
authored
Dec 04, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
麻黄素药品判断
parent
07a77554
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/Admin/Extensions/Form/SiteConfigForm.php
+2
-1
app/Api/Controllers/DrugController.php
+1
-1
No files found.
app/Admin/Extensions/Form/SiteConfigForm.php
View file @
e44e0db7
...
...
@@ -43,7 +43,8 @@ public function form()
$this
->
number
(
'doses_limit'
,
'中药剂量限制'
)
->
required
()
->
default
((
$data
[
'doses_limit'
]
??
1
))
->
min
(
1
)
->
max
(
100
)
->
help
(
'剂量可选择最大值100'
);
// $this->switch('prescription_auto', '医师自动开方')->default(($data['prescription_auto'] ?? 0));
$this
->
text
(
'limit_keywords'
,
'限制关键词'
)
->
default
(
$data
[
'limit_keywords'
]
??
''
)
->
required
()
->
help
(
'多个关键词请用英文逗号分隔'
);
$this
->
text
(
'limit_keywords'
,
'麻黄素类药品限制关键词'
)
->
default
(
$data
[
'limit_keywords'
]
??
''
)
->
required
()
->
help
(
'多个关键词请用英文逗号分隔'
);
$this
->
number
(
'ephedrine_limit_buy_7'
,
'麻黄素类药品7日内限购(全局)'
)
->
required
()
->
default
((
$data
[
'ephedrine_limit_buy_7'
]
??
1
))
->
min
(
1
)
->
max
(
10
)
->
help
(
'最多可设置10'
);
$this
->
disableResetButton
();
}
...
...
app/Api/Controllers/DrugController.php
View file @
e44e0db7
...
...
@@ -154,7 +154,7 @@ public function drugLimit(Request $request)
}
}
}
$canBuyMahuangCount
=
4
-
$buyed_mahuang_counts
;
// 麻黄素药品剩余可购买数量,最多可以购买4个
$canBuyMahuangCount
=
$site_config
[
'ephedrine_limit_buy_7'
]
-
$buyed_mahuang_counts
;
// 麻黄素药品剩余可购买数量
// 处理麻黄素药品数据
$mahuangsu_buy_num
=
0
;
// 本次购买麻黄素药品数量
...
...
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