|
@ -15,24 +15,24 @@ layui.use('element', function () {
|
|
|
layer.confirm('您确定要执行该操作吗?', { btn: ['确定', '取消'], title: "提示" }, function (index) {
|
|
|
if (num == 2) {
|
|
|
showInfoMessage("计划已完成")
|
|
|
$("#stopBtn_"+planid).attr('disabled', true).addClass("falsebutton")
|
|
|
$("#stopBtn_" + planid).attr('disabled', true).addClass("falsebutton")
|
|
|
|
|
|
} else {
|
|
|
isStop = num == 0 ? 1 : 0
|
|
|
}
|
|
|
if (isStop == 0) {
|
|
|
$("#progress_"+planid).css({
|
|
|
"background-color": "gray"
|
|
|
})
|
|
|
$("#stopBtn_"+planid).html("激活计划")
|
|
|
} else {
|
|
|
$("#progress_"+planid).css({
|
|
|
"background-color": "#ff9526"
|
|
|
})
|
|
|
$("#stopBtn_"+planid).html("终止计划")
|
|
|
|
|
|
}
|
|
|
|
|
|
$("#progress_" + planid).css({
|
|
|
"background-color": "gray"
|
|
|
})
|
|
|
$("#stopBtn_" + planid).html("激活计划")
|
|
|
} else {
|
|
|
$("#progress_" + planid).css({
|
|
|
"background-color": "#ff9526"
|
|
|
})
|
|
|
$("#stopBtn_" + planid).html("终止计划")
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
status: isStop,
|
|
@ -44,7 +44,7 @@ layui.use('element', function () {
|
|
|
getDat()
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
layer.close(index);
|
|
|
});
|
|
@ -75,9 +75,12 @@ layui.use('element', function () {
|
|
|
specialistHospitalName: "",
|
|
|
familyHospitalName: "",
|
|
|
planid: "",
|
|
|
isStop: 1 ,//
|
|
|
patientPhoto:"",
|
|
|
|
|
|
isStop: 1,//
|
|
|
patientPhoto: "",
|
|
|
doctorType: "",
|
|
|
docInfo: [],
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
watch: {
|
|
@ -90,31 +93,31 @@ layui.use('element', function () {
|
|
|
var isStop = val[i].status
|
|
|
var ishospitalName = val[i].hospitalName
|
|
|
|
|
|
if(ishospitalName==null){
|
|
|
$("#hospitalName_"+val[i].id).html("暂无社区信息")
|
|
|
if (ishospitalName == null) {
|
|
|
$("#hospitalName_" + val[i].id).html("暂无社区信息")
|
|
|
}
|
|
|
if (isStop == 2) {
|
|
|
$("#span_font"+val[i].planId).html("已完成")
|
|
|
$("#span_font"+val[i].planId).addClass("corg")
|
|
|
$("#span_font" + val[i].planId).html("已完成")
|
|
|
$("#span_font" + val[i].planId).addClass("corg")
|
|
|
}
|
|
|
if (isStop == 1) {
|
|
|
$("#span_font"+val[i].planId).html("进行中")
|
|
|
$("#span_font"+val[i].planId).addClass("cblue")
|
|
|
$("#span_font" + val[i].planId).html("进行中")
|
|
|
$("#span_font" + val[i].planId).addClass("cblue")
|
|
|
|
|
|
}
|
|
|
if (isStop == 0) {
|
|
|
$("#span_font"+val[i].planId).html("已中止")
|
|
|
$("#span_font"+val[i].planId).addClass("cgre")
|
|
|
$("#progress_"+val[i].planId).css({
|
|
|
$("#span_font" + val[i].planId).html("已中止")
|
|
|
$("#span_font" + val[i].planId).addClass("cgre")
|
|
|
$("#progress_" + val[i].planId).css({
|
|
|
"background-color": "gray"
|
|
|
})
|
|
|
$("#stopBtn_"+val[i].planId).html("激活计划")
|
|
|
}else{
|
|
|
$("#progress_"+val[i].planId).css({
|
|
|
$("#stopBtn_" + val[i].planId).html("激活计划")
|
|
|
} else {
|
|
|
$("#progress_" + val[i].planId).css({
|
|
|
"background-color": "#ff9526"
|
|
|
})
|
|
|
$("#stopBtn_"+val[i].planId).html("终止计划")
|
|
|
}
|
|
|
$("#stopBtn_" + val[i].planId).html("终止计划")
|
|
|
}
|
|
|
|
|
|
var progressNum = Math.ceil((allFinishCount / allCount) * 100)
|
|
|
Progress(val[i].planId, progressNum + "%")
|
|
@ -141,13 +144,13 @@ layui.use('element', function () {
|
|
|
},
|
|
|
methods: {
|
|
|
setImgSrc: function (src) {
|
|
|
if(!src){
|
|
|
if (!src) {
|
|
|
return "../../../images/p-female.png"
|
|
|
}else{
|
|
|
} else {
|
|
|
var str = httpRequest.getImgUrl(src)
|
|
|
return str
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
getDatas: function () {
|
|
|
var vm = this
|
|
@ -163,7 +166,7 @@ layui.use('element', function () {
|
|
|
vm.name = res.data.patientName
|
|
|
vm.sex = res.data.sex
|
|
|
vm.age = res.data.age
|
|
|
vm.patientPhoto=res.data.patientPhoto
|
|
|
vm.patientPhoto = res.data.patientPhoto
|
|
|
vm.hospital = res.data.hospitalName
|
|
|
vm.diseaseList = res.data.diseaseList
|
|
|
vm.tablelist = _.sortBy(res.data.rehabilitationPlanList, "patientName")
|
|
@ -178,25 +181,17 @@ layui.use('element', function () {
|
|
|
if (vm.tablelist.length == 0) {
|
|
|
vm.wujilu = true
|
|
|
}
|
|
|
healthAPI.doctorBaseinfo().then(function (res) {
|
|
|
var vm=this
|
|
|
console.log(res.data)
|
|
|
vm.isLeader=res.data.isLeader
|
|
|
console.log( vm.isLeader)
|
|
|
if( vm.isLeader==0){
|
|
|
console.log( $(".ii"))
|
|
|
$(".ii").attr('disabled', 'true')
|
|
|
$(".ii").css("pointer-events","none");
|
|
|
$(".ii").css("color","#999999")
|
|
|
|
|
|
|
|
|
vm.doctorType= vm.docInfo.doctorType
|
|
|
if(vm.doctorType!==1){
|
|
|
$(".ii").attr('disabled', 'true')
|
|
|
$(".ii").css("pointer-events", "none");
|
|
|
}
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
// showErrorMessage(res.msg);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
stop: function (data) {
|
|
@ -210,8 +205,8 @@ layui.use('element', function () {
|
|
|
noOpen: function () {
|
|
|
showInfoMessage("暂未开放")
|
|
|
},
|
|
|
checkPatient:function(){
|
|
|
var vm=this
|
|
|
checkPatient: function () {
|
|
|
var vm = this
|
|
|
location.href = "../../temporary/html/userInfo.html?patient=" + vm.paticentcode
|
|
|
|
|
|
}
|