|
@@ -105,6 +105,43 @@ $(".filter").on("click", function(e){
|
|
|
doctorName = doctorNameTemp
|
|
|
getTabData(1)
|
|
|
})
|
|
|
+$(".reset").on("click", function(e){
|
|
|
+ tabList = [];
|
|
|
+ name = "";
|
|
|
+ behospitalCode="";
|
|
|
+ behosDateStart="";
|
|
|
+ level="";
|
|
|
+ behosDateEnd="";
|
|
|
+ scoreSum = 0;
|
|
|
+ nameTemp = "";
|
|
|
+ behospitalCodeTemp="";
|
|
|
+ levelTemp="";
|
|
|
+ deptId="";
|
|
|
+ deptIdTemp="";
|
|
|
+ doctorName="";
|
|
|
+ doctorNum="";
|
|
|
+ doctorNameTemp="";
|
|
|
+ doctorNumTemp="";
|
|
|
+ data_desc=[];
|
|
|
+ data_asc=[];
|
|
|
+ $('.patientNumInp').val('')
|
|
|
+ $('.patientNameInp').val('')
|
|
|
+ $('.doctorInp').val('')
|
|
|
+ $('.doctorNumInp').val('')
|
|
|
+ $('.doctorInp').val('')
|
|
|
+ $('#datepicker').val('')
|
|
|
+ $('#datepicker2').val('')
|
|
|
+ $('.selectDept ').html('选择科室')
|
|
|
+ $(".deptList").css("display", "none")
|
|
|
+ $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ $('.selectDept ').addClass('unSelect')
|
|
|
+ $('.selectLevel').html('选择病历等级')
|
|
|
+ $(".levelList").css("display", "none")
|
|
|
+ $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ $('.selectLevel ').addClass('unSelect')
|
|
|
+ $("th[code]").removeClass("asc desc")
|
|
|
+ getTabData(1)
|
|
|
+})
|
|
|
$("th[code]").on("click",function(e){
|
|
|
const code=$(this).attr("code");
|
|
|
if(data_asc[0]===code){
|
|
@@ -209,6 +246,7 @@ function bindLeveldSelect(){
|
|
|
const levelItemItemId = $(this).attr("data-id")
|
|
|
levelTemp =levelItemItemId
|
|
|
$('.selectLevel').html(levelItemName)
|
|
|
+ $('.selectLevel').removeClass('unSelect')
|
|
|
$(".levelList").css("display", "none")
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
})
|
|
@@ -231,7 +269,7 @@ function bindRecordScoreOper(){
|
|
|
const index = $(this).parent().attr("data-index")
|
|
|
const behospitalCode = tabList[index].behospitalCode
|
|
|
loading()
|
|
|
- recordScore(behospitalCode,1)
|
|
|
+ recordScore(behospitalCode,1,true)
|
|
|
})
|
|
|
}
|
|
|
function bindOperaAll(){
|
|
@@ -280,7 +318,7 @@ function getDeptList(){
|
|
|
|
|
|
|
|
|
function rendeDeptList(deptList){
|
|
|
- let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
|
|
|
+ let str = ``
|
|
|
for(let i = 0; i < deptList.length; i++){
|
|
|
str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptId} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
|
|
|
}
|
|
@@ -300,7 +338,7 @@ function bindDeptSelect(){
|
|
|
}
|
|
|
$('.selectDept ').attr('title',deptItemName)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-
|
|
|
+ $('.selectDept').removeClass('unSelect')
|
|
|
$(".deptList").css("display", "none")
|
|
|
})
|
|
|
}
|
|
@@ -336,7 +374,7 @@ $('.recordScoreBtn').on("click",function(e){
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
-function recordScore(behospitalCode,totalNum){
|
|
|
+function recordScore(behospitalCode,totalNum,hasToast){
|
|
|
const param = {
|
|
|
behospitalCode: behospitalCode
|
|
|
}
|
|
@@ -350,10 +388,20 @@ function recordScore(behospitalCode,totalNum){
|
|
|
|
|
|
getTabData(activePage)
|
|
|
}
|
|
|
-
|
|
|
- }else{}
|
|
|
+ if(hasToast){
|
|
|
+ $.alerModal({"message":'评分成功',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ hideLoading()
|
|
|
+ if(hasToast){
|
|
|
+ $.alerModal({"message":'评分失败',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ }
|
|
|
+ }
|
|
|
}).catch((e) =>{
|
|
|
-
|
|
|
+ hideLoading()
|
|
|
+ if(hasToast){
|
|
|
+ $.alerModal({"message":'评分失败',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
$(".patientNumInp").on("input", function(e){
|