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 @@
export
default
{
props
:
{
ruleNew
:
Boolean
,
ruleNew
:
Boolean
,
//用于关联跨模块交互
dataSource
:
{
type
:
Array
,
default
:
()
=>
[]
...
...
@@ -188,6 +188,8 @@
float
:
none
;
font-weight
:
bold
;
margin-left
:
0
;
overflow
:
hidden
;
height
:
auto
;
}
.color-gray
{
color
:
#a7a7a7
;
...
...
src/utils/followup/followupUtils/checkField.js
浏览文件 @
5f73ebd8
import
rangeJson
from
'
@/utils/followup/followupUtils/range
'
;
import
rangeJson
from
'
./rangConfig
'
;
// 这个方法,是用户在选择随访轮次(6个月,12个月)后续操作
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
[
{
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
)
=>
{
return
[
// {
// formType: 'input',
// className: 'float-none',
// prop: 'followUpOrgName',
// model: 'followUpOrgName',
// label: '随访单位名称:',
// disabled: false,
// placeholder: '请输入随访单位名称',
// spanNum: 12,
// maxlength: 30,
// type: 'text',
// labmsg: '次',
// rules: [{required: true, message: '请输入随访单位名称', trigger: ['submit','change']}],
// },
// {
// 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']}],
// },
// {
// formType: 'input',
// className: 'float-none',
// prop: 'followUpMobile',
// model: 'followUpMobile',
// label: '随访人员联系电话:',
// disabled: false,
// placeholder: '请输入随访人员联系电话',
// spanNum: 12,
// maxlength: 11,
// type: 'tel',
// labmsg: '次',
// rules: [{required: true, message: '请输入随访人员联系电话', trigger: ['submit','change']},{ validator: checkMobile , trigger: ['submit','change'] }],
// },
// {
// formType: 'date-picker',
// className: 'float-none',
// prop: 'surveyTime',
// model: 'surveyTime',
// placeholder: '请选择',
// label: '本次调查时间:',
// format: 'yyyy-MM-dd',
// valueFormat: 'yyyy-MM-dd',
// dateType: 'date',
// type: 'date',
// rules: [{required: true, message: '请选择本次调查时间', trigger: ['submit','change']}],
// spanNum: 12,
// },
{
formType
:
'input'
,
className
:
'float-none obj-form-title'
,
prop
:
'helpCheck'
,
model
:
'helpCheck'
,
disabled
:
false
,
label
:
'辅助检查:'
,
placeholder
:
'请输入辅助检查'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
rules
:
[{
required
:
false
,
message
:
'请输入辅助检查'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
{
formType
:
'radio'
,
className
:
'obj-form-title'
,
prop
:
'medicationObedience'
,
model
:
'medicationObedience'
,
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
:
'medicalSideSffects'
,
model
:
'medicalSideSffects'
,
spanNum
:
24
,
label
:
'药物不良反应:'
,
options
:
[
{
label
:
'无'
,
value
:
'无'
},
{
label
:
'有'
,
value
:
'有'
},
],
rules
:
[{
required
:
true
,
message
:
'请选择有无药物不良反应'
,
trigger
:
[
'submit'
,
'change'
]
}],
changeFun
:
(
e
)
=>
{
}
},
{
formType
:
'input'
,
className
:
'float-none obj-form-title2'
,
linkageRule
:
[{
name
:
'medicalSideSffects'
,
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/hypeDataSourceLifeMode.js
浏览文件 @
5f73ebd8
import
{
check
Mobile
}
from
'@/utils/followup/followupUtils/checkField'
;
import
{
check
Range
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
// {
// formType: 'input',
// className: 'float-none',
// prop: 'followUpOrgName',
// model: 'followUpOrgName',
// label: '随访单位名称:',
// disabled: false,
// placeholder: '请输入随访单位名称',
// spanNum: 12,
// maxlength: 30,
// type: 'text',
// labmsg: '次',
// rules: [{required: true, message: '请输入随访单位名称', trigger: ['submit','change']}],
// },
// {
// 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']}],
// },
// {
// formType: 'input',
// className: 'float-none',
// prop: 'followUpMobile',
// model: 'followUpMobile',
// label: '随访人员联系电话:',
// disabled: false,
// placeholder: '请输入随访人员联系电话',
// spanNum: 12,
// maxlength: 11,
// type: 'tel',
// labmsg: '次',
// rules: [{required: true, message: '请输入随访人员联系电话', trigger: ['submit','change']},{ validator: checkMobile , trigger: ['submit','change'] }],
// },
// {
// formType: 'date-picker',
// className: 'float-none',
// prop: 'surveyTime',
// model: 'surveyTime',
// placeholder: '请选择',
// label: '本次调查时间:',
// format: 'yyyy-MM-dd',
// valueFormat: 'yyyy-MM-dd',
// dateType: 'date',
// type: 'date',
// rules: [{required: true, message: '请选择本次调查时间', trigger: ['submit','change']}],
// spanNum: 12,
// },
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'smokingAmount'
,
model
:
'smokingAmount'
,
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
:
'nextSmokingAmount'
,
model
:
'nextSmokingAmount'
,
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
:
'alcoholConsumption'
,
model
:
'alcoholConsumption'
,
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
:
'nextAlcoholConsumption'
,
model
:
'nextAlcoholConsumption'
,
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
:
'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
)
=>
{
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
)
=>
{
return
[
// {
// formType: 'input',
// className: 'float-none',
// prop: 'followUpOrgName',
// model: 'followUpOrgName',
// label: '随访单位名称:',
// disabled: false,
// placeholder: '请输入随访单位名称',
// spanNum: 12,
// maxlength: 30,
// type: 'text',
// labmsg: '次',
// rules: [{required: true, message: '请输入随访单位名称', trigger: ['submit','change']}],
// },
// {
// 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']}],
// },
// {
// formType: 'input',
// className: 'float-none',
// prop: 'followUpMobile',
// model: 'followUpMobile',
// label: '随访人员联系电话:',
// disabled: false,
// placeholder: '请输入随访人员联系电话',
// spanNum: 12,
// maxlength: 11,
// type: 'tel',
// labmsg: '次',
// rules: [{required: true, message: '请输入随访人员联系电话', trigger: ['submit','change']},{ validator: checkMobile , trigger: ['submit','change'] }],
// },
// {
// formType: 'date-picker',
// className: 'float-none',
// prop: 'surveyTime',
// model: 'surveyTime',
// placeholder: '请选择',
// label: '本次调查时间:',
// format: 'yyyy-MM-dd',
// valueFormat: 'yyyy-MM-dd',
// dateType: 'date',
// type: 'date',
// rules: [{required: true, message: '请选择本次调查时间', trigger: ['submit','change']}],
// spanNum: 12,
// },
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'systolicBloodPressure'
,
model
:
'systolicBloodPressure'
,
label
:
'收缩压SBP:'
,
disabled
:
false
,
placeholder
:
'请输入'
,
spanNum
:
6
,
type
:
'number'
,
labmsg
:
'次'
,
slots
:
[{
name
:
'mmHg'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入收缩压SBP'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkIsInteger
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'diastolicBloodPressure'
,
model
:
'diastolicBloodPressure'
,
label
:
'舒张压DBP:'
,
disabled
:
false
,
placeholder
:
'请输入'
,
spanNum
:
6
,
type
:
'number'
,
labmsg
:
'次'
,
slots
:
[{
name
:
'mmHg'
,
type
:
'append'
}],
rules
:
[{
required
:
true
,
message
:
'请输入舒张压DBP'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkIsInteger
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'bodyHeight'
,
model
:
'bodyHeight'
,
label
:
'身高:'
,
disabled
:
false
,
placeholder
:
'请输入'
,
spanNum
:
6
,
type
:
'number'
,
labmsg
:
'次'
,
slots
:
[{
name
:
'cm'
,
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
.
bodyHeight
=
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
;
}
}
})
}
},
// 体质指数(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) => {
return
[
{
formType
:
'checkbox'
,
className
:
'obj-form-title'
,
className
:
'
float-none
obj-form-title'
,
prop
:
'symptom'
,
model
:
'symptom'
,
label
:
'选择的症状:'
,
// linkageRule: [{name: 'takeHypoglycemicDrugs', value: ['是']}],
disabled
:
false
,
changeFun
:
(
val
)
=>
{
// console.log(val)
},
spanNum
:
24
,
options
:
[
...
...
@@ -30,7 +28,7 @@ export default ($this) => {
},
{
formType
:
'input'
,
className
:
'
obj-form-title4
'
,
className
:
'
float-none obj-form-title2
'
,
linkageRule
:
[{
name
:
'symptom'
,
value
:
[
'其他'
]}],
prop
:
'remark'
,
model
:
'remark'
,
...
...
@@ -42,6 +40,7 @@ export default ($this) => {
labmsg
:
''
,
rules
:
[{
required
:
true
,
message
:
'请输入其他症状'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
]
}
src/views/followup/record-manage/patient-scale/hypertension.vue
浏览文件 @
5f73ebd8
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录