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
7fe4d41f
Commit
7fe4d41f
authored
Aug 24, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
treatItemOptionsShow
parent
f4718295
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
8 deletions
+35
-8
prescribing-modle.vue
...ement/registration-queue/components/prescribing-modle.vue
+35
-6
registration-queue.vue
...vice-management/registration-queue/registration-queue.vue
+0
-2
No files found.
src/views/service-management/registration-queue/components/prescribing-modle.vue
View file @
7fe4d41f
...
...
@@ -156,10 +156,11 @@
@
change=
"setDrugOthers(singleItem,drugOptions)"
>
<el-option
v-for=
"item in drugOptions"
v-for=
"item in drugOptions
Show
"
:key=
"item.drugId"
:label=
"item.drugName"
:value=
"item.drugId"
:disabled=
"item.disabled"
/>
</el-select>
</el-form-item>
...
...
@@ -172,8 +173,8 @@
>
<div
style=
"display: flex;align-items: center;"
>
<el-input-number
:disabled=
"!singleItem.drugId"
v-model
.
trim=
"singleItem.recipelNum"
:disabled=
"!singleItem.drugId"
:max=
"9999"
:min=
"0"
controls-position=
"right"
...
...
@@ -189,8 +190,8 @@
prop="remark"
>
<el-input
:disabled=
"!singleItem.drugId"
v-model
.
trim=
"singleItem.remark"
:disabled=
"!singleItem.drugId"
placeholder=
"请输入具体用法"
maxlength=
"30"
/>
...
...
@@ -242,6 +243,7 @@
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
:disabled=
"item.disabled"
/>
</el-select>
</el-form-item>
...
...
@@ -266,10 +268,11 @@
@
change=
"setTreatItemsName(singleItem,treatItemOptions)"
>
<el-option
v-for=
"item in treatItemOptions"
v-for=
"item in treatItemOptions
Show
"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
:disabled=
"item.disabled"
/>
</el-select>
</el-form-item>
...
...
@@ -466,6 +469,20 @@ export default {
},
computed
:
{
drugOptionsShow
()
{
console
.
log
(
'drugListShow'
,
this
.
prescribingForm
.
medication
,
this
.
drugOptions
)
return
this
.
drugOptions
.
map
(
item
=>
{
return
{
...
item
,
disabled
:
!
this
.
prescribingForm
.
medication
.
every
(
drug
=>
drug
.
drugId
!==
item
.
drugId
)
}
}
)
},
treatItemOptionsShow
()
{
console
.
log
(
'treatItemOptionsShow'
,
this
.
prescribingForm
.
treatment
,
this
.
treatItemOptions
)
return
this
.
treatItemOptions
.
map
(
item
=>
{
return
{
...
item
,
disabled
:
!
this
.
prescribingForm
.
treatment
.
every
(
drug
=>
drug
.
treatItemsId
!==
item
.
value
)
}
}
)
},
/* 诊断日期格式化 */
formattedDiagnosisTime
()
{
return
moment
(
this
.
registerForm
.
diagnosisTime
).
format
(
'YYYY/MM/DD'
)
...
...
@@ -473,8 +490,20 @@ export default {
...
mapGetters
([
'deptId'
,
'name'
]),
cItemOptions
()
{
return
(
checkType
)
=>
{
console
.
log
(
'checkType'
,
this
.
checkKeys
,
checkType
,
this
.
checkItemOptions
[
checkType
])
return
this
.
checkItemOptions
[
checkType
]
console
.
log
(
'checkType'
,
this
.
prescribingForm
.
inspect
,
this
.
checkItemOptions
[
checkType
])
if
(
this
.
checkItemOptions
[
checkType
])
{
console
.
log
()
return
this
.
checkItemOptions
[
checkType
].
map
(
item
=>
{
return
{
...
item
,
disabled
:
!
this
.
prescribingForm
.
inspect
.
every
(
check
=>
{
return
check
.
checkItemsId
!==
item
.
value
})
}
})
}
else
{
return
[]
}
}
}
},
...
...
src/views/service-management/registration-queue/registration-queue.vue
View file @
7fe4d41f
...
...
@@ -205,8 +205,6 @@
<!--
v
-
hasPermi
=
"['business:registration:edit']"
:
disabled
=
"scope.row.isAdd === '1'"
-->
<
el
-
button
v
-
hasPermi
=
"['business:registration:edit']"
:
disabled
=
"scope.row.isAdd === '1'"
icon
=
"el-icon-paperclip"
plain
size
=
"mini"
...
...
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