Преглед на файлове

Merge branch 'master' of http://192.168.1.220:10080/raolu/PC-application

yingzhou преди 6 години
родител
ревизия
9dbe99f7da

+ 4 - 1
api/healthy-control-api.js

@ -14,7 +14,10 @@
        },
        updatePlanStatusById:function(data){
            return httpRequest.post("doctor/specialist/rehabilitation/updatePlanStatusById",{data: data})
        }
        },
        doctorBaseinfo: function(data){
			return httpRequest.get('doctor/baseinfo',{data:data})
		},
         
    }

+ 1 - 1
app/recover/css/new_recover.css

@ -126,7 +126,7 @@ ul {
}
.doc_list {
	left: 0;
	top: 18px;
	top: 16px;
	width: 98px;
	z-index: 999;
	background-color: #ffffff;

+ 5 - 5
app/recover/html/new_recover.html

@ -104,14 +104,14 @@
	        											</ul>
	        										</div>
	        									</div>
	        									<p class="m0 mb5 p0 fl"><span class="c-999">费&emsp;&emsp;用:</span>{{detail.specialistServiceItemDO.unit}}</p>
	        									<p class="m0 mb5 p0 fl"><span class="c-999">费&emsp;&emsp;用:</span>{{detail.expense}}</p>
	        								</div>
		        							<div class="m0 p0 lh18 clearfix">
        										<span class="fl c-999">计划时间:</span>
        										<p class="fl lh18 mb5 mr20 clearfix" v-for="(time, ind) in detail.specialistServiceItemDO.executeTime" :key="ind" v-if="detail.specialistServiceItemDO.executeTime.length">
        											<span class="fl">{{time}}</span><span class="fl ml5 sub-tap cur-pit" @click="spliceTimeArr(index, ind)"></span>
        										</p>
        										<span class="fl c-12b7f5 cur-pit calendar" contenteditable="true" readonly="true" @mousedown="selectTime(index)" class=flatpickr data-enable-time=true data-time_24hr=true>添加</span>
        										<span class="fl c-12b7f5 cur-pit calendar" contenteditable="true" readonly @mousedown="selectTime(index)" class=flatpickr data-enable-time=true data-time_24hr=true>添加</span>
        									</div>
		        						</div>
		        						<div class='fr w60 c-t-right clearfix'>
@ -394,7 +394,7 @@
			    		this.templateDetail.splice(index, 1)
			    		var len = detail.specialistServiceItemDO.executeTime.length
			    		if(len) {
			    			this.allFee -= (len * detail.specialistServiceItemDO.unit)
			    			this.allFee -= (len * detail.expense)
			    		}
			    		$.each(vm.projectList, function(index, o) {
							if(detail.specialistServiceItemDO.itemType == o.itemType) {
@ -535,13 +535,13 @@
                					return false;
                				}
                				vm.templateDetail[index].specialistServiceItemDO.executeTime.push(str)
                				vm.allFee += vm.templateDetail[index].specialistServiceItemDO.unit
                				vm.allFee += Number(vm.templateDetail[index].expense)
                			}
                		})
                	},
                	spliceTimeArr: function(index, ind) {
                		this.templateDetail[index].specialistServiceItemDO.executeTime.splice(ind, 1)
                		this.allFee -= this.templateDetail[index].specialistServiceItemDO.unit
                		this.allFee -= Number(this.templateDetail[index].expense)
                	},
                	createRehabilitationPlan: function() {
                		if(!this.allFee) {

+ 2 - 1
app/rehabilitation/css/health_control.css

@ -409,7 +409,8 @@ select.form-control {
}
.falsebutton {
    background-color: #999999 !important;
    border: none !important;
    background-color: #d7dce6 !important;
}
.table{
     width: calc(100% - 20px);

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

@ -5,7 +5,7 @@
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <title>康复管理</title>
    <link rel="shortcut icon" href="../../../favicon.ico">
    <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
    <link rel="stylesheet" href="../../../css/font-awesome.min.css">
@ -121,7 +121,7 @@
                                <button @click="checkPlan(data)">
                                    <a href="javascript: void(0)">查看计划</a>
                                </button>
                                <button class="" @click="stop(data)" :data-id="data.id" :id="'stopBtn_'+data.id">终止计划</button>
                                <button class="stopBtn" @click="stop(data)" :data-id="data.id" :id="'stopBtn_'+data.id">终止计划</button>
                            </div>
                        </div>
                    </td>

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

@ -143,9 +143,9 @@
                        </p>
                    </div>
                    <div class="detaild">
                        <a href="">查看患者</a>
                        <a href="javascript: void(0)" @click="checkPatient()">查看患者</a>
                        <a href="">查看计划</a>
                        <a href="javascript: void(0)" @click="stop(data)" :id="'stopBtn_'+data.planId">终止计划</a>
                        <a href="javascript: void(0)" class="ii" @click="stop(data)" :id="'stopBtn_'+data.planId">终止计划</a>
                    </div>

+ 26 - 1
app/rehabilitation/js/health_control.js

@ -81,6 +81,9 @@ layui.use('element', function () {
            planid: "",
            isStop: 1, //
            isActive: true,
            doctorType:"",
            docInfo:[],
            isLeader:0,
            
@ -117,7 +120,6 @@ layui.use('element', function () {
                             $("#stopBtn_"+val[i].id).html("终止计划")
            
                         }
                      
                    }
                    var lastColor = 'red';
@ -187,6 +189,19 @@ layui.use('element', function () {
                        if (vm.tablelist.length == 0) {
                            vm.wujilu = true
                        }
                        vm.docInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
                        vm.doctorType= vm.docInfo.doctorType
                        if(vm.doctorType==1){
                            $(".neironglef>button").attr('disabled',"true")
                            $(".neironglef>button").addClass("falsebutton")
                            $(".neironglef>button").css("color","white")
                            }else{
                                $(".stopBtn").attr('disabled',"true")
                                $(".stopBtn").addClass("falsebutton")
                            }
                        
                      
                    } else {
@ -194,6 +209,16 @@ 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){
                    
                    }
                })
            },
            gettypes: function () {

+ 52 - 35
app/rehabilitation/js/moreplan.js

@ -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,6 +44,8 @@ layui.use('element', function () {
                    getDat()
                }
            })
            layer.close(index);
        });
    }
@ -73,9 +75,12 @@ layui.use('element', function () {
            specialistHospitalName: "",
            familyHospitalName: "",
            planid: "",
            isStop: 1 ,//
            patientPhoto:"",
            
            isStop: 1,//
            patientPhoto: "",
            doctorType: "",
            docInfo: [],
        },
        watch: {
@ -87,31 +92,32 @@ layui.use('element', function () {
                        var allCount = val[i].allCount
                        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 + "%")
@ -138,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
@ -160,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")
@ -175,23 +181,34 @@ layui.use('element', function () {
                        if (vm.tablelist.length == 0) {
                            vm.wujilu = true
                        }
                        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) {
                var vm = this
                vm.planid = data.planId
                console.log(data.planId)
                conFirm("确定终止该计划吗", data.status, vm.isStop, vm.planid, vm.getDatas)
                
                console.log(vm.isStop)
            },
            noOpen: function () {
                showInfoMessage("暂未开放")
            },
            checkPatient: function () {
                var vm = this
                location.href = "../../temporary/html/userInfo.html?patient=" + vm.paticentcode
            }
        }
    })