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
5079fca7
Commit
5079fca7
authored
Feb 21, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'chronic-dev' of
http://gitlab.yiboshi.com/nightkis1995/frontend-h5
into chronic-dev
Conflicts: src/doctor/Doctor.vue
parents
ccb8d0c1
5923c8c9
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
682 additions
and
65 deletions
+682
-65
separateFU.js
src/api/doctor/separateFU.js
+46
-0
FormCommon.vue
src/doctor/followUp/separateFU/components/FormCommon.vue
+4
-0
InspectV2.vue
src/doctor/followUp/separateFU/components/InspectV2.vue
+17
-5
TreatmentPlan.vue
src/doctor/followUp/separateFU/components/TreatmentPlan.vue
+14
-1
BaseInfo.vue
src/doctor/followUp/separateFU/form/BaseInfo.vue
+27
-0
FormCont.vue
src/doctor/followUp/separateFU/form/FormCont.vue
+39
-10
ChronicKidneyDiseaseForm.vue
...p/separateFU/form/components/ChronicKidneyDiseaseForm.vue
+78
-7
CopdForm.vue
src/doctor/followUp/separateFU/form/components/CopdForm.vue
+249
-17
CoronaryHeartDiseaseForm.vue
...p/separateFU/form/components/CoronaryHeartDiseaseForm.vue
+54
-8
DyslipidemiaForm.vue
.../followUp/separateFU/form/components/DyslipidemiaForm.vue
+72
-7
StrokeForm.vue
...doctor/followUp/separateFU/form/components/StrokeForm.vue
+79
-8
PatientDetail.vue
src/doctor/patientDetail/PatientDetail.vue
+1
-1
Visit.vue
src/doctor/patientDetail/components/disease/Visit.vue
+2
-1
No files found.
src/api/doctor/separateFU.js
View file @
5079fca7
...
@@ -4,30 +4,76 @@ import { fetchBase } from '@/api/doctor/doctorFetch'
...
@@ -4,30 +4,76 @@ import { fetchBase } from '@/api/doctor/doctorFetch'
export
function
addHypertensionForm
(
params
)
{
export
function
addHypertensionForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-hypertension/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-hypertension/save`
,
body
:
params
,
loading
:
true
})
}
}
// 新增糖尿病随访
// 新增糖尿病随访
export
function
addDiabetesForm
(
params
)
{
export
function
addDiabetesForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-diabetes/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-diabetes/save`
,
body
:
params
,
loading
:
true
})
}
}
// 新增冠心病随访
// 新增冠心病随访
export
function
addCoronaryHeartDiseaseForm
(
params
)
{
export
function
addCoronaryHeartDiseaseForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-coronary/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-coronary/save`
,
body
:
params
,
loading
:
true
})
}
}
// 修改冠心病随访
export
function
updateCoronaryHeartDiseaseForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-coronary/update`
,
body
:
params
,
loading
:
true
})
}
// 主键查询冠心病随访信息
export
function
getCoronaryHeartDiseaseForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-coronary/record`
,
body
:
params
,
loading
:
true
})
}
// 新增脑卒中随访
// 新增脑卒中随访
export
function
addStrokeForm
(
params
)
{
export
function
addStrokeForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-stroke/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-stroke/save`
,
body
:
params
,
loading
:
true
})
}
}
// 修改脑卒中随访
export
function
updateStrokeForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-stroke/update`
,
body
:
params
,
loading
:
true
})
}
// 主键查询脑卒中随访信息
export
function
getStrokeForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-stroke/record`
,
body
:
params
,
loading
:
true
})
}
// 新增慢阻肺随访
// 新增慢阻肺随访
export
function
addCopdForm
(
params
)
{
export
function
addCopdForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-pulmonary/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-pulmonary/save`
,
body
:
params
,
loading
:
true
})
}
}
// 修改慢阻肺随访
export
function
updateCopdForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-pulmonary/update`
,
body
:
params
,
loading
:
true
})
}
// 主键查询慢阻肺随访信息
export
function
getCopdForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-pulmonary/record`
,
body
:
params
,
loading
:
true
})
}
// 新增慢性肾病随访
// 新增慢性肾病随访
export
function
addChronicKidneyDiseaseForm
(
params
)
{
export
function
addChronicKidneyDiseaseForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-nephrosis/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-nephrosis/save`
,
body
:
params
,
loading
:
true
})
}
}
// 修改慢性肾病随访
export
function
updateChronicKidneyDiseaseForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-nephrosis/update`
,
body
:
params
,
loading
:
true
})
}
// 主键查询慢性肾病随访信息
export
function
getChronicKidneyDiseaseForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-nephrosis/record`
,
body
:
params
,
loading
:
true
})
}
// 新增血脂异常随访
// 新增血脂异常随访
export
function
addDyslipidemiaForm
(
params
)
{
export
function
addDyslipidemiaForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-dyslipemia/save`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-dyslipemia/save`
,
body
:
params
,
loading
:
true
})
}
}
// 修改血脂异常随访
export
function
updateDyslipidemiaForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-dyslipemia/update`
,
body
:
params
,
loading
:
true
})
}
// 主键查询血脂异常随访信息
export
function
getDyslipidemiaForm
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-dyslipemia/record`
,
body
:
params
,
loading
:
true
})
}
// 查询专病随访详情
// 查询专病随访详情
...
...
src/doctor/followUp/separateFU/components/FormCommon.vue
0 → 100644
View file @
5079fca7
<
template
>
</
template
>
\ No newline at end of file
src/doctor/followUp/separateFU/components/InspectV2.vue
View file @
5079fca7
<
template
>
<
template
>
<div
class=
"label-title mt-2"
>
辅助检查
</div>
<div
v-if=
"diseaseInfo.diseaseType !== 5"
class=
"label-title mt-2"
>
辅助检查
</div>
<div
v-for=
"(item, index) in inspectList"
:key=
"index"
class=
"bg-fa mb-2
"
>
<div
v-for=
"(item, index) in inspectList"
:key=
"index"
:class=
"['bg-fa', 'mb-2', diseaseInfo.diseaseType === 5 ? '' : 'p-8']
"
>
<div
style=
"background-color: #fff; padding: 8px"
>
<div
style=
"background-color: #fff; padding: 8px"
>
<div
style=
"color: #262626; font-size: 14px"
>
检查名称
</div>
<div
style=
"color: #262626; font-size: 14px"
>
检查名称
</div>
<van-field
<van-field
...
@@ -35,12 +35,14 @@ export default {
...
@@ -35,12 +35,14 @@ export default {
diseaseInfo
:
{
diseaseInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
}
}
},
},
data
()
{
data
()
{
return
{
return
{
form
:
{},
rules
:
{},
inspectList
:
[]
inspectList
:
[]
}
}
},
},
...
@@ -61,6 +63,13 @@ export default {
...
@@ -61,6 +63,13 @@ export default {
resolve
(
this
.
inspectList
)
resolve
(
this
.
inspectList
)
})
})
}
}
},
watch
:
{
'form.inspectList'
:
{
handler
()
{
this
.
inspectList
=
this
.
form
.
inspectList
}
}
}
}
}
}
</
script
>
</
script
>
...
@@ -81,9 +90,12 @@ export default {
...
@@ -81,9 +90,12 @@ export default {
}
}
.bg-fa {
.bg-fa {
background-color: #FAFAFA;
background-color: #FAFAFA;
padding: 8px;
//
padding: 8px;
border-radius: 8px;
border-radius: 8px;
}
}
.p-8 {
padding: 8px;
}
.form-input {
.form-input {
background-color: #FAFAFA;
background-color: #FAFAFA;
padding: 8px 12px;
padding: 8px 12px;
...
...
src/doctor/followUp/separateFU/components/TreatmentPlan.vue
View file @
5079fca7
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<DocDrug
<DocDrug
v-model:value=
"item.drugId"
v-model:value=
"item.drugId"
placeholder=
"拼音码查询药品"
placeholder=
"拼音码查询药品"
:valueName=
"item.pinyinCode"
@
change=
"drugChange($event, item)"
>
@
change=
"drugChange($event, item)"
>
</DocDrug>
</DocDrug>
<div
class=
"flex items-center justify-between w-full mt-2"
>
<div
class=
"flex items-center justify-between w-full mt-2"
>
...
@@ -136,10 +137,15 @@ import DocDrug from '@/doctor/components/docDrug/DocDrug.vue'
...
@@ -136,10 +137,15 @@ import DocDrug from '@/doctor/components/docDrug/DocDrug.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
export
default
{
export
default
{
components
:
{
DocDrug
,
CheckBtn
},
components
:
{
DocDrug
,
CheckBtn
},
props
:
{
form
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
data
()
{
return
{
return
{
store
:
useStore
(),
store
:
useStore
(),
form
:
{},
showUnit
:
false
,
showUnit
:
false
,
showFrequency
:
false
,
showFrequency
:
false
,
showUsage
:
false
,
showUsage
:
false
,
...
@@ -186,6 +192,13 @@ export default {
...
@@ -186,6 +192,13 @@ export default {
resolve
(
this
.
medicateCase
)
resolve
(
this
.
medicateCase
)
})
})
}
}
},
watch
:
{
'form.medicateCase'
:
{
handler
()
{
this
.
medicateCase
=
JSON
.
parse
(
this
.
form
.
medicateCase
)
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/doctor/followUp/separateFU/form/BaseInfo.vue
View file @
5079fca7
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
v-model=
"form.diseaseTypeName"
v-model=
"form.diseaseTypeName"
isLink
isLink
readonly
readonly
:disabled=
"$route.query.id"
placeholder=
"请选择"
placeholder=
"请选择"
:rules=
"rules.diseaseTypeName"
:rules=
"rules.diseaseTypeName"
@
click=
"showDiseaseType = true"
@
click=
"showDiseaseType = true"
...
@@ -87,8 +88,34 @@ export default {
...
@@ -87,8 +88,34 @@ export default {
},
},
methods
:
{
methods
:
{
async
init
()
{
async
init
()
{
// 获取居民信息
const
res
=
await
getChronicResidentsId
(
this
.
residentInfoId
)
const
res
=
await
getChronicResidentsId
(
this
.
residentInfoId
)
this
.
info
=
res
.
data
||
{}
this
.
info
=
res
.
data
||
{}
// 未被诊断的病种置灰不可选
const
diseaseList
=
[
{
name
:
'高血压'
,
value
:
1
,
code
:
'512'
},
{
name
:
'糖尿病'
,
value
:
2
,
code
:
'1024'
},
{
name
:
'冠心病'
,
value
:
3
,
code
:
'2048'
},
{
name
:
'脑卒中'
,
value
:
4
,
code
:
'4096'
},
{
name
:
'慢性阻塞性疾病'
,
value
:
5
,
code
:
'8192'
},
{
name
:
'慢性肾脏病'
,
value
:
6
,
code
:
'16384'
},
{
name
:
'血脂异常'
,
value
:
7
,
code
:
'32768'
}
].
filter
(
e
=>
this
.
info
.
groupsArrays
.
includes
(
e
.
code
))
this
.
store
.
getDict
(
'CP00117'
).
forEach
(
x
=>
{
x
.
disabled
=
true
diseaseList
.
forEach
(
y
=>
{
if
(
x
.
value
===
y
.
value
)
{
x
.
disabled
=
false
}
})
})
// 默认选中病种
let
{
diseaseType
,
id
,
serveType
}
=
this
.
$route
.
query
this
.
form
.
diseaseType
=
parseInt
(
diseaseType
)
this
.
form
.
diseaseTypeName
=
this
.
store
.
getDict
(
'CP00117'
).
find
(
e
=>
e
.
value
===
this
.
form
.
diseaseType
)?.
name
this
.
form
.
serveType
=
parseInt
(
serveType
)
},
},
diseaseTypeChange
()
{
diseaseTypeChange
()
{
this
.
store
.
getDict
(
'CP00117'
).
forEach
(
item
=>
{
this
.
store
.
getDict
(
'CP00117'
).
forEach
(
item
=>
{
...
...
src/doctor/followUp/separateFU/form/FormCont.vue
View file @
5079fca7
<
template
>
<
template
>
<div>
<div>
<!-- 高血压 -->
<HypertensionForm
<HypertensionForm
v-if=
"diseaseInfo.diseaseType === 1"
v-if=
"diseaseInfo.diseaseType === 1"
:diseaseInfo=
"diseaseInfo"
:diseaseInfo=
"diseaseInfo"
ref=
"hypertensionForm"
>
ref=
"hypertensionForm"
>
</HypertensionForm>
</HypertensionForm>
<!-- 糖尿病 -->
<DiabetesForm
<DiabetesForm
v-if=
"diseaseInfo.diseaseType === 2"
v-if=
"diseaseInfo.diseaseType === 2"
:diseaseInfo=
"diseaseInfo"
:diseaseInfo=
"diseaseInfo"
ref=
"diabetesForm"
>
ref=
"diabetesForm"
>
</DiabetesForm>
</DiabetesForm>
<!-- 冠心病 -->
<CoronaryHeartDiseaseForm
<CoronaryHeartDiseaseForm
v-if=
"diseaseInfo.diseaseType === 3"
v-if=
"diseaseInfo.diseaseType === 3"
:diseaseInfo=
"diseaseInfo"
:diseaseInfo=
"diseaseInfo"
ref=
"coronaryHeartDiseaseForm"
>
ref=
"coronaryHeartDiseaseForm"
>
</CoronaryHeartDiseaseForm>
</CoronaryHeartDiseaseForm>
<StrokeForm
v-if=
"diseaseInfo.diseaseType === 4"
ref=
"strokeForm"
></StrokeForm>
<!-- 脑卒中 -->
<CopdForm
v-if=
"diseaseInfo.diseaseType === 5"
ref=
"copdForm"
></CopdForm>
<StrokeForm
<ChronicKidneyDiseaseForm
v-if=
"diseaseInfo.diseaseType === 6"
ref=
"chronicKidneyDiseaseForm"
></ChronicKidneyDiseaseForm>
v-if=
"diseaseInfo.diseaseType === 4"
<DyslipidemiaForm
v-if=
"diseaseInfo.diseaseType === 7"
ref=
"dyslipidemiaForm"
></DyslipidemiaForm>
:diseaseInfo=
"diseaseInfo"
ref=
"strokeForm"
>
</StrokeForm>
<!-- 慢阻肺 -->
<CopdForm
v-if=
"diseaseInfo.diseaseType === 5"
:diseaseInfo=
"diseaseInfo"
ref=
"copdForm"
>
</CopdForm>
<!-- 慢性肾脏病 -->
<ChronicKidneyDiseaseForm
v-if=
"diseaseInfo.diseaseType === 6"
:diseaseInfo=
"diseaseInfo"
ref=
"chronicKidneyDiseaseForm"
>
</ChronicKidneyDiseaseForm>
<!-- 血脂异常 -->
<DyslipidemiaForm
v-if=
"diseaseInfo.diseaseType === 7"
:diseaseInfo=
"diseaseInfo"
ref=
"dyslipidemiaForm"
>
</DyslipidemiaForm>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -29,7 +52,7 @@ import StrokeForm from './components/StrokeForm.vue'
...
@@ -29,7 +52,7 @@ import StrokeForm from './components/StrokeForm.vue'
import
CopdForm
from
'./components/CopdForm.vue'
import
CopdForm
from
'./components/CopdForm.vue'
import
ChronicKidneyDiseaseForm
from
'./components/ChronicKidneyDiseaseForm.vue'
import
ChronicKidneyDiseaseForm
from
'./components/ChronicKidneyDiseaseForm.vue'
import
DyslipidemiaForm
from
'./components/DyslipidemiaForm.vue'
import
DyslipidemiaForm
from
'./components/DyslipidemiaForm.vue'
import
{
addHypertensionForm
,
addDiabetesForm
,
addCoronaryHeartDiseaseForm
,
addStrokeForm
,
addCopdForm
,
addChronicKidneyDiseaseForm
,
add
DyslipidemiaForm
}
from
'@/api/doctor/separateFU'
import
{
addHypertensionForm
,
addDiabetesForm
,
addCoronaryHeartDiseaseForm
,
updateCoronaryHeartDiseaseForm
,
addStrokeForm
,
updateStrokeForm
,
addCopdForm
,
updateCopdForm
,
addChronicKidneyDiseaseForm
,
updateChronicKidneyDiseaseForm
,
addDyslipidemiaForm
,
update
DyslipidemiaForm
}
from
'@/api/doctor/separateFU'
export
default
{
export
default
{
components
:
{
HypertensionForm
,
DiabetesForm
,
CoronaryHeartDiseaseForm
,
StrokeForm
,
CopdForm
,
ChronicKidneyDiseaseForm
,
DyslipidemiaForm
},
components
:
{
HypertensionForm
,
DiabetesForm
,
CoronaryHeartDiseaseForm
,
StrokeForm
,
CopdForm
,
ChronicKidneyDiseaseForm
,
DyslipidemiaForm
},
props
:
{
props
:
{
...
@@ -75,6 +98,7 @@ export default {
...
@@ -75,6 +98,7 @@ export default {
// 数据来源(2为慢综app)
// 数据来源(2为慢综app)
source
:
2
source
:
2
}
}
let
{
id
}
=
this
.
$route
.
query
if
(
this
.
diseaseInfo
.
diseaseType
===
1
)
{
if
(
this
.
diseaseInfo
.
diseaseType
===
1
)
{
const
hypertensionForm
=
await
this
.
$refs
.
hypertensionForm
.
submit
()
const
hypertensionForm
=
await
this
.
$refs
.
hypertensionForm
.
submit
()
return
await
addHypertensionForm
({
return
await
addHypertensionForm
({
...
@@ -89,31 +113,36 @@ export default {
...
@@ -89,31 +113,36 @@ export default {
},
true
)
},
true
)
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
3
)
{
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
3
)
{
const
coronaryHeartDiseaseForm
=
await
this
.
$refs
.
coronaryHeartDiseaseForm
.
submit
()
const
coronaryHeartDiseaseForm
=
await
this
.
$refs
.
coronaryHeartDiseaseForm
.
submit
()
return
await
addCoronaryHeartDiseaseForm
({
let
fun
=
id
?
updateCoronaryHeartDiseaseForm
:
addCoronaryHeartDiseaseForm
return
await
fun
({
...
form
,
...
form
,
...
coronaryHeartDiseaseForm
...
coronaryHeartDiseaseForm
},
true
)
},
true
)
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
4
)
{
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
4
)
{
const
strokeForm
=
await
this
.
$refs
.
strokeForm
.
submit
()
const
strokeForm
=
await
this
.
$refs
.
strokeForm
.
submit
()
return
await
addStrokeForm
({
let
fun
=
id
?
updateStrokeForm
:
addStrokeForm
return
await
fun
({
...
form
,
...
form
,
...
strokeForm
...
strokeForm
},
true
)
},
true
)
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
5
)
{
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
5
)
{
const
copdForm
=
await
this
.
$refs
.
copdForm
.
submit
()
const
copdForm
=
await
this
.
$refs
.
copdForm
.
submit
()
return
await
addCopdForm
({
let
fun
=
id
?
updateCopdForm
:
addCopdForm
return
await
fun
({
...
form
,
...
form
,
...
copdForm
...
copdForm
},
true
)
},
true
)
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
6
)
{
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
6
)
{
const
chronicKidneyDiseaseForm
=
await
this
.
$refs
.
chronicKidneyDiseaseForm
.
submit
()
const
chronicKidneyDiseaseForm
=
await
this
.
$refs
.
chronicKidneyDiseaseForm
.
submit
()
return
await
addChronicKidneyDiseaseForm
({
let
fun
=
id
?
updateChronicKidneyDiseaseForm
:
addChronicKidneyDiseaseForm
return
await
fun
({
...
form
,
...
form
,
...
chronicKidneyDiseaseForm
...
chronicKidneyDiseaseForm
},
true
)
},
true
)
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
7
)
{
}
else
if
(
this
.
diseaseInfo
.
diseaseType
===
7
)
{
const
dyslipidemiaForm
=
await
this
.
$refs
.
dyslipidemiaForm
.
submit
()
const
dyslipidemiaForm
=
await
this
.
$refs
.
dyslipidemiaForm
.
submit
()
return
await
addDyslipidemiaForm
({
let
fun
=
id
?
updateDyslipidemiaForm
:
addDyslipidemiaForm
return
await
fun
({
...
form
,
...
form
,
...
dyslipidemiaForm
...
dyslipidemiaForm
},
true
)
},
true
)
...
...
src/doctor/followUp/separateFU/form/components/ChronicKidneyDiseaseForm.vue
View file @
5079fca7
...
@@ -561,6 +561,10 @@
...
@@ -561,6 +561,10 @@
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<!-- 辅助检查 -->
<InspectV2
ref=
"inspectRef"
:diseaseInfo=
"diseaseInfo"
:form=
"form"
></InspectV2>
<!-- 服药依从性 -->
<!-- 服药依从性 -->
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<van-field
:rules=
"rules.medicationCompliance"
style=
"padding: 0"
>
<van-field
:rules=
"rules.medicationCompliance"
style=
"padding: 0"
>
...
@@ -664,6 +668,10 @@
...
@@ -664,6 +668,10 @@
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
<!-- 治疗方案 -->
<TreatmentPlan
ref=
"treatmentPlan"
:form=
"form"
></TreatmentPlan>
<!-- 转诊 -->
<!-- 转诊 -->
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
...
@@ -734,14 +742,12 @@
...
@@ -734,14 +742,12 @@
<!-- 现场随访照片 -->
<!-- 现场随访照片 -->
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<DocImageUpload
<DocImageUpload
description=
"最多支持上传8个文件,支持上传图片或PDF文件,图片支持上传jpg、png、jpeg格式,文件大小请勿超过10M。"
:imageData=
"form.visitImageList"
lengthMessage=
"抱歉,最多可上传8个文件。"
:imageData=
"[]"
@
change=
"(ids, option) => form.visitImage = ids"
@
change=
"(ids, option) => form.visitImage = ids"
:maxLength=
"8"
:maxLength=
"8"
/>
/>
<!-- 下次随访日期 -->
<!-- 下次随访日期 -->
<div
class=
"label-title"
required
>
下次随访日期
</div>
<div
class=
"label-title
mt-2
"
required
>
下次随访日期
</div>
<van-field
<van-field
v-model=
"form.nextVisitDate"
v-model=
"form.nextVisitDate"
isLink
isLink
...
@@ -836,15 +842,26 @@
...
@@ -836,15 +842,26 @@
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
getChronicKidneyDiseaseForm
}
from
'@/api/doctor/separateFU'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
InspectV2
from
'../../components/InspectV2.vue'
import
TreatmentPlan
from
'../../components/TreatmentPlan.vue'
import
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
},
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
,
InspectV2
,
TreatmentPlan
},
inject
:
[
'pressureObj'
],
inject
:
[
'pressureObj'
],
props
:
{
diseaseInfo
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
data
()
{
return
{
return
{
store
:
useStore
(),
store
:
useStore
(),
...
@@ -1154,6 +1171,14 @@ export default {
...
@@ -1154,6 +1171,14 @@ export default {
showVisitDoctor
:
false
showVisitDoctor
:
false
}
}
},
},
computed
:
{
authInfo
()
{
return
this
.
store
.
authInfo
}
},
created
()
{
this
.
getInfo
()
},
methods
:
{
methods
:
{
checkboxReject
,
checkboxReject
,
calculateBMI
,
calculateBMI
,
...
@@ -1194,6 +1219,8 @@ export default {
...
@@ -1194,6 +1219,8 @@ export default {
},
},
referralUnitChange
(
option
=
{})
{
referralUnitChange
(
option
=
{})
{
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralOfficeId
=
undefined
this
.
form
.
referralOfficeName
=
undefined
},
},
referralOfficeChange
(
option
=
{})
{
referralOfficeChange
(
option
=
{})
{
this
.
form
.
referralOfficeName
=
option
.
officeName
this
.
form
.
referralOfficeName
=
option
.
officeName
...
@@ -1208,23 +1235,67 @@ export default {
...
@@ -1208,23 +1235,67 @@ export default {
},
},
visitUnitChange
(
option
=
{})
{
visitUnitChange
(
option
=
{})
{
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitOfficeId
=
undefined
this
.
form
.
visitOfficeName
=
undefined
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
visitOfficeChange
(
option
=
{})
{
visitOfficeChange
(
option
=
{})
{
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
submit
()
{
submit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
this
.
$refs
.
form
.
validate
().
then
(
async
()
=>
{
// 辅助检查
const
inspectList
=
await
this
.
$refs
.
inspectRef
.
submit
()
// 治疗方案
const
medicateCase
=
await
this
.
$refs
.
treatmentPlan
.
submit
()
const
form
=
fetchDataHandle
(
this
.
form
,
{
const
form
=
fetchDataHandle
(
this
.
form
,
{
symptom
:
'arrToStr'
,
symptom
:
'arrToStr'
,
currentDiagnosis
:
'arrToStr'
currentDiagnosis
:
'arrToStr'
})
})
resolve
(
form
)
resolve
({
...
form
,
inspectList
:
inspectList
,
medicateCase
:
JSON
.
stringify
(
medicateCase
)
})
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
})
})
})
})
},
getInfo
()
{
let
{
id
}
=
this
.
$route
.
query
if
(
id
)
{
getChronicKidneyDiseaseForm
({
id
}).
then
(
res
=>
{
const
form
=
fetchDataHandle
(
res
.
data
,
{
symptom
:
'strToArrNum'
,
currentDiagnosis
:
'strToArrNum'
})
this
.
form
=
form
// 下次随访日期
this
.
form
.
_nextVisitDate
=
this
.
form
.
nextVisitDate
.
split
(
'-'
)
// 随访日期
this
.
form
.
_visitDate
=
this
.
form
.
visitDate
.
split
(
'-'
)
})
}
else
{
// 随访日期
this
.
form
.
visitDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
// 随访单位
this
.
form
.
visitUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
visitUnitName
=
this
.
authInfo
.
unitName
// 随访科室
this
.
form
.
visitOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
visitOfficeName
=
this
.
authInfo
.
officeName
// 随访医生
this
.
form
.
visitDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
visitDoctorName
=
this
.
authInfo
.
nickName
}
}
}
},
},
watch
:
{
watch
:
{
...
...
src/doctor/followUp/separateFU/form/components/CopdForm.vue
View file @
5079fca7
...
@@ -124,9 +124,9 @@
...
@@ -124,9 +124,9 @@
<!-- 心率 -->
<!-- 心率 -->
<div
class=
"label-title mt-2"
required
>
心率
</div>
<div
class=
"label-title mt-2"
required
>
心率
</div>
<van-field
<van-field
v-model=
"form.
signH
eartRate"
v-model=
"form.
h
eartRate"
placeholder=
"0~300,整数"
placeholder=
"0~300,整数"
:rules=
"rules.
signH
eartRate"
:rules=
"rules.
h
eartRate"
class=
"form-input"
class=
"form-input"
>
>
<
template
#
extra
>
<
template
#
extra
>
...
@@ -594,6 +594,168 @@
...
@@ -594,6 +594,168 @@
</div>
</div>
</van-popup>
</van-popup>
</
template
>
</
template
>
<!-- 辅助检查 -->
<div
class=
"label-title mt-2"
>
辅助检查
</div>
<div
class=
"bg-fa mt-2"
>
<van-field
label=
"SpO2"
v-model=
"form.spo2"
placeholder=
"20~100,两位小数"
:rules=
"rules.spo2"
class=
"card-input"
>
<
template
#
extra
>
<span>
%
</span>
</
template
>
</van-field>
<van-field
label=
"FEV1"
v-model=
"form.fev1"
placeholder=
"0~10,2位小数"
:rules=
"rules.fev1"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
L
</span>
</
template
>
</van-field>
<van-field
label=
"FVC"
v-model=
"form.fvc"
placeholder=
"0~10,2位小数"
:rules=
"rules.fvc"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
L
</span>
</
template
>
</van-field>
<van-field
label=
"FEV1/FVC"
v-model=
"form.fev1Fvc"
placeholder=
"0~100,2位小数"
:rules=
"rules.fev1Fvc"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
%
</span>
</
template
>
</van-field>
<van-field
label=
"FEV1%pred"
v-model=
"form.fev1Pred"
placeholder=
"0~100,2位小数"
:rules=
"rules.fev1Pred"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
%
</span>
</
template
>
</van-field>
<van-field
label=
"FVC%pred"
v-model=
"form.fvcPred"
placeholder=
"0~100,2位小数"
:rules=
"rules.fvcPred"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
%
</span>
</
template
>
</van-field>
<van-field
label=
"白细胞计数"
v-model=
"form.wbcCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.wbcCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<van-field
label=
"中性粒细胞计数"
v-model=
"form.nesCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.nesCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<van-field
label=
"嗜酸性粒细胞计数"
v-model=
"form.eosCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.eosCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<van-field
label=
"嗜碱性粒细胞计数"
v-model=
"form.bosCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.bosCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<van-field
label=
"单核细胞计数"
v-model=
"form.moCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.moCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<van-field
label=
"淋巴细胞计数"
v-model=
"form.lymphCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.lymphCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<van-field
label=
"血红蛋白"
v-model=
"form.hgbCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.hgbCount"
class=
"card-input mt-2"
>
<
template
#
extra
>
<span>
g/L
</span>
</
template
>
</van-field>
<van-field
label=
"血小板计数"
v-model=
"form.pltCount"
placeholder=
"0~500,2位小数"
:rules=
"rules.pltCount"
class=
"card-input mt-2 mb-2"
>
<
template
#
extra
>
<span>
x10⁹/L
</span>
</
template
>
</van-field>
<InspectV2
ref=
"inspectRef"
:diseaseInfo=
"diseaseInfo"
:form=
"form"
></InspectV2>
</div>
<!-- 最近三个月内是否有急性加重情况 -->
<!-- 最近三个月内是否有急性加重情况 -->
<div
class=
"label-title mt-2"
required
>
最近三个月内是否有急性加重情况
</div>
<div
class=
"label-title mt-2"
required
>
最近三个月内是否有急性加重情况
</div>
<van-field
:rules=
"rules.acuteExacerbation"
style=
"padding: 0"
>
<van-field
:rules=
"rules.acuteExacerbation"
style=
"padding: 0"
>
...
@@ -764,11 +926,14 @@
...
@@ -764,11 +926,14 @@
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
<!-- 治疗方案 -->
<TreatmentPlan
ref=
"treatmentPlan"
:form=
"form"
></TreatmentPlan>
<!-- 家庭氧疗 -->
<!-- 家庭氧疗 -->
<div
class=
"label-title mt-2"
>
家庭氧疗
</div>
<div
class=
"label-title mt-2"
>
家庭氧疗
</div>
<van-field
<van-field
label=
"每日"
label=
"每日"
label-width=
"36px"
v-model=
"form.otEveryday"
v-model=
"form.otEveryday"
placeholder=
"0~24,整数"
placeholder=
"0~24,整数"
:rules=
"rules.otEveryday"
:rules=
"rules.otEveryday"
...
@@ -780,7 +945,6 @@
...
@@ -780,7 +945,6 @@
</van-field>
</van-field>
<van-field
<van-field
label=
"氧流量"
label=
"氧流量"
label-width=
"48px"
v-model=
"form.otFlow"
v-model=
"form.otFlow"
placeholder=
"0~10,整数"
placeholder=
"0~10,整数"
:rules=
"rules.otFlow"
:rules=
"rules.otFlow"
...
@@ -824,7 +988,6 @@
...
@@ -824,7 +988,6 @@
<div
class=
"label-title mt-2"
required
>
无创呼吸机使用
</div>
<div
class=
"label-title mt-2"
required
>
无创呼吸机使用
</div>
<van-field
<van-field
label=
"每日"
label=
"每日"
label-width=
"36px"
v-model=
"form.nippvEveryday"
v-model=
"form.nippvEveryday"
placeholder=
"0~24,整数"
placeholder=
"0~24,整数"
:rules=
"rules.nippvEveryday"
:rules=
"rules.nippvEveryday"
...
@@ -934,14 +1097,12 @@
...
@@ -934,14 +1097,12 @@
<!-- 现场随访照片 -->
<!-- 现场随访照片 -->
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<DocImageUpload
<DocImageUpload
description=
"最多支持上传8个文件,支持上传图片或PDF文件,图片支持上传jpg、png、jpeg格式,文件大小请勿超过10M。"
:imageData=
"form.visitImageList"
lengthMessage=
"抱歉,最多可上传8个文件。"
:imageData=
"[]"
@
change=
"(ids, option) => form.visitImage = ids"
@
change=
"(ids, option) => form.visitImage = ids"
:maxLength=
"8"
:maxLength=
"8"
/>
/>
<!-- 下次随访日期 -->
<!-- 下次随访日期 -->
<div
class=
"label-title"
required
>
下次随访日期
</div>
<div
class=
"label-title
mt-2
"
required
>
下次随访日期
</div>
<van-field
<van-field
v-model=
"form.nextVisitDate"
v-model=
"form.nextVisitDate"
isLink
isLink
...
@@ -1036,15 +1197,26 @@
...
@@ -1036,15 +1197,26 @@
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
getCopdForm
}
from
'@/api/doctor/separateFU'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
InspectV2
from
'../../components/InspectV2.vue'
import
TreatmentPlan
from
'../../components/TreatmentPlan.vue'
import
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
},
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
,
InspectV2
,
TreatmentPlan
},
inject
:
[
'pressureObj'
],
inject
:
[
'pressureObj'
],
props
:
{
diseaseInfo
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
data
()
{
return
{
return
{
store
:
useStore
(),
store
:
useStore
(),
...
@@ -1098,7 +1270,7 @@ export default {
...
@@ -1098,7 +1270,7 @@ export default {
message
:
`请输入0到100之间的整数`
message
:
`请输入0到100之间的整数`
}
}
],
],
signH
eartRate
:
[
h
eartRate
:
[
{
required
:
true
,
message
:
'请填写心率'
},
{
required
:
true
,
message
:
'请填写心率'
},
{
{
validator
:
(
value
,
rule
)
=>
{
validator
:
(
value
,
rule
)
=>
{
...
@@ -1298,7 +1470,6 @@ export default {
...
@@ -1298,7 +1470,6 @@ export default {
showSymptom
:
false
,
showSymptom
:
false
,
showComplication
:
false
,
showComplication
:
false
,
showVaccinesHistoryHave
:
false
,
showVaccinesHistoryHave
:
false
,
// showAuxiliaryExamination: false
showCurrentDiagnosis
:
false
,
showCurrentDiagnosis
:
false
,
showReferralUnit
:
false
,
showReferralUnit
:
false
,
showReferralOffice
:
false
,
showReferralOffice
:
false
,
...
@@ -1317,6 +1488,14 @@ export default {
...
@@ -1317,6 +1488,14 @@ export default {
showVisitDoctor
:
false
showVisitDoctor
:
false
}
}
},
},
computed
:
{
authInfo
()
{
return
this
.
store
.
authInfo
}
},
created
()
{
this
.
getInfo
()
},
methods
:
{
methods
:
{
checkboxReject
,
checkboxReject
,
calculateBMI
,
calculateBMI
,
...
@@ -1374,6 +1553,8 @@ export default {
...
@@ -1374,6 +1553,8 @@ export default {
},
},
referralUnitChange
(
option
=
{})
{
referralUnitChange
(
option
=
{})
{
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralOfficeId
=
undefined
this
.
form
.
referralOfficeName
=
undefined
},
},
referralOfficeChange
(
option
=
{})
{
referralOfficeChange
(
option
=
{})
{
this
.
form
.
referralOfficeName
=
option
.
officeName
this
.
form
.
referralOfficeName
=
option
.
officeName
...
@@ -1388,24 +1569,71 @@ export default {
...
@@ -1388,24 +1569,71 @@ export default {
},
},
visitUnitChange
(
option
=
{})
{
visitUnitChange
(
option
=
{})
{
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitOfficeId
=
undefined
this
.
form
.
visitOfficeName
=
undefined
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
visitOfficeChange
(
option
=
{})
{
visitOfficeChange
(
option
=
{})
{
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
submit
()
{
submit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
this
.
$refs
.
form
.
validate
().
then
(
async
()
=>
{
// 辅助检查
const
inspectList
=
await
this
.
$refs
.
inspectRef
.
submit
()
// 治疗方案
const
medicateCase
=
await
this
.
$refs
.
treatmentPlan
.
submit
()
const
form
=
fetchDataHandle
(
this
.
form
,
{
const
form
=
fetchDataHandle
(
this
.
form
,
{
symptom
:
'arrToStr'
,
symptom
:
'arrToStr'
,
complication
:
'arrToStr'
,
complication
:
'arrToStr'
,
currentDiagnosis
:
'arrToStr'
currentDiagnosis
:
'arrToStr'
,
vaccinesHistoryHave
:
'arrToStr'
})
resolve
({
...
form
,
inspectList
:
inspectList
,
medicateCase
:
JSON
.
stringify
(
medicateCase
)
})
})
resolve
(
form
)
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
})
})
})
})
},
getInfo
()
{
let
{
id
}
=
this
.
$route
.
query
if
(
id
)
{
getCopdForm
({
id
}).
then
(
res
=>
{
const
form
=
fetchDataHandle
(
res
.
data
,
{
symptom
:
'strToArrNum'
,
complication
:
'strToArrNum'
,
vaccinesHistoryHave
:
'strToArrNum'
,
currentDiagnosis
:
'strToArrNum'
})
this
.
form
=
form
// 下次随访日期
this
.
form
.
_nextVisitDate
=
this
.
form
.
nextVisitDate
.
split
(
'-'
)
// 随访日期
this
.
form
.
_visitDate
=
this
.
form
.
visitDate
.
split
(
'-'
)
})
}
else
{
// 随访日期
this
.
form
.
visitDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
// 随访单位
this
.
form
.
visitUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
visitUnitName
=
this
.
authInfo
.
unitName
// 随访科室
this
.
form
.
visitOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
visitOfficeName
=
this
.
authInfo
.
officeName
// 随访医生
this
.
form
.
visitDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
visitDoctorName
=
this
.
authInfo
.
nickName
}
}
}
},
},
watch
:
{
watch
:
{
...
@@ -1507,7 +1735,10 @@ export default {
...
@@ -1507,7 +1735,10 @@ export default {
padding: 8px 12px;
padding: 8px 12px;
border-radius: 8px;
border-radius: 8px;
}
}
:deep(.label-mr) {
:deep(.van-field) {
margin-right: 8px;
border-radius: .08rem;
.van-field__label {
width: auto;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/doctor/followUp/separateFU/form/components/CoronaryHeartDiseaseForm.vue
View file @
5079fca7
...
@@ -566,7 +566,7 @@
...
@@ -566,7 +566,7 @@
</van-field>
</van-field>
<!-- 辅助检查 -->
<!-- 辅助检查 -->
<InspectV2
ref=
"inspectRef"
:diseaseInfo=
"diseaseInfo"
></InspectV2>
<InspectV2
ref=
"inspectRef"
:diseaseInfo=
"diseaseInfo"
:form=
"form"
></InspectV2>
<!-- 服药依从性 -->
<!-- 服药依从性 -->
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
...
@@ -653,9 +653,6 @@
...
@@ -653,9 +653,6 @@
@
click=
"showCurrentDiagnosis = true"
@
click=
"showCurrentDiagnosis = true"
class=
"form-input"
class=
"form-input"
/>
/>
<!-- 治疗方案 -->
<TreatmentPlan
ref=
"treatmentPlan"
></TreatmentPlan>
<!-- 目前诊断 -->
<!-- 目前诊断 -->
<van-popup
v-model:show=
"showCurrentDiagnosis"
position=
"bottom"
>
<van-popup
v-model:show=
"showCurrentDiagnosis"
position=
"bottom"
>
<div
class=
"p-4"
style=
"height: 100%"
>
<div
class=
"p-4"
style=
"height: 100%"
>
...
@@ -675,6 +672,10 @@
...
@@ -675,6 +672,10 @@
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
<!-- 治疗方案 -->
<TreatmentPlan
ref=
"treatmentPlan"
:form=
"form"
></TreatmentPlan>
<!-- 转诊 -->
<!-- 转诊 -->
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
...
@@ -745,14 +746,12 @@
...
@@ -745,14 +746,12 @@
<!-- 现场随访照片 -->
<!-- 现场随访照片 -->
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<DocImageUpload
<DocImageUpload
description=
"最多支持上传8个文件,支持上传图片或PDF文件,图片支持上传jpg、png、jpeg格式,文件大小请勿超过10M。"
:imageData=
"form.visitImageList"
lengthMessage=
"抱歉,最多可上传8个文件。"
:imageData=
"[]"
@
change=
"(ids, option) => form.visitImage = ids"
@
change=
"(ids, option) => form.visitImage = ids"
:maxLength=
"8"
:maxLength=
"8"
/>
/>
<!-- 下次随访日期 -->
<!-- 下次随访日期 -->
<div
class=
"label-title"
required
>
下次随访日期
</div>
<div
class=
"label-title
mt-2
"
required
>
下次随访日期
</div>
<van-field
<van-field
v-model=
"form.nextVisitDate"
v-model=
"form.nextVisitDate"
isLink
isLink
...
@@ -847,6 +846,7 @@
...
@@ -847,6 +846,7 @@
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
getCoronaryHeartDiseaseForm
}
from
'@/api/doctor/separateFU'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
...
@@ -856,6 +856,7 @@ import DocOfficeDoctor from '@/doctor/components/docOfficeDoctor/DocOfficeDoctor
...
@@ -856,6 +856,7 @@ import DocOfficeDoctor from '@/doctor/components/docOfficeDoctor/DocOfficeDoctor
import
InspectV2
from
'../../components/InspectV2.vue'
import
InspectV2
from
'../../components/InspectV2.vue'
import
TreatmentPlan
from
'../../components/TreatmentPlan.vue'
import
TreatmentPlan
from
'../../components/TreatmentPlan.vue'
import
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
,
InspectV2
,
TreatmentPlan
},
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
,
InspectV2
,
TreatmentPlan
},
inject
:
[
'pressureObj'
],
inject
:
[
'pressureObj'
],
...
@@ -1172,6 +1173,14 @@ export default {
...
@@ -1172,6 +1173,14 @@ export default {
showVisitDoctor
:
false
showVisitDoctor
:
false
}
}
},
},
computed
:
{
authInfo
()
{
return
this
.
store
.
authInfo
}
},
created
()
{
this
.
getInfo
()
},
methods
:
{
methods
:
{
checkboxReject
,
checkboxReject
,
calculateBMI
,
calculateBMI
,
...
@@ -1212,6 +1221,8 @@ export default {
...
@@ -1212,6 +1221,8 @@ export default {
},
},
referralUnitChange
(
option
=
{})
{
referralUnitChange
(
option
=
{})
{
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralOfficeId
=
undefined
this
.
form
.
referralOfficeName
=
undefined
},
},
referralOfficeChange
(
option
=
{})
{
referralOfficeChange
(
option
=
{})
{
this
.
form
.
referralOfficeName
=
option
.
officeName
this
.
form
.
referralOfficeName
=
option
.
officeName
...
@@ -1226,9 +1237,15 @@ export default {
...
@@ -1226,9 +1237,15 @@ export default {
},
},
visitUnitChange
(
option
=
{})
{
visitUnitChange
(
option
=
{})
{
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitOfficeId
=
undefined
this
.
form
.
visitOfficeName
=
undefined
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
visitOfficeChange
(
option
=
{})
{
visitOfficeChange
(
option
=
{})
{
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
submit
()
{
submit
()
{
...
@@ -1252,6 +1269,35 @@ export default {
...
@@ -1252,6 +1269,35 @@ export default {
})
})
})
})
},
getInfo
()
{
let
{
id
}
=
this
.
$route
.
query
if
(
id
)
{
getCoronaryHeartDiseaseForm
({
id
}).
then
(
res
=>
{
const
form
=
fetchDataHandle
(
res
.
data
,
{
symptom
:
'strToArrNum'
,
currentDiagnosis
:
'strToArrNum'
})
this
.
form
=
form
// 下次随访日期
this
.
form
.
_nextVisitDate
=
this
.
form
.
nextVisitDate
.
split
(
'-'
)
// 随访日期
this
.
form
.
_visitDate
=
this
.
form
.
visitDate
.
split
(
'-'
)
})
}
else
{
// 随访日期
this
.
form
.
visitDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
// 随访单位
this
.
form
.
visitUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
visitUnitName
=
this
.
authInfo
.
unitName
// 随访科室
this
.
form
.
visitOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
visitOfficeName
=
this
.
authInfo
.
officeName
// 随访医生
this
.
form
.
visitDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
visitDoctorName
=
this
.
authInfo
.
nickName
}
}
}
},
},
watch
:
{
watch
:
{
...
...
src/doctor/followUp/separateFU/form/components/DyslipidemiaForm.vue
View file @
5079fca7
...
@@ -564,6 +564,10 @@
...
@@ -564,6 +564,10 @@
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<!-- 辅助检查 -->
<InspectV2
ref=
"inspectRef"
:diseaseInfo=
"diseaseInfo"
:form=
"form"
></InspectV2>
<!-- 服药依从性 -->
<!-- 服药依从性 -->
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<van-field
:rules=
"rules.medicationCompliance"
style=
"padding: 0"
>
<van-field
:rules=
"rules.medicationCompliance"
style=
"padding: 0"
>
...
@@ -667,6 +671,10 @@
...
@@ -667,6 +671,10 @@
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
<!-- 治疗方案 -->
<TreatmentPlan
ref=
"treatmentPlan"
:form=
"form"
></TreatmentPlan>
<!-- 转诊 -->
<!-- 转诊 -->
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
...
@@ -737,14 +745,12 @@
...
@@ -737,14 +745,12 @@
<!-- 现场随访照片 -->
<!-- 现场随访照片 -->
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<DocImageUpload
<DocImageUpload
description=
"最多支持上传8个文件,支持上传图片或PDF文件,图片支持上传jpg、png、jpeg格式,文件大小请勿超过10M。"
:imageData=
"form.visitImageList"
lengthMessage=
"抱歉,最多可上传8个文件。"
:imageData=
"[]"
@
change=
"(ids, option) => form.visitImage = ids"
@
change=
"(ids, option) => form.visitImage = ids"
:maxLength=
"8"
:maxLength=
"8"
/>
/>
<!-- 下次随访日期 -->
<!-- 下次随访日期 -->
<div
class=
"label-title"
required
>
下次随访日期
</div>
<div
class=
"label-title
mt-2
"
required
>
下次随访日期
</div>
<van-field
<van-field
v-model=
"form.nextVisitDate"
v-model=
"form.nextVisitDate"
isLink
isLink
...
@@ -839,15 +845,25 @@
...
@@ -839,15 +845,25 @@
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
getDyslipidemiaForm
}
from
'@/api/doctor/separateFU'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
InspectV2
from
'../../components/InspectV2.vue'
import
TreatmentPlan
from
'../../components/TreatmentPlan.vue'
export
default
{
export
default
{
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
},
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
,
InspectV2
,
TreatmentPlan
},
inject
:
[
'pressureObj'
],
inject
:
[
'pressureObj'
],
props
:
{
diseaseInfo
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
data
()
{
return
{
return
{
store
:
useStore
(),
store
:
useStore
(),
...
@@ -1154,6 +1170,9 @@ export default {
...
@@ -1154,6 +1170,9 @@ export default {
showVisitDoctor
:
false
showVisitDoctor
:
false
}
}
},
},
created
()
{
this
.
getInfo
()
},
methods
:
{
methods
:
{
checkboxReject
,
checkboxReject
,
calculateBMI
,
calculateBMI
,
...
@@ -1194,6 +1213,8 @@ export default {
...
@@ -1194,6 +1213,8 @@ export default {
},
},
referralUnitChange
(
option
=
{})
{
referralUnitChange
(
option
=
{})
{
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralOfficeId
=
undefined
this
.
form
.
referralOfficeName
=
undefined
},
},
referralOfficeChange
(
option
=
{})
{
referralOfficeChange
(
option
=
{})
{
this
.
form
.
referralOfficeName
=
option
.
officeName
this
.
form
.
referralOfficeName
=
option
.
officeName
...
@@ -1208,23 +1229,67 @@ export default {
...
@@ -1208,23 +1229,67 @@ export default {
},
},
visitUnitChange
(
option
=
{})
{
visitUnitChange
(
option
=
{})
{
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitOfficeId
=
undefined
this
.
form
.
visitOfficeName
=
undefined
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
visitOfficeChange
(
option
=
{})
{
visitOfficeChange
(
option
=
{})
{
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
submit
()
{
submit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
this
.
$refs
.
form
.
validate
().
then
(
async
()
=>
{
// 辅助检查
const
inspectList
=
await
this
.
$refs
.
inspectRef
.
submit
()
// 治疗方案
const
medicateCase
=
await
this
.
$refs
.
treatmentPlan
.
submit
()
const
form
=
fetchDataHandle
(
this
.
form
,
{
const
form
=
fetchDataHandle
(
this
.
form
,
{
symptom
:
'arrToStr'
,
symptom
:
'arrToStr'
,
currentDiagnosis
:
'arrToStr'
currentDiagnosis
:
'arrToStr'
})
})
resolve
(
form
)
resolve
({
...
form
,
inspectList
:
inspectList
,
medicateCase
:
JSON
.
stringify
(
medicateCase
)
})
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
})
})
})
})
},
getInfo
()
{
let
{
id
}
=
this
.
$route
.
query
if
(
id
)
{
getDyslipidemiaForm
({
id
}).
then
(
res
=>
{
const
form
=
fetchDataHandle
(
res
.
data
,
{
symptom
:
'strToArrNum'
,
currentDiagnosis
:
'strToArrNum'
})
this
.
form
=
form
// 下次随访日期
this
.
form
.
_nextVisitDate
=
this
.
form
.
nextVisitDate
.
split
(
'-'
)
// 随访日期
this
.
form
.
_visitDate
=
this
.
form
.
visitDate
.
split
(
'-'
)
})
}
else
{
// 随访日期
this
.
form
.
visitDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
// 随访单位
this
.
form
.
visitUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
visitUnitName
=
this
.
authInfo
.
unitName
// 随访科室
this
.
form
.
visitOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
visitOfficeName
=
this
.
authInfo
.
officeName
// 随访医生
this
.
form
.
visitDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
visitDoctorName
=
this
.
authInfo
.
nickName
}
}
}
},
},
watch
:
{
watch
:
{
...
...
src/doctor/followUp/separateFU/form/components/StrokeForm.vue
View file @
5079fca7
...
@@ -564,6 +564,10 @@
...
@@ -564,6 +564,10 @@
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<!-- 辅助检查 -->
<InspectV2
ref=
"inspectRef"
:diseaseInfo=
"diseaseInfo"
:form=
"form"
></InspectV2>
<!-- 服药依从性 -->
<!-- 服药依从性 -->
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<div
class=
"label-title mt-2"
required
>
服药依从性
</div>
<van-field
:rules=
"rules.medicationCompliance"
style=
"padding: 0"
>
<van-field
:rules=
"rules.medicationCompliance"
style=
"padding: 0"
>
...
@@ -667,6 +671,10 @@
...
@@ -667,6 +671,10 @@
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
<!-- 治疗方案 -->
<TreatmentPlan
ref=
"treatmentPlan"
:form=
"form"
></TreatmentPlan>
<!-- 转诊 -->
<!-- 转诊 -->
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<div
class=
"label-title mt-2"
required
>
转诊
</div>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
<van-field
:rules=
"rules.isReferral"
style=
"padding: 0"
>
...
@@ -737,14 +745,12 @@
...
@@ -737,14 +745,12 @@
<!-- 现场随访照片 -->
<!-- 现场随访照片 -->
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<div
class=
"label-title mt-2"
>
现场随访照片
</div>
<DocImageUpload
<DocImageUpload
description=
"最多支持上传8个文件,支持上传图片或PDF文件,图片支持上传jpg、png、jpeg格式,文件大小请勿超过10M。"
:imageData=
"form.visitImageList"
lengthMessage=
"抱歉,最多可上传8个文件。"
:imageData=
"[]"
@
change=
"(ids, option) => form.visitImage = ids"
@
change=
"(ids, option) => form.visitImage = ids"
:maxLength=
"8"
:maxLength=
"8"
/>
/>
<!-- 下次随访日期 -->
<!-- 下次随访日期 -->
<div
class=
"label-title"
required
>
下次随访日期
</div>
<div
class=
"label-title
mt-2
"
required
>
下次随访日期
</div>
<van-field
<van-field
v-model=
"form.nextVisitDate"
v-model=
"form.nextVisitDate"
isLink
isLink
...
@@ -839,15 +845,26 @@
...
@@ -839,15 +845,26 @@
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
CheckBtn
from
'@/doctor/components/checkBtn/CheckBtn.vue'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
checkboxReject
,
calculateBMI
,
fetchDataHandle
}
from
'@/utils/common'
import
{
getStrokeForm
}
from
'@/api/doctor/separateFU'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressurePanel
from
'@/doctor/components/bloodPressure/BloodPressurePanel.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
BloodPressureBt
from
'@/doctor/components/bloodPressure/BloodPressureBt.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocImageUpload
from
'@/doctor/components/docImageUpload/DocImageUpload.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
import
InspectV2
from
'../../components/InspectV2.vue'
import
TreatmentPlan
from
'../../components/TreatmentPlan.vue'
import
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
},
components
:
{
CheckBtn
,
BloodPressurePanel
,
BloodPressureBt
,
DocImageUpload
,
DocUnit
,
DocOffice
,
DocOfficeDoctor
,
InspectV2
,
TreatmentPlan
},
inject
:
[
'pressureObj'
],
inject
:
[
'pressureObj'
],
props
:
{
diseaseInfo
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
data
()
{
return
{
return
{
store
:
useStore
(),
store
:
useStore
(),
...
@@ -1154,6 +1171,14 @@ export default {
...
@@ -1154,6 +1171,14 @@ export default {
showVisitDoctor
:
false
showVisitDoctor
:
false
}
}
},
},
computed
:
{
authInfo
()
{
return
this
.
store
.
authInfo
}
},
created
()
{
this
.
getInfo
()
},
methods
:
{
methods
:
{
checkboxReject
,
checkboxReject
,
calculateBMI
,
calculateBMI
,
...
@@ -1167,7 +1192,7 @@ export default {
...
@@ -1167,7 +1192,7 @@ export default {
},
},
symptomConfirm
()
{
symptomConfirm
()
{
let
list
=
[]
let
list
=
[]
this
.
store
.
getDict
(
'CP000
58
'
).
forEach
(
item
=>
{
this
.
store
.
getDict
(
'CP000
64
'
).
forEach
(
item
=>
{
let
selected
=
this
.
form
.
symptom
.
filter
(
e
=>
e
===
item
.
value
)
let
selected
=
this
.
form
.
symptom
.
filter
(
e
=>
e
===
item
.
value
)
if
(
selected
&&
selected
.
length
)
{
if
(
selected
&&
selected
.
length
)
{
list
.
push
(
item
.
name
)
list
.
push
(
item
.
name
)
...
@@ -1194,6 +1219,8 @@ export default {
...
@@ -1194,6 +1219,8 @@ export default {
},
},
referralUnitChange
(
option
=
{})
{
referralUnitChange
(
option
=
{})
{
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralUnitName
=
option
.
unitName
this
.
form
.
referralOfficeId
=
undefined
this
.
form
.
referralOfficeName
=
undefined
},
},
referralOfficeChange
(
option
=
{})
{
referralOfficeChange
(
option
=
{})
{
this
.
form
.
referralOfficeName
=
option
.
officeName
this
.
form
.
referralOfficeName
=
option
.
officeName
...
@@ -1208,23 +1235,67 @@ export default {
...
@@ -1208,23 +1235,67 @@ export default {
},
},
visitUnitChange
(
option
=
{})
{
visitUnitChange
(
option
=
{})
{
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitUnitName
=
option
.
unitName
this
.
form
.
visitOfficeId
=
undefined
this
.
form
.
visitOfficeName
=
undefined
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
visitOfficeChange
(
option
=
{})
{
visitOfficeChange
(
option
=
{})
{
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitOfficeName
=
option
.
officeName
this
.
form
.
visitDoctorId
=
undefined
this
.
form
.
visitDoctorName
=
undefined
},
},
submit
()
{
submit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
this
.
$refs
.
form
.
validate
().
then
(
async
()
=>
{
// 辅助检查
const
inspectList
=
await
this
.
$refs
.
inspectRef
.
submit
()
// 治疗方案
const
medicateCase
=
await
this
.
$refs
.
treatmentPlan
.
submit
()
const
form
=
fetchDataHandle
(
this
.
form
,
{
const
form
=
fetchDataHandle
(
this
.
form
,
{
symptom
:
'arrToStr'
,
symptom
:
'arrToStr'
,
currentDiagnosis
:
'arrToStr'
currentDiagnosis
:
'arrToStr'
})
})
resolve
(
form
)
resolve
({
...
form
,
inspectList
:
inspectList
,
medicateCase
:
JSON
.
stringify
(
medicateCase
)
})
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
})
})
})
})
},
getInfo
()
{
let
{
id
}
=
this
.
$route
.
query
if
(
id
)
{
getStrokeForm
({
id
}).
then
(
res
=>
{
const
form
=
fetchDataHandle
(
res
.
data
,
{
symptom
:
'strToArrNum'
,
currentDiagnosis
:
'strToArrNum'
})
this
.
form
=
form
// 下次随访日期
this
.
form
.
_nextVisitDate
=
this
.
form
.
nextVisitDate
.
split
(
'-'
)
// 随访日期
this
.
form
.
_visitDate
=
this
.
form
.
visitDate
.
split
(
'-'
)
})
}
else
{
// 随访日期
this
.
form
.
visitDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
// 随访单位
this
.
form
.
visitUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
visitUnitName
=
this
.
authInfo
.
unitName
// 随访科室
this
.
form
.
visitOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
visitOfficeName
=
this
.
authInfo
.
officeName
// 随访医生
this
.
form
.
visitDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
visitDoctorName
=
this
.
authInfo
.
nickName
}
}
}
},
},
watch
:
{
watch
:
{
...
...
src/doctor/patientDetail/PatientDetail.vue
View file @
5079fca7
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
query
.
excludeType
=
this
.
diagnoseList
.
map
(
e
=>
e
.
value
).
join
(
','
)
query
.
excludeType
=
this
.
diagnoseList
.
map
(
e
=>
e
.
value
).
join
(
','
)
}
}
if
(
val
===
7
)
{
if
(
val
===
7
)
{
query
.
diseaseType
=
this
.
activeTab
query
.
diseaseType
=
this
.
tabList
[
this
.
activeTab
].
value
}
}
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
option
.
path
,
path
:
option
.
path
,
...
...
src/doctor/patientDetail/components/disease/Visit.vue
View file @
5079fca7
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click=
'toDetail(item)'
>
详情
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click=
'toDetail(item)'
>
详情
</van-button>
</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"
v-if=
"item.allowUpdate == 1"
>
转诊
</van-button>
-->
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click=
'editBtn(item)'
<van-button
round
size=
'small'
class=
'doc-btn-primary'
@
click
.
stop
=
'editBtn(item)'
v-if=
'!(item.allowUpdate !==1 || item.serveType == 5)'
>
修改
v-if=
'!(item.allowUpdate !==1 || item.serveType == 5)'
>
修改
</van-button>
</van-button>
<van-button
round
size=
'small'
class=
'doc-btn-red'
@
click=
'delBtn(item)'
<van-button
round
size=
'small'
class=
'doc-btn-red'
@
click=
'delBtn(item)'
...
@@ -183,6 +183,7 @@ export default {
...
@@ -183,6 +183,7 @@ export default {
query
:
{
query
:
{
residentInfoId
:
item
.
residentInfoId
,
residentInfoId
:
item
.
residentInfoId
,
diseaseType
:
item
.
diseaseType
,
diseaseType
:
item
.
diseaseType
,
serveType
:
item
.
serveType
,
id
:
item
.
relationId
id
:
item
.
relationId
}
}
})
})
...
...
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