|
@@ -51,6 +51,7 @@ $(function(){
|
|
|
})
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
}else if(isReject == 3){
|
|
|
+ $(".doctorType").html(doctorName)
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),3,new Date(startDateParam),new Date(endDateParam))
|
|
|
}
|
|
|
if(!isReject){
|
|
@@ -82,6 +83,7 @@ $(function(){
|
|
|
getTabData(1)
|
|
|
})
|
|
|
getMolist()
|
|
|
+ // getDoctorTypeList()
|
|
|
})
|
|
|
|
|
|
function getMolist(){
|
|
@@ -95,6 +97,7 @@ function getMolist(){
|
|
|
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
bindDeptSelect()
|
|
|
//科室选择
|
|
|
function bindDeptSelect(){
|
|
@@ -138,7 +141,7 @@ function getDeptList(){
|
|
|
let tmp = deptList[i]
|
|
|
str += `<li class="deptItem ellipsis" title="${tmp.name}" data-id="${tmp.name}" data-name="${tmp.name}">${tmp.name}</li>`
|
|
|
}
|
|
|
- $(".quexianDetailControl .filterDropList").html('<li class="deptItem ellipsis" title="" data-id="" data-id="" data-name="全部">全部</li>'+str)
|
|
|
+ $(".quexianDetailControl .deptList").html('<li class="deptItem ellipsis" title="" data-id="" data-id="" data-name="全部">全部</li>'+str)
|
|
|
}
|
|
|
|
|
|
$("th[code]").on("click",function(e){
|
|
@@ -610,4 +613,59 @@ $(function() {
|
|
|
downloadExportedData(res.data, "科室缺陷占比 / 缺陷列表.xls")
|
|
|
})
|
|
|
})
|
|
|
-});
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+//医生
|
|
|
+$('.doctorType').on("focus", function(e){
|
|
|
+ e.stopPropagation()
|
|
|
+ $(".rejectList ").css("display","none")
|
|
|
+ $(".usedList ").css("display", "none")
|
|
|
+ $(".selectReject .arrow").attr("src",iconDown)
|
|
|
+ $(".selectUsed .arrow").attr("src",iconDown)
|
|
|
+ $(".doctorList ").css("display","block")
|
|
|
+})
|
|
|
+$('.doctorType').on("blur", function(e){
|
|
|
+ $(".doctorList ").css("display","none")
|
|
|
+})
|
|
|
+$('.doctorType').on("input", function(e){
|
|
|
+ let val = $(this).val().trim()
|
|
|
+ casesName = casesNameTemp = val
|
|
|
+ getDoctorTypeList(val)
|
|
|
+})
|
|
|
+//获取模块类型
|
|
|
+function getDoctorTypeList(val,dept){
|
|
|
+ post(api.getListDoctor,{inputStr:val=="全部"?"":val||"",deptName:dept||deptName}).then(res =>{
|
|
|
+ if(res.data.code == '0'){
|
|
|
+ const moduleTypeList = res.data.data
|
|
|
+ renderDoctorTypeList(moduleTypeList)
|
|
|
+ }else{
|
|
|
+ renderDoctorTypeList([])
|
|
|
+ }
|
|
|
+ }).catch((e) =>{
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
+function renderDoctorTypeList(doctorList){
|
|
|
+ if(doctorList.length == 0){
|
|
|
+ $('.doctorList').html("")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let str = `<li class="modeTypeItem doctorItem" data-id=" " data-name="全部">全部</li>`
|
|
|
+ for(let i = 0; i < doctorList.length; i++){
|
|
|
+ str += `<li class="modeTypeItem doctorItem ellipsis" title=${doctorList[i].name} data-id=${doctorList[i].doctorId} data-name=${doctorList[i].name}> ${doctorList[i].name}</li>`
|
|
|
+ }
|
|
|
+ console.log(str)
|
|
|
+ $('.doctorList').html(str)
|
|
|
+ bindDoctorTypeSelect()
|
|
|
+}
|
|
|
+
|
|
|
+//模块类型选择
|
|
|
+function bindDoctorTypeSelect(){
|
|
|
+ $('.doctorItem').on("mousedown",function(){
|
|
|
+ const modeTypeItemName = $(this).attr("data-name")
|
|
|
+ doctorName=doctorNameTemp =modeTypeItemName=="全部"?"":modeTypeItemName;
|
|
|
+ $('.doctorType').val(modeTypeItemName).attr("title",modeTypeItemName)
|
|
|
+ $(".doctorList ").css("display", "none")
|
|
|
+ })
|
|
|
+}
|