|
@@ -173,7 +173,7 @@ $(function () {
|
|
|
$("#saveConfirmFee").on("click", function (t) {
|
|
|
var patientId = $("#patientId").val();
|
|
|
if (patientId == null || patientId == "") {
|
|
|
- savePatient();
|
|
|
+ savePatient(true);
|
|
|
} else {
|
|
|
saveMzyReqrec();
|
|
|
}
|
|
@@ -268,6 +268,7 @@ $(function () {
|
|
|
}
|
|
|
var returnAge=jsGetAge(birthDay);
|
|
|
$("#age").val(returnAge);
|
|
|
+ $("#age").blur();
|
|
|
});
|
|
|
|
|
|
$("#editUserBirthDay").change(function(e){
|
|
@@ -791,7 +792,9 @@ function queryUserInfoByCardNo() {
|
|
|
$("#clearIcCardNo").show();
|
|
|
}
|
|
|
readonlyOrNot(true);
|
|
|
+ $("#saveUser").hide();
|
|
|
} else {
|
|
|
+ $("#saveUser").show();
|
|
|
$("#newCardModal").modal();
|
|
|
}
|
|
|
} else {
|
|
@@ -1288,13 +1291,11 @@ function setPrint() {
|
|
|
// }
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 保存病人信息
|
|
|
+ * @param flag true 继续调用挂号接口,false,只建档不挂号
|
|
|
*/
|
|
|
-function savePatient() {
|
|
|
+function savePatient(flag) {
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: '/thmz/savePatient',
|
|
@@ -1318,16 +1319,15 @@ function savePatient() {
|
|
|
return;
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
- $("#patientId").val(res.data.patientId);
|
|
|
- saveMzyReqrec();
|
|
|
+ if(flag){
|
|
|
+ $("#patientId").val(res.data.patientId);
|
|
|
+ saveMzyReqrec();
|
|
|
+ }else {
|
|
|
+ clearRegistration();
|
|
|
+ successMesage(res);
|
|
|
+ }
|
|
|
} else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesage(res);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1714,6 +1714,7 @@ function clearIcCardNo() {
|
|
|
return;
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
+ clearRegistration();
|
|
|
successMesage(res);
|
|
|
} else {
|
|
|
errorMesage(res);
|