Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
883d98ee
提交
883d98ee
编写于
5月 27, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
差异文件
merge code
上级
15e2a878
b8ddbfcb
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
130 行增加
和
61 行删除
+130
-61
select-patitents.vue
src/views/patients/labels-manage/dialog/select-patitents.vue
+10
-2
labels-detail.vue
src/views/patients/labels-manage/labels-detail.vue
+2
-0
edit-information.vue
...atients/mypatients-manage/components/edit-information.vue
+44
-29
patient-detail.vue
src/views/patients/mypatients-manage/patient-detail.vue
+2
-2
patients-list.vue
src/views/patients/mypatients-manage/patients-list.vue
+6
-2
new-patient.vue
src/views/patients/new-manage/new-patient.vue
+66
-26
未找到文件。
src/views/patients/labels-manage/dialog/select-patitents.vue
浏览文件 @
883d98ee
...
...
@@ -228,6 +228,14 @@
isShowSelectPatient
:
Boolean
,
//是否显示model,
patientIdList
:
Array
,
// 确定已经选过的居民
oldPatientIdList
:
Array
,
// 确定已经选过的居民
selectPatientType
:
Number
,
//获取居民列表所需字段,随访是1,分组是2,患教是3
fuPlanIdList
:
{
required
:
false
,
type
:
Array
,
default
:
function
()
{
return
[];
}
},
//获取居民列表所需字段,若是随访,则需要传值
},
watch
:
{
isShowSelectPatient
(
val
){
...
...
@@ -284,8 +292,8 @@
sex
:
this
.
searchData
.
sex
,
searchCondition
:
this
.
searchData
.
searchCondition
,
srvPackageId
:
this
.
srvPackageId
,
addType
:
1
,
fuPlanIdList
:
[]
,
addType
:
this
.
selectPatientType
,
//随访是1,分组是2,患教是3
fuPlanIdList
:
this
.
fuPlanIdList
,
}
getPatientInfoList
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
patientList
){
...
...
src/views/patients/labels-manage/labels-detail.vue
浏览文件 @
883d98ee
...
...
@@ -140,6 +140,7 @@
:isShowSelectPatient=
"isShowSelectPatient"
:patientIdList=
"patientIdList"
@
closeSelectPatient=
"closeSelectPatient"
:selectPatientType=
"selectPatientType"
@
sureSelectPatient=
"sureSelectPatient(arguments)"
/>
</div>
...
...
@@ -183,6 +184,7 @@
newLabelName
:
''
,
// 修改后的分组名
},
multipleSelection
:
[],
selectPatientType
:
2
,
//选择居民时需要的type类型
}
},
components
:
{
...
...
src/views/patients/mypatients-manage/components/edit-information.vue
浏览文件 @
883d98ee
...
...
@@ -32,7 +32,7 @@
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
style=
"text-align: center;margin-top:15px;"
v-
if
=
"!patientId"
>
<el-button
plain
size=
"small"
@
click=
"toggleClick"
>
{{
tipsText
}}
</el-button></el-col>
<el-col
:span=
"24"
style=
"text-align: center;margin-top:15px;"
v-
show
=
"!patientId"
>
<el-button
plain
size=
"small"
@
click=
"toggleClick"
>
{{
tipsText
}}
</el-button></el-col>
</el-row>
<div
v-show=
"isShowAll || patientId"
>
<div
class=
"has-header"
>
数据记录
</div>
...
...
@@ -102,7 +102,7 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"年龄"
prop=
"age"
>
<span>
{{
(
patientInfoForm
.
age
||
patientInfoForm
.
age
==
0
)
?
`${patientInfoForm.age
}
岁`
:
'-'
}}
<
/span
>
<span>
{{
(
patientInfoForm
.
age
||
patientInfoForm
.
age
==
0
)
?
`${patientInfoForm.age
}
岁`
:
'-'
}}
<
/span
>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
...
...
@@ -329,7 +329,13 @@
props
:
{
patientInfoObj
:
Object
,
checkForm
:
Boolean
,
patientId
:
String
,
patientId
:
{
required
:
false
,
type
:
String
,
default
:
function
()
{
return
''
;
}
}
,
}
,
watch
:
{
async
patientInfoObj
(
val
)
{
...
...
@@ -372,32 +378,7 @@
this
.
addressList
=
[];
}
}
else
{
// 新增
this
.
patientInfoForm
=
{
nickname
:
''
,
mobilePhone
:
''
,
diseases
:
[],
patientDiseases
:
[],
customLabels
:
[],
idNo
:
''
,
birthTime
:
''
,
age
:
''
,
sex
:
null
,
permanentResidence
:
''
,
nationality
:
''
,
socialCard
:
''
,
fileLocator
:
''
,
isWechatBind
:
null
,
isRemind
:
null
,
wechatNickname
:
''
,
remark
:
''
,
patientAddress
:
''
,
address
:
''
,
workplace
:
''
,
provinceId
:
null
,
cityId
:
null
,
countyId
:
null
,
townId
:
null
,
}
this
.
initForm
();
}
}
,
checkForm
(
val
){
...
...
@@ -410,6 +391,9 @@
this
.
initConstant
();
}
,
mounted
(){
if
(
!
this
.
patientId
){
//新建计划
this
.
initForm
();
}
}
,
computed
:
{
...
mapGetters
([
...
...
@@ -424,6 +408,34 @@
}
,
}
,
methods
:
{
initForm
()
{
this
.
patientInfoForm
=
{
nickname
:
''
,
mobilePhone
:
''
,
diseases
:
[],
patientDiseases
:
[],
customLabels
:
[],
idNo
:
''
,
birthTime
:
''
,
age
:
''
,
sex
:
null
,
permanentResidence
:
''
,
nationality
:
''
,
socialCard
:
''
,
fileLocator
:
''
,
isWechatBind
:
null
,
isRemind
:
null
,
wechatNickname
:
''
,
remark
:
''
,
patientAddress
:
''
,
address
:
''
,
workplace
:
''
,
provinceId
:
null
,
cityId
:
null
,
countyId
:
null
,
townId
:
null
,
}
}
,
initConstant
(){
getDiseasesList
().
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
)
{
...
...
@@ -527,6 +539,9 @@
}
)
this
.
patientInfoForm
.
patientAddress
=
`${this.patientInfoForm.provinceName
}
${this.patientInfoForm.cityName
}
${this.patientInfoForm.countyName
}
${this.patientInfoForm.townName
}
`
}
if
(
!
this
.
patientInfoForm
.
idNo
)
{
this
.
patientInfoForm
.
idNo
=
null
;
}
if
(
valid
)
{
// console.log('提交表单',this.patientInfoForm);
this
.
$emit
(
'addListenSave'
,{
...
...
src/views/patients/mypatients-manage/patient-detail.vue
浏览文件 @
883d98ee
...
...
@@ -9,7 +9,7 @@
<div
class=
"f-main-content screenSet"
>
<div>
<div
class=
"right-btn-group"
v-if=
"activeName == 'first'"
>
<el-button
plain
size=
"small"
@
click=
"deletePatient"
>
删除
</el-button>
<el-button
plain
size=
"small"
@
click=
"delete
Current
Patient"
>
删除
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"editPatient"
>
编辑
</el-button>
</div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabChangeHandler"
>
...
...
@@ -259,7 +259,7 @@
}
)
}
,
tabChangeHandler
(
tab
)
{
}
,
deletePatient
()
{
delete
Current
Patient
()
{
// 把写的提示信息需要换行的地方分成数组 confirmText
const
confirmText
=
[
'您确定要删除此居民吗?'
,
'删除后,您将无法对该居民发送患教和进行随访,重新添加该居民依旧可查看历史发送记录及随访记录'
];
const
newDatas
=
[];
...
...
src/views/patients/mypatients-manage/patients-list.vue
浏览文件 @
883d98ee
...
...
@@ -8,7 +8,7 @@
<h1
class=
"page-title"
>
我的居民:共
{{
pagination
.
totalRows
}}
人
</h1>
<div
class=
"search-div"
>
<div
class=
"search-input"
>
<el-form
:model=
"searchData"
ref=
"searchData"
:inline=
"true"
>
<el-form
:model=
"searchData"
ref=
"searchData"
:inline=
"true"
label-width=
"100px"
>
<el-form-item
label=
"性别:"
prop=
"patientName"
>
<el-select
v-model=
"searchData.sex"
size=
"small"
clearable
:popper-append-to-body=
"false"
>
<el-option
...
...
@@ -323,8 +323,12 @@
justify-content
:
space-between
;
padding
:
30px
0
10px
0
;
border-bottom
:
1px
solid
#efefef
;
.search-input
{
flex
:
1
;
}
.search-btn
{
min-width
:
127px
;
text-align
:
right
;
width
:
150px
;
}
}
.blank-wrap
{
...
...
src/views/patients/new-manage/new-patient.vue
浏览文件 @
883d98ee
...
...
@@ -5,8 +5,15 @@
<el-tabs
v-model=
"activeName2"
@
tab-click=
"handleTabClick"
class=
"tab-list"
>
<el-tab-pane
label=
"单个录入"
name=
"first"
class=
"single-input"
>
<el-row
class=
"save-and-add"
>
<el-button
type=
"primary"
>
保存并新增
</el-button>
<el-button
type=
"primary"
@
click=
"saveEdit"
>
保存并新增
</el-button>
</el-row>
<edit-information
ref=
"newForm"
:patientInfoObj=
"patientInfo"
:checkForm=
"checkForm"
@
addListenSave=
"addListenSave"
:patientId=
"patientId"
>
</edit-information>
</el-tab-pane>
<el-tab-pane
label=
"二维码录入"
name=
"second"
>
<div
class=
"qr-code-wrap"
>
...
...
@@ -246,18 +253,21 @@
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
<
script
>
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
EditInformation
from
'../mypatients-manage/components/edit-information'
import
*
as
commonUtil
from
"@/utils/utils"
;
import
{
getQRCode
,
getUploadHistory
,
getLabelList
,
refreshCode
,
// getUploadHistory,
savePatientInfo
}
from
"@/utils/patients/patientsapi"
;
import
{
getSaasDomain
}
from
'@/utils/index'
;
import
QRCode
from
'qrcode'
;
...
...
@@ -267,7 +277,10 @@
return
{
curmbFirst
:
"居民管理"
,
curmbSecond
:
"新增居民"
,
activeName2
:
'second'
,
activeName2
:
'first'
,
patientInfo
:
{},
checkForm
:
false
,
patientId
:
''
,
searchData
:
{
pageNo
:
1
,
// 第几页
pageSize
:
10
,
// 每页条数
...
...
@@ -314,6 +327,7 @@
},
components
:
{
BreadCrumb
,
EditInformation
,
},
created
()
{
this
.
goToGetQRCode
({
...
...
@@ -466,13 +480,13 @@
this
.
$message
({
message
:
'上传文件只能是 xls、xlsx格式!'
,
type
:
'warning'
});
});
fileList
.
splice
(
0
,
1
);
return
false
;
}
if
(
fileList
.
length
>
1
)
{
fileList
.
splice
(
0
,
1
);
fileList
.
splice
(
0
,
1
);
}
this
.
files
=
[
file
];
...
...
@@ -495,7 +509,7 @@
const
codes
=
[
'000000'
,
'400002'
,
'400004'
];
if
(
codes
.
indexOf
(
code
)
>
-
1
)
{
this
.
error
=
response
.
data
;
this
.
error
=
response
.
data
;
}
else
{
this
.
error
=
response
.
message
;
}
...
...
@@ -510,8 +524,32 @@
handleReloadLabel
()
{
this
.
showReloadLabelModal
=
false
;
this
.
goToGetGroupList
();
}
}
},
saveEdit
()
{
this
.
checkForm
=
true
;
},
addListenSave
(
val
)
{
this
.
checkForm
=
false
;
if
(
val
.
status
)
{
// this.patientInfo = val.patientInfoForm
console
.
log
(
'填写内容'
,
val
.
patientInfoForm
);
savePatientInfo
(
val
.
patientInfoForm
).
then
(
data
=>
{
if
(
data
.
code
==
'000000'
){
this
.
$message
.
success
(
'新增成功'
)
setTimeout
(()
=>
{
this
.
$refs
.
newForm
.
$refs
.
patientInfoForm
.
resetFields
()
// this.$router.go(0);//体验不好
},
500
)
}
else
{
this
.
$message
.
error
(
data
.
message
);
}
})
// 调用保存接口
}
else
{
this
.
$message
.
error
(
'请正确填写信息'
);
}
},
}
}
</
script
>
...
...
@@ -529,7 +567,7 @@
margin: 0;
padding: 0;
.septal-line{
width: 100%;
width: 100%;
height: 1px;
background: #EBEEF5;
}
...
...
@@ -541,6 +579,7 @@
border-bottom: 1px solid #efefef;
}
.single-input{
background-color: #ffffff!important;
.save-and-add{
text-align: right;
}
...
...
@@ -682,7 +721,7 @@
width: 100%;
background: #fff;
.guide-list{
width: 100%;
width: 100%;
height: 237px;
margin-top: 15px;
.first{
...
...
@@ -693,7 +732,7 @@
.procedure{
width: 100%; height: 20px;
.icon{
width: 20px;
width: 20px;
height: 20px;
display: inline-block;
background: #449284;
...
...
@@ -709,7 +748,7 @@
}
.border{
display: inline-block;
width: 200px;
width: 200px;
// width: 70%;
height: 0px;
border-bottom: 1px solid #449284;
...
...
@@ -725,12 +764,12 @@
.under-info{
padding-left: 25px;
.step-tips{
width: 100%;
font-size: 12px;
width: 100%;
font-size: 12px;
color: #595959;
margin: 8px 0 20px;
}
}
}
.second{
...
...
@@ -763,7 +802,7 @@
}
}
}
}
.third{
width: 300px;
...
...
@@ -781,16 +820,16 @@
}
}
.upload-table{
}
.el-table__body-wrapper{
&::-webkit-scrollbar
{
width: 5px;
height: 5px;
background-color: #fff;
}
&::-webkit-scrollbar
{
width: 5px;
height: 5px;
background-color: #fff;
}
&::-webkit-scrollbar-thumb
{
border-radius: 10px;
...
...
@@ -804,7 +843,7 @@
background: #fff;
.qr-group{
width: 100%; height:auto;
overflow: hidden;
overflow: hidden;
margin: 30px 0 40px;
.label-name{
display: inline-block;
...
...
@@ -841,6 +880,7 @@
border: 0;
display: block;
}
border: 0;
.qr-download-btn{
color: #fff;
background: #449284;
...
...
@@ -849,7 +889,7 @@
}
}
.time-limit{
width: 100%;
width: 100%;
text-align: center;
color: #8C8C8C;
font-size: 12px;
...
...
@@ -860,7 +900,7 @@
background:rgba(236,244,242,1);
border:1px solid rgba(150,195,193,1);
}
}
}
.border-space{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录