Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
355224a4
提交
355224a4
编写于
4月 03, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
1cd22ccb
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
103 行增加
和
199 行删除
+103
-199
fetch.js
src/utils/fetch.js
+4
-4
set-time-form.vue
src/views/followup/plan-manage/dialog/set-time-form.vue
+38
-81
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+55
-88
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+6
-26
未找到文件。
src/utils/fetch.js
浏览文件 @
355224a4
...
...
@@ -14,7 +14,7 @@ service.interceptors.request.use(config => {
if
(
config
.
headers
[
'sysCode'
]
==
undefined
)
{
config
.
headers
[
'sysCode'
]
=
12
}
config
.
headers
[
'token'
]
=
'
D74A6C7C61564EB1B3DC83251F33D17
3'
config
.
headers
[
'token'
]
=
'
807108DB003F4304A1037E8CD15BAA9
3'
//config.headers['token'] = localStorage.getItem('storageToken')
config
.
headers
[
'deviceInfo'
]
=
JSON
.
stringify
({
"app_channel"
:
""
,
"app_mac"
:
""
,
"app_uuid"
:
""
,
"app_version"
:
""
,
"device_brand"
:
""
,
"device_ip"
:
""
,
"device_model"
:
""
,
"device_net"
:
""
,
"device_ops"
:
""
,
"resolution_wh"
:
""
,
"system_level"
:
""
,
"device_type"
:
'10'
})
// if (config.data && config.data.setEntry) {
...
...
@@ -22,7 +22,7 @@ service.interceptors.request.use(config => {
// if(config.data.token){
// config.headers['token'] = config.data.token || '63C3FA92AF8A45A48B31EB7FD97B95EB'
// }
// config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
// }
return
config
...
...
@@ -35,10 +35,10 @@ service.interceptors.request.use(config => {
service
.
interceptors
.
response
.
use
(
response
=>
{
const
res
=
response
.
data
/*
/*
baseUrl时,返回000000为成功
apiUrl时,返回200为成功
*/
*/
// if (res.code !== '000000') {
// return Promise.reject('error')
// } else {
...
...
src/views/followup/plan-manage/dialog/set-time-form.vue
浏览文件 @
355224a4
...
...
@@ -7,9 +7,9 @@
<el-select
v-model=
"timeForm.timeNo"
placeholder=
"请选择"
>
<el-option
v-for=
"item in indexOptions"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
label
"
>
:key=
"item.
no
"
:label=
"item.
value
"
:value=
"item.
no
"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -27,33 +27,35 @@
</el-form-item>
<el-form-item
label=
"随访方式"
prop=
"type"
>
<el-radio-group
v-model=
"timeForm.type"
size=
"small"
>
<el-radio
:label=
"1"
>
门诊随访
</el-radio>
<el-radio
:label=
"2"
>
上门随访
</el-radio>
<el-radio
:label=
"3"
>
电话随访
</el-radio>
<el-radio
v-for=
"item in followTypeList"
:label=
"item.no"
>
{{
item
.
value
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"提醒医生预约居民"
>
<el-select
v-model=
"timeForm.remind
List[0].startDays
"
v-model=
"timeForm.remind
Day
"
multiple
:multiple-limit=
3
placeholder=
"请选择"
>
<el-option
v-for=
"item in remindOptions"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
value
"
>
:key=
"item.
no
"
:label=
"item.
value
"
:value=
"item.
no
"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"推送患教"
>
<div
style=
"display: flex"
>
<el-select
v-model=
"timeForm.pushContentList[0].startDays"
placeholder=
"选择推送时间"
clearable
>
<el-select
v-model=
"timeForm.pushDay"
placeholder=
"选择推送时间"
clearable
>
<el-option
v-for=
"item in pushTimeOptions"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
value
"
>
:key=
"item.
no
"
:label=
"item.
value
"
:value=
"item.
no
"
>
</el-option>
</el-select>
<el-button
plain
class=
"ml20"
@
click=
"goSelectCartoon"
v-if=
"!timeForm.hasSelected"
>
选择健康漫画
</el-button>
...
...
@@ -70,15 +72,15 @@
</div>
<el-form-item
label=
"随访登记表"
>
<el-select
v-model=
"timeForm.follow
upList[0].r
esourceId"
v-model=
"timeForm.follow
R
esourceId"
multiple
:multiple-limit=
2
placeholder=
"请选择"
>
<el-option
v-for=
"item in formOptions"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
value
"
>
:key=
"item.
no
"
:label=
"item.
value
"
:value=
"item.
no
"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -90,18 +92,6 @@
import
_
from
'lodash'
;
import
SelectCartoon
from
'@/views/followup/plan-manage/dialog/select-cartoon'
;
// const timeFormInit = {
// formRef: '',
// followupTime: '',
// followupMark: '',
// followupWay: '',
// pushTime: '',
// remindTime: [],
// followupForm: [],
// hasSelected: '',
// };
export
default
{
components
:
{
SelectCartoon
},
...
...
@@ -110,59 +100,29 @@
isSelectCartoon
:
false
,
indexOptions
:
[
{
value
:
'0'
,
label
:
'0'
},
{
value
:
'1'
,
label
:
'1'
},
{
value
:
'2'
,
label
:
'2'
},
{
value
:
'3'
,
label
:
'3'
},
],
remindOptions
:
[
{
value
:
'0'
,
label
:
'开始前30天'
no
:
0
,
value
:
0
},
{
value
:
'1'
,
label
:
'开始前20天'
},
{
value
:
'2'
,
label
:
'开始前10天'
},
],
pushTimeOptions
:
[
{
value
:
'0'
,
label
:
'开始前7天'
},
{
value
:
'1'
,
label
:
'开始前3天'
},
{
value
:
'2'
,
label
:
'当天'
},
no
:
1
,
value
:
1
}
],
formOptions
:
[
{
value
:
'0'
,
label
:
'随访登记表1'
no
:
0
,
value
:
'随访登记表1'
},
{
value
:
'1'
,
label
:
'随访登记表2'
no
:
1
,
value
:
'随访登记表2'
},
{
value
:
'2'
,
label
:
'随访登记表3'
no
:
2
,
value
:
'随访登记表3'
},
],
followResourceId
:
''
,
pushDay
:
''
,
remindDay
:
''
,
timeFormRules
:
{
timeNo
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
timeUnit
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
...
...
@@ -175,22 +135,19 @@
type
:
Object
,
},
valBegin
:
Boolean
,
markOptions
:
Array
markOptions
:
Array
,
followTypeList
:
Array
,
remindOptions
:
Array
,
pushTimeOptions
:
Array
,
},
watch
:
{
valBegin
(
val
){
if
(
val
){
// console.log('开始校验')
this
.
$refs
[
this
.
timeForm
.
formRef
].
validate
((
valid
)
=>
{
// console.log(valid)
this
.
$emit
(
'checkValid'
,
valid
)
});
}
}
},
created
(){
},
methods
:
{
getNowTime
()
{
...
...
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
355224a4
...
...
@@ -21,12 +21,15 @@
</div>
<div
class=
"form-div"
v-if=
"activeTab != 'setNewRef'"
>
<div
:key=
"timeFormHas.formRef"
v-for=
"(timeFormHas, index) in setTimeNodeList1
"
:label=
"index"
>
<div
v-for=
"(timeFormHas, index) in setTimeNodeList1"
:key=
"index
"
:label=
"index"
>
<set-time-form
v-if=
"index == activeTab"
:timeForm=
"timeFormHas"
:valBegin=
"valBegin"
:markOptions=
"markOptions"
:remindOptions=
"remindOptions"
:pushTimeOptions=
"pushTimeOptions"
:followTypeList=
"followTypeList"
@
checkValid=
"checkValid"
/>
</div>
...
...
@@ -36,8 +39,11 @@
<set-time-form
:timeForm=
"timeForm"
:valBegin=
"valBegin"
@
checkValid=
"checkValid"
:markOptions=
"markOptions"
:remindOptions=
"remindOptions"
:pushTimeOptions=
"pushTimeOptions"
:followTypeList=
"followTypeList"
@
checkValid=
"checkValid"
/>
</div>
</div>
...
...
@@ -59,30 +65,14 @@
type
:
''
,
//随访方式
timeNo
:
''
,
//随访时间
timeUnit
:
''
,
//随访时间单位
remindList
:
[
//提醒医生预约提前天数
{
startDays
:
''
}
],
pushContentList
:
[
{
resourceId
:
""
,
//漫画id
startDays
:
""
//推送患教提前天数
}
],
followupList
:
[
//随访量表id
{
resourceId
:
""
,
//随访量表id
}
],
// followupTime: '',
// followupMark: '',
// followupWay: '',
// pushTime: '',
// remindTime: [],
// followupForm: [],
remindList
:
[],
//提醒医生预约提前天数
pushContentList
:
[],
//推送患教提前天数 漫画id
followupList
:
[],
//随访量表id
hasSelected
:
''
,
isDisabled
:
false
,
remindDay
:
''
,
pushDay
:
''
,
followResourceId
:
''
};
...
...
@@ -99,62 +89,10 @@
currentFormRef
:
1
,
showSetBtn
:
true
,
timeForm
:
_
.
cloneDeep
(
timeFormInit
),
indexOptions
:
[
{
value
:
'0'
,
label
:
'0'
},
{
value
:
'1'
,
label
:
'1'
},
{
value
:
'2'
,
label
:
'2'
},
{
value
:
'3'
,
label
:
'3'
},
],
markOptions
:
[
],
remindOptions
:
[
{
value
:
'0'
,
label
:
'开始前30天'
},
{
value
:
'1'
,
label
:
'开始前20天'
},
{
value
:
'2'
,
label
:
'开始前10天'
},
],
pushTimeOptions
:
[
{
value
:
'0'
,
label
:
'开始前7天'
},
{
value
:
'1'
,
label
:
'开始前3天'
},
{
value
:
'2'
,
label
:
'当天'
},
],
formOptions
:
[
{
value
:
'0'
,
label
:
'随访登记表1'
},
{
value
:
'1'
,
label
:
'随访登记表2'
},
{
value
:
'2'
,
label
:
'随访登记表3'
},
],
markOptions
:
[],
followTypeList
:[],
remindOptions
:
[],
pushTimeOptions
:
[],
timeFormRules
:
{
timeNo
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
timeUnit
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
...
...
@@ -188,13 +126,7 @@
this
.
timeForm
.
isDisabled
=
true
;
this
.
timeForm
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
;
}
// 随访时间节点单位
getBasicData
({
numList
:
'P017'
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
markOptions
=
res
.
data
[
'P017'
]
})
this
.
getConstdata
()
},
watch
:
{
valBegin
(
val
){
...
...
@@ -227,10 +159,45 @@
}
},
methods
:
{
// 一次性获取常量接口数据
getConstdata
(){
// 随访时间节点单位
getBasicData
({
numList
:
'P017'
}).
then
(
res
=>
{
this
.
markOptions
=
res
.
data
[
'P017'
]
})
// 随访方式
getBasicData
({
numList
:
'P212'
}).
then
(
res
=>
{
this
.
followTypeList
=
res
.
data
[
'P212'
]
})
// 提醒医生天数
getBasicData
({
numList
:
'P213'
}).
then
(
res
=>
{
this
.
remindOptions
=
res
.
data
[
'P213'
]
})
// 推送患教提醒天数
getBasicData
({
numList
:
'P214'
}).
then
(
res
=>
{
this
.
pushTimeOptions
=
res
.
data
[
'P214'
]
})
},
checkValid
(
val
){
// console.log(val)
this
.
valBegin
=
false
if
(
val
)
{
this
.
timeForm
.
remindDay
.
forEach
((
item
)
=>
{
this
.
timeForm
.
remindList
.
push
({
startDays
:
item
})
})
this
.
timeForm
.
pushContentList
.
push
({
startDays
:
this
.
timeForm
.
pushDay
,
resourceId
:
''
})
this
.
timeForm
.
followResourceId
.
forEach
((
item
)
=>
{
this
.
timeForm
.
followupList
.
push
({
resourceId
:
item
})
})
this
.
setTimeNodeList
.
push
(
this
.
timeForm
);
this
.
timeForm
=
_
.
cloneDeep
(
timeFormInit
);
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
...
...
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
355224a4
...
...
@@ -44,9 +44,9 @@
clearable
>
<el-option
v-for=
"item in templateOptions"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
value
"
>
:key=
"item.
no
"
:label=
"item.
value
"
:value=
"item.
no
"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -120,10 +120,6 @@
time
:
''
,
//随访开始时间
remarksStatus
:
''
,
fPlanTimeReqList
:
[],
//时间节点列表
// followupTemplate: '',
// startTime: '',
// followupKind: '',
hasSelectedNum
:
0
,
},
isShowSelectPatient
:
false
,
...
...
@@ -131,25 +127,11 @@
hasSelectedList
:
[],
templateOptions
:
[
{
value
:
'0'
,
label
:
'随访模板一'
},
{
value
:
'1'
,
label
:
'随访模板二'
},
{
value
:
'2'
,
label
:
'随访模板三'
no
:
0
,
value
:
'目前请选择自定义模板作为测试'
}
],
kindOptions
:
[
// {
// value: '0',
// label: '上门随访'
// }, {
// value: '1',
// label: '术后随访'
// }
],
kindOptions
:
[],
rules
:
{
name
:
[{
required
:
true
,
message
:
'请输入随访计划名称'
,
trigger
:
'blur'
}],
hasSelectedNum
:
[{
required
:
true
,
message
:
'请添加随访居民'
,
trigger
:
'change'
}],
...
...
@@ -163,7 +145,6 @@
getBasicData
({
numList
:
'P211'
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
kindOptions
=
res
.
data
[
'P211'
]
})
},
...
...
@@ -240,7 +221,6 @@
},
saveEdit
()
{
this
.
baseInfo
.
fPlanTimeReqList
=
this
.
setTimeNodeList
console
.
log
(
this
.
baseInfo
)
createFollowPlan
(
this
.
baseInfo
)
// console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1)
// console.log('store中的setTimeNodeList数据为=>',JSON.stringify(this.setTimeNodeList))
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录