|
@@ -333,10 +333,7 @@ function queryUserInfoByCardNo() {
|
|
|
if (res.data != null) {
|
|
|
setPatientValue(res);
|
|
|
} else {
|
|
|
- $("#messageModal").modal();
|
|
|
- $("#messageButton").addClass("hide");
|
|
|
- $("#messageContent").html("未查询到任何信息!");
|
|
|
- return;
|
|
|
+ warningMesageSimaple("未查询到任何信息!");
|
|
|
}
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
@@ -680,22 +677,16 @@ function addToList() {
|
|
|
var idCard = $("#idCard").val();
|
|
|
var hybirdPatientId = $("#hybirdPatientId").text();
|
|
|
if (hybirdPatientId == null || hybirdPatientId == "") {
|
|
|
- $("#messageModal").modal();
|
|
|
- $("#messageButton").addClass("hide");
|
|
|
- $("#messageContent").html("请先创建混检主体再执行该操作!");
|
|
|
+ warningMesageSimaple("请先创建混检主体再执行该操作!");
|
|
|
return;
|
|
|
}
|
|
|
if (patientId == null) {
|
|
|
- $("#messageModal").modal();
|
|
|
- $("#messageButton").addClass("hide");
|
|
|
- $("#messageContent").html("未选择任何待检人,无法进行该操作!");
|
|
|
+ warningMesageSimaple("未选择任何待检人,无法进行该操作!");
|
|
|
return;
|
|
|
}
|
|
|
var fullPatientIds = $("#fullPatientIds").val();
|
|
|
if (fullPatientIds != null && fullPatientIds.indexOf(patientId) > 0) {
|
|
|
- $("#messageModal").modal();
|
|
|
- $("#messageButton").addClass("hide");
|
|
|
- $("#messageContent").html("请不要重复添加该待检人!");
|
|
|
+ warningMesageSimaple("请不要重复添加该待检人!");
|
|
|
clearRegistration();
|
|
|
return;
|
|
|
}
|
|
@@ -776,27 +767,12 @@ function recoverLocalStorageData() {
|
|
|
var fullPatientIds = localStorage.getItem("fullPatientIds");
|
|
|
var hybirdPatientName = localStorage.getItem("hybirdPatientName");
|
|
|
var hybirdPatientId = localStorage.getItem("hybirdPatientId");
|
|
|
- var hybirdType=localStorage.getItem("hc_number");
|
|
|
+ var hybirdType = localStorage.getItem("hc_number");
|
|
|
$("#hc_number").val(hybirdType);
|
|
|
$("#hybirdPatientId").text(hybirdPatientId);
|
|
|
$("#hybirdPatientName").text(hybirdPatientName);
|
|
|
- // var arr = fullPatientIds.split(",");
|
|
|
- // if (arr == null || arr.length == 0) {
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // for (var i = 0; i < arr.length; i++) {
|
|
|
- // var temp = arr[i];
|
|
|
- // if (temp == null || temp.length == 0) {
|
|
|
- // continue;
|
|
|
- // }
|
|
|
- // var tempArr = temp.split("_");
|
|
|
- // if (tempArr != null && tempArr.length == 2) {
|
|
|
- // var patientId = tempArr[0];
|
|
|
- // $("#cardNo").val(patientId);
|
|
|
- // queryUserInfoByCardNo(false);
|
|
|
- // }
|
|
|
- // }
|
|
|
$("#fullPatientIds").val(fullPatientIds);
|
|
|
- var hybirdListHtml= localStorage.getItem("hybirdList");
|
|
|
+ var hybirdListHtml = localStorage.getItem("hybirdList");
|
|
|
$("#hybirdList").html(hybirdListHtml);
|
|
|
}
|
|
|
+
|