|
@ -7,7 +7,7 @@
|
|
<link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
|
|
<link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
|
|
<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
|
|
<link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
|
|
|
|
|
|
<link rel="stylesheet" href="../../../plugins/element-ui/element-ui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../css/common.css" />
|
|
<link rel="stylesheet" type="text/css" href="../css/common.css" />
|
|
</head>
|
|
</head>
|
|
<body class="m0">
|
|
<body class="m0">
|
|
@ -27,7 +27,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="ui-row-item flex">
|
|
<div class="ui-row-item flex">
|
|
<button class="btn btn-12B7F5 btn-size-s ml10" @click="onSearch">搜索</button>
|
|
<button class="btn btn-12B7F5 btn-size-s ml10" @click="onSearch">搜索</button>
|
|
<button class="btn btn-12B7F5 btn-size-s ml10">扫码下转</button>
|
|
|
|
|
|
<button class="btn btn-12B7F5 btn-size-s ml10" @click="viewQrcodeBox">扫码下转</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="patientInfo" >
|
|
<div v-if="patientInfo" >
|
|
@ -88,7 +88,7 @@
|
|
<script src="../../../js/jquery-2.2.4.js"></script>
|
|
<script src="../../../js/jquery-2.2.4.js"></script>
|
|
<script src="../../../plugins/layer/layer.min.js"></script>
|
|
<script src="../../../plugins/layer/layer.min.js"></script>
|
|
<script src="../../../plugins/toastr/toastr.min.js"></script>
|
|
<script src="../../../plugins/toastr/toastr.min.js"></script>
|
|
<script src="https://unpkg.com/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../plugins/element-ui/element-ui.js"></script>
|
|
<script src="../../../js/bootstrap.min.js"></script>
|
|
<script src="../../../js/bootstrap.min.js"></script>
|
|
<script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
|
|
<script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
|
|
<script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
|
|
<script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
|
|
@ -99,6 +99,7 @@
|
|
var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
|
|
var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
|
|
var httpData=GetRequest()
|
|
var httpData=GetRequest()
|
|
var docInfo = JSON.parse(window.localStorage.getItem("docInfo"));
|
|
var docInfo = JSON.parse(window.localStorage.getItem("docInfo"));
|
|
|
|
var qrcodeBoxIndex;
|
|
console.log(httpData)
|
|
console.log(httpData)
|
|
function showSuccessMessage(msg) {
|
|
function showSuccessMessage(msg) {
|
|
layer.msg(msg, {
|
|
layer.msg(msg, {
|
|
@ -124,7 +125,7 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
selectVue = new Vue({
|
|
|
|
|
|
top.addRecoveryDownVue = new Vue({
|
|
el: "#app",
|
|
el: "#app",
|
|
data: {
|
|
data: {
|
|
pickerOptions1: {
|
|
pickerOptions1: {
|
|
@ -139,6 +140,8 @@
|
|
healthLabel: [],
|
|
healthLabel: [],
|
|
teamList: [], // 专科团队列表
|
|
teamList: [], // 专科团队列表
|
|
curTeamId: '',
|
|
curTeamId: '',
|
|
|
|
curTeamInfo: {},
|
|
|
|
teamListObj: {},
|
|
curHealthStatu: '',
|
|
curHealthStatu: '',
|
|
emptyText: '暂无数据'
|
|
emptyText: '暂无数据'
|
|
},
|
|
},
|
|
@ -147,20 +150,54 @@
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
curTeamId: function(){
|
|
curTeamId: function(){
|
|
|
|
this.patientInfo = undefined
|
|
this.getSpecialistPatientLabel(this.curTeamId)
|
|
this.getSpecialistPatientLabel(this.curTeamId)
|
|
|
|
this.curTeamInfo = this.teamListObj[this.curTeamId]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
isSignSpecialist: function(is_sign, card){
|
|
|
|
if(is_sign){
|
|
|
|
this.getRehabilitationPatientList(card)
|
|
|
|
} else {
|
|
|
|
this.patientInfo = undefined
|
|
|
|
this.emptyText = '患者暂未家签,请先提醒患者完成家庭医生签约'
|
|
|
|
}
|
|
|
|
layer.close(qrcodeBoxIndex)
|
|
|
|
},
|
|
|
|
// 显示二维码窗口
|
|
|
|
viewQrcodeBox: function(){
|
|
|
|
var vm=this
|
|
|
|
qrcodeBoxIndex = layer.open({
|
|
|
|
type: 2,
|
|
|
|
// offset: ['100px'], //右下角弹出
|
|
|
|
area: ['500px', '500px'],
|
|
|
|
shade: 0.5,
|
|
|
|
title: '康复下转',
|
|
|
|
fixed: true, //不固定
|
|
|
|
maxmin: true,
|
|
|
|
closeBtn: 1,
|
|
|
|
shift: 5,
|
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
|
content:'../../rehabilitation/html/signZkTeam.html?id=' + vm.curTeamInfo.id + '&name='+ vm.curTeamInfo.name+'&photo='+vm.curTeamInfo.photo,
|
|
|
|
end: function() { // 未点击确定按钮,点击关闭按钮
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
// 获取下转居民列表
|
|
// 获取下转居民列表
|
|
onSearch: function(){
|
|
onSearch: function(){
|
|
if(this.searchKey.trim().length==0){
|
|
if(this.searchKey.trim().length==0){
|
|
showWarningMessage('请输入居民身份证进行查询!')
|
|
showWarningMessage('请输入居民身份证进行查询!')
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
this.getRehabilitationPatientList(this.searchKey)
|
|
|
|
},
|
|
|
|
getRehabilitationPatientList: function(value){
|
|
var vm = this,
|
|
var vm = this,
|
|
loading = layer.load(0, {shade: false})
|
|
loading = layer.load(0, {shade: false})
|
|
var params = {
|
|
var params = {
|
|
idcard: this.searchKey
|
|
|
|
|
|
idcard: value
|
|
}
|
|
}
|
|
rehaAPI.getRehabilitationPatientList(params).then(function(res){
|
|
rehaAPI.getRehabilitationPatientList(params).then(function(res){
|
|
layer.close(loading)
|
|
layer.close(loading)
|
|
@ -188,6 +225,11 @@
|
|
if(res.status == 200) {
|
|
if(res.status == 200) {
|
|
vm.teamList = res.data || []
|
|
vm.teamList = res.data || []
|
|
vm.curTeamId = vm.teamList[0].id
|
|
vm.curTeamId = vm.teamList[0].id
|
|
|
|
vm.curTeamInfo = vm.teamList[0]
|
|
|
|
vm.teamListObj = {}
|
|
|
|
$.each(res.data, function(index, o){
|
|
|
|
vm.teamListObj[o.id] = o
|
|
|
|
})
|
|
} else {
|
|
} else {
|
|
showErrorMessage(res.msg);
|
|
showErrorMessage(res.msg);
|
|
}
|
|
}
|
|
@ -263,6 +305,7 @@
|
|
var vm = this
|
|
var vm = this
|
|
var vm = this, num1 = 0, num2 = 0,
|
|
var vm = this, num1 = 0, num2 = 0,
|
|
health = {}, disease = [], custom = []
|
|
health = {}, disease = [], custom = []
|
|
|
|
if(!vm.patientInfo){return false}
|
|
if(!vm.curHealthStatu){
|
|
if(!vm.curHealthStatu){
|
|
showWarningMessage('请选择健康情况!')
|
|
showWarningMessage('请选择健康情况!')
|
|
return false
|
|
return false
|
|
@ -322,7 +365,7 @@
|
|
layer.close(loading);
|
|
layer.close(loading);
|
|
if(res.status==200){
|
|
if(res.status==200){
|
|
layer.confirm('康复下转基本信息保存成功,请为患者创建康复计划', { btn: ['创建康复计划', '取消'], title: "康复下转" }, function (index) {
|
|
layer.confirm('康复下转基本信息保存成功,请为患者创建康复计划', { btn: ['创建康复计划', '取消'], title: "康复下转" }, function (index) {
|
|
window.location.href="./new_recover.html?patient="+vm.patientInfo.patient
|
|
|
|
|
|
window.location.href="./new_recover.html?patient="+vm.patientInfo.patient + '&teamCode='+vm.curTeamInfo.id
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
showErrorMessage(res.msg)
|
|
showErrorMessage(res.msg)
|