Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
5f73ebd8
提交
5f73ebd8
编写于
4月 29, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
108e1d40
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
506 行增加
和
248 行删除
+506
-248
index.vue
src/components/followup/form/index.vue
+3
-1
checkField.js
src/utils/followup/followupUtils/checkField.js
+1
-1
index.js
src/utils/followup/followupUtils/rangConfig/index.js
+8
-0
range.js
src/utils/followup/followupUtils/rangConfig/range.js
+1
-1
rangeHype.js
src/utils/followup/followupUtils/rangConfig/rangeHype.js
+33
-0
hypeDataSourceBaseInfo.js
...cord-manage/models/hypertension/hypeDataSourceBaseInfo.js
+21
-0
hypeDataSourceHelpChecking.js
...-manage/models/hypertension/hypeDataSourceHelpChecking.js
+61
-57
hypeDataSourceLifeMode.js
...cord-manage/models/hypertension/hypeDataSourceLifeMode.js
+191
-57
hypeDataSourceMedicationUse.js
...manage/models/hypertension/hypeDataSourceMedicationUse.js
+1
-1
hypeDataSourceSign.js
...p/record-manage/models/hypertension/hypeDataSourceSign.js
+142
-57
hypeDataSourceSymptom.js
...ecord-manage/models/hypertension/hypeDataSourceSymptom.js
+3
-4
hypertension.vue
...ews/followup/record-manage/patient-scale/hypertension.vue
+41
-69
未找到文件。
src/components/followup/form/index.vue
浏览文件 @
5f73ebd8
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
export
default
{
export
default
{
props
:
{
props
:
{
ruleNew
:
Boolean
,
ruleNew
:
Boolean
,
//用于关联跨模块交互
dataSource
:
{
dataSource
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
...
@@ -188,6 +188,8 @@
...
@@ -188,6 +188,8 @@
float
:
none
;
float
:
none
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-left
:
0
;
margin-left
:
0
;
overflow
:
hidden
;
height
:
auto
;
}
}
.color-gray
{
.color-gray
{
color
:
#a7a7a7
;
color
:
#a7a7a7
;
...
...
src/utils/followup/followupUtils/checkField.js
浏览文件 @
5f73ebd8
import
rangeJson
from
'
@/utils/followup/followupUtils/range
'
;
import
rangeJson
from
'
./rangConfig
'
;
// 这个方法,是用户在选择随访轮次(6个月,12个月)后续操作
// 这个方法,是用户在选择随访轮次(6个月,12个月)后续操作
let
checkNeedRule
=
(
val
)
=>
{
let
checkNeedRule
=
(
val
)
=>
{
...
...
src/utils/followup/followupUtils/rangConfig/index.js
0 → 100644
浏览文件 @
5f73ebd8
import
range
from
'./range'
;
import
rangeHype
from
'./rangeHype'
;
export
default
[
...
range
,
...
rangeHype
]
src/utils/followup/followupUtils/range.js
→
src/utils/followup/followupUtils/rang
Config/rang
e.js
浏览文件 @
5f73ebd8
//
各个
字段校验的配置文件
//
脑卒中
字段校验的配置文件
export
default
[
export
default
[
{
{
field
:
'fastingBloodGlucose'
,
field
:
'fastingBloodGlucose'
,
...
...
src/utils/followup/followupUtils/rangConfig/rangeHype.js
0 → 100644
浏览文件 @
5f73ebd8
// 高血压字段校验的配置文件
export
default
[
{
field
:
'systolicBloodPressure'
,
name
:
'收缩压SBP'
,
min
:
70
,
max
:
240
},
{
field
:
'diastolicBloodPressure'
,
name
:
'舒张压DBP'
,
min
:
50
,
max
:
130
},
{
field
:
'bodyHeight'
,
name
:
'身高'
,
min
:
100
,
max
:
200
},
{
field
:
'bodyWeight'
,
name
:
'体重'
,
min
:
35
,
max
:
200
},
{
field
:
'heartRate'
,
name
:
'心率'
,
min
:
30
,
max
:
200
},
]
src/views/followup/record-manage/models/hypertension/hypeDataSourceBaseInfo.js
0 → 100644
浏览文件 @
5f73ebd8
import
{
checkRange
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpUser'
,
model
:
'followUpUser'
,
label
:
'姓名:'
,
disabled
:
false
,
placeholder
:
'请输入姓名'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
[
'submit'
,
'change'
]}],
},
]
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceHelpChecking.js
浏览文件 @
5f73ebd8
import
{
check
Mobile
}
from
'@/utils/followup/followupUtils/checkField'
;
import
{
check
Range
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
export
default
(
$this
)
=>
{
return
[
return
[
// {
{
// formType: 'input',
formType
:
'input'
,
// className: 'float-none',
className
:
'float-none obj-form-title'
,
// prop: 'followUpOrgName',
prop
:
'helpCheck'
,
// model: 'followUpOrgName',
model
:
'helpCheck'
,
// label: '随访单位名称:',
disabled
:
false
,
// disabled: false,
label
:
'辅助检查:'
,
// placeholder: '请输入随访单位名称',
placeholder
:
'请输入辅助检查'
,
// spanNum: 12,
spanNum
:
12
,
// maxlength: 30,
maxlength
:
30
,
// type: 'text',
type
:
'text'
,
// labmsg: '次',
labmsg
:
''
,
// rules: [{required: true, message: '请输入随访单位名称', trigger: ['submit','change']}],
rules
:
[{
required
:
false
,
message
:
'请输入辅助检查'
,
trigger
:
[
'submit'
,
'change'
]
}]
// },
},
// {
{
// formType: 'input',
formType
:
'radio'
,
// className: 'float-none',
className
:
'obj-form-title'
,
// prop: 'followUpUser',
prop
:
'medicationObedience'
,
// model: 'followUpUser',
model
:
'medicationObedience'
,
// label: '随访人员姓名:',
spanNum
:
24
,
// disabled: false,
label
:
'服药依从性:'
,
// placeholder: '请输入随访人员姓名',
options
:
[
// spanNum: 12,
{
label
:
'规律'
,
value
:
'规律'
},
// maxlength: 30,
{
label
:
'间断'
,
value
:
'间断'
},
// type: 'text',
{
label
:
'不服药'
,
value
:
'不服药'
},
// labmsg: '次',
],
// rules: [{required: true, message: '请输入随访人员姓名', trigger: ['submit','change']}],
rules
:
[{
required
:
true
,
message
:
'请选择服药依从性'
,
trigger
:
[
'submit'
,
'change'
]
}],
// },
changeFun
:
(
e
)
=>
{
// {
}
// formType: 'input',
},
// className: 'float-none',
// prop: 'followUpMobile',
{
// model: 'followUpMobile',
formType
:
'radio'
,
// label: '随访人员联系电话:',
className
:
'obj-form-title'
,
// disabled: false,
prop
:
'medicalSideSffects'
,
// placeholder: '请输入随访人员联系电话',
model
:
'medicalSideSffects'
,
// spanNum: 12,
spanNum
:
24
,
// maxlength: 11,
label
:
'药物不良反应:'
,
// type: 'tel',
options
:
[
// labmsg: '次',
{
label
:
'无'
,
value
:
'无'
},
// rules: [{required: true, message: '请输入随访人员联系电话', trigger: ['submit','change']},{ validator: checkMobile , trigger: ['submit','change'] }],
{
label
:
'有'
,
value
:
'有'
},
// },
],
// {
rules
:
[{
required
:
true
,
message
:
'请选择有无药物不良反应'
,
trigger
:
[
'submit'
,
'change'
]
}],
// formType: 'date-picker',
changeFun
:
(
e
)
=>
{
// className: 'float-none',
}
// prop: 'surveyTime',
},
// model: 'surveyTime',
{
// placeholder: '请选择',
formType
:
'input'
,
// label: '本次调查时间:',
className
:
'float-none obj-form-title2'
,
// format: 'yyyy-MM-dd',
linkageRule
:
[{
name
:
'medicalSideSffects'
,
value
:
[
'有'
]}],
// valueFormat: 'yyyy-MM-dd',
prop
:
'remark'
,
// dateType: 'date',
model
:
'remark'
,
// type: 'date',
disabled
:
false
,
// rules: [{required: true, message: '请选择本次调查时间', trigger: ['submit','change']}],
placeholder
:
'请输入药物不良反应'
,
// spanNum: 12,
spanNum
:
12
,
// },
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
rules
:
[{
required
:
true
,
message
:
'请输入药物不良反应'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
]
]
}
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceLifeMode.js
浏览文件 @
5f73ebd8
import
{
check
Mobile
}
from
'@/utils/followup/followupUtils/checkField'
;
import
{
check
Range
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
export
default
(
$this
)
=>
{
return
[
return
[
// {
// formType: 'input',
{
// className: 'float-none',
formType
:
'input'
,
// prop: 'followUpOrgName',
className
:
'float-none'
,
// model: 'followUpOrgName',
prop
:
'smokingAmount'
,
// label: '随访单位名称:',
model
:
'smokingAmount'
,
// disabled: false,
disabled
:
false
,
// placeholder: '请输入随访单位名称',
label
:
'本次日吸烟量:'
,
// spanNum: 12,
placeholder
:
'请输入本次日吸烟量'
,
// maxlength: 30,
spanNum
:
6
,
// type: 'text',
maxlength
:
30
,
// labmsg: '次',
type
:
'text'
,
// rules: [{required: true, message: '请输入随访单位名称', trigger: ['submit','change']}],
labmsg
:
''
,
// },
slots
:
[{
name
:
'支/日'
,
type
:
'append'
}],
// {
rules
:
[{
required
:
true
,
message
:
'请输入日吸烟量'
,
trigger
:
[
'submit'
,
'change'
]
}]
// formType: 'input',
},
// className: 'float-none',
{
// prop: 'followUpUser',
formType
:
'input'
,
// model: 'followUpUser',
className
:
'float-none'
,
// label: '随访人员姓名:',
prop
:
'nextSmokingAmount'
,
// disabled: false,
model
:
'nextSmokingAmount'
,
// placeholder: '请输入随访人员姓名',
disabled
:
false
,
// spanNum: 12,
label
:
'下次日吸烟量:'
,
// maxlength: 30,
placeholder
:
'请输入下次随访日吸烟量'
,
// type: 'text',
spanNum
:
6
,
// labmsg: '次',
maxlength
:
30
,
// rules: [{required: true, message: '请输入随访人员姓名', trigger: ['submit','change']}],
type
:
'text'
,
// },
labmsg
:
''
,
// {
slots
:
[{
name
:
'支/日'
,
type
:
'append'
}],
// formType: 'input',
rules
:
[{
required
:
true
,
message
:
'请输入下次随访日吸烟量'
,
trigger
:
[
'submit'
,
'change'
]
}]
// className: 'float-none',
},
// prop: 'followUpMobile',
// model: 'followUpMobile',
// label: '随访人员联系电话:',
{
// disabled: false,
formType
:
'input'
,
// placeholder: '请输入随访人员联系电话',
className
:
'float-none'
,
// spanNum: 12,
prop
:
'alcoholConsumption'
,
// maxlength: 11,
model
:
'alcoholConsumption'
,
// type: 'tel',
disabled
:
false
,
// labmsg: '次',
label
:
'本次日饮酒量:'
,
// rules: [{required: true, message: '请输入随访人员联系电话', trigger: ['submit','change']},{ validator: checkMobile , trigger: ['submit','change'] }],
placeholder
:
'请输入本次日饮酒量'
,
// },
spanNum
:
6
,
// {
maxlength
:
30
,
// formType: 'date-picker',
type
:
'text'
,
// className: 'float-none',
labmsg
:
''
,
// prop: 'surveyTime',
slots
:
[{
name
:
'两/日'
,
type
:
'append'
}],
// model: 'surveyTime',
rules
:
[{
required
:
true
,
message
:
'请输入本次日饮酒量'
,
trigger
:
[
'submit'
,
'change'
]
}]
// placeholder: '请选择',
},
// label: '本次调查时间:',
{
// format: 'yyyy-MM-dd',
formType
:
'input'
,
// valueFormat: 'yyyy-MM-dd',
className
:
'float-none'
,
// dateType: 'date',
prop
:
'nextAlcoholConsumption'
,
// type: 'date',
model
:
'nextAlcoholConsumption'
,
// rules: [{required: true, message: '请选择本次调查时间', trigger: ['submit','change']}],
disabled
:
false
,
// spanNum: 12,
label
:
'下次随访日饮酒量:'
,
// },
placeholder
:
'请输入下次随访日饮酒量'
,
spanNum
:
6
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
slots
:
[{
name
:
'两/日'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入下次随访日饮酒量'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'workoutOfWeek'
,
model
:
'workoutOfWeek'
,
disabled
:
false
,
label
:
'本次运动情况:'
,
placeholder
:
'请输入本次运动情况'
,
spanNum
:
6
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
slots
:
[{
name
:
'次/周'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入本次运动情况'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'workoutDuration'
,
model
:
'workoutDuration'
,
disabled
:
false
,
placeholder
:
'请输入本次运动情况'
,
spanNum
:
6
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
slots
:
[{
name
:
'分钟/次'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入本次运动情况'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'nextWorkoutOfWeek'
,
model
:
'nextWorkoutOfWeek'
,
disabled
:
false
,
label
:
'下次随访运动情况:'
,
placeholder
:
'请输入下次随访运动情况'
,
spanNum
:
6
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
slots
:
[{
name
:
'次/周'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入下次随访运动情况'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'nextWorkoutDuration'
,
model
:
'nextWorkoutDuration'
,
disabled
:
false
,
placeholder
:
'请输入下次随访运动情况'
,
spanNum
:
6
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
slots
:
[{
name
:
'分钟/次'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入下次随访运动情况'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
{
formType
:
'radio'
,
className
:
'obj-form-title'
,
prop
:
'saltIntake'
,
model
:
'saltIntake'
,
spanNum
:
24
,
label
:
'目前摄盐情况:'
,
options
:
[
{
label
:
'轻'
,
value
:
'轻'
},
{
label
:
'中'
,
value
:
'中'
},
{
label
:
'重'
,
value
:
'重'
},
],
rules
:
[{
required
:
true
,
message
:
'请选择目前摄盐情况'
,
trigger
:
[
'submit'
,
'change'
]
}],
changeFun
:
(
e
)
=>
{
}
},
{
formType
:
'radio'
,
className
:
'obj-form-title'
,
prop
:
'nextSaltIntake'
,
model
:
'nextSaltIntake'
,
spanNum
:
24
,
label
:
'下次随访摄盐情况:'
,
options
:
[
{
label
:
'轻'
,
value
:
'轻'
},
{
label
:
'中'
,
value
:
'中'
},
{
label
:
'重'
,
value
:
'重'
},
],
rules
:
[{
required
:
true
,
message
:
'请选择下次随访摄盐情况'
,
trigger
:
[
'submit'
,
'change'
]
}],
changeFun
:
(
e
)
=>
{
}
},
{
formType
:
'radio'
,
className
:
'obj-form-title'
,
prop
:
'psychologicalAdjustment'
,
model
:
'psychologicalAdjustment'
,
spanNum
:
24
,
label
:
'心理调整:'
,
options
:
[
{
label
:
'良好'
,
value
:
'良好'
},
{
label
:
'一般'
,
value
:
'一般'
},
{
label
:
'差'
,
value
:
'差'
},
],
rules
:
[{
required
:
true
,
message
:
'请选择心理调整'
,
trigger
:
[
'submit'
,
'change'
]
}],
changeFun
:
(
e
)
=>
{
}
},
{
formType
:
'radio'
,
className
:
'obj-form-title'
,
prop
:
'followMedicalPractive'
,
model
:
'followMedicalPractive'
,
spanNum
:
24
,
label
:
'遵医行为:'
,
options
:
[
{
label
:
'良好'
,
value
:
'良好'
},
{
label
:
'一般'
,
value
:
'一般'
},
{
label
:
'差'
,
value
:
'差'
},
],
rules
:
[{
required
:
true
,
message
:
'请选择心里调整'
,
trigger
:
[
'submit'
,
'change'
]
}],
changeFun
:
(
e
)
=>
{
}
},
]
]
}
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceMedicationUse.js
浏览文件 @
5f73ebd8
import
{
check
Mobile
}
from
'@/utils/followup/followupUtils/checkField'
;
import
{
check
Range
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
export
default
(
$this
)
=>
{
return
[
return
[
...
...
src/views/followup/record-manage/models/hypertension/hypeDataSourceSign.js
浏览文件 @
5f73ebd8
import
{
check
Mobile
}
from
'@/utils/followup/followupUtils/checkField'
;
import
{
check
Range
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
export
default
(
$this
)
=>
{
return
[
return
[
// {
{
// formType: 'input',
formType
:
'input'
,
// className: 'float-none',
className
:
'float-none'
,
// prop: 'followUpOrgName',
prop
:
'systolicBloodPressure'
,
// model: 'followUpOrgName',
model
:
'systolicBloodPressure'
,
// label: '随访单位名称:',
label
:
'收缩压SBP:'
,
// disabled: false,
disabled
:
false
,
// placeholder: '请输入随访单位名称',
placeholder
:
'请输入'
,
// spanNum: 12,
spanNum
:
6
,
// maxlength: 30,
type
:
'number'
,
// type: 'text',
labmsg
:
'次'
,
// labmsg: '次',
slots
:
[{
name
:
'mmHg'
,
type
:
'append'
}],
// rules: [{required: true, message: '请输入随访单位名称', trigger: ['submit','change']}],
rules
:
[{
required
:
true
,
message
:
'请输入收缩压SBP'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkIsInteger
,
trigger
:
[
'submit'
,
'change'
]
}],
// },
},
// {
{
// formType: 'input',
formType
:
'input'
,
// className: 'float-none',
className
:
'float-none'
,
// prop: 'followUpUser',
prop
:
'diastolicBloodPressure'
,
// model: 'followUpUser',
model
:
'diastolicBloodPressure'
,
// label: '随访人员姓名:',
label
:
'舒张压DBP:'
,
// disabled: false,
disabled
:
false
,
// placeholder: '请输入随访人员姓名',
placeholder
:
'请输入'
,
// spanNum: 12,
spanNum
:
6
,
// maxlength: 30,
type
:
'number'
,
// type: 'text',
labmsg
:
'次'
,
// labmsg: '次',
slots
:
[{
name
:
'mmHg'
,
type
:
'append'
}],
// rules: [{required: true, message: '请输入随访人员姓名', trigger: ['submit','change']}],
rules
:
[{
required
:
true
,
message
:
'请输入舒张压DBP'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkIsInteger
,
trigger
:
[
'submit'
,
'change'
]
}],
// },
},
// {
{
// formType: 'input',
formType
:
'input'
,
// className: 'float-none',
className
:
'float-none'
,
// prop: 'followUpMobile',
prop
:
'bodyHeight'
,
// model: 'followUpMobile',
model
:
'bodyHeight'
,
// label: '随访人员联系电话:',
label
:
'身高:'
,
// disabled: false,
disabled
:
false
,
// placeholder: '请输入随访人员联系电话',
placeholder
:
'请输入'
,
// spanNum: 12,
spanNum
:
6
,
// maxlength: 11,
type
:
'number'
,
// type: 'tel',
labmsg
:
'次'
,
// labmsg: '次',
slots
:
[{
name
:
'cm'
,
type
:
'append'
}],
// rules: [{required: true, message: '请输入随访人员联系电话', trigger: ['submit','change']},{ validator: checkMobile , trigger: ['submit','change'] }],
rules
:
[{
required
:
true
,
message
:
'请输入身高'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},
{
validator
:
checkNumberIsToFixed
,
trigger
:
[
'submit'
,
'change'
]}],
// },
changeFun
:
(
val
)
=>
{
// {
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
// formType: 'date-picker',
if
(
item
.
formName
==
'hypertension_002'
){
// className: 'float-none',
$this
.
addComponents
[
index
].
formObject
.
bodyHeight
=
val
;
// prop: 'surveyTime',
}
// model: 'surveyTime',
})
// placeholder: '请选择',
// label: '本次调查时间:',
},
// format: 'yyyy-MM-dd',
blurFunc
:
(
val
)
=>
{
// valueFormat: 'yyyy-MM-dd',
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
// dateType: 'date',
if
(
item
.
formName
==
'hypertension_002'
){
// type: 'date',
let
bodyWeight
=
$this
.
addComponents
[
index
].
formObject
.
bodyWeight
// rules: [{required: true, message: '请选择本次调查时间', trigger: ['submit','change']}],
let
bodyHeight
=
$this
.
addComponents
[
index
].
formObject
.
bodyHeight
// spanNum: 12,
if
(
bodyWeight
&&
bodyHeight
){
// },
bodyWeight
=
parseFloat
(
bodyWeight
);
bodyHeight
=
parseFloat
(
bodyHeight
);
let
bmi
=
(
bodyWeight
/
Math
.
pow
((
bodyHeight
/
100
),
2
)).
toFixed
(
1
);
$this
.
addComponents
[
index
].
formObject
.
bmi
=
bmi
;
}
}
})
}
},
// 体质指数(BMI)=体重(kg)÷ 身高²(m)
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'bodyWeight'
,
model
:
'bodyWeight'
,
label
:
'体重:'
,
disabled
:
false
,
placeholder
:
'请输入(体重可以带1位小数点)'
,
spanNum
:
6
,
type
:
'number'
,
labmsg
:
'次'
,
slots
:
[{
name
:
'kg'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入体重'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},
{
validator
:
checkNumberIsToFixed
,
trigger
:
[
'submit'
,
'change'
]}],
changeFun
:
(
val
)
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
formName
==
'hypertension_002'
){
$this
.
addComponents
[
index
].
formObject
.
bodyWeight
=
val
;
}
})
},
blurFunc
:
(
val
)
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
formName
==
'hypertension_002'
){
let
bodyWeight
=
$this
.
addComponents
[
index
].
formObject
.
bodyWeight
let
bodyHeight
=
$this
.
addComponents
[
index
].
formObject
.
bodyHeight
if
(
bodyWeight
&&
bodyHeight
){
bodyWeight
=
parseFloat
(
bodyWeight
);
bodyHeight
=
parseFloat
(
bodyHeight
);
let
bmi
=
(
bodyWeight
/
Math
.
pow
((
bodyHeight
/
100
),
2
)).
toFixed
(
1
);
$this
.
addComponents
[
index
].
formObject
.
bmi
=
bmi
;
}
}
})
}
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'bmi'
,
model
:
'bmi'
,
label
:
'BMI(系统自动生成):'
,
disabled
:
true
,
placeholder
:
'(这里是自动计算所得)'
,
spanNum
:
6
,
type
:
'number'
,
labmsg
:
'次'
,
slots
:
[{
name
:
'kg/m^2'
,
type
:
'append'
}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'heartRate'
,
model
:
'heartRate'
,
label
:
'心率:'
,
disabled
:
false
,
placeholder
:
'请输入'
,
spanNum
:
6
,
type
:
'number'
,
labmsg
:
'次'
,
slots
:
[{
name
:
'次/分'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入心率'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkIsInteger
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'input'
,
className
:
'obj-form-title'
,
linkageRule
:
[{
name
:
'symptom'
,
value
:
[
'其他'
]}],
prop
:
'remark'
,
model
:
'remark'
,
disabled
:
false
,
placeholder
:
'请输入其他体征'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
rules
:
[{
required
:
true
,
message
:
'请输入其他体征'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
]
]
}
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceSymptom.js
浏览文件 @
5f73ebd8
...
@@ -4,14 +4,12 @@ export default ($this) => {
...
@@ -4,14 +4,12 @@ export default ($this) => {
return
[
return
[
{
{
formType
:
'checkbox'
,
formType
:
'checkbox'
,
className
:
'obj-form-title'
,
className
:
'
float-none
obj-form-title'
,
prop
:
'symptom'
,
prop
:
'symptom'
,
model
:
'symptom'
,
model
:
'symptom'
,
label
:
'选择的症状:'
,
label
:
'选择的症状:'
,
// linkageRule: [{name: 'takeHypoglycemicDrugs', value: ['是']}],
disabled
:
false
,
disabled
:
false
,
changeFun
:
(
val
)
=>
{
changeFun
:
(
val
)
=>
{
// console.log(val)
},
},
spanNum
:
24
,
spanNum
:
24
,
options
:
[
options
:
[
...
@@ -30,7 +28,7 @@ export default ($this) => {
...
@@ -30,7 +28,7 @@ export default ($this) => {
},
},
{
{
formType
:
'input'
,
formType
:
'input'
,
className
:
'
obj-form-title4
'
,
className
:
'
float-none obj-form-title2
'
,
linkageRule
:
[{
name
:
'symptom'
,
value
:
[
'其他'
]}],
linkageRule
:
[{
name
:
'symptom'
,
value
:
[
'其他'
]}],
prop
:
'remark'
,
prop
:
'remark'
,
model
:
'remark'
,
model
:
'remark'
,
...
@@ -42,6 +40,7 @@ export default ($this) => {
...
@@ -42,6 +40,7 @@ export default ($this) => {
labmsg
:
''
,
labmsg
:
''
,
rules
:
[{
required
:
true
,
message
:
'请输入其他症状'
,
trigger
:
[
'submit'
,
'change'
]
}]
rules
:
[{
required
:
true
,
message
:
'请输入其他症状'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
},
]
]
}
}
src/views/followup/record-manage/patient-scale/hypertension.vue
浏览文件 @
5f73ebd8
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
:dataSource=
"item.dataSource"
:dataSource=
"item.dataSource"
:form=
"item.formObject"
:form=
"item.formObject"
:ruleNew=
"item.ruleNew"
:ruleNew=
"item.ruleNew"
:needRule=
"needRule"
:class=
"item.className"
:class=
"item.className"
/>
/>
</el-form>
</el-form>
...
@@ -40,8 +39,6 @@
...
@@ -40,8 +39,6 @@
import
hypeDataSourceHelpChecking
from
'../models/hypertension/hypeDataSourceHelpChecking'
import
hypeDataSourceHelpChecking
from
'../models/hypertension/hypeDataSourceHelpChecking'
import
hypeDataSourceMedicationUse
from
'../models/hypertension/hypeDataSourceMedicationUse'
import
hypeDataSourceMedicationUse
from
'../models/hypertension/hypeDataSourceMedicationUse'
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -79,9 +76,9 @@
...
@@ -79,9 +76,9 @@
// 将每个模块的fornName对应后台的表名放到表单对象
// 将每个模块的fornName对应后台的表名放到表单对象
this
.
formData
[
formName
]
=
this
.
addComponents
[
i
].
formObject
;
this
.
formData
[
formName
]
=
this
.
addComponents
[
i
].
formObject
;
if
(
formName
===
'stroke_006'
||
formName
===
'stroke_014'
||
formName
===
'stroke_015'
){
//
if(formName==='stroke_006'||formName==='stroke_014'||formName==='stroke_015'){
this
.
setRuleToTrue
(
i
)
//
this.setRuleToTrue(i)
}
//
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// saveWay=1是提交,进行校验,2是暂存,不需要校验,直接发送请求
// saveWay=1是提交,进行校验,2是暂存,不需要校验,直接发送请求
if
(
this
.
saveWay
==
1
){
if
(
this
.
saveWay
==
1
){
...
@@ -136,20 +133,20 @@
...
@@ -136,20 +133,20 @@
}
}
})
})
},
},
needRule
(
val
){
//
needRule(val){
this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
//
this.addComponents.forEach((item,index)=>{
let
formName
=
item
.
formName
;
//
let formName = item.formName;
if
(
formName
===
'stroke_006'
||
formName
===
'stroke_014'
||
formName
===
'stroke_015'
){
////
if(formName==='stroke_006'||formName==='stroke_014'||formName==='stroke_015'){
this
.
addComponents
[
index
].
ruleNew
=
val
;
////
this.addComponents[index].ruleNew = val;
this
.
setRuleToTrue
(
index
);
////
this.setRuleToTrue(index);
// if(this.$refs['form' + index].length > 0){
//
////
if(this.$refs['form' + index].length > 0){
// this.$refs['form' + index][0].resetFields();
//
////
this.$refs['form' + index][0].resetFields();
// }
//
////
}
////
}
////
}
})
//
})
//
}
//
}
},
},
created
(){
created
(){
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
...
@@ -161,47 +158,18 @@
...
@@ -161,47 +158,18 @@
// 获取白名单域名
// 获取白名单域名
this
.
getWhiteDomain
();
this
.
getWhiteDomain
();
localStorage
.
setItem
(
'needRule'
,
this
.
needRule
);
//
localStorage.setItem('needRule',this.needRule);
},
},
methods
:
{
methods
:
{
// 获取量表类型
// 获取量表类型
initScaleType
(){
initScaleType
(){
this
.
addComponentsSourceList
=
[
this
.
addComponentsSourceList
=
[
{
name
:
'BaseInfo0'
,
formObject
:
{
},
showModule
:
true
,
formName
:
'hypertension_001'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceSymptom
(
this
),
hideTitle
:
true
,
title
:
'一、
症状'
},
{
name
:
'BaseInfo0'
,
formObject
:
{
symptom
:
[]},
showModule
:
true
,
formName
:
'hypertension_001'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceSymptom
(
this
),
hideTitle
:
false
,
title
:
'
症状'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_002'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceSign
(
this
),
hideTitle
:
true
,
title
:
'二、
体征'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_002'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceSign
(
this
),
hideTitle
:
false
,
title
:
'
体征'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_003'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceLifeMode
(
this
),
hideTitle
:
true
,
title
:
'三、
生活方式指导'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_003'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceLifeMode
(
this
),
hideTitle
:
false
,
title
:
'
生活方式指导'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_004'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceHelpChecking
(
this
),
hideTitle
:
true
,
title
:
'四、
辅助检查'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_004'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceHelpChecking
(
this
),
hideTitle
:
false
,
title
:
'
辅助检查'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_005'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceMedicationUse
(
this
),
hideTitle
:
true
,
title
:
'五、
用药情况'
},
{
name
:
'BaseInfo0'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_005'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceMedicationUse
(
this
),
hideTitle
:
false
,
title
:
'
用药情况'
},
]
]
// if(this.scaleType=='SCALE0003'){ //脑卒中
// this.addComponentsSourceList = [
// {name: 'BaseInfo0',formObject: {},showModule: true,formName: 'stroke_001',className: 'obj-form-title',dataSource: dataSourceBaseInfo0(this), hideTitle: true, title: '一、量表脑卒中随访人员信息表'},
// {name: 'BaseInfo',formObject: {},showModule: true,formName: 'stroke_002',className: 'obj-form-title',dataSource: dataSourceBaseInfo(this), title: '一、基本信息'},
// {name: 'BaseInfo2',formObject: {},showModule: true,formName: 'stroke_003',className: 'obj-form-title',dataSource: dataSourceBaseInfo2(this), hideTitle: true, title: '一、基本信息'},
// {name: 'LifeStyleGuide',formObject: {},showModule: true,formName: 'stroke_004',className: 'obj-form-title',dataSource: dataSourceLifeStyleGuide(this), title: '二、随访期间生活方式'},
// {name: 'MainSickControl',formObject: {},showModule: true,formName: 'stroke_005',className: 'obj-form-title',dataSource: dataSourceMainSickControl(this), title: '三、随访期间主要病史及控制情况-脑血管病'},
// {name: 'MainSickControl2',formObject: {},showModule: true,formName: 'stroke_006',className: 'obj-form-title',dataSource: dataSourceMainSickControl2(this), hideTitle: true,ruleNew:true, title: '三、随访期间主要病史及控制情况-MRS评分(卒中患者12个月随访必填)'},
// {name: 'MainSickControl3',formObject: {},showModule: true,formName: 'stroke_007',className: 'obj-form-title',dataSource: dataSourceMainSickControl3(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-心脏病'},
// {name: 'MainSickControl4',formObject: {},showModule: true,formName: 'stroke_008',className: 'obj-form-title',dataSource: dataSourceMainSickControl4(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-高血压'},
// {name: 'MainSickControl5',formObject: {},showModule: true,formName: 'stroke_009',className: 'obj-form-title',dataSource: dataSourceMainSickControl5(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-血脂异常'},
// {name: 'MainSickControl6',formObject: {},showModule: true,formName: 'stroke_010',className: 'obj-form-title',dataSource: dataSourceMainSickControl6(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-糖尿病'},
// {name: 'TreatmentSituation',formObject: {},showModule: true,formName: 'stroke_011',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation(this), title: '四、本次随访期间血管病变的外科手术或介入治疗情况'},
// {name: 'TreatmentSituation2',formObject: {},showModule: true,formName: 'stroke_012',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation2(this), hideTitle: true, title: '四、本次随访期间血管病变的外科手术或介入治疗情况-冠状动脉'},
// {name: 'TreatmentSituation3',formObject: {},showModule: true,formName: 'stroke_013',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation3(this), hideTitle: true, title: '四、本次随访期间血管病变的外科手术或介入治疗情况-出血性卒中外科治疗'},
// {name: 'CheckBody',formObject: {bmi: 0,},showModule: true,formName: 'stroke_014',className: 'obj-form-title',dataSource: dataSourceCheckBody(this), ruleNew:true,title: '五、体格检查(高危人群12个月随访必做)'},
// {name: 'CheckLab',formObject: {},showModule: true,formName: 'stroke_015',className: 'obj-form-title',dataSource: dataSourceCheckLab(this),ruleNew:true, title: '六、实验室检查(高危人群12个月随访必填)'},
// ]
// }else if(this.scaleType=='SCALE0001'){ //高血压
// this.addComponentsSourceList = [
// {name: 'BaseInfo0',formObject: {},showModule: true,formName: 'hypertension_001',className: 'obj-form-title',dataSource: hypeDataSourceSymptom(this), hideTitle: true, title: '一、症状'},
// {name: 'BaseInfo0',formObject: {},showModule: true,formName: 'hypertension_002',className: 'obj-form-title',dataSource: hypeDataSourceSign(this), hideTitle: true, title: '二、体征'},
// {name: 'BaseInfo0',formObject: {},showModule: true,formName: 'hypertension_003',className: 'obj-form-title',dataSource: hypeDataSourceLifeMode(this), hideTitle: true, title: '三、生活方式指导'},
// {name: 'BaseInfo0',formObject: {},showModule: true,formName: 'hypertension_004',className: 'obj-form-title',dataSource: hypeDataSourceHelpChecking(this), hideTitle: true, title: '四、辅助检查'},
// {name: 'BaseInfo0',formObject: {},showModule: true,formName: 'hypertension_005',className: 'obj-form-title',dataSource: hypeDataSourceMedicationUse(this), hideTitle: true, title: '五、用药情况'},
// ]
// }else if(this.scaleType=='SCALE0002'){//糖尿病
//
// }
},
},
// 获取白名单域名
// 获取白名单域名
getWhiteDomain
(){
getWhiteDomain
(){
...
@@ -223,17 +191,17 @@
...
@@ -223,17 +191,17 @@
})
})
},
},
// 动态开启验证开关
// 动态开启验证开关
setRuleToTrue
(
index
){
//
setRuleToTrue(index){
this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
k
)
=>
{
//
this.addComponents[index].dataSource.forEach((item,k)=>{
if
(
item
.
rules
&&
item
.
rules
.
length
>
0
){
//
if(item.rules && item.rules.length > 0){
if
(
!
this
.
needRule
){
//
if(!this.needRule){
this
.
addComponents
[
index
].
dataSource
[
k
].
rules
[
0
].
required
=
true
;
//
this.addComponents[index].dataSource[k].rules[0].required = true;
}
else
{
//
}else{
this
.
addComponents
[
index
].
dataSource
[
k
].
rules
[
0
].
required
=
false
;
//
this.addComponents[index].dataSource[k].rules[0].required = false;
}
//
}
}
//
}
})
//
})
},
//
},
// 获取展示的模块
// 获取展示的模块
getFormModules
(){
getFormModules
(){
getScaleModels
(
this
.
domain
,
this
.
scaleNo
).
then
(
res
=>
{
getScaleModels
(
this
.
domain
,
this
.
scaleNo
).
then
(
res
=>
{
...
@@ -269,10 +237,14 @@
...
@@ -269,10 +237,14 @@
if
(
(
investigationState
===
'失访'
||
investigationState
===
'死亡'
)
){
if
(
(
investigationState
===
'失访'
||
investigationState
===
'死亡'
)
){
this
.
showModule
=
false
;
this
.
showModule
=
false
;
}
}
if
(
inTurn
==
'12个月'
){
// if(inTurn == '12个月'){
this
.
needRule
=
false
;
// this.needRule = false;
}
// }
this
.
addComponents
[
i
].
formObject
=
this
.
formData
[
formName
];
this
.
addComponents
[
i
].
formObject
=
this
.
formData
[
formName
];
// if(formName=='hypertension_001'){
// this.addComponents[i].formObject.dyslipidemia = []
// }
}
}
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
if
(
this
.
$refs
[
'form'
+
i
].
length
>
0
){
if
(
this
.
$refs
[
'form'
+
i
].
length
>
0
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录