Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
9725edb0
提交
9725edb0
编写于
5月 07, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
7979afc8
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
45 行增加
和
27 行删除
+45
-27
diabetesSourseAuxiliary.js
.../record-manage/models/diabetes/diabetesSourseAuxiliary.js
+44
-26
diabetes.vue
src/views/followup/record-manage/patient-scale/diabetes.vue
+1
-1
未找到文件。
src/views/followup/record-manage/models/diabetes/diabetesSourseAuxiliary.js
浏览文件 @
9725edb0
import
{
checkRange
,
checkIsInteger
,
checkNumberIsToFixed
,
checkNumberIsToFixedTwo
}
from
'@/utils/followup/followupUtils/checkField'
;
import
{
checkRange
,
checkIsInteger
,
checkNumberIsToFixed
,
checkNumberIsToFixedTwo
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
export
default
(
$this
)
=>
{
let
hanldeValue
=
()
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'diabetesSourseAuxiliary'
){
const
glycosylatedHemoglobinPercent
=
item
.
formObject
.
glycosylatedHemoglobinPercent
const
glycosylatedHemoglobinDate
=
item
.
formObject
.
glycosylatedHemoglobinDate
item
.
dataSource
.
forEach
((
item2
,
index2
)
=>
{
if
((
glycosylatedHemoglobinPercent
||
glycosylatedHemoglobinDate
)
&&
item2
.
refs
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
true
;
$this
.
$refs
[
'form'
+
index
][
0
].
validateField
(
'glycosylatedHemoglobinPercent'
);
$this
.
$refs
[
'form'
+
index
][
0
].
validateField
(
'glycosylatedHemoglobinDate'
);
}
else
{
if
(
item2
.
refs
){
if
(
item2
.
refs
==
'glycosylatedHemoglobinPercent'
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
=
[{
required
:
false
,
message
:
'请输入糖化血红蛋白值'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]
}];
}
else
{
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
false
;
}
$this
.
$nextTick
(()
=>
{
$this
.
$refs
[
'form'
+
index
][
0
].
validate
((
valid
)
=>
{
});
$this
.
$refs
[
'form'
+
index
][
0
].
clearValidate
(
'fastingBloodSugar'
);
$this
.
$refs
[
'form'
+
index
][
0
].
clearValidate
(
'glycosylatedHemoglobinPercent'
);
$this
.
$refs
[
'form'
+
index
][
0
].
clearValidate
(
'glycosylatedHemoglobinDate'
);
})
}
}
})
}
})
}
return
[
return
[
{
{
formType
:
'input'
,
formType
:
'input'
,
...
@@ -27,6 +64,7 @@ export default ($this) => {
...
@@ -27,6 +64,7 @@ export default ($this) => {
className
:
'float-none'
,
className
:
'float-none'
,
prop
:
'glycosylatedHemoglobinPercent'
,
prop
:
'glycosylatedHemoglobinPercent'
,
model
:
'glycosylatedHemoglobinPercent'
,
model
:
'glycosylatedHemoglobinPercent'
,
refs
:
'glycosylatedHemoglobinPercent'
,
disabled
:
false
,
disabled
:
false
,
label
:
'糖化血红蛋白值:'
,
label
:
'糖化血红蛋白值:'
,
placeholder
:
'请输入糖化血红蛋白值'
,
placeholder
:
'请输入糖化血红蛋白值'
,
...
@@ -35,45 +73,25 @@ export default ($this) => {
...
@@ -35,45 +73,25 @@ export default ($this) => {
type
:
'number'
,
type
:
'number'
,
labmsg
:
''
,
labmsg
:
''
,
slots
:
[{
name
:
'%'
,
type
:
'append'
}],
slots
:
[{
name
:
'%'
,
type
:
'append'
}],
rules
:
[{
required
:
false
,
message
:
'请输入糖化血红蛋白值'
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkNumberIsToFixedTwo
,
trigger
:
[
'submit'
,
'change'
]
}],
rules
:
[{
required
:
false
,
message
:
'请输入糖化血红蛋白值'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]
},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
]
},{
validator
:
checkNumberIsToFixedTwo
,
trigger
:
[
'submit'
,
'change'
]
}],
changeFun
:
(
val
)
=>
{
changeFun
:
hanldeValue
,
let
flag
=
val
?
true
:
false
;
blurFunc
:
hanldeValue
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'diabetesSourseAuxiliary'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
if
(
item
.
prop
==
'glycosylatedHemoglobinDate'
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
}
})
}
},
},
{
{
formType
:
'date-picker'
,
formType
:
'date-picker'
,
className
:
'float-none'
,
className
:
'float-none'
,
prop
:
'glycosylatedHemoglobinDate'
,
prop
:
'glycosylatedHemoglobinDate'
,
model
:
'glycosylatedHemoglobinDate'
,
model
:
'glycosylatedHemoglobinDate'
,
refs
:
'glycosylatedHemoglobinDate'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
label
:
'检查日期:'
,
label
:
'检查日期:'
,
format
:
'MM 月 dd 日'
,
format
:
'MM 月 dd 日'
,
valueFormat
:
'MM-dd'
,
valueFormat
:
'MM-dd'
,
dateType
:
'date'
,
dateType
:
'date'
,
type
:
'date'
,
type
:
'date'
,
rules
:
[{
required
:
false
,
message
:
'请选择检查日期'
,
trigger
:
[
'submit'
,
'change'
]}],
rules
:
[{
required
:
false
,
message
:
'请选择检查日期'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
spanNum
:
12
,
spanNum
:
12
,
changeFun
:
(
val
)
=>
{
changeFun
:
hanldeValue
,
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'diabetesSourseAuxiliary'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
if
(
item
.
prop
==
'glycosylatedHemoglobinPercent'
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
}
})
}
},
},
]
]
}
}
...
...
src/views/followup/record-manage/patient-scale/diabetes.vue
浏览文件 @
9725edb0
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
{
name
:
'diabetesSourseSymptom'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_001'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseSymptom
(
this
),
hideTitle
:
false
,
title
:
'症状'
},
{
name
:
'diabetesSourseSymptom'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_001'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseSymptom
(
this
),
hideTitle
:
false
,
title
:
'症状'
},
{
name
:
'diabetesSourseSign'
,
formObject
:
{
bmi
:
0
,
nextBmi
:
0
,},
showModule
:
true
,
formName
:
'diabetes_002'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseSign
(
this
),
hideTitle
:
false
,
title
:
'体征'
},
{
name
:
'diabetesSourseSign'
,
formObject
:
{
bmi
:
0
,
nextBmi
:
0
,},
showModule
:
true
,
formName
:
'diabetes_002'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseSign
(
this
),
hideTitle
:
false
,
title
:
'体征'
},
{
name
:
'diabetesSourseLifeMode'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_003'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseLifeMode
(
this
),
hideTitle
:
false
,
title
:
'生活方式指导'
},
{
name
:
'diabetesSourseLifeMode'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_003'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseLifeMode
(
this
),
hideTitle
:
false
,
title
:
'生活方式指导'
},
{
name
:
'diabetesSourseAuxiliary'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_004'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseAuxiliary
(
this
),
hideTitle
:
false
,
title
:
'辅助检查'
},
{
name
:
'diabetesSourseAuxiliary'
,
formObject
:
{
glycosylatedHemoglobinPercent
:
''
,
glycosylatedHemoglobinDate
:
''
},
showModule
:
true
,
formName
:
'diabetes_004'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseAuxiliary
(
this
),
hideTitle
:
false
,
title
:
'辅助检查'
},
{
name
:
'diabetesSourseOther'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_005'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseOther
(
this
),
hideTitle
:
true
,
title
:
'其他'
},
{
name
:
'diabetesSourseOther'
,
formObject
:
{},
showModule
:
true
,
formName
:
'diabetes_005'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseOther
(
this
),
hideTitle
:
true
,
title
:
'其他'
},
{
name
:
'diabetesSourseMedicationUse'
,
formObject
:
{
arrList
:
this
.
medication
},
showModule
:
true
,
formName
:
'h_s_002'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseMedicationUse
(
this
),
hideTitle
:
false
,
title
:
'用药情况'
},
{
name
:
'diabetesSourseMedicationUse'
,
formObject
:
{
arrList
:
this
.
medication
},
showModule
:
true
,
formName
:
'h_s_002'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseMedicationUse
(
this
),
hideTitle
:
false
,
title
:
'用药情况'
},
{
name
:
'diabetesSourseReferral'
,
formObject
:
{},
showModule
:
true
,
formName
:
'h_s_003'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseReferral
(
this
),
hideTitle
:
false
,
title
:
'转诊'
},
{
name
:
'diabetesSourseReferral'
,
formObject
:
{},
showModule
:
true
,
formName
:
'h_s_003'
,
className
:
'obj-form-title'
,
dataSource
:
diabetesSourseReferral
(
this
),
hideTitle
:
false
,
title
:
'转诊'
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录