Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShanghaiGongwei
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
ShanghaiGongwei
Commits
eef26273
Commit
eef26273
authored
Nov 04, 2022
by
nlp97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请选择、点击选择、保存、重签 等字段
parent
d0147ae3
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
281 additions
and
885 deletions
+281
-885
src/components/page1.vue
+1
-1
src/components/page3.vue
+13
-11
src/components/page4.vue
+100
-325
src/components/page5.vue
+62
-230
src/components/page6.vue
+88
-309
src/lang/Uygur.js
+10
-7
src/lang/zh.js
+6
-1
src/main.js
+1
-1
No files found.
src/components/page1.vue
View file @
eef26273
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditors: ninglupeng
* @LastEditTime: 2022-1
0-31 14:38:03
* @LastEditTime: 2022-1
1-04 16:27:19
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
...
src/components/page3.vue
View file @
eef26273
<!--
<!--
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @Date: 2020-11-24 16:18:58
* @LastEditors:
wsq
* @LastEditors:
ninglupeng
* @LastEditTime: 2022-11-04 1
2:46:25
* @LastEditTime: 2022-11-04 1
6:54:04
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
@@ -29,7 +29,8 @@
...
@@ -29,7 +29,8 @@
</van-field>
</van-field>
<van-field
colon
clearable
name=
"buildingNumber"
:label=
"$t('buildingNumber')"
readonly
:value=
"buildingNumber"
<van-field
colon
clearable
name=
"buildingNumber"
:label=
"$t('buildingNumber')"
readonly
:value=
"buildingNumber"
@
click=
"showbuildingNumber = true"
:rules=
"[{ required: true, message: `请填写${$t('buildingNumber')}` }]"
>
@
click=
"showbuildingNumber = true"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('buildingNumber')}` }]"
>
</van-field>
</van-field>
<van-popup
v-model=
"showbuildingNumber"
position=
"bottom"
>
<van-popup
v-model=
"showbuildingNumber"
position=
"bottom"
>
<van-picker
:title=
"$t('buildingNumber')"
show-toolbar
:columns=
"buildingNumberList"
<van-picker
:title=
"$t('buildingNumber')"
show-toolbar
:columns=
"buildingNumberList"
...
@@ -41,16 +42,17 @@
...
@@ -41,16 +42,17 @@
</van-popup>
</van-popup>
<van-field
colon
clearable
v-model=
"agreementFloor"
name=
"agreementFloor"
:label=
"$t('agreementFloor')"
<van-field
colon
clearable
v-model=
"agreementFloor"
name=
"agreementFloor"
:label=
"$t('agreementFloor')"
:placeholder=
"$t('agreementFloor')"
:rules=
"[{ required: true, message: `请填写${$t('agreementFloor')}` }]"
:placeholder=
"$t('agreementFloor')"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('agreementFloor')}` }]"
@
blur=
"setLocalStorge('agreementFloor')"
></van-field>
@
blur=
"setLocalStorge('agreementFloor')"
></van-field>
<van-field
colon
clearable
v-model=
"bedNumber"
name=
"bedNumber"
:label=
"$t('bedNumber')"
<van-field
colon
clearable
v-model=
"bedNumber"
name=
"bedNumber"
:label=
"$t('bedNumber')"
:placeholder=
"`${$t('bedNumber')}`"
@
blur=
"setLocalStorge('bedNumber')"
:placeholder=
"`${$t('bedNumber')}`"
@
blur=
"setLocalStorge('bedNumber')"
:rules=
"[{ required: true, message: `
请填写
${$t('bedNumber')}` }]"
></van-field>
:rules=
"[{ required: true, message: `
${$t('fillIn')}
${$t('bedNumber')}` }]"
></van-field>
<van-field
colon
clearable
v-model=
"agreementSign"
name=
"agreementSign"
:label=
"$t('agreementSign')"
<van-field
colon
clearable
v-model=
"agreementSign"
name=
"agreementSign"
:label=
"$t('agreementSign')"
:placeholder=
"$t('agreementSign')"
readonly
:placeholder=
"$t('agreementSign')"
readonly
:rules=
"[{ required: true, message: `
请{${$t('agreementSign')}
}` }]"
>
:rules=
"[{ required: true, message: `
${$t('agreementSign')
}` }]"
>
<
template
#
input
>
<
template
#
input
>
<img
class=
"Signimg"
v-show=
"agreementSign"
:src=
"agreementSign"
alt=
""
<img
class=
"Signimg"
v-show=
"agreementSign"
:src=
"agreementSign"
alt=
""
:style=
"
{ width: agreementSign ? '70%' : '' }" />
:style=
"
{ width: agreementSign ? '70%' : '' }" />
...
@@ -62,11 +64,11 @@
...
@@ -62,11 +64,11 @@
<
/van-field
>
<
/van-field
>
<
van
-
field
colon
clearable
readonly
clickable
name
=
"agreementDate"
:
value
=
"agreementDate"
<
van
-
field
colon
clearable
readonly
clickable
name
=
"agreementDate"
:
value
=
"agreementDate"
:
label
=
"$t('agreementDate')"
:
placeholder
=
"`
点击选择${$t('agreementDate')
}
`"
@
click
=
"showCalendar = true
"
:
label
=
"$t('agreementDate')"
:
placeholder
=
"`
${$t('clickSelect')
}
${$t('agreementDate')
}
`
"
:
rules
=
"[
@
click
=
"showCalendar = true"
:
rules
=
"[
{
{
required: true,
required: true,
message: `
请选择
${$t('agreementDate')
}
`,
message: `
${$t('select')
}
${$t('agreementDate')
}
`,
}
,
}
,
]"
/>
]"
/>
<
van
-
popup
v
-
model
=
"showCalendar"
position
=
"bottom"
>
<
van
-
popup
v
-
model
=
"showCalendar"
position
=
"bottom"
>
...
@@ -91,7 +93,7 @@ export default {
...
@@ -91,7 +93,7 @@ export default {
inject
:
[
"setLoading"
],
inject
:
[
"setLoading"
],
data
()
{
data
()
{
return
{
return
{
AgreementMode
:
this
.
$i18n
.
locale
==
'zh'
?
"向贵院出具授权委托书指定代理人"
:
'دوختۇخانغا ۋاكالەتچى بەلگىلەنگەن ھوقۇق بېرىش ھاۋالە خىتى چىقىرىپ بىرىمەن'
,
AgreementMode
:
this
.
$i18n
.
locale
==
'zh'
?
"向贵院出具授权委托书指定代理人"
:
'دوختۇخانغا ۋاكالەتچى بەلگىلەنگەن ھوقۇق بېرىش ھاۋالە خىتى چىقىرىپ بىرىمەن'
,
buildingNumber
:
""
,
//楼号
buildingNumber
:
""
,
//楼号
agreementFloor
:
""
,
//楼层
agreementFloor
:
""
,
//楼层
bedNumber
:
""
,
//床号
bedNumber
:
""
,
//床号
...
@@ -108,7 +110,7 @@ export default {
...
@@ -108,7 +110,7 @@ export default {
}
,
}
,
mounted
()
{
mounted
()
{
this
.
getResource
();
this
.
getResource
();
console
.
log
(
'this.$i18n.locale'
,
this
.
$i18n
.
locale
);
console
.
log
(
'this.$i18n.locale'
,
this
.
$i18n
.
locale
);
this
.
setAgreementDate
();
this
.
setAgreementDate
();
this
.
setLastValue
();
this
.
setLastValue
();
}
,
}
,
...
...
src/components/page4.vue
View file @
eef26273
<!--
<!--
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @Date: 2020-11-24 16:18:58
* @LastEditors:
wsq
* @LastEditors:
ninglupeng
* @LastEditTime: 2022-11-04 1
5:47:22
* @LastEditTime: 2022-11-04 1
6:39:07
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
<div
class=
"page4"
>
<div
class=
"page4"
>
<van-field
<van-field
colon
clearable
v-model=
"patientName"
name=
"patientName"
:label=
"$t('patientName')"
colon
clearable
v-model=
"patientName"
name=
"patientName"
:label=
"$t('patientName')"
:placeholder=
"$t('patientName')"
:placeholder=
"$t('patientName')"
:rules=
"[
{ required: true, message: `请填写${$t('patientName')}` }]"
:rules=
"[
{ required: true, message: `${$t('fillIn')}${$t('patientName')}` }]"
@blur="setLocalStorge('patientName')"
@blur="setLocalStorge('patientName')">
>
</van-field>
</van-field>
<van-field
colon
clearable
name=
"orNotByEntry"
:label=
"$t('orNotByEntry')"
>
<van-field
colon
clearable
name=
"orNotByEntry"
:label=
"$t('orNotByEntry')"
>
<template
#
input
>
<template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('orNotByEntry')"
v-model=
"orNotByEntry"
direction=
"horizontal"
>
@
change=
"setLocalStorge('orNotByEntry')"
v-model=
"orNotByEntry"
direction=
"horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"nationality"
:label=
"$t('nationality')"
readonly
:value=
"nationality"
colon
clearable
name=
"nationality"
:label=
"$t('nationality')"
readonly
:value=
"nationality"
@
click=
"shownationality = true"
@
click=
"shownationality = true"
:rules=
"[{ required: true, message: `请填写${$t('nationality')}` }]"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('nationality')}` }]"
>
>
</van-field>
</van-field>
<van-popup
v-model=
"shownationality"
position=
"bottom"
>
<van-popup
v-model=
"shownationality"
position=
"bottom"
>
<van-picker
<van-picker
:title=
"$t('nationality')"
show-toolbar
:columns=
"nationalityList"
@
confirm=
"
:title=
"$t('nationality')"
show-toolbar
:columns=
"nationalityList"
@
confirm=
"
(value, index) => {
(value, index) => {
nationality = value;
nationality = value;
setLocalStorge('nationality');
setLocalStorge('nationality');
shownationality = false;
shownationality = false;
}
}
"
"
@
cancel=
"
@
cancel=
"
() => {
() => {
shownationality = false;
shownationality = false;
}
}
"
"
/>
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
v-if=
"nationality != $t('China')"
clearable
v-model=
"passportId"
name=
"passportId"
colon
:label=
"$t('passportId')"
:placeholder=
"$t('passportId')"
:rules=
"[
v-if=
"nationality != $t('China')"
clearable
v-model=
"passportId"
name=
"passportId"
:label=
"$t('passportId')"
:placeholder=
"$t('passportId')"
:rules=
"[
{
{
required: nationality != $t('China') ? true : false,
required: nationality != $t('China') ? true : false,
message: `请填写
${$t('passportId')}`,
message: `${$t('fillIn')}
${$t('passportId')}`,
},
},
]"
]"
></van-field>
></van-field>
<van-field
colon
clearable
v-if=
"nationality == $t('China')"
v-model=
"idCard"
name=
"idCard"
<van-field
:label=
"$t('idCard')"
:placeholder=
"$t('idCard')"
@
blur=
"getdate"
:rules=
"[
colon
{ required: true, message: `${$t('fillIn')}${$t('idCard')}` },
clearable
v-if=
"nationality == $t('China')"
v-model=
"idCard"
name=
"idCard"
:label=
"$t('idCard')"
:placeholder=
"$t('idCard')"
@
blur=
"getdate"
:rules=
"[
{ required: true, message: `请填写${$t('idCard')}` },
{ validator, message: `${$t('idCard')}格式错误!` },
{ validator, message: `${$t('idCard')}格式错误!` },
]"
]"
></van-field>
></van-field>
<van-field
colon
clearable
name=
"gender"
:label=
"$t('gender')"
>
<van-field
colon
clearable
name=
"gender"
:label=
"$t('gender')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('gender');
setLocalStorge('gender');
if (gender == $t('boy')) {
if (gender == $t('boy')) {
...
@@ -107,114 +66,54 @@
...
@@ -107,114 +66,54 @@
setValue('gestationalWeeks', '');
setValue('gestationalWeeks', '');
}
}
}
}
"
" v-model="gender" direction="horizontal">
v-model="gender"
direction="horizontal"
>
<van-radio
:name=
"$t('boy')"
>
{{
$t
(
"boy"
)
}}
</van-radio>
<van-radio
:name=
"$t('boy')"
>
{{
$t
(
"boy"
)
}}
</van-radio>
<van-radio
:name=
"$t('girl')"
>
{{
$t
(
"girl"
)
}}
</van-radio>
<van-radio
:name=
"$t('girl')"
>
{{
$t
(
"girl"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
readonly
clickable
name=
"birthday"
:value=
"birthday"
:label=
"$t('birthday')"
colon
:placeholder=
"$t('birthday')"
@
click=
"showbirthday = true"
clearable
:rules=
"[{ required: true, message: `${$t('select')}${$t('birthday')}` }]"
/>
readonly
clickable
name=
"birthday"
:value=
"birthday"
:label=
"$t('birthday')"
:placeholder=
"$t('birthday')"
@
click=
"showbirthday = true"
:rules=
"[{ required: true, message: `请选择${$t('birthday')}` }]"
/>
<van-popup
v-model=
"showbirthday"
position=
"bottom"
>
<van-popup
v-model=
"showbirthday"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
type=
"date"
:min-date=
"minbirthday"
:max-date=
"maxDate"
@
confirm=
"onbirthday"
type=
"date"
@
cancel=
"showbirthday = false"
:formatter=
"formatter"
/>
:min-date=
"minbirthday"
:max-date=
"maxDate"
@
confirm=
"onbirthday"
@
cancel=
"showbirthday = false"
:formatter=
"formatter"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
v-model=
"age"
name=
"age"
:label=
"$t('age')"
:placeholder=
"$t('age')"
type=
"digit"
colon
@
blur=
"setLocalStorge('age')"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('age')}` }]"
>
clearable
</van-field>
v-model=
"age"
name=
"age"
<van-field
colon
clearable
v-model=
"height"
name=
"height"
:label=
"$t('height')"
:placeholder=
"$t('height')"
:label=
"$t('age')"
type=
"digit"
@
blur=
"setLocalStorge('height')"
:placeholder=
"$t('age')"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('height')}` }]"
>
type=
"digit"
@
blur=
"setLocalStorge('age')"
:rules=
"[{ required: true, message: `请填写${$t('age')}` }]"
></van-field>
<van-field
colon
clearable
v-model=
"height"
name=
"height"
:label=
"$t('height')"
:placeholder=
"$t('height')"
type=
"digit"
@
blur=
"setLocalStorge('height')"
:rules=
"[{ required: true, message: `请填写${$t('height')}` }]"
>
<
template
#
extra
>
<
template
#
extra
>
CM
CM
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
v-model=
"weight"
name=
"weight"
:label=
"$t('weight')"
:placeholder=
"$t('weight')"
colon
type=
"number"
@
blur=
"setLocalStorge('weight')"
clearable
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('weight')}` }]"
>
v-model=
"weight"
name=
"weight"
:label=
"$t('weight')"
:placeholder=
"$t('weight')"
type=
"number"
@
blur=
"setLocalStorge('weight')"
:rules=
"[{ required: true, message: `请填写${$t('weight')}` }]"
>
<
template
#
extra
>
<
template
#
extra
>
KG
KG
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"maritalStatus"
:label=
"$t('maritalStatus')"
>
colon
clearable
name=
"maritalStatus"
:label=
"$t('maritalStatus')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('maritalStatus')"
v-model=
"maritalStatus"
@
change=
"setLocalStorge('maritalStatus')"
direction=
"horizontal"
>
v-model=
"maritalStatus"
direction=
"horizontal"
>
<van-radio
:name=
"$t('married')"
>
{{
$t
(
"married"
)
}}
</van-radio>
<van-radio
:name=
"$t('married')"
>
{{
$t
(
"married"
)
}}
</van-radio>
<van-radio
:name=
"$t('unmarried')"
>
{{
$t
(
"unmarried"
)
}}
</van-radio>
<van-radio
:name=
"$t('unmarried')"
>
{{
$t
(
"unmarried"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
v-if=
"gender == $t('girl')"
name=
"isConceive"
:label=
"$t('isConceive')"
>
colon
clearable
v-if=
"gender == $t('girl')"
name=
"isConceive"
:label=
"$t('isConceive')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('isConceive')"
v-model=
"isConceive"
direction=
"horizontal"
>
@
change=
"setLocalStorge('isConceive')"
v-model=
"isConceive"
direction=
"horizontal"
>
<van-radio
:name=
"$t('Nonpregnant')"
>
{{
<van-radio
:name=
"$t('Nonpregnant')"
>
{{
$t
(
"Nonpregnant"
)
$t
(
"Nonpregnant"
)
}}
</van-radio>
}}
</van-radio>
...
@@ -222,199 +121,104 @@
...
@@ -222,199 +121,104 @@
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
v-if=
"gender == $t('girl') && isConceive == $t('pregnant')"
colon
v-model=
"gestationalWeeks"
name=
"gestationalWeeks"
:label=
"$t('gestationalWeeks')"
clearable
:placeholder=
"$t('gestationalWeeks')"
type=
"number"
@
blur=
"setLocalStorge('gestationalWeeks')"
:rules=
"[
v-if=
"gender == $t('girl') && isConceive == $t('pregnant')"
v-model=
"gestationalWeeks"
name=
"gestationalWeeks"
:label=
"$t('gestationalWeeks')"
:placeholder=
"$t('gestationalWeeks')"
type=
"number"
@
blur=
"setLocalStorge('gestationalWeeks')"
:rules=
"[
{
{
required:
required:
gender == $t('girl') && isConceive == $t('pregnant') ? true : false,
gender == $t('girl') && isConceive == $t('pregnant') ? true : false,
message: `请填写
${$t('gestationalWeeks')}`,
message: `${$t('fillIn')}
${$t('gestationalWeeks')}`,
},
},
]"
]"
>
>
<
template
#
extra
>
{{
$t
(
"week"
)
}}
</
template
>
<
template
#
extra
>
{{
$t
(
"week"
)
}}
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"occupation"
:label=
"$t('occupation')"
readonly
:value=
"occupation"
colon
@
click=
"showoccupation = true"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('occupation')}` }]"
>
clearable
name=
"occupation"
:label=
"$t('occupation')"
readonly
:value=
"occupation"
@
click=
"showoccupation = true"
:rules=
"[{ required: true, message: `请填写${$t('occupation')}` }]"
>
</van-field>
</van-field>
<van-popup
v-model=
"showoccupation"
position=
"bottom"
>
<van-popup
v-model=
"showoccupation"
position=
"bottom"
>
<van-picker
<van-picker
:title=
"$t('occupation')"
show-toolbar
:columns=
"occupationList"
@
confirm=
"
:title=
"$t('occupation')"
show-toolbar
:columns=
"occupationList"
@
confirm=
"
(value, index) => {
(value, index) => {
occupation = value;
occupation = value;
setLocalStorge('occupation');
setLocalStorge('occupation');
showoccupation = false;
showoccupation = false;
}
}
"
"
@
cancel=
"
@
cancel=
"
() => {
() => {
showoccupation = false;
showoccupation = false;
}
}
"
"
/>
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
v-show=
"occupation == $t('other')"
clearable
autosize
type=
"textarea"
v-model=
"otherOccupation"
colon
name=
"otherOccupation"
:label=
"$t('otherOccupation')"
:placeholder=
"$t('otherOccupation')"
:rules=
"[
v-show=
"occupation == $t('other')"
clearable
autosize
type=
"textarea"
v-model=
"otherOccupation"
name=
"otherOccupation"
:label=
"$t('otherOccupation')"
:placeholder=
"$t('otherOccupation')"
:rules=
"[
{
{
required: occupation == $t('other') ? true : false,
required: occupation == $t('other') ? true : false,
message: `请填写
${$t('otherOccupation')}`,
message: `${$t('fillIn')}
${$t('otherOccupation')}`,
},
},
]"
]"
@
blur=
"setLocalStorge('otherOccupation')"
></van-field>
@
blur=
"setLocalStorge('otherOccupation')"
></van-field>
<van-field
colon
clearable
v-model=
"contactInformation"
name=
"contactInformation"
:label=
"$t('contactInformation')"
:placeholder=
"$t('contactInformation')"
<van-field
@
blur=
"setLocalStorge('contactInformation')"
:rules=
"[
colon
{ required: true, message: `${$t('fillIn')}${$t('contactInformation')}` },
clearable
]"
></van-field>
v-model=
"contactInformation"
<van-field
colon
clearable
v-model=
"FamilyMembersPhone"
name=
"FamilyMembersPhone"
name=
"contactInformation"
:label=
"$t('FamilyMembersPhone')"
:placeholder=
"$t('FamilyMembersPhone')"
:label=
"$t('contactInformation')"
@
blur=
"setLocalStorge('FamilyMembersPhone')"
:rules=
"[
:placeholder=
"$t('contactInformation')"
{ required: true, message: `${$t('fillIn')}${$t('FamilyMembersPhone')}` },
@
blur=
"setLocalStorge('contactInformation')"
]"
></van-field>
:rules=
"[
{ required: true, message: `请填写${$t('contactInformation')}` },
]"
></van-field>
<van-field
colon
clearable
v-model=
"FamilyMembersPhone"
name=
"FamilyMembersPhone"
:label=
"$t('FamilyMembersPhone')"
:placeholder=
"$t('FamilyMembersPhone')"
@
blur=
"setLocalStorge('FamilyMembersPhone')"
:rules=
"[
{ required: true, message: `请填写${$t('FamilyMembersPhone')}` },
]"
></van-field>
<!-- <van-field colon clearable readonly clickable name="province" :value="province" :label="$t('province')" v-show="false" />
<!-- <van-field colon clearable readonly clickable name="province" :value="province" :label="$t('province')" v-show="false" />
<van-field colon clearable readonly clickable name="city" :value="city" label="户籍地(市)" v-show="false" /> -->
<van-field colon clearable readonly clickable name="city" :value="city" label="户籍地(市)" v-show="false" /> -->
<van-field
<van-field
colon
clearable
readonly
clickable
name=
"Registeredresidence"
:value=
"Registeredresidence"
colon
:label=
"$t('Registeredresidence')"
:placeholder=
"`${$t('clickSelect')}${$t('Registeredresidence')}`"
clearable
@
click=
"showArea = true"
:rules=
"[
readonly
{ required: true, message: `${$t('clickSelect')}${$t('Registeredresidence')}` },
clickable
]"
/>
name=
"Registeredresidence"
:value=
"Registeredresidence"
:label=
"$t('Registeredresidence')"
:placeholder=
"`点击选择${$t('Registeredresidence')}`"
@
click=
"showArea = true"
:rules=
"[
{ required: true, message: `请点击选择${$t('Registeredresidence')}` },
]"
/>
<van-popup
v-model=
"showArea"
position=
"bottom"
>
<van-popup
v-model=
"showArea"
position=
"bottom"
>
<van-area
<van-area
:area-list=
"areaList"
:columns-num=
"2"
@
confirm=
"onConfirm"
@
cancel=
"showArea = false"
/>
:area-list=
"areaList"
:columns-num=
"2"
@
confirm=
"onConfirm"
@
cancel=
"showArea = false"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
autosize
type=
"textarea"
v-model=
"address"
name=
"address"
:label=
"$t('address')"
colon
:placeholder=
"$t('address')"
@
blur=
"setLocalStorge('address')"
clearable
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('address')}` }]"
>
autosize
type=
"textarea"
v-model=
"address"
name=
"address"
:label=
"$t('address')"
:placeholder=
"$t('address')"
@
blur=
"setLocalStorge('address')"
:rules=
"[{ required: true, message: `请填写${$t('address')}` }]"
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"typeOfMedicalInsurance"
:label=
"$t('typeOfMedicalInsurance')"
readonly
colon
:value=
"typeOfMedicalInsurance"
@
click=
"showtypeOfMedicalInsurance = true"
:rules=
"[
clearable
{ required: true, message: `${$t('fillIn')}${$t('typeOfMedicalInsurance')}` },
name=
"typeOfMedicalInsurance"
]"
>
:label=
"$t('typeOfMedicalInsurance')"
readonly
:value=
"typeOfMedicalInsurance"
@
click=
"showtypeOfMedicalInsurance = true"
:rules=
"[
{ required: true, message: `请填写${$t('typeOfMedicalInsurance')}` },
]"
>
</van-field>
</van-field>
<van-popup
v-model=
"showtypeOfMedicalInsurance"
position=
"bottom"
>
<van-popup
v-model=
"showtypeOfMedicalInsurance"
position=
"bottom"
>
<van-picker
<van-picker
:title=
"$t('typeOfMedicalInsurance')"
show-toolbar
:columns=
"typeOfMedicalInsuranceList"
:title=
"$t('typeOfMedicalInsurance')"
show-toolbar
:columns=
"typeOfMedicalInsuranceList"
@
confirm=
"
@
confirm=
"
(value, index) => {
(value, index) => {
typeOfMedicalInsurance = value;
typeOfMedicalInsurance = value;
setLocalStorge('typeOfMedicalInsurance');
setLocalStorge('typeOfMedicalInsurance');
showtypeOfMedicalInsurance = false;
showtypeOfMedicalInsurance = false;
}
}
"
"
@
cancel=
"
@
cancel=
"
() => {
() => {
showtypeOfMedicalInsurance = false;
showtypeOfMedicalInsurance = false;
}
}
"
"
/>
/>
</van-popup>
</van-popup>
<!-- 有无商业保险 -->
<!-- 有无商业保险 -->
<van-field
colon
clearable
name=
"insurance"
:label=
"$t('insurance')"
>
<van-field
colon
clearable
name=
"insurance"
:label=
"$t('insurance')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('insurance')"
v-model=
"insurance"
direction=
"horizontal"
>
@
change=
"setLocalStorge('insurance')"
v-model=
"insurance"
direction=
"horizontal"
>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
style=
"margin-left: -35px;"
colon
clearable
name=
"HasSymptom"
label-width=
"130px"
style=
"margin-left: -35px;"
:label=
"$t('HasSymptom')"
>
colon
clearable
name=
"HasSymptom"
label-width=
"130px"
:label=
"$t('HasSymptom')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
if (HasSymptom == $t('no')) {
if (HasSymptom == $t('no')) {
symptom = [];
symptom = [];
...
@@ -425,73 +229,44 @@
...
@@ -425,73 +229,44 @@
}
}
setLocalStorge('HasSymptom');
setLocalStorge('HasSymptom');
}
}
"
" v-model="HasSymptom" direction="horizontal">
v-model="HasSymptom"
direction="horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
style=
"margin-left: -35px;"
v-if=
"HasSymptom == $t('yes')"
colon
:rules=
"[
style=
"margin-left: -35px;"
v-if=
"HasSymptom == $t('yes')"
colon
:rules=
"[
{
{
required: HasSymptom == $t('yes') ? true : false,
required: HasSymptom == $t('yes') ? true : false,
message: `请选择
${$t('symptom')}`,
message: `${$t('select')}
${$t('symptom')}`,
},
},
]"
]"
clearable
name=
"symptom"
:label=
"$t('symptom')"
label-width=
"130px"
>
clearable
name=
"symptom"
:label=
"$t('symptom')"
label-width=
"130px"
>
<
template
#
input
>
<
template
#
input
>
<van-checkbox-group
<van-checkbox-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('symptom');
setLocalStorge('symptom');
}
}
"
" v-model="symptom" direction="horizontal" class="symptom">
v-model="symptom"
direction="horizontal"
class="symptom"
>
<template
v-for=
"(item, index) in symptomList"
>
<template
v-for=
"(item, index) in symptomList"
>
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
item
.
element
}}
</van-checkbox
{{
item
.
element
}}
</van-checkbox>
>
</
template
>
</
template
>
</van-checkbox-group>
</van-checkbox-group>
</template>
</template>
</van-field>
</van-field>
<van-field
<van-field
style=
"margin-left: 10px;"
colon
v-if=
"symptom.includes($t('other')) && HasSymptom == $t('yes')"
style=
"margin-left: 10px;"
clearable
autosize
type=
"textarea"
v-model=
"otherSymptom"
name=
"otherSymptom"
:label=
"$t('otherSymptom')"
colon
:placeholder=
"$t('otherSymptom')"
:rules=
"[
v-if=
"symptom.includes($t('other')) && HasSymptom == $t('yes')"
clearable
autosize
type=
"textarea"
v-model=
"otherSymptom"
name=
"otherSymptom"
:label=
"$t('otherSymptom')"
:placeholder=
"$t('otherSymptom')"
:rules=
"[
{
{
required:
required:
symptom.includes($t('other')) && HasSymptom == $t('yes')
symptom.includes($t('other')) && HasSymptom == $t('yes')
? true
? true
: false,
: false,
message: `请填写
${$t('otherSymptom')}`,
message: `${$t('fillIn')}
${$t('otherSymptom')}`,
},
},
]"
]"
@
blur=
"setLocalStorge('otherSymptom')"
></van-field>
@
blur=
"setLocalStorge('otherSymptom')"
></van-field>
</div>
</div>
</template>
</template>
...
@@ -527,7 +302,7 @@ export default {
...
@@ -527,7 +302,7 @@ export default {
city
:
""
,
//籍贯 (市)
city
:
""
,
//籍贯 (市)
address
:
""
,
//地址
address
:
""
,
//地址
idCard
:
""
,
//身份证号
idCard
:
""
,
//身份证号
typeOfMedicalInsurance
:
this
.
$i18n
.
locale
==
""
,
//医保类型---默认值 上海医保
typeOfMedicalInsurance
:
""
,
//医保类型---默认值
insurance
:
this
.
$i18n
.
locale
==
"zh"
?
"无"
:
"يوق"
,
//商业保险---默认值 无
insurance
:
this
.
$i18n
.
locale
==
"zh"
?
"无"
:
"يوق"
,
//商业保险---默认值 无
HasSymptom
:
this
.
$i18n
.
locale
==
"zh"
?
"否"
:
"ياق"
,
//有无症状---默认值 否
HasSymptom
:
this
.
$i18n
.
locale
==
"zh"
?
"否"
:
"ياق"
,
//有无症状---默认值 否
...
...
src/components/page5.vue
View file @
eef26273
...
@@ -7,210 +7,95 @@
...
@@ -7,210 +7,95 @@
-->
-->
<
template
>
<
template
>
<div
class=
"page5"
>
<div
class=
"page5"
>
<van-field
<van-field
colon
clearable
name=
"HasOnlineClass"
label-width=
"130px"
:label=
"$t('HasOnlineClass')"
>
colon
clearable
name=
"HasOnlineClass"
label-width=
"130px"
:label=
"$t('HasOnlineClass')"
>
<template
#
input
>
<template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('HasOnlineClass')"
v-model=
"HasOnlineClass"
@
change=
"setLocalStorge('HasOnlineClass')"
direction=
"horizontal"
>
v-model=
"HasOnlineClass"
direction=
"horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"purpose"
:label=
"$t('purpose')"
readonly
:value=
"purpose"
label-width=
"130px"
colon
@
click=
"showPurpose = true"
>
clearable
name=
"purpose"
:label=
"$t('purpose')"
readonly
:value=
"purpose"
label-width=
"130px"
@
click=
"showPurpose = true"
>
</van-field>
</van-field>
<van-popup
v-model=
"showPurpose"
position=
"bottom"
>
<van-popup
v-model=
"showPurpose"
position=
"bottom"
>
<van-picker
<van-picker
:title=
"$t('HasOnlineClass')"
show-toolbar
:columns=
"purposeList"
@
confirm=
"onpurpose"
/>
:title=
"$t('HasOnlineClass')"
show-toolbar
:columns=
"purposeList"
@
confirm=
"onpurpose"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
name=
"workOrNotCovid"
:label=
"$t('workOrNotCovid')"
style=
"margin-left: 40px;"
>
colon
clearable
name=
"workOrNotCovid"
:label=
"$t('workOrNotCovid')"
style=
"margin-left: 40px;"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('workOrNotCovid')"
v-model=
"workOrNotCovid"
@
change=
"setLocalStorge('workOrNotCovid')"
direction=
"horizontal"
>
v-model=
"workOrNotCovid"
direction=
"horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"thirtyDays"
:label=
"$t('thirtyDays')"
label-width=
"130px"
colon
:rules=
"[{ required: true, message: `${$t('select')}${$t('thirtyDays')}` }]"
>
clearable
name=
"thirtyDays"
:label=
"$t('thirtyDays')"
label-width=
"130px"
:rules=
"[{ required: true, message: `请选择${$t('thirtyDays')}` }]"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"setLocalStorge('thirtyDays')"
v-model=
"thirtyDays"
direction=
"horizontal"
>
@
change=
"setLocalStorge('thirtyDays')"
v-model=
"thirtyDays"
direction=
"horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"thirtyDays == $t('yes')"
colon
clearable
v-model=
"LeaveShangHai"
name=
"LeaveShangHai"
v-if=
"thirtyDays == $t('yes')"
:label=
"$t('LeaveShangHai')"
label-width=
"130px"
:placeholder=
"$t('LeaveShangHai')"
type=
"digit"
colon
@
blur=
"setLocalStorge('LeaveShangHai')"
:rules=
"[
clearable
v-model=
"LeaveShangHai"
name=
"LeaveShangHai"
:label=
"$t('LeaveShangHai')"
label-width=
"130px"
:placeholder=
"$t('LeaveShangHai')"
type=
"digit"
@
blur=
"setLocalStorge('LeaveShangHai')"
:rules=
"[
{
{
required: thirtyDays == $t('yes') ? true : false,
required: thirtyDays == $t('yes') ? true : false,
message: `请填写
${$t('LeaveShangHai')}`,
message: `${$t('fillIn')}
${$t('LeaveShangHai')}`,
},
},
{ validator, message: `${$t('More30days')}` }, //天数不能大于三十天
{ validator, message: `${$t('More30days')}` }, //天数不能大于三十天
]"
]"
>
>
<
template
#
extra
v-if=
"thirtyDays == $t('yes')"
>
{{
$t
(
"Day"
)
}}
</
template
>
<
template
#
extra
v-if=
"thirtyDays == $t('yes')"
>
{{
$t
(
"Day"
)
}}
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
readonly
clickable
name=
"normalDate"
:value=
"normalDate"
label-width=
"130px"
colon
:label=
"$t('normalDate')"
:placeholder=
"`${$t('clickSelect')}${$t('normalDate')}`"
clearable
readonly
clickable
name=
"normalDate"
:value=
"normalDate"
label-width=
"130px"
:label=
"$t('normalDate')"
:placeholder=
"`点击选择${$t('normalDate')}`"
@
click=
"showNormalDate = true"
@
click=
"showNormalDate = true"
:rules=
"[{ required: true, message: `请选择${$t('normalDate')}` }]"
:rules=
"[{ required: true, message: `${$t('select')}${$t('normalDate')}` }]"
/>
/>
<van-popup
v-model=
"showNormalDate"
position=
"bottom"
>
<van-popup
v-model=
"showNormalDate"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
type=
"date"
v-model=
"normalDate1"
:min-date=
"minNormalDate"
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onNormalDate"
@
cancel=
"showNormalDate = false"
:formatter=
"formatter"
/>
v-model=
"normalDate1"
:min-date=
"minNormalDate"
:max-date=
"maxDate"
@
confirm=
"onNormalDate"
@
cancel=
"showNormalDate = false"
:formatter=
"formatter"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
readonly
clickable
name=
"unusualDate"
:value=
"unusualDate"
:label=
"$t('unusualDate')"
colon
label-width=
"130px"
:placeholder=
"`${$t('clickSelect')}${$t('unusualDate')}`"
clearable
readonly
clickable
name=
"unusualDate"
:value=
"unusualDate"
:label=
"$t('unusualDate')"
label-width=
"130px"
:placeholder=
"`点击选择${$t('unusualDate')}`"
@
click=
"showUnusualDate = true"
@
click=
"showUnusualDate = true"
:rules=
"[{ required: true, message: `请选择${$t('unusualDate')}` }]"
:rules=
"[{ required: true, message: `${$t('select')}${$t('unusualDate')}` }]"
/>
/>
<van-popup
v-model=
"showUnusualDate"
position=
"bottom"
>
<van-popup
v-model=
"showUnusualDate"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
type=
"date"
v-model=
"unusualDate1"
:min-date=
"minUnusualDate"
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onUnusualDate"
@
cancel=
"showUnusualDate = false"
:formatter=
"formatter"
/>
v-model=
"unusualDate1"
:min-date=
"minUnusualDate"
:max-date=
"maxDate"
@
confirm=
"onUnusualDate"
@
cancel=
"showUnusualDate = false"
:formatter=
"formatter"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
readonly
clickable
label-width=
"130px"
name=
"inHospitalDate"
:value=
"inHospitalDate"
colon
:label=
"$t('inHospitalDate')"
:placeholder=
"`${$t('clickSelect')}${$t('inHospitalDate')}`"
clearable
readonly
clickable
label-width=
"130px"
name=
"inHospitalDate"
:value=
"inHospitalDate"
:label=
"$t('inHospitalDate')"
:placeholder=
"`点击选择${$t('inHospitalDate')}`"
@
click=
"showInHospitalDate = true"
@
click=
"showInHospitalDate = true"
:rules=
"[{ required: true, message: `请选择${$t('inHospitalDate')}` }]"
:rules=
"[{ required: true, message: `${$t('select')}${$t('inHospitalDate')}` }]"
/>
/>
<van-popup
v-model=
"showInHospitalDate"
position=
"bottom"
>
<van-popup
v-model=
"showInHospitalDate"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
type=
"date"
v-model=
"inHospitalDate1"
:min-date=
"minInHospitalDate"
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onInHospitalDate"
@
cancel=
"showInHospitalDate = false"
:formatter=
"formatter"
/>
v-model=
"inHospitalDate1"
:min-date=
"minInHospitalDate"
:max-date=
"maxDate"
@
confirm=
"onInHospitalDate"
@
cancel=
"showInHospitalDate = false"
:formatter=
"formatter"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
autosize
label-width=
"130px"
type=
"textarea"
v-model=
"beforeIsolationPoint"
colon
name=
"beforeIsolationPoint"
:label=
"$t('beforeIsolationPoint')"
clearable
:placeholder=
"`${$t('fillIn')}${$t('beforeIsolationPoint')}`"
@
blur=
"setLocalStorge('beforeIsolationPoint')"
autosize
label-width=
"130px"
type=
"textarea"
v-model=
"beforeIsolationPoint"
name=
"beforeIsolationPoint"
:label=
"$t('beforeIsolationPoint')"
:placeholder=
"`请填写${$t('beforeIsolationPoint')}`"
@
blur=
"setLocalStorge('beforeIsolationPoint')"
:rules=
"[
:rules=
"[
{ required: true, message: `请填写${$t('beforeIsolationPoint')}` },
{ required: true, message: `${$t('fillIn')}${$t('beforeIsolationPoint')}` },
]"
]"
>
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"hasCOVIDVaccine == $t('yes') || hasCOVIDVaccine == $t('no')"
colon
clearable
v-if=
"hasCOVIDVaccine == $t('yes') || hasCOVIDVaccine == $t('no')"
name=
"hasCOVIDVaccine"
label-width=
"130px"
:label=
"$t('hasCOVIDVaccine')"
>
colon
clearable
name=
"hasCOVIDVaccine"
label-width=
"130px"
:label=
"$t('hasCOVIDVaccine')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('hasCOVIDVaccine');
setLocalStorge('hasCOVIDVaccine');
...
@@ -223,59 +108,35 @@
...
@@ -223,59 +108,35 @@
setValue('othervaccines', '');
setValue('othervaccines', '');
}
}
}
}
"
" v-model="hasCOVIDVaccine" direction="horizontal">
v-model="hasCOVIDVaccine"
direction="horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"hasCOVIDVaccine == $t('yes')"
colon
clearable
v-model=
"covidVaccine"
name=
"covidVaccine"
v-if=
"hasCOVIDVaccine == $t('yes')"
:label=
"$t('covidVaccine')"
:placeholder=
"$t('covidVaccine')"
label-width=
"130px"
type=
"number"
colon
clearable
v-model=
"covidVaccine"
name=
"covidVaccine"
:label=
"$t('covidVaccine')"
:placeholder=
"$t('covidVaccine')"
label-width=
"130px"
type=
"number"
@
blur=
"setLocalStorge('covidVaccine')"
@
blur=
"setLocalStorge('covidVaccine')"
:rules=
"[{ required: true, message: `请填写${$t('covidVaccine')}` }]"
:rules=
"[{ required: true, message: `${$t('fillIn')}${$t('covidVaccine')}` }]"
>
>
<
template
#
extra
v-if=
"hasCOVIDVaccine == $t('yes')"
>
{{
<
template
#
extra
v-if=
"hasCOVIDVaccine == $t('yes')"
>
{{
$t
(
"needle"
)
$t
(
"needle"
)
}}
</
template
>
}}
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"hasCOVIDVaccine == $t('yes')"
colon
clearable
label-width=
"130px"
name=
"vaccineType"
v-if=
"hasCOVIDVaccine == $t('yes')"
:label=
"$t('vaccineType')"
:rules=
"[
colon
clearable
label-width=
"130px"
name=
"vaccineType"
:label=
"$t('vaccineType')"
:rules=
"[
{
{
required: hasCOVIDVaccine == $t('yes') ? true : false,
required: hasCOVIDVaccine == $t('yes') ? true : false,
message: `请选择
${$t('vaccineType')}`,
message: `${$t('select')}
${$t('vaccineType')}`,
},
},
]"
]"
>
>
<
template
#
input
>
<
template
#
input
>
<van-checkbox-group
<van-checkbox-group
v-model=
"vaccineType"
direction=
"horizontal"
class=
"vaccineType"
@
change=
"
v-model=
"vaccineType"
direction=
"horizontal"
class=
"vaccineType"
@
change=
"
() =>
{
() =>
{
setLocalStorge('vaccineType');
setLocalStorge('vaccineType');
}
}
"
">
>
<template
v-for=
"(item, index) in vaccineTypeList"
>
<template
v-for=
"(item, index) in vaccineTypeList"
>
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
...
@@ -286,56 +147,27 @@
...
@@ -286,56 +147,27 @@
</template>
</template>
</van-field>
</van-field>
<van-field
<van-field
colon
v-if=
"vaccineType.includes($t('other'))"
clearable
autosize
type=
"textarea"
label-width=
"130px"
colon
v-model=
"othervaccines"
name=
"othervaccines"
:label=
"$t('othervaccines')"
:placeholder=
"$t('othervaccines')"
v-if=
"vaccineType.includes($t('other'))"
clearable
autosize
type=
"textarea"
label-width=
"130px"
v-model=
"othervaccines"
name=
"othervaccines"
:label=
"$t('othervaccines')"
:placeholder=
"$t('othervaccines')"
:rules=
"[
:rules=
"[
{
{
required: vaccineType.includes($t('other')) ? true : false,
required: vaccineType.includes($t('other')) ? true : false,
message: `请填写
${$t('othervaccines')}`,
message: `${$t('fillIn')}
${$t('othervaccines')}`,
},
},
]"
]"
@
blur=
"setLocalStorge('othervaccines')"
></van-field>
@
blur=
"setLocalStorge('othervaccines')"
></van-field>
<van-field
v-if=
"hasCOVIDVaccine == $t('yes')"
colon
clearable
readonly
clickable
name=
"vaccineDate"
:value=
"vaccineDate"
:label=
"$t('vaccineDate')"
label-width=
"130px"
<van-field
:placeholder=
"`${$t('clickSelect')}${$t('vaccineDate')}`"
@
click=
"showVaccineDate = true"
:rules=
"[
v-if=
"hasCOVIDVaccine == $t('yes')"
colon
clearable
readonly
clickable
name=
"vaccineDate"
:value=
"vaccineDate"
:label=
"$t('vaccineDate')"
label-width=
"130px"
:placeholder=
"`点击选择${$t('vaccineDate')}`"
@
click=
"showVaccineDate = true"
:rules=
"[
{
{
required: covidVaccine > 0 ? true : false,
required: covidVaccine > 0 ? true : false,
message: `请选择
${$t('vaccineDate')}`,
message: `${$t('select')}
${$t('vaccineDate')}`,
},
},
]"
]"
/>
/>
<van-popup
v-model=
"showVaccineDate"
position=
"bottom"
>
<van-popup
v-model=
"showVaccineDate"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
type=
"date"
v-model=
"vaccineDate1"
:min-date=
"minVaccineDate"
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onVaccineDate"
@
cancel=
"showVaccineDate = false"
:formatter=
"formatter"
/>
v-model=
"vaccineDate1"
:min-date=
"minVaccineDate"
:max-date=
"maxDate"
@
confirm=
"onVaccineDate"
@
cancel=
"showVaccineDate = false"
:formatter=
"formatter"
/>
</van-popup>
</van-popup>
</div>
</div>
</template>
</template>
...
...
src/components/page6.vue
View file @
eef26273
...
@@ -7,16 +7,9 @@
...
@@ -7,16 +7,9 @@
-->
-->
<
template
>
<
template
>
<div
class=
"page6"
>
<div
class=
"page6"
>
<van-field
<van-field
colon
clearable
name=
"hasHistoryAllergies"
label-width=
"125px"
:label=
"$t('hasHistoryAllergies')"
>
colon
clearable
name=
"hasHistoryAllergies"
label-width=
"125px"
:label=
"$t('hasHistoryAllergies')"
>
<template
#
input
>
<template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('hasHistoryAllergies');
setLocalStorge('hasHistoryAllergies');
if (hasHistoryAllergies == $t('noHave')) {
if (hasHistoryAllergies == $t('noHave')) {
...
@@ -28,66 +21,32 @@
...
@@ -28,66 +21,32 @@
setValue('otherAllergy', '');
setValue('otherAllergy', '');
}
}
}
}
"
" v-model="hasHistoryAllergies" direction="horizontal">
v-model="hasHistoryAllergies"
direction="horizontal"
>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-show=
"hasHistoryAllergies == $t('have')"
colon
clearable
label-width=
"125px"
v-model=
"foodAllergy"
v-show=
"hasHistoryAllergies == $t('have')"
name=
"foodAllergy"
:label=
"$t('foodAllergy')"
:placeholder=
"$t('foodAllergy')"
colon
@
blur=
"setLocalStorge('foodAllergy')"
>
clearable
label-width=
"125px"
v-model=
"foodAllergy"
name=
"foodAllergy"
:label=
"$t('foodAllergy')"
:placeholder=
"$t('foodAllergy')"
@
blur=
"setLocalStorge('foodAllergy')"
>
</van-field>
</van-field>
<!-- 药物过敏原 -->
<!-- 药物过敏原 -->
<van-field
<van-field
v-show=
"hasHistoryAllergies == $t('have')"
colon
clearable
label-width=
"125px"
v-model=
"drugAllergy"
v-show=
"hasHistoryAllergies == $t('have')"
name=
"drugAllergy"
:label=
"$t('drugAllergy')"
:placeholder=
"$t('drugAllergy')"
colon
@
blur=
"setLocalStorge('drugAllergy')"
>
clearable
label-width=
"125px"
v-model=
"drugAllergy"
name=
"drugAllergy"
:label=
"$t('drugAllergy')"
:placeholder=
"$t('drugAllergy')"
@
blur=
"setLocalStorge('drugAllergy')"
>
</van-field>
</van-field>
<!-- 其他过敏原 -->
<!-- 其他过敏原 -->
<van-field
<van-field
v-show=
"hasHistoryAllergies == $t('have')"
colon
clearable
label-width=
"125px"
v-model=
"otherAllergy"
v-show=
"hasHistoryAllergies == $t('have')"
name=
"otherAllergy"
:label=
"$t('otherAllergy')"
:placeholder=
"$t('otherAllergy')"
colon
@
blur=
"setLocalStorge('otherAllergy')"
>
clearable
label-width=
"125px"
v-model=
"otherAllergy"
name=
"otherAllergy"
:label=
"$t('otherAllergy')"
:placeholder=
"$t('otherAllergy')"
@
blur=
"setLocalStorge('otherAllergy')"
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"hasHistorySurgery"
label-width=
"125px"
:label=
"$t('hasHistorySurgery')"
>
colon
clearable
name=
"hasHistorySurgery"
label-width=
"125px"
:label=
"$t('hasHistorySurgery')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('hasHistorySurgery');
setLocalStorge('hasHistorySurgery');
if (hasHistorySurgery == $t('noHave')) {
if (hasHistorySurgery == $t('noHave')) {
...
@@ -96,45 +55,26 @@
...
@@ -96,45 +55,26 @@
setValue('historySurgery', '');
setValue('historySurgery', '');
}
}
}
}
"
" v-model="hasHistorySurgery" direction="horizontal">
v-model="hasHistorySurgery"
direction="horizontal"
>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-show=
"hasHistorySurgery == $t('have')"
colon
clearable
label-width=
"125px"
v-model=
"historySurgery"
v-show=
"hasHistorySurgery == $t('have')"
name=
"historySurgery"
:label=
"$t('historySurgery')"
:placeholder=
"$t('historySurgery')"
colon
@
blur=
"setLocalStorge('historySurgery')"
:rules=
"[
clearable
label-width=
"125px"
v-model=
"historySurgery"
name=
"historySurgery"
:label=
"$t('historySurgery')"
:placeholder=
"$t('historySurgery')"
@
blur=
"setLocalStorge('historySurgery')"
:rules=
"[
{
{
required: hasHistorySurgery == $t('have') ? true : false,
required: hasHistorySurgery == $t('have') ? true : false,
message: `请填写
${$t('historySurgery')}`,
message: `${$t('fillIn')}
${$t('historySurgery')}`,
},
},
]"
]"
>
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"HasPreviousHistory"
label-width=
"125px"
:label=
"$t('HasPreviousHistory')"
>
colon
clearable
name=
"HasPreviousHistory"
label-width=
"125px"
:label=
"$t('HasPreviousHistory')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('HasPreviousHistory');
setLocalStorge('HasPreviousHistory');
if (HasPreviousHistory == $t('noHave')) {
if (HasPreviousHistory == $t('noHave')) {
...
@@ -146,35 +86,22 @@
...
@@ -146,35 +86,22 @@
setValue('tuberculosisDate', '');
setValue('tuberculosisDate', '');
}
}
}
}
"
" v-model="HasPreviousHistory" direction="horizontal">
v-model="HasPreviousHistory"
direction="horizontal"
>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
无
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
无
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"previousHistory"
label-width=
"125px"
:label=
"$t('previousHistory')"
colon
v-show=
"HasPreviousHistory == $t('have')"
:rules=
"[
clearable
name=
"previousHistory"
label-width=
"125px"
:label=
"$t('previousHistory')"
v-show=
"HasPreviousHistory == $t('have')"
:rules=
"[
{
{
required: HasPreviousHistory == $t('have') ? true : false,
required: HasPreviousHistory == $t('have') ? true : false,
message: `请选择
${$t('previousHistory')}`,
message: `${$t('select')}
${$t('previousHistory')}`,
},
},
]"
]"
>
>
<
template
#
input
>
<
template
#
input
>
<van-checkbox-group
<van-checkbox-group
@
change=
"setLocalStorge('previousHistory')"
v-model=
"previousHistory"
>
@
change=
"setLocalStorge('previousHistory')"
v-model=
"previousHistory"
>
<van-cell-group>
<van-cell-group>
<van-cell
v-for=
"(item, index) in previousHistoryList"
:key=
"index"
>
<van-cell
v-for=
"(item, index) in previousHistoryList"
:key=
"index"
>
<van-checkbox
:name=
"item.element"
shape=
"square"
>
{{
<van-checkbox
:name=
"item.element"
shape=
"square"
>
{{
...
@@ -186,71 +113,36 @@
...
@@ -186,71 +113,36 @@
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
v-show=
"previousHistory.includes($t('other'))"
clearable
autosize
type=
"textarea"
colon
v-model=
"otherPastHistory"
name=
"otherPastHistory"
:label=
"$t('otherPastHistory')"
v-show=
"previousHistory.includes($t('other'))"
:placeholder=
"$t('otherPastHistory')"
:rules=
"[
clearable
autosize
type=
"textarea"
v-model=
"otherPastHistory"
name=
"otherPastHistory"
:label=
"$t('otherPastHistory')"
:placeholder=
"$t('otherPastHistory')"
:rules=
"[
{
{
required: previousHistory.includes($t('other')) ? true : false,
required: previousHistory.includes($t('other')) ? true : false,
message: `请填写
${$t('otherPastHistory')}`,
message: `${$t('fillIn')}
${$t('otherPastHistory')}`,
},
},
]"
]"
@
blur=
"setLocalStorge('otherPastHistory')"
></van-field>
@
blur=
"setLocalStorge('otherPastHistory')"
></van-field>
<van-field
colon
clearable
readonly
clickable
v-if=
"
<van-field
colon
clearable
readonly
clickable
v-if=
"
HasPreviousHistory != $t('noHave') && previousHistory.includes('肺结核')
HasPreviousHistory != $t('noHave') && previousHistory.includes('肺结核')
"
"
:rules=
"[
:rules=
"[
{
{
required:
required:
HasPreviousHistory != $t('noHave') &&
HasPreviousHistory != $t('noHave') &&
previousHistory.includes('肺结核')
previousHistory.includes('肺结核')
? true
? true
: false,
: false,
message: `请选择
${$t('tuberculosisDate')}`,
message: `${$t('select')}
${$t('tuberculosisDate')}`,
},
},
]"
]"
name=
"tuberculosisDate"
:value=
"tuberculosisDate"
:label=
"$t('tuberculosisDate')"
name=
"tuberculosisDate"
:placeholder=
"`${$t('clickSelect')}${$t('tuberculosisDate')}`"
@
click=
"showPicker = true"
/>
:value=
"tuberculosisDate"
:label=
"$t('tuberculosisDate')"
:placeholder=
"`点击选择${$t('tuberculosisDate')}`"
@
click=
"showPicker = true"
/>
<van-popup
v-model=
"showPicker"
position=
"bottom"
>
<van-popup
v-model=
"showPicker"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
:min-date=
"minDate"
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onConfirm"
:min-date=
"minDate"
@
cancel=
"showPicker = false"
:formatter=
"formatter"
v-model=
"deathDate2"
/>
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onConfirm"
@
cancel=
"showPicker = false"
:formatter=
"formatter"
v-model=
"deathDate2"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
name=
"whetherSmoking"
:label=
"$t('whetherSmoking')"
label-width=
"125px"
>
colon
clearable
name=
"whetherSmoking"
:label=
"$t('whetherSmoking')"
label-width=
"125px"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('whetherSmoking');
setLocalStorge('whetherSmoking');
if (whetherSmoking == $t('no')) {
if (whetherSmoking == $t('no')) {
...
@@ -264,30 +156,17 @@
...
@@ -264,30 +156,17 @@
setValue('whetherNoSmoking', '');
setValue('whetherNoSmoking', '');
}
}
}
}
"
" v-model="whetherSmoking" direction="horizontal">
v-model="whetherSmoking"
direction="horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
label-width=
"125px"
name=
"smokingTypes"
:label=
"$t('smokingTypes')"
colon
v-if=
"whetherSmoking == '是'"
>
clearable
label-width=
"125px"
name=
"smokingTypes"
:label=
"$t('smokingTypes')"
v-if=
"whetherSmoking == '是'"
>
<
template
#
input
>
<
template
#
input
>
<van-checkbox-group
<van-checkbox-group
@
change=
"setLocalStorge('smokingTypes')"
v-model=
"smokingTypes"
@
change=
"setLocalStorge('smokingTypes')"
direction=
"horizontal"
class=
"smokingTypes"
>
v-model=
"smokingTypes"
direction=
"horizontal"
class=
"smokingTypes"
>
<template
v-for=
"(item, index) in smokingTypesList"
>
<template
v-for=
"(item, index) in smokingTypesList"
>
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
item
.
element
item
.
element
...
@@ -297,53 +176,28 @@
...
@@ -297,53 +176,28 @@
</template>
</template>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"whetherSmoking == $t('yes')"
colon
clearable
label-width=
"125px"
v-model=
"smokingYears"
v-if=
"whetherSmoking == $t('yes')"
name=
"smokingYears"
:label=
"$t('smokingYears')"
:placeholder=
"`${$t('smokingYears')}`"
type=
"digit"
colon
clearable
label-width=
"125px"
v-model=
"smokingYears"
name=
"smokingYears"
:label=
"$t('smokingYears')"
:placeholder=
"`${$t('smokingYears')}`"
type=
"digit"
@
blur=
"setLocalStorge('smokingYears')"
@
blur=
"setLocalStorge('smokingYears')"
:rules=
"[{ required: false, message: `请填写${$t('smokingYears')}` }]"
:rules=
"[{ required: false, message: `${$t('fillIn')}${$t('smokingYears')}` }]"
>
>
<
template
#
extra
>
<
template
#
extra
>
{{
$t
(
"year"
)
}}
{{
$t
(
"year"
)
}}
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"whetherSmoking == $t('yes')"
label-width=
"125px"
colon
clearable
v-model=
"smokingCount"
v-if=
"whetherSmoking == $t('yes')"
name=
"smokingCount"
:label=
"$t('smokingCount')"
:placeholder=
"$t('smokingCount')"
type=
"digit"
label-width=
"125px"
colon
clearable
v-model=
"smokingCount"
name=
"smokingCount"
:label=
"$t('smokingCount')"
:placeholder=
"$t('smokingCount')"
type=
"digit"
@
blur=
"setLocalStorge('smokingCount')"
@
blur=
"setLocalStorge('smokingCount')"
:rules=
"[{ required: false, message: `请填写${$t('smokingCount')}` }]"
:rules=
"[{ required: false, message: `${$t('fillIn')}${$t('smokingCount')}` }]"
>
>
<
template
#
extra
>
<
template
#
extra
>
{{
$t
(
"branch"
)
}}
{{
$t
(
"branch"
)
}}
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
label-width=
"125px"
name=
"whetherNoSmoking"
:label=
"$t('whetherNoSmoking')"
colon
v-if=
"whetherSmoking == $t('yes')"
>
clearable
label-width=
"125px"
name=
"whetherNoSmoking"
:label=
"$t('whetherNoSmoking')"
v-if=
"whetherSmoking == $t('yes')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('whetherNoSmoking');
setLocalStorge('whetherNoSmoking');
if (whetherNoSmoking == $t('no')) {
if (whetherNoSmoking == $t('no')) {
...
@@ -351,44 +205,25 @@
...
@@ -351,44 +205,25 @@
setValue('noSmokingYears', '');
setValue('noSmokingYears', '');
}
}
}
}
"
" v-model="whetherNoSmoking" direction="horizontal">
v-model="whetherNoSmoking"
direction="horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"whetherNoSmoking == $t('yes')"
colon
label-width=
"125px"
clearable
v-model=
"noSmokingYears"
v-if=
"whetherNoSmoking == $t('yes')"
name=
"noSmokingYears"
:label=
"$t('noSmokingYears')"
:placeholder=
"$t('noSmokingYears')"
type=
"digit"
colon
label-width=
"125px"
clearable
v-model=
"noSmokingYears"
name=
"noSmokingYears"
:label=
"$t('noSmokingYears')"
:placeholder=
"$t('noSmokingYears')"
type=
"digit"
@
blur=
"setLocalStorge('noSmokingYears')"
@
blur=
"setLocalStorge('noSmokingYears')"
:rules=
"[{ required: false, message: `请填写${$t('noSmokingYears')}` }]"
:rules=
"[{ required: false, message: `${$t('fillIn')}${$t('noSmokingYears')}` }]"
>
>
<
template
#
extra
>
<
template
#
extra
>
{{
$t
(
"year"
)
}}
{{
$t
(
"year"
)
}}
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
colon
clearable
name=
"whetherPassivitySmoking"
:label=
"$t('noSmokingYears')"
label-width=
"125px"
>
colon
clearable
name=
"whetherPassivitySmoking"
:label=
"$t('noSmokingYears')"
label-width=
"125px"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('whetherPassivitySmoking');
setLocalStorge('whetherPassivitySmoking');
if (whetherPassivitySmoking == $t('no')) {
if (whetherPassivitySmoking == $t('no')) {
...
@@ -396,54 +231,29 @@
...
@@ -396,54 +231,29 @@
setValue('passivitySmokingYears', '');
setValue('passivitySmokingYears', '');
}
}
}
}
"
" v-model="whetherPassivitySmoking" direction="horizontal">
v-model="whetherPassivitySmoking"
direction="horizontal"
>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('yes')"
>
{{
$t
(
"yes"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
<van-radio
:name=
"$t('no')"
>
{{
$t
(
"no"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"whetherPassivitySmoking == $t('yes')"
colon
label-width=
"125px"
clearable
v-if=
"whetherPassivitySmoking == $t('yes')"
v-model=
"passivitySmokingYears"
name=
"passivitySmokingYears"
:label=
"$t('passivitySmokingYears')"
colon
:placeholder=
"$t('passivitySmokingYears')"
type=
"digit"
@
blur=
"setLocalStorge('passivitySmokingYears')"
>
label-width=
"125px"
clearable
v-model=
"passivitySmokingYears"
name=
"passivitySmokingYears"
:label=
"$t('passivitySmokingYears')"
:placeholder=
"$t('passivitySmokingYears')"
type=
"digit"
@
blur=
"setLocalStorge('passivitySmokingYears')"
>
<
template
#
extra
>
<
template
#
extra
>
{{
$t
(
"year"
)
}}
{{
$t
(
"year"
)
}}
</
template
>
</
template
>
</van-field>
</van-field>
<van-popup
v-model=
"showPicker"
position=
"bottom"
>
<van-popup
v-model=
"showPicker"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
:min-date=
"minDate"
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onConfirm"
:min-date=
"minDate"
@
cancel=
"showPicker = false"
:formatter=
"formatter"
/>
:max-date=
"maxDate"
type=
"date"
@
confirm=
"onConfirm"
@
cancel=
"showPicker = false"
:formatter=
"formatter"
/>
</van-popup>
</van-popup>
<van-field
<van-field
colon
clearable
name=
"yesOrNoCt"
label-width=
"125px"
:label=
"$t('yesOrNoCt')"
>
colon
clearable
name=
"yesOrNoCt"
label-width=
"125px"
:label=
"$t('yesOrNoCt')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('yesOrNoCt');
setLocalStorge('yesOrNoCt');
if (yesOrNoCt == $t('noHave')) {
if (yesOrNoCt == $t('noHave')) {
...
@@ -453,69 +263,38 @@
...
@@ -453,69 +263,38 @@
setValue('ChestCTDate', '');
setValue('ChestCTDate', '');
}
}
}
}
"
" v-model="yesOrNoCt" direction="horizontal">
v-model="yesOrNoCt"
direction="horizontal"
>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"yesOrNoCt == $t('have')"
colon
clearable
name=
"ChestCT"
label-width=
"125px"
v-if=
"yesOrNoCt == $t('have')"
:label=
"$t('ChestCT')"
>
colon
clearable
name=
"ChestCT"
label-width=
"125px"
:label=
"$t('ChestCT')"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
@
change=
"
@
change=
"
() =>
{
() =>
{
setLocalStorge('ChestCT');
setLocalStorge('ChestCT');
}
}
"
" v-model="ChestCT" direction="horizontal">
v-model="ChestCT"
direction="horizontal"
>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('have')"
>
{{
$t
(
"have"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
<van-radio
:name=
"$t('noHave')"
>
{{
$t
(
"noHave"
)
}}
</van-radio>
</van-radio-group>
</van-radio-group>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
v-if=
"yesOrNoCt == $t('have')"
colon
clearable
readonly
clickable
name=
"ChestCTDate"
v-if=
"yesOrNoCt == $t('have')"
:value=
"ChestCTDate"
:label=
"$t('ChestCTDate')"
label-width=
"125px"
colon
:placeholder=
"`${$t('clickSelect')}${$t('ChestCTDate')}`"
@
click=
"showCalendar = true"
:rules=
"[
clearable
readonly
clickable
name=
"ChestCTDate"
:value=
"ChestCTDate"
:label=
"$t('ChestCTDate')"
label-width=
"125px"
:placeholder=
"`点击选择${$t('ChestCTDate')}`"
@
click=
"showCalendar = true"
:rules=
"[
{
{
required: ChestCT == $t('have') ? true : false,
required: ChestCT == $t('have') ? true : false,
message: `请选择
${$t('ChestCTDate')}`,
message: `${$t('select')}
${$t('ChestCTDate')}`,
},
},
]"
]"
/>
/>
<van-popup
v-model=
"showCalendar"
position=
"bottom"
>
<van-popup
v-model=
"showCalendar"
position=
"bottom"
>
<van-datetime-picker
<van-datetime-picker
type=
"date"
:min-date=
"minChestCTDate"
:max-date=
"maxDate"
@
confirm=
"onChestCT"
type=
"date"
@
cancel=
"showCalendar = false"
:formatter=
"formatter"
v-model=
"ChestCTDate1"
/>
:min-date=
"minChestCTDate"
:max-date=
"maxDate"
@
confirm=
"onChestCT"
@
cancel=
"showCalendar = false"
:formatter=
"formatter"
v-model=
"ChestCTDate1"
/>
</van-popup>
</van-popup>
</div>
</div>
</template>
</template>
...
@@ -583,10 +362,10 @@ export default {
...
@@ -583,10 +362,10 @@ export default {
];
];
//烟草类型
//烟草类型
this
.
smokingTypesList
=
[
this
.
smokingTypesList
=
[
{
element
:
'نورمال تاماكا'
},
{
element
:
'نورمال تاماكا'
},
{
element
:
'شۆ جيا'
},
{
element
:
'شۆ جيا'
},
{
element
:
'توكلۇق تاماكا'
},
{
element
:
'توكلۇق تاماكا'
},
{
element
:
'چىلىم'
}
{
element
:
'چىلىم'
}
];
];
}
}
...
@@ -664,7 +443,7 @@ export default {
...
@@ -664,7 +443,7 @@ export default {
this
.
setLoading
(
true
);
this
.
setLoading
(
true
);
this
.
$http
.
get
(
`/Research/Resource`
,
{}).
then
((
data
)
=>
{
this
.
$http
.
get
(
`/Research/Resource`
,
{}).
then
((
data
)
=>
{
console
.
log
(
'data'
,
data
);
console
.
log
(
'data'
,
data
);
this
.
previousHistoryList
=
data
.
filter
((
item
)
=>
{
this
.
previousHistoryList
=
data
.
filter
((
item
)
=>
{
return
item
.
category
==
"既往史"
;
return
item
.
category
==
"既往史"
;
});
});
...
...
src/lang/Uygur.js
View file @
eef26273
/*
/*
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2022-10-31 14:22:41
* @Date: 2022-10-31 14:22:41
* @LastEditors:
wsq
* @LastEditors:
ninglupeng
* @LastEditTime: 2022-11-04 1
3:50:40
* @LastEditTime: 2022-11-04 1
6:39:58
* @Description:
* @Description:
*/
*/
module
.
exports
=
{
module
.
exports
=
{
...
@@ -12,9 +12,9 @@ module.exports = {
...
@@ -12,9 +12,9 @@ module.exports = {
'project'
:
' دوختۇرخانىغا كىرگەن ئۇچۇرنى توپلاش '
,
'project'
:
' دوختۇرخانىغا كىرگەن ئۇچۇرنى توپلاش '
,
'paragraph1'
:
'تىببى خادىملار دوختۇرخانىدا يېتىپ داۋالانغان مەزگىلدە ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىدىن تولۇق بەھرىمان بولۇشىڭىزغا كاپالەتلىك قىلىش ئۈچۈن، كېسەللىك ئەھۋالى، ئاساسلىق داۋالاش تەدبىرلىرى، داۋالاش خەۋپ-خەتىرى قاتارلىق ئەھۋاللارنى ئۇقتۇرۇپ، كېسەللىك توغرىسىدىكى مەسلىھەتلىرىڭىزگە جاۋاب بېرىدۇ.سىزنىڭ تولۇق ئەھۋالدىن خەۋەردار بولۇشىڭنى ئالماي ۋە ئىمزا قويۇپ ماقۇللىقىڭىز ئالمايلا تىببى خادىملار ئوپېراتسىيە قىلىش قاتارلىق زور داۋالاش قىلمىشىنى قىلسا بولمايدۇ. لېكىن ھەرقايسى كىشىلەرنىڭ پسىخىكىلىق بەرداشلىق بېرىش ئىقتىدارى ئوخشىمىغاچقا ھەمدە كېسەللىكنىڭ تەرەققىياتىنى مۆلچەرلىگىلى بولمايدىغان بولغاچقا، داۋالاشقا پايدىلىق بولۇش ئۈچۈن، سىز تولۇق ئىشەنگەن بىر ۋاكالەتچىگە ھاۋالە قىلىپ، ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىڭىزنى ۋاكالىتەن يۈرگۈزۈشكە ھوقۇق بېرىڭ.دوختۇرخانىمىز سىزنىڭ ئىمزا قويۇپ بەرگەن ھوقۇق ھاۋالە خېتىڭىزگە ئاساسەن، ۋاكالەتچىنىڭ ۋاكالەتچىلىك قىلمىشىغا قاراپ ئۆزىڭىزنىڭ ھەقىقىي مەنىسىگە ئاساسەن ئىپادىلىنىدۇ. ئەگەر سىزنىڭ ئاخىرقى 18 ياشقا توشقان ياكى ھەق تەلەپ قىلمىش ئىقتىدارىڭىز ۋە ھەق تەلەپ قىلمىشىنى چەكلەش ئىقتىدارىڭىز بولمىسا، سىزنىڭ قانۇندا بەلگىلەنگەن ھامىيلىقىڭىز سىزنىڭ قانۇندا بەلگىلەنگەن دەۋالاشقۇچىڭىز ئۈچۈن، ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىڭىزنى ۋاكالىتەن يۈرگۈزىدۇ. '
,
'paragraph1'
:
'تىببى خادىملار دوختۇرخانىدا يېتىپ داۋالانغان مەزگىلدە ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىدىن تولۇق بەھرىمان بولۇشىڭىزغا كاپالەتلىك قىلىش ئۈچۈن، كېسەللىك ئەھۋالى، ئاساسلىق داۋالاش تەدبىرلىرى، داۋالاش خەۋپ-خەتىرى قاتارلىق ئەھۋاللارنى ئۇقتۇرۇپ، كېسەللىك توغرىسىدىكى مەسلىھەتلىرىڭىزگە جاۋاب بېرىدۇ.سىزنىڭ تولۇق ئەھۋالدىن خەۋەردار بولۇشىڭنى ئالماي ۋە ئىمزا قويۇپ ماقۇللىقىڭىز ئالمايلا تىببى خادىملار ئوپېراتسىيە قىلىش قاتارلىق زور داۋالاش قىلمىشىنى قىلسا بولمايدۇ. لېكىن ھەرقايسى كىشىلەرنىڭ پسىخىكىلىق بەرداشلىق بېرىش ئىقتىدارى ئوخشىمىغاچقا ھەمدە كېسەللىكنىڭ تەرەققىياتىنى مۆلچەرلىگىلى بولمايدىغان بولغاچقا، داۋالاشقا پايدىلىق بولۇش ئۈچۈن، سىز تولۇق ئىشەنگەن بىر ۋاكالەتچىگە ھاۋالە قىلىپ، ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىڭىزنى ۋاكالىتەن يۈرگۈزۈشكە ھوقۇق بېرىڭ.دوختۇرخانىمىز سىزنىڭ ئىمزا قويۇپ بەرگەن ھوقۇق ھاۋالە خېتىڭىزگە ئاساسەن، ۋاكالەتچىنىڭ ۋاكالەتچىلىك قىلمىشىغا قاراپ ئۆزىڭىزنىڭ ھەقىقىي مەنىسىگە ئاساسەن ئىپادىلىنىدۇ. ئەگەر سىزنىڭ ئاخىرقى 18 ياشقا توشقان ياكى ھەق تەلەپ قىلمىش ئىقتىدارىڭىز ۋە ھەق تەلەپ قىلمىشىنى چەكلەش ئىقتىدارىڭىز بولمىسا، سىزنىڭ قانۇندا بەلگىلەنگەن ھامىيلىقىڭىز سىزنىڭ قانۇندا بەلگىلەنگەن دەۋالاشقۇچىڭىز ئۈچۈن، ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىڭىزنى ۋاكالىتەن يۈرگۈزىدۇ. '
,
"paragraph2"
:
'دوختۇر
سىزگە ئەڭ ياخشى داۋالاش لايىھىسىنى تۈزۈپ بېرىش ئۈچۈن، چوقۇم دوختۇرغا كېسەللىك ماتېرىياللىرى ۋە ئالاقىدار ئەھۋاللىرىڭىزنى ھەقىقىي تەمىنلەڭ.
'
,
"paragraph2"
:
'دوختۇر
نىڭ سىزنى ئەڭ ياخشى داۋالاش لايىھەسى تۈزۈشى ئۈچۈن ، سىز چوقۇم ئوبيېكتىپ ، دوختۇرغا ئۆزىڭىزنىڭ كېسەللىك ماتېرىيالى ۋە مۇناسىۋەتلىك ئەھۋاللارنى ئېيتىپ بېرىشىڭىز كېرەك.
'
,
"paragraph3"
:
'
特此告知
'
,
"paragraph3"
:
'
ئالاھىدە ئۇقتۇرۇپ قويۇشى كېرەك.
'
,
"isAgree"
:
'
上述告知书内容本人己充分了解
'
,
"isAgree"
:
'
يۇقىرىقى ئۇقتۇرۇشنىڭ مەزمۇنىنى مەن تولۇق چۈشەندىم.
'
,
//第三页
//第三页
...
@@ -28,9 +28,9 @@ module.exports = {
...
@@ -28,9 +28,9 @@ module.exports = {
"agreementSign"
:
'بىمارنىڭ ئىمزاسى'
,
// 患者签字
"agreementSign"
:
'بىمارنىڭ ئىمزاسى'
,
// 患者签字
"agreementDate"
:
'ئىمزا قويغان ۋاقتى'
,
// 签字日期
"agreementDate"
:
'ئىمزا قويغان ۋاقتى'
,
// 签字日期
"countersign"
:
'
重签
'
,
//重签
"countersign"
:
'
قايتا ئىمزا قويۇش.
'
,
//重签
"clickSign"
:
'بۇيەرنى بىسىپ ئىمزا قۇيۇڭ'
,
//点击签字
"clickSign"
:
'بۇيەرنى بىسىپ ئىمزا قۇيۇڭ'
,
//点击签字
"autograph"
:
'
签名
'
,
//签名
"autograph"
:
'
ئىمزا قويۇش، قول قويۇش
'
,
//签名
"eliminate"
:
'清除'
,
//清除
"eliminate"
:
'清除'
,
//清除
...
@@ -143,6 +143,9 @@ module.exports = {
...
@@ -143,6 +143,9 @@ module.exports = {
"select"
:
""
,
//请选择
"fillIn"
:
""
,
//请填写
"clickSelect"
:
""
,
//点击选择
}
}
...
...
src/lang/zh.js
View file @
eef26273
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2022-10-31 14:22:35
* @Date: 2022-10-31 14:22:35
* @LastEditors: ninglupeng
* @LastEditors: ninglupeng
* @LastEditTime: 2022-11-04 1
0:39:55
* @LastEditTime: 2022-11-04 1
6:41:00
* @Description:
* @Description:
*/
*/
module
.
exports
=
{
module
.
exports
=
{
...
@@ -147,4 +147,8 @@ module.exports = {
...
@@ -147,4 +147,8 @@ module.exports = {
"Previousstep"
:
'上一步'
,
//上一步
"Previousstep"
:
'上一步'
,
//上一步
"nextstep"
:
'下一步'
,
//下一步
"nextstep"
:
'下一步'
,
//下一步
"select"
:
"请选择"
,
//请选择
"fillIn"
:
"请填写"
,
//请填写
"clickSelect"
:
"点击选择"
,
//点击选择
}
}
\ No newline at end of file
src/main.js
View file @
eef26273
...
@@ -123,7 +123,7 @@ Vue.prototype.$deepCopy = function (data) {
...
@@ -123,7 +123,7 @@ Vue.prototype.$deepCopy = function (data) {
/*---------使用语言包-----------*/
/*---------使用语言包-----------*/
const
i18n
=
new
VueI18n
({
const
i18n
=
new
VueI18n
({
locale
:
'
Uygur
'
,
// 语言标识
locale
:
'
zh
'
,
// 语言标识
//this.$i18n.locale // 通过切换locale的值来实现语言切换
//this.$i18n.locale // 通过切换locale的值来实现语言切换
messages
:
{
messages
:
{
'zh'
:
require
(
'./lang/zh'
),
// 中文语言包
'zh'
:
require
(
'./lang/zh'
),
// 中文语言包
...
...
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