Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
55a0a8da
提交
55a0a8da
编写于
4月 30, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
cb59f6e4
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
88 行增加
和
48 行删除
+88
-48
chose-medication.vue
src/views/followup/record-manage/dialog/chose-medication.vue
+13
-0
hypeDataSourceBaseInfo.js
...cord-manage/models/hypertension/hypeDataSourceBaseInfo.js
+8
-8
hypeDataSourceNextFollowDay.js
...manage/models/hypertension/hypeDataSourceNextFollowDay.js
+14
-0
hypeDataSourceReferral.js
...cord-manage/models/hypertension/hypeDataSourceReferral.js
+22
-8
hypeDataSourceSign.js
...p/record-manage/models/hypertension/hypeDataSourceSign.js
+3
-3
hypeDataSourceSignature.js
...ord-manage/models/hypertension/hypeDataSourceSignature.js
+0
-18
hypertension.vue
...ews/followup/record-manage/patient-scale/hypertension.vue
+28
-11
未找到文件。
src/views/followup/record-manage/dialog/chose-medication.vue
0 → 100644
浏览文件 @
55a0a8da
<
template
>
<div>
</div>
</
template
>
<
script
>
export
default
{}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/followup/record-manage/models/hypertension/hypeDataSourceBaseInfo.js
浏览文件 @
55a0a8da
...
...
@@ -5,8 +5,8 @@ export default ($this) => {
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'
followUpUser
'
,
model
:
'
followUpUser
'
,
prop
:
'
name
'
,
model
:
'
name
'
,
label
:
'姓名:'
,
disabled
:
false
,
placeholder
:
'请输入姓名'
,
...
...
@@ -20,8 +20,8 @@ export default ($this) => {
{
formType
:
'date-picker'
,
className
:
'float-none'
,
prop
:
'follow
U
pDate'
,
model
:
'follow
U
pDate'
,
prop
:
'follow
u
pDate'
,
model
:
'follow
u
pDate'
,
placeholder
:
'请选择'
,
label
:
'随访日期:'
,
format
:
'yyyy-MM-dd'
,
...
...
@@ -35,8 +35,8 @@ export default ($this) => {
{
formType
:
'radio'
,
className
:
'obj-form-title'
,
prop
:
'follow
UpWay
'
,
model
:
'follow
UpWay
'
,
prop
:
'follow
upType
'
,
model
:
'follow
upType
'
,
spanNum
:
24
,
label
:
'随访方式:'
,
options
:
[
...
...
@@ -52,8 +52,8 @@ export default ($this) => {
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'
followUpNumber
'
,
model
:
'
followUpNumber
'
,
prop
:
'
no
'
,
model
:
'
no
'
,
label
:
'编号:'
,
disabled
:
false
,
placeholder
:
'请输入编号'
,
...
...
src/views/followup/record-manage/models/hypertension/hypeDataSourceNextFollowDay.js
浏览文件 @
55a0a8da
...
...
@@ -14,5 +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'
]}],
},
]
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceReferral.js
浏览文件 @
55a0a8da
...
...
@@ -5,33 +5,47 @@ export default ($this) => {
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'
aaa
'
,
model
:
'
aaa
'
,
prop
:
'
reason
'
,
model
:
'
reason
'
,
label
:
'原因:'
,
disabled
:
false
,
placeholder
:
'请输入原因'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
rules
:
[{
required
:
false
,
message
:
'请输入原因'
,
trigger
:
[
'submit'
,
'change'
]}],
rules
:
[{
required
:
false
,
message
:
'请输入原因'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
changeFun
:
(
val
)
=>
{
// console.log($this.formData)
// console.log(val)
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceReferral'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
})
}
})
},
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'
bbb
'
,
model
:
'
bbb
'
,
prop
:
'
mechanismDepartment
'
,
model
:
'
mechanismDepartment
'
,
label
:
'机构及科别:'
,
disabled
:
false
,
placeholder
:
'请输入机构及科别'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
rules
:
[{
required
:
false
,
message
:
'请输入机构及科别'
,
trigger
:
[
'submit'
,
'change'
]}],
rules
:
[{
required
:
false
,
message
:
'请输入机构及科别'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
changeFun
:
(
val
)
=>
{
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceReferral'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
})
}
})
},
},
]
...
...
src/views/followup/record-manage/models/hypertension/hypeDataSourceSign.js
浏览文件 @
55a0a8da
...
...
@@ -50,7 +50,7 @@ export default ($this) => {
}
})
},
blurFunc
:
(
val
)
=>
{
blurFunc
:
()
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceSign'
){
let
bodyWeight
=
$this
.
addComponents
[
index
].
formObject
.
bodyWeight
...
...
@@ -86,7 +86,7 @@ export default ($this) => {
}
})
},
blurFunc
:
(
val
)
=>
{
blurFunc
:
()
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'hypeDataSourceSign'
){
let
bodyWeight
=
$this
.
addComponents
[
index
].
formObject
.
bodyWeight
...
...
@@ -140,7 +140,7 @@ export default ($this) => {
maxlength
:
30
,
type
:
'text'
,
labmsg
:
''
,
rules
:
[{
required
:
tru
e
,
message
:
'请输入其他体征'
,
trigger
:
[
'submit'
,
'change'
]
}]
rules
:
[{
required
:
fals
e
,
message
:
'请输入其他体征'
,
trigger
:
[
'submit'
,
'change'
]
}]
},
]
}
...
...
src/views/followup/record-manage/models/hypertension/hypeDataSourceSignature.js
已删除
100644 → 0
浏览文件 @
cb59f6e4
export
default
(
$this
)
=>
{
return
[
{
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/patient-scale/hypertension.vue
浏览文件 @
55a0a8da
...
...
@@ -41,7 +41,6 @@
import
hypeDataSourceMedicationUse
from
'../models/hypertension/hypeDataSourceMedicationUse'
import
hypeDataSourceReferral
from
'../models/hypertension/hypeDataSourceReferral'
import
hypeDataSourceNextFollowDay
from
'../models/hypertension/hypeDataSourceNextFollowDay'
import
hypeDataSourceSignature
from
'../models/hypertension/hypeDataSourceSignature'
export
default
{
data
(){
...
...
@@ -176,25 +175,24 @@
{
name
:
'hypeDataSourceLifeMode'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_004'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceLifeMode
(
this
),
hideTitle
:
false
,
title
:
'生活方式指导'
},
{
name
:
'hypeDataSourceHelpChecking'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_005'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceHelpChecking
(
this
),
hideTitle
:
false
,
title
:
'辅助检查'
},
{
name
:
'hypeDataSourceMedicationUse'
,
formObject
:
{},
showModule
:
true
,
formName
:
'hypertension_006'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceMedicationUse
(
this
),
hideTitle
:
false
,
title
:
'用药情况'
},
{
name
:
'hypeDataSourceReferral'
,
formObject
:
{
aaa
:
''
,
bbb
:
''
},
showModule
:
true
,
formName
:
'hypertension_007'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceReferral
(
this
),
hideTitle
:
false
,
title
:
'转诊'
},
{
name
:
'hypeDataSourceReferral'
,
formObject
:
{
reason
:
''
,
mechanismDepartment
:
''
},
showModule
:
true
,
formName
:
'hypertension_007'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceReferral
(
this
),
hideTitle
:
false
,
title
:
'转诊'
},
{
name
:
'hypeDataSourceNextFollowDay'
,
formObject
:
{
nextFollowDay
:
''
},
showModule
:
true
,
formName
:
'hypertension_008'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceNextFollowDay
(
this
),
hideTitle
:
true
,
title
:
'下次随访日期'
},
{
name
:
'hypeDataSourceSignature'
,
formObject
:
{
doctorSignature
:
''
},
showModule
:
true
,
formName
:
'hypertension_009'
,
className
:
'obj-form-title'
,
dataSource
:
hypeDataSourceSignature
(
this
),
hideTitle
:
true
,
title
:
'随访医生签名'
},
]
this
.
addComponents
=
this
.
addComponentsSourceList
},
// 获取白名单域名
getWhiteDomain
(){
getDomain
().
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
domain
=
res
.
data
;
// 获取量表模块
// this.getFormModules();
// 目前模块先写死,记得后面和后台沟通改!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this
.
setFormData
()
if
(
this
.
showBtn
!=
'0'
){
// 获取量表详情
this
.
getFormDetail
();
}
// 目前模块先写死!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// 获取量表模块
// this.getFormModules();
// if(this.showBtn!='0'){
// // 获取量表详情
// this.getFormDetail();
// }
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -203,6 +201,25 @@
}
})
},
// 目前先默认写死
setFormData
(){
this
.
addComponents
=
this
.
addComponentsSourceList
for
(
let
i
=
0
;
i
<
this
.
addComponents
.
length
;
i
++
){
let
formName
=
this
.
addComponents
[
i
].
formName
;
if
(
this
.
formData
[
formName
]){
this
.
addComponents
[
i
].
formObject
=
this
.
formData
[
formName
];
}
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
// if(this.$refs['form' + i].length > 0){
// this.$refs['form' + i][0].resetFields();
// }
}
this
.
canRender
=
true
;
this
.
$forceUpdate
();
},
// 动态开启验证开关
// setRuleToTrue(index){
// this.addComponents[index].dataSource.forEach((item,k)=>{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录