|
@@ -269,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(){
|
|
@@ -374,7 +374,7 @@ $('.recordScoreBtn').on("click",function(e){
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
-function recordScore(behospitalCode,totalNum){
|
|
|
+function recordScore(behospitalCode,totalNum,hasToast){
|
|
|
const param = {
|
|
|
behospitalCode: behospitalCode
|
|
|
}
|
|
@@ -388,10 +388,21 @@ 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){
|