Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
f4718295
Commit
f4718295
authored
Aug 24, 2023
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
da613439
5bb0e3dd
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
262 additions
and
125 deletions
+262
-125
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+195
-112
prescribing-modle.vue
...ement/registration-queue/components/prescribing-modle.vue
+67
-13
No files found.
src/views/medical-record-management/medical-edit.vue
View file @
f4718295
This diff is collapsed.
Click to expand it.
src/views/service-management/registration-queue/components/prescribing-modle.vue
View file @
f4718295
...
...
@@ -144,7 +144,10 @@
<el-form-item
label=
"药物处理"
prop=
"medication"
>
<div
v-for=
"(singleItem, index) in prescribingForm.medication"
:key=
"index"
class=
"single-medication"
>
<div
class=
"single-file"
>
<el-form-item
prop=
"drug"
>
<el-form-item
:rules=
"
{validator: validatePharmDrug(singleItem, 'drugId', '请选择药品'), trigger: 'blur'}"
prop="drug"
>
<el-select
v-model=
"singleItem.drugId"
clearable
...
...
@@ -162,18 +165,31 @@
</el-form-item>
</div>
<div
class=
"single-file"
>
<el-form-item
label=
"数量"
prop=
"recipelNum"
>
<el-form-item
:rules=
"
{validator: validatePharmDrugOther(singleItem, 'recipelNum', '请输入剂量'), trigger: 'blur'}"
label="剂量"
prop="recipelNum"
>
<div
style=
"display: flex;align-items: center;"
>
<el-input-number
:disabled=
"!singleItem.drugId"
v-model
.
trim=
"singleItem.recipelNum"
:max=
"100
"
:max=
"9999
"
:min=
"0"
controls-position=
"right"
/>
{{
singleItem
.
smallSallNormsUnit
||
'盒'
}}
/>
<span
class=
"unit-text"
>
{{
singleItem
.
normsUnit
||
''
}}
</span>
</div>
</el-form-item>
</div>
<div>
<el-form-item
label=
"sig"
prop=
"remark"
>
<el-form-item
:rules=
"
{validator: validatePharmDrugOther(singleItem, 'remark', '请输入具体用法'), trigger: 'blur'}"
label="sig"
prop="remark"
>
<el-input
:disabled=
"!singleItem.drugId"
v-model
.
trim=
"singleItem.remark"
placeholder=
"请输入具体用法"
maxlength=
"30"
...
...
@@ -292,7 +308,7 @@
clearable
placeholder=
"请选择病房类型"
style=
"width: 100%"
disabled=
"true"
:
disabled=
"true"
>
<el-option
v-for=
"(item, index) in dict.type.ward_type"
...
...
@@ -471,6 +487,7 @@ export default {
this
.
prescribingForm
.
treatment
=
[...
val
.
treatManageBo
]
}
if
(
val
&&
val
.
stockDispenseOutboundList
.
length
>
0
)
{
console
.
log
(
'val.stockDispenseOutboundList'
,
val
.
stockDispenseOutboundList
)
this
.
prescribingForm
.
medication
=
[...
val
.
stockDispenseOutboundList
]
}
if
(
val
&&
val
.
inHospitalBo
)
{
...
...
@@ -549,7 +566,8 @@ export default {
sallUnit
:
item
.
smallSallNormsUnit
,
sallNum
:
item
.
smallSallNormsNum
,
standardAmount
:
item
.
sellingPrice
,
paymentStatus
:
'0'
paymentStatus
:
'0'
,
normsUnit
:
item
.
normsUnit
}
})
console
.
log
(
'drugOptions!!!!!!!!!!!!!'
,
this
.
drugOptions
)
...
...
@@ -572,6 +590,39 @@ export default {
}
}
},
// 校验触发--药物相关
validatePharmDrug
(
singleItem
)
{
return
(
rule
,
value
,
callback
)
=>
{
if
(
singleItem
.
drugId
)
{
callback
()
return
true
}
else
if
(
singleItem
.
recipelNum
||
singleItem
.
remark
)
{
callback
(
'请选择药品'
)
return
false
}
else
{
callback
()
return
true
}
}
},
// 校验触发--药物相关
validatePharmDrugOther
(
singleItem
,
key
,
message
)
{
return
(
rule
,
value
,
callback
)
=>
{
if
(
!
singleItem
.
drugId
)
{
callback
()
return
true
}
else
if
(
!
singleItem
[
key
])
{
callback
(
message
)
return
false
}
else
if
(
key
===
'recipelNum'
&&
!
/^
[
1-9
]\d
*$/
.
test
(
singleItem
[
key
]))
{
callback
(
'仅支持数字'
)
return
false
}
else
{
callback
()
return
true
}
}
},
// 设置当前行治疗名称
setTreatItemsName
(
rowData
,
options
)
{
console
.
log
(
'setTreatItemsName'
,
rowData
,
options
)
...
...
@@ -606,6 +657,7 @@ export default {
rowData
[
'sallNum'
]
=
item
.
sallNum
rowData
[
'standardAmount'
]
=
item
.
standardAmount
rowData
[
'paymentStatus'
]
=
item
.
paymentStatus
rowData
[
'normsUnit'
]
=
item
.
normsUnit
}
})
console
.
log
(
'finishSetDrugOthers'
,
rowData
)
...
...
@@ -864,7 +916,9 @@ export default {
.el-input--small
{
width
:
188px
!
important
;
}
.unit-text
{
margin-left
:
unset
;
}
.el-input-number--small
{
width
:
188px
!
important
;
}
...
...
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