Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
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
songrui
frontend-h5
Commits
17e980ff
Commit
17e980ff
authored
Feb 21, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端 v1.2 1、专病随访删除实现
parent
b65b45d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
disease.js
src/api/doctor/disease.js
+6
-0
Visit.vue
src/doctor/patientDetail/components/disease/Visit.vue
+16
-5
No files found.
src/api/doctor/disease.js
View file @
17e980ff
...
...
@@ -48,4 +48,9 @@ export function delDiagnose(params) {
// 报卡信息主键查询
export
function
fetchCurrencyByUuid
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-record-crs/record-uuid`
,
body
:
params
,
loading
:
true
})
}
// 删除随访
export
function
deleteVisitRecord
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-record/delete`
,
body
:
params
,
loading
:
true
})
}
\ No newline at end of file
src/doctor/patientDetail/components/disease/Visit.vue
View file @
17e980ff
...
...
@@ -50,13 +50,13 @@
</div>
<div
class=
'divider'
></div>
<div
class=
'bt-group'
>
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click=
'toDetail(item)'
>
详情
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click
.
stop
=
'toDetail(item)'
>
详情
</van-button>
<!--
<van-button
round
size=
"small"
class=
"doc-btn-primary"
v-if=
"item.allowUpdate == 1"
>
转诊
</van-button>
-->
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click
.
stop=
'editBtn(item)'
v-if=
'!(item.allowUpdate !==1 || item.serveType == 5)'
>
修改
</van-button>
<van-button
round
size=
'small'
class=
'doc-btn-red'
@
click=
'delBtn(item)'
<van-button
round
size=
'small'
class=
'doc-btn-red'
@
click
.
stop
=
'delBtn(item)'
v-if=
'!(item.allowUpdate !==1 || item.serveType == 5)'
>
删除
</van-button>
</div>
...
...
@@ -72,9 +72,10 @@
</
template
>
<
script
>
import
{
delDiagnose
,
getVisitManageList
}
from
'@/api/doctor/disease.js'
import
{
delDiagnose
,
deleteVisitRecord
,
getVisitManageList
}
from
'@/api/doctor/disease.js'
import
{
useStore
}
from
'@/doctor/store'
import
{
showConfirmDialog
}
from
'vant'
import
{
delHighVisit
}
from
'@/api/doctor/highVisitApi'
export
default
{
inject
:
[
'residentInfo'
],
...
...
@@ -189,9 +190,19 @@ export default {
})
}
},
delBtn
()
{
delBtn
(
record
)
{
showConfirmDialog
({
message
:
'确定要删除吗?'
}).
then
(()
=>
{
deleteVisitRecord
({
id
:
record
.
id
}).
then
(
res
=>
{
setTimeout
(()
=>
{
this
.
$message
.
info
(
'删除成功'
)
},
600
)
this
.
list
=
this
.
list
.
filter
(
e
=>
e
.
id
!==
record
.
id
)
})
}).
catch
((
err
)
=>
{
console
.
warn
(
'delBtn'
,
err
)
})
}
}
,
},
watch
:
{
diseaseType
()
{
...
...
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