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
dc4b62eb
Commit
dc4b62eb
authored
Dec 30, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初筛表单
parent
0723fc54
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
227 additions
and
16 deletions
+227
-16
Doctor.vue
src/doctor/Doctor.vue
+51
-1
archiveCommon.vue
src/doctor/components/archiveCommon/archiveCommon.vue
+0
-7
DocOffice.vue
src/doctor/components/docOffice/DocOffice.vue
+2
-2
DocOfficeDoctor.vue
src/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue
+2
-2
DocUnit.vue
src/doctor/components/docUnit/DocUnit.vue
+2
-2
DoctorInfo.vue
src/doctor/screening/first/DoctorInfo.vue
+164
-0
FormCont.vue
src/doctor/screening/first/FormCont.vue
+0
-0
FristForm.vue
src/doctor/screening/first/FristForm.vue
+6
-2
No files found.
src/doctor/Doctor.vue
View file @
dc4b62eb
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
if
(
!
token
)
{
if
(
!
token
)
{
token
=
sessionStorage
.
getItem
(
'token'
)
token
=
sessionStorage
.
getItem
(
'token'
)
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
token
=
'
6cc7a6e9-e78f-49f2-947b-91fc3e163f55
'
token
=
'
572426d2-302f-4e35-ba69-edc612a205bf
'
}
}
}
}
if
(
token
)
{
if
(
token
)
{
...
@@ -190,4 +190,54 @@ export default {
...
@@ -190,4 +190,54 @@ export default {
display: none;
display: none;
}
}
}
}
// form表单
.doc-form {
.doc-form-label {
color: #595959;
margin-top: 20px;
margin-bottom: 8px;
&[required]::after {
content: "*";
color: red;
font-weight: bold;
margin-left: 4px;
}
}
.van-field {
background-color: #FAFAFA;
padding: 8px 12px;
border-radius: 8px;
&::after {
display: none;
}
}
.no-back {
background-color: #fff;
}
.tip-box {
margin-top: 20px;
margin-bottom: 8px;
.doc-form-label {
margin: 0
}
>span {
color: #8C8C8C;
font-size: 12px;
}
}
}
// 单选
.doc-radio-group {
column-gap: 10px;
.van-radio {
background-color: #FAFAFA;
padding: 8px 12px;
border-radius: 8px;
justify-content: space-between;
margin-right: 0;
flex-grow: 1;
}
}
</
style
>
</
style
>
src/doctor/components/archiveCommon/archiveCommon.vue
View file @
dc4b62eb
<
template
>
<
template
>
<div>
<van-form
ref=
'form'
>
<van-form
ref=
'form'
>
<div
class=
'title'
>
居民信息
</div>
<div
class=
'title'
>
居民信息
</div>
<!--
<div
class=
'label-title'
>
证件类型
</div>
<!--
<div
class=
'label-title'
>
证件类型
</div>
...
@@ -182,7 +181,6 @@
...
@@ -182,7 +181,6 @@
:rules=
'rules.contactPhone'
:rules=
'rules.contactPhone'
/>
/>
</van-form>
</van-form>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -385,11 +383,6 @@ export default {
...
@@ -385,11 +383,6 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
'less'
>
<
style
scoped
lang=
'less'
>
.h-overflow {
height: calc(100vh - 110px);
overflow-y: auto;
}
.title {
.title {
font-weight: bold;
font-weight: bold;
margin-bottom: 20px;
margin-bottom: 20px;
...
...
src/doctor/components/docOffice/DocOffice.vue
View file @
dc4b62eb
...
@@ -57,8 +57,8 @@ export default {
...
@@ -57,8 +57,8 @@ export default {
})
})
},
},
onConfirm
({
selectedValues
,
selectedOptions
})
{
onConfirm
({
selectedValues
,
selectedOptions
})
{
this
.
$emit
(
'update:value'
,
selectedValues
[
0
])
this
.
$emit
(
'update:value'
,
selectedValues
[
0
]
||
{}
)
this
.
$emit
(
'change'
,
selectedOptions
[
0
])
this
.
$emit
(
'change'
,
selectedOptions
[
0
]
||
{}
)
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
},
},
onCancel
()
{
onCancel
()
{
...
...
src/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue
View file @
dc4b62eb
...
@@ -64,8 +64,8 @@ export default {
...
@@ -64,8 +64,8 @@ export default {
})
})
},
},
onConfirm
({
selectedValues
,
selectedOptions
})
{
onConfirm
({
selectedValues
,
selectedOptions
})
{
this
.
$emit
(
'update:value'
,
selectedValues
[
0
])
this
.
$emit
(
'update:value'
,
selectedValues
[
0
]
||
{}
)
this
.
$emit
(
'change'
,
selectedOptions
[
0
])
this
.
$emit
(
'change'
,
selectedOptions
[
0
]
||
{}
)
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
},
},
onCancel
()
{
onCancel
()
{
...
...
src/doctor/components/docUnit/DocUnit.vue
View file @
dc4b62eb
...
@@ -74,8 +74,8 @@ export default {
...
@@ -74,8 +74,8 @@ export default {
return
getUnitByName
(
query
)
return
getUnitByName
(
query
)
},
},
onConfirm
({
selectedValues
,
selectedOptions
})
{
onConfirm
({
selectedValues
,
selectedOptions
})
{
this
.
$emit
(
'update:value'
,
selectedValues
[
0
])
this
.
$emit
(
'update:value'
,
selectedValues
[
0
]
||
{}
)
this
.
$emit
(
'change'
,
selectedOptions
[
0
])
this
.
$emit
(
'change'
,
selectedOptions
[
0
]
||
{}
)
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
this
.
searchStr
=
''
this
.
searchStr
=
''
},
},
...
...
src/doctor/screening/first/DoctorInfo.vue
0 → 100644
View file @
dc4b62eb
<
template
>
<div
class=
"doctor-info"
>
<div
class=
"doc-form-label"
required
>
筛查单位
</div>
<van-field
is-link
v-model=
'form.screenUnitName'
readonly
placeholder=
'请选择'
name=
"screenUnitId"
@
click=
"showUnit = true"
:rules=
"[
{ required: true, message: '请选择' }]"
/>
<DocUnit
v-model:show=
"showUnit"
v-model:value=
"form.screenUnitId"
:valueName=
"form?.screenUnitName"
@
change=
"unitChange"
/>
<div
class=
"doc-form-label"
required
>
筛查科室
</div>
<van-field
is-link
v-model=
'form.screenOfficeName'
readonly
placeholder=
'请选择'
name=
"screenOfficeId"
@
click=
"showOffice = true"
:rules=
"[
{ required: true, message: '请选择' }]"
/>
<DocOffice
v-model:show=
"showOffice"
v-model:value=
"form.screenOfficeId"
:unitId=
"form.screenUnitId"
@
change=
"officeChange"
/>
<div
class=
"doc-form-label"
required
>
筛查医生
</div>
<van-field
is-link
v-model=
'form.screenDoctorName'
readonly
placeholder=
'请选择'
name=
"screenDoctorId"
@
click=
"showDoctor = true"
:rules=
"[
{ required: true, message: '请选择' }]"
/>
<DocOfficeDoctor
v-model:show=
"showDoctor"
:allowClear=
"false"
v-model:value=
"form.screenDoctorId"
:unitId=
"form.screenUnitId"
:officeId=
"form.screenOfficeId"
@
change=
"(option) =>
{ form.screenDoctorName = option.staffName }"
/>
</div>
</
template
>
<
script
>
import
{
useStore
}
from
'@/doctor/store'
import
dayjs
from
'dayjs'
import
DocUnit
from
'@/doctor/components/docUnit/DocUnit.vue'
import
DocOffice
from
'@/doctor/components/docOffice/DocOffice.vue'
import
DocOfficeDoctor
from
'@/doctor/components/docOfficeDoctor/DocOfficeDoctor.vue'
const
defaultForm
=
(
info
=
{})
=>
{
const
form
=
{
createDate
:
undefined
,
// 随访单位
screenUnitId
:
undefined
,
screenUnitName
:
undefined
,
// 随访科室
screenOfficeId
:
undefined
,
screenOfficeName
:
undefined
,
// 随访医生
screenDoctorId
:
undefined
,
screenDoctorName
:
undefined
,
// 录入单位
createUnitId
:
undefined
,
createUnitName
:
undefined
,
// 录入科室
createOfficeId
:
undefined
,
createOfficeName
:
undefined
,
// 录入医生
createDoctorId
:
undefined
,
createDoctorName
:
undefined
}
Reflect
.
ownKeys
(
form
).
forEach
(
key
=>
{
if
(
info
[
key
]
!=
undefined
)
{
form
[
key
]
=
info
[
key
]
}
})
return
form
}
export
default
{
components
:
{
DocUnit
,
DocOffice
,
DocOfficeDoctor
},
props
:
{
info
:
{
default
:
()
=>
({})
}
},
data
()
{
return
{
form
:
{},
store
:
useStore
(),
showUnit
:
false
,
showOffice
:
false
,
showDoctor
:
false
}
},
computed
:
{
authInfo
()
{
return
this
.
store
.
authInfo
}
},
methods
:
{
initForm
()
{
this
.
form
.
createDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
// 随访单位
this
.
form
.
screenUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
screenUnitName
=
this
.
authInfo
.
unitName
// 随访科室
this
.
form
.
screenOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
screenOfficeName
=
this
.
authInfo
.
officeName
// 随访医生
this
.
form
.
screenDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
screenDoctorName
=
this
.
authInfo
.
nickName
// 录入单位
this
.
form
.
createUnitId
=
this
.
authInfo
.
unitId
this
.
form
.
createUnitName
=
this
.
authInfo
.
unitName
// 录入科室
this
.
form
.
createOfficeId
=
this
.
authInfo
.
officeId
this
.
form
.
createOfficeName
=
this
.
authInfo
.
officeName
// 录入医生
this
.
form
.
createDoctorId
=
this
.
authInfo
.
relationId
this
.
form
.
createDoctorName
=
this
.
authInfo
.
nickName
},
unitChange
(
option
=
{})
{
this
.
form
.
screenUnitName
=
option
.
unitName
this
.
form
.
screenDoctorId
=
undefined
this
.
form
.
screenDoctorName
=
undefined
this
.
form
.
screenOfficeId
=
undefined
this
.
form
.
screenOfficeName
=
undefined
},
officeChange
(
option
=
{})
{
this
.
form
.
screenOfficeName
=
option
.
officeName
this
.
form
.
screenDoctorId
=
undefined
this
.
form
.
screenDoctorName
=
undefined
},
submit
()
{
return
this
.
form
}
},
watch
:
{
info
:
{
handler
(
info
)
{
this
.
form
=
defaultForm
(
info
)
if
(
!
this
.
info
.
id
)
{
this
.
initForm
()
}
},
immediate
:
true
}
}
}
</
script
>
<
style
lang=
"less"
scoped
></
style
>
src/doctor/screening/first/FormCont.vue
View file @
dc4b62eb
This diff is collapsed.
Click to expand it.
src/doctor/screening/first/FristForm.vue
View file @
dc4b62eb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
:backFunc="onBack">
</DocNavBar>
:backFunc="onBack">
</DocNavBar>
<div
class=
"p-4 overflow-y-auto grow"
ref=
"all"
>
<div
class=
"p-4 overflow-y-auto grow"
ref=
"all"
>
<archiveCommon
:info=
"baseInfo"
v-if=
"step == 1"
></archiveCommon>
<archiveCommon
:info=
"baseInfo"
v-if=
"step == 1"
></archiveCommon>
<FormCont
v-else-if=
"step == 2"
/>
<FormCont
v-else-if=
"step == 2"
ref=
"FormCont"
/>
<Result
v-else-if=
"step == 3"
:residentInfoId=
"residentInfoId"
/>
<Result
v-else-if=
"step == 3"
:residentInfoId=
"residentInfoId"
/>
</div>
</div>
<div
class=
"shrink-0"
v-if=
"step !== 3"
>
<div
class=
"shrink-0"
v-if=
"step !== 3"
>
...
@@ -65,8 +65,12 @@ export default {
...
@@ -65,8 +65,12 @@ export default {
}
}
},
},
toNext
(
val
)
{
toNext
(
val
)
{
this
.
$refs
.
all
.
scrollTo
(
0
,
0
)
if
(
val
==
3
)
{
this
.
$refs
.
FormCont
.
submit
()
return
}
this
.
step
=
val
this
.
step
=
val
this
.
$refs
.
all
.
scrollTo
(
0
,
0
)
},
},
onBack
()
{
onBack
()
{
if
(
this
.
step
==
1
)
{
if
(
this
.
step
==
1
)
{
...
...
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