Browse Source

康复管理 -管理模板接口

zhangyanfang 6 years ago
parent
commit
fe3a83b70f

+ 3 - 0
app/rehabilitation/css/health_control.css

@ -471,3 +471,6 @@ label{
a:hover{
a:hover{
    color: white;
    color: white;
}
}
[v-cloak]{
    display: none;
}

+ 3 - 1
app/rehabilitation/css/moreplan.css

@ -4,7 +4,9 @@
    box-sizing: border-box;
    box-sizing: border-box;
   
   
}
}
[v-cloak]{
    display: none;
}
ul,
ul,
li,
li,
p {
p {

+ 1 - 1
app/rehabilitation/html/health_control.html

@ -72,7 +72,7 @@
            
            
            <div class="neironglef">
            <div class="neironglef">
                <button @click="newRecover()">新康复安排</button>
                <button @click="newRecover()">新康复安排</button>
                <button>模版管理</button>
                <button @click="modelControl()">模版管理</button>
            </div>
            </div>
        </div>
        </div>
        <div class="neirong2">
        <div class="neirong2">

+ 2 - 2
app/rehabilitation/html/moreplan.html

@ -17,7 +17,7 @@
</head>
</head>
<body>
<body>
    <div id="app">
    <div id="app" v-cloak>
        <div class="re-title no-select">
        <div class="re-title no-select">
            <div class="name">康复管理</div>
            <div class="name">康复管理</div>
        </div>
        </div>
@ -145,7 +145,7 @@
                    <div class="detaild">
                    <div class="detaild">
                        <a href="javascript: void(0)" @click="checkPatient()">查看患者</a>
                        <a href="javascript: void(0)" @click="checkPatient()">查看患者</a>
                        <a href="javascript: void(0)" @click="checkPlan(data)">查看计划</a>
                        <a href="javascript: void(0)" @click="checkPlan(data)">查看计划</a>
                        <a href="javascript: void(0)"  @click="stop(data)" :id="'stopBtn_'+data.planId">终止计划</a>
                        <a href="javascript: void(0)"  @click="stop(data)" :id="'stopBtn_'+data.planId">中止计划</a>
                    </div>
                    </div>

+ 19 - 15
app/rehabilitation/js/health_control.js

@ -88,6 +88,7 @@ layui.use('element', function () {
            isStop: 1, //
            isStop: 1, //
            isActive: true,
            isActive: true,
            doctorType: "",
            doctorType: "",
            docCode:"",
            docInfo: [],
            docInfo: [],
            isLeader: 0,
            isLeader: 0,
            planCreateUser: ""
            planCreateUser: ""
@ -105,11 +106,8 @@ layui.use('element', function () {
                        var isStop = val[i].status
                        var isStop = val[i].status
                        var ishospitalName = val[i].hospitalName
                        var ishospitalName = val[i].hospitalName
                        vm.planCreateUser = val[i].planCreateUser
                        vm.planCreateUser = val[i].planCreateUser
                        if (vm.planCreateUser[i]!== vm.docInfo.code) {
                            $("#stopBtn_" + val[i].id).attr('disabled', "true")
                            $("#stopBtn_" + val[i].id).addClass("falsebutton")
                        }
                      
                      
                        if (ishospitalName == null) {
                        if (ishospitalName == null) {
                            $("#hospitalName_" + val[i].id).html("暂无社区信息")
                            $("#hospitalName_" + val[i].id).html("暂无社区信息")
                        }
                        }
@ -215,7 +213,17 @@ layui.use('element', function () {
                            $(".neironglef>button").css("color", "white")
                            $(".neironglef>button").css("color", "white")
                        }
                        }
                        healthAPI.doctorBaseinfo().then(function (res) {
                            vm.isLeader = res.data.isLeader
                            for(var i=0;i<vm.tablelist.length;i++){
                                if (vm.isLeader == 0) {
                                    $("#stopBtn_" + vm.tablelist[i].id).attr('disabled', "true")
                                    $("#stopBtn_" + vm.tablelist[i].id).addClass("falsebutton")
                                }
            
                            }
                           
                        })
                    } else {
                    } else {
@ -224,15 +232,9 @@ layui.use('element', function () {
                    }
                    }
                })
                })
                healthAPI.doctorBaseinfo().then(function (res) {
                    console.log(res.data)
                    vm.isLeader = res.data.isLeader
                    console.log(vm.isLeader)
                    if (vm.isLeader == 0) {
            
                    }
                })
              
            },
            },
@ -327,7 +329,9 @@ layui.use('element', function () {
                var vm = this
                var vm = this
                location.href = "../../rehabilitation/html/rehabilitation_management.html?planId=" + data.id
                location.href = "../../rehabilitation/html/rehabilitation_management.html?planId=" + data.id
            },
            modelControl:function(){
                location.href = "../../rehabilitation/html/management.html" 
            }
            }

+ 3 - 3
app/rehabilitation/js/moreplan.js

@ -29,7 +29,7 @@ layui.use('element', function () {
                $("#progress_" + planid).css({
                $("#progress_" + planid).css({
                    "background-color": "#ff9526"
                    "background-color": "#ff9526"
                })
                })
                $("#stopBtn_" + planid).html("终止计划")
                $("#stopBtn_" + planid).html("中止计划")
            }
            }
@ -127,7 +127,7 @@ layui.use('element', function () {
                            $("#progress_" + val[i].planId).css({
                            $("#progress_" + val[i].planId).css({
                                "background-color": "#ff9526"
                                "background-color": "#ff9526"
                            })
                            })
                            $("#stopBtn_" + val[i].planId).html("终止计划")
                            $("#stopBtn_" + val[i].planId).html("中止计划")
                        }
                        }
                        var progressNum = Math.ceil((allFinishCount / allCount) * 100)
                        var progressNum = Math.ceil((allFinishCount / allCount) * 100)
@ -229,7 +229,7 @@ layui.use('element', function () {
                var vm = this
                var vm = this
                layer.open({
                layer.open({
                    type: 2,
                    type: 2,
                    area: ['600px', '650px'],
                    area: ['750px', '650px'],
                    shade: 0.5,
                    shade: 0.5,
                    title: '服务项目内容',
                    title: '服务项目内容',
                    fixed: true, //不固定
                    fixed: true, //不固定