Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
7aefa265
提交
7aefa265
编写于
5月 07, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
e82e0a98
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
44 行增加
和
52 行删除
+44
-52
hypeDataSourceMedicationUse.js
...manage/models/hypertension/hypeDataSourceMedicationUse.js
+29
-36
hypeDataSourceNextFollowDay.js
...manage/models/hypertension/hypeDataSourceNextFollowDay.js
+14
-14
hypeDataSourceReferral.js
...cord-manage/models/hypertension/hypeDataSourceReferral.js
+1
-1
hypertension.vue
...ews/followup/record-manage/patient-scale/hypertension.vue
+0
-1
未找到文件。
src/views/followup/record-manage/models/hypertension/hypeDataSourceMedicationUse.js
浏览文件 @
7aefa265
import
{
checkRange
,
checkIsInteger
,
checkNumberIsToFixed
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
let
hanldeValue
=
()
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceMedicationUse'
){
const
medicinesName
=
item
.
formObject
.
medicinesName
const
dosageDay
=
item
.
formObject
.
dosageDay
const
dosageNum
=
item
.
formObject
.
dosageNum
item
.
dataSource
.
forEach
((
item2
,
index2
)
=>
{
if
((
medicinesName
||
dosageDay
||
dosageNum
)
&&
item2
.
rules
&&
item2
.
prop
!=
'arrList'
&&
item2
.
refs
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
true
;
}
else
{
if
(
item2
.
refs
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
false
;
}
}
})
$this
.
$refs
[
'form'
+
index
][
0
].
validate
();
}
})
}
return
[
{
formType
:
'list'
,
...
...
@@ -50,6 +70,7 @@ export default ($this) => {
className
:
'float-none'
,
prop
:
'medicinesName'
,
model
:
'medicinesName'
,
refs
:
'medicinesName'
,
label
:
'其他药物名称:'
,
disabled
:
false
,
placeholder
:
'请输入其他药物'
,
...
...
@@ -58,24 +79,15 @@ export default ($this) => {
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
false
,
message
:
'请输入其他药物'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
changeFun
:
(
val
)
=>
{
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceMedicationUse'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
if
(
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
&&
$this
.
addComponents
[
index
].
dataSource
[
index2
].
prop
!=
'arrList'
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
}
})
},
changeFun
:
hanldeValue
,
blurFunc
:
hanldeValue
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'dosageDay'
,
model
:
'dosageDay'
,
refs
:
'dosageDay'
,
label
:
'其他药物用法:'
,
disabled
:
false
,
placeholder
:
'请输入其他药物用法每日几次'
,
...
...
@@ -84,24 +96,15 @@ export default ($this) => {
type
:
'text'
,
slots
:
[{
name
:
'次/日'
,
type
:
'append'
}],
rules
:
[{
required
:
false
,
message
:
'请输入其他药物用法每日几次'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]},{
validator
:
checkRange
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]
}],
changeFun
:
(
val
)
=>
{
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceMedicationUse'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
if
(
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
&&
$this
.
addComponents
[
index
].
dataSource
[
index2
].
prop
!=
'arrList'
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
}
})
},
changeFun
:
hanldeValue
,
blurFunc
:
hanldeValue
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'dosageNum'
,
model
:
'dosageNum'
,
refs
:
'dosageNum'
,
label
:
'其他药物用量:'
,
disabled
:
false
,
placeholder
:
'请输入其他药物每次用量'
,
...
...
@@ -110,18 +113,8 @@ export default ($this) => {
type
:
'text'
,
slots
:
[{
name
:
'每次'
,
type
:
'append'
}],
rules
:
[{
required
:
false
,
message
:
'请输入其他药物每次用量'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
changeFun
:
(
val
)
=>
{
let
flag
=
(
val
!==
''
&&
val
>=
0
)
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceMedicationUse'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
if
(
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
&&
$this
.
addComponents
[
index
].
dataSource
[
index2
].
prop
!=
'arrList'
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
}
})
},
changeFun
:
hanldeValue
,
blurFunc
:
hanldeValue
},
]
}
...
...
src/views/followup/record-manage/models/hypertension/hypeDataSourceNextFollowDay.js
浏览文件 @
7aefa265
...
...
@@ -14,19 +14,19 @@ export default ($this) => {
rules
:
[{
required
:
true
,
message
:
'请选择下次随访日期'
,
trigger
:
[
'submit'
,
'change'
]}],
spanNum
:
12
,
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'doctorSignature'
,
model
:
'doctorSignature'
,
label
:
'随访医生签名:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员姓名'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访医生签名'
,
trigger
:
[
'submit'
,
'change'
]}],
},
//
{
//
formType: 'input',
//
className: 'float-none',
//
prop: 'doctorSignature',
//
model: 'doctorSignature',
//
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/hypeDataSourceReferral.js
浏览文件 @
7aefa265
...
...
@@ -14,8 +14,8 @@ export default ($this) => {
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
false
;
}
})
$this
.
$refs
[
'form'
+
index
][
0
].
validate
();
}
$this
.
$refs
[
'form'
+
index
][
0
].
validate
();
})
}
return
[
...
...
src/views/followup/record-manage/patient-scale/hypertension.vue
浏览文件 @
7aefa265
...
...
@@ -341,7 +341,6 @@
setMedication
(
val
){
this
.
medication
.
push
({...
val
,
medicineType
:
'1'
});
console
.
log
(
'medication=>'
,
this
.
medication
)
console
.
log
(
this
.
addComponents
)
}
},
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录