|
|
@@ -116,15 +116,8 @@ $(function () {
|
|
|
oTable.Init();
|
|
|
|
|
|
formatCheck();
|
|
|
- //默认光标在卡号输入框
|
|
|
- $("#cardNo").focus();
|
|
|
- //根据病人姓名输入框内容动态加载病人列表
|
|
|
- initUserList();
|
|
|
- //卡号输入改变事件
|
|
|
- cardNoChange();
|
|
|
-
|
|
|
- //卡号输入改变事件
|
|
|
- userNameChange();
|
|
|
+
|
|
|
+
|
|
|
//数据校验
|
|
|
init_validator();
|
|
|
|
|
|
@@ -201,8 +194,9 @@ $(function () {
|
|
|
});
|
|
|
loadTableCount();
|
|
|
loadRegistrationList(true);
|
|
|
-
|
|
|
-
|
|
|
+ initCertificateTypeSelect();
|
|
|
+ //初始化省份
|
|
|
+ initProvince();
|
|
|
//初始化页面上面的按钮事件
|
|
|
$("#btn_excel").click(function (t) {
|
|
|
exportExcel();
|
|
|
@@ -211,6 +205,36 @@ $(function () {
|
|
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
+ * 初始化证件类型下拉选
|
|
|
+ */
|
|
|
+function initCertificateTypeSelect() {
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: '/thmz/listCertificateType',
|
|
|
+ contentType: "application/json;charset=UTF-8",
|
|
|
+ dataType: "json",
|
|
|
+ headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
+ success: function (res) {
|
|
|
+ if (res == '401' || res == 401) {
|
|
|
+ window.location.href = '/thmz/login/view'
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (res.code == 0) {
|
|
|
+ res.data.forEach(function (item, index) {
|
|
|
+ var html = '<option value="' + item.code + '">' + item.name + '</option>';
|
|
|
+ $('#editUserCertificateType').append(html);
|
|
|
+ });
|
|
|
+ $('#editUserCertificateType').selectpicker('refresh');
|
|
|
+ } else {
|
|
|
+ errorMesage(res);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 初始化性别下拉选
|
|
|
*/
|
|
|
@@ -253,13 +277,7 @@ function initResponceTypeSelect() {
|
|
|
$('#patientsNature').selectpicker('refresh');
|
|
|
$('#editUserPatientsNature').selectpicker('refresh');
|
|
|
} else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesage(res.message);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -298,9 +316,6 @@ function initDeptPlus() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 初始门诊收银方式下拉选
|
|
|
*/
|
|
|
@@ -396,13 +411,7 @@ function editUserModal(data) {
|
|
|
}, 400);
|
|
|
}
|
|
|
} else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesage(res.message);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -455,13 +464,7 @@ function backNoModal(patientId, times) {
|
|
|
$("#tb_fee_info").find("tbody").append(trHtml);
|
|
|
}
|
|
|
} else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesage(res.message);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -511,103 +514,6 @@ function formatCheck() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 卡号有变化后查询病人信息
|
|
|
- */
|
|
|
-function queryUserInfoByCardNo() {
|
|
|
- var cardNo = $("#cardNo").val();
|
|
|
- var index = cardNo.indexOf("-");
|
|
|
- if ((index > 0 && index == cardNo.length - 2) || cardNo.length == 8) {
|
|
|
- $("#cardNo").attr("title", cardNo);
|
|
|
- $.ajax({
|
|
|
- type: "GET",
|
|
|
- url: '/thmz/getByIcCardNo?icCardNo=' + cardNo,
|
|
|
- contentType: "application/json;charset=UTF-8",
|
|
|
- dataType: "json",
|
|
|
- headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
- success: function (res) {
|
|
|
- if (res == '401' || res == 401) {
|
|
|
- window.location.href = '/thmz/login/view'
|
|
|
- return;
|
|
|
- }
|
|
|
- if (res.code == 0) {
|
|
|
- if (res.data != null) {
|
|
|
- $("#cardNo").blur();
|
|
|
- $("#userName").val(res.data.name);
|
|
|
- $("#userName").blur();
|
|
|
- $("#userNameReadOnly").val(res.data.name);
|
|
|
- $("#age").val(res.data.age);
|
|
|
- $("#age").blur();
|
|
|
- $("#gender").selectpicker('val', res.data.sex);
|
|
|
- $("#gender").selectpicker('refresh');
|
|
|
- $("#gender").blur();
|
|
|
- $("#birthDayReadonly").val(res.data.birthDayStr);
|
|
|
- $("#birthDayReadonly").attr("title", res.data.birthDayStr);
|
|
|
- $("#birthDay").val(res.data.birthDayStr);
|
|
|
- $("#birthDay").blur();
|
|
|
- $("#phoneNum").val(res.data.phoneNo);
|
|
|
- $("#phoneNum").attr("title", res.data.phoneNo);
|
|
|
- $("#phoneNum").blur();
|
|
|
- $("#patientsNature").selectpicker('val', res.data.responseType);//默认选中
|
|
|
- $('#patientsNature').selectpicker('refresh');
|
|
|
- $("#patientsNature").blur();
|
|
|
- $("#idCard").val(res.data.socialNo);
|
|
|
- $("#idCard").attr("title", res.data.socialNo);
|
|
|
- $("#idCard").blur();
|
|
|
- $("#address").val(res.data.address);
|
|
|
- $("#address").blur();
|
|
|
- $("#patientId").val(res.data.patientId);
|
|
|
- if (res.data.name != null && res.data.name != "") {
|
|
|
- $("#editUser").show();
|
|
|
- }
|
|
|
- readonlyOrNot(true);
|
|
|
- } else {
|
|
|
- $("#newCardModal").modal();
|
|
|
- }
|
|
|
- } else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 卡号输入改变事件
|
|
|
- */
|
|
|
-function cardNoChange() {
|
|
|
- if (window.ActiveXObject || "ActiveXObject" in window) {
|
|
|
- $("#cardNo").on('input propertychange', function () {
|
|
|
- queryUserInfoByCardNo();
|
|
|
- });
|
|
|
- } else {
|
|
|
- $("#cardNo").on('input οninput', function () {
|
|
|
- queryUserInfoByCardNo();
|
|
|
- });
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 病人姓名输入改变事件
|
|
|
- */
|
|
|
-function userNameChange() {
|
|
|
- if (window.ActiveXObject || "ActiveXObject" in window) {
|
|
|
- $("#userName").on('input propertychange', function () {
|
|
|
- refeshPatinetList(true);
|
|
|
- });
|
|
|
- } else {
|
|
|
- $("#userName").on('input οninput', function () {
|
|
|
- refeshPatinetList(true);
|
|
|
- });
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 校验收款金额
|
|
|
@@ -618,26 +524,14 @@ function checkFee() {
|
|
|
realMoney = realMoney.toFixed(2);
|
|
|
$("#realMoney").val(realMoney)
|
|
|
if (cash < realMoney) {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: "收款金额不能少于实收金额!",
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesageSimaple("收款金额不能少于实收金额!");
|
|
|
return;
|
|
|
} else if (cash > realMoney) {
|
|
|
if ($("#payType").val() == 1) {
|
|
|
var changeAmount = cash - realMoney;
|
|
|
$("#changeAmount").val(changeAmount.toFixed(2));
|
|
|
} else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: "非现金收款金额不能大于实收金额!",
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesageSimaple("非现金收款金额不能大于实收金额!");
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -650,185 +544,6 @@ function checkFee() {
|
|
|
$("#discount").text(discount.toFixed(2))
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 根据病人姓名输入框内容动态加载病人列表
|
|
|
- */
|
|
|
-function initUserList() {
|
|
|
- //var width=$("#userName").css("width");
|
|
|
- var settings = {
|
|
|
- trigger: 'click',
|
|
|
- content: '',
|
|
|
- width: 170,
|
|
|
- multi: true,
|
|
|
- closeable: false,
|
|
|
- style: '',
|
|
|
- delay: 300,
|
|
|
- padding: true,
|
|
|
- height: 300
|
|
|
- };
|
|
|
- var webuiPopover = $('#userName').webuiPopover('destroy').webuiPopover(settings);
|
|
|
- //用户姓名选中事件
|
|
|
- $("#userName").on("click", function (t) {
|
|
|
- if ($(webuiPopover).css("display") == "block") {
|
|
|
- refeshPatinetList(true);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 刷新病人列表
|
|
|
- */
|
|
|
-function refeshPatinetList(flag) {
|
|
|
- //如果是重新加载病人列表,需要重置下标
|
|
|
- if (flag) {
|
|
|
- //重置下标
|
|
|
- pageIndex = 0;
|
|
|
- msg_list_loading = true;
|
|
|
- }
|
|
|
- var userName = $('#userName').val();
|
|
|
- if (!(userName == null || userName == "" || isChinese(userName))) {
|
|
|
- return;
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- type: "GET",
|
|
|
- url: '/thmz/getPatientMiByName?name=' + userName + "&pageIndex=" + pageIndex,
|
|
|
- contentType: "application/json;charset=UTF-8",
|
|
|
- dataType: "json",
|
|
|
- headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
- success: function (res) {
|
|
|
- if (res == '401' || res == 401) {
|
|
|
- window.location.href = '/thmz/login/view'
|
|
|
- return;
|
|
|
- }
|
|
|
- if (res.code == 0) {
|
|
|
- if (res.data != null && res.data.length > 0) {
|
|
|
- $("#webuiPopover0").css("display", "block");
|
|
|
- var html = '<div class="list-group">';
|
|
|
- for (var i = 0; i < res.data.length; i++) {
|
|
|
- var mzPatientMi = res.data[i];
|
|
|
- html += '<a href="#" class="list-group-item list-group-item-action" onclick="fillPatinet(\'' + mzPatientMi.patientId + '\')">';
|
|
|
- var sex = "未知";
|
|
|
- if (mzPatientMi.sex == 1) {
|
|
|
- html += '<img src="/thmz/images/boy.png"/>'
|
|
|
- sex = "男";
|
|
|
- } else if (mzPatientMi.sex == 2) {
|
|
|
- html += '<img src="/thmz/images/girl.png"/>'
|
|
|
- sex = "女";
|
|
|
- } else if (mzPatientMi.sex == 0 || mzPatientMi.sex == null) {
|
|
|
- html += '<img src="/thmz/images/girl_or_boy.png"/>'
|
|
|
- sex = "未知";
|
|
|
- }
|
|
|
- html += '<div>' + mzPatientMi.name + ' ' + sex + ' ';
|
|
|
- html += mzPatientMi.ageString;
|
|
|
- if (mzPatientMi.phoneNo != null && mzPatientMi.phoneNo != "") {
|
|
|
- html += '<span>' + mzPatientMi.phoneNo + '</span>';
|
|
|
- }
|
|
|
- html += '</div></a>';
|
|
|
- }
|
|
|
- html += '</div>';
|
|
|
- if (flag) {
|
|
|
- $("div.webui-popover-content").html("");
|
|
|
- }
|
|
|
- $("div.webui-popover-content").append(html);
|
|
|
- $("div.arrow").css("left", "23px");
|
|
|
- refeshPatinetListScrollEvent();
|
|
|
- } else {
|
|
|
- $("#webuiPopover0").css("display", "none");
|
|
|
- }
|
|
|
- }
|
|
|
- //查询完成,设置加载完成
|
|
|
- msg_list_loading = false;
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 病人下拉列表滚动条滚动到底部时继续加载新纪录
|
|
|
- */
|
|
|
-function refeshPatinetListScrollEvent() {
|
|
|
- $('.webui-popover-content').scroll(function (event) {
|
|
|
- var top = $(this).scrollTop();
|
|
|
- var height = $(this).height();
|
|
|
- var scrollHeight = $(this).get(0).scrollHeight;
|
|
|
- if (scrollHeight <= top + height) {
|
|
|
- if (!msg_list_loading) {
|
|
|
- msg_list_loading = true;
|
|
|
- pageIndex = pageIndex + 1;
|
|
|
- refeshPatinetList(false);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * 按照病人id查询病人信息
|
|
|
- * @param patientId
|
|
|
- */
|
|
|
-function fillPatinet(patientId) {
|
|
|
- if (patientId == null || patientId == "") {
|
|
|
- return;
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- type: "GET",
|
|
|
- url: '/thmz/getByPatientId?patientId=' + patientId,
|
|
|
- contentType: "application/json;charset=UTF-8",
|
|
|
- dataType: "json",
|
|
|
- headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
- success: function (res) {
|
|
|
- if (res == '401' || res == 401) {
|
|
|
- window.location.href = '/thmz/login/view'
|
|
|
- return;
|
|
|
- }
|
|
|
- if (res.code == 0) {
|
|
|
- if (res.data != null) {
|
|
|
- $("#cardNo").val(res.data.icCardNo);
|
|
|
- $("#cardNo").attr("title", res.data.icCardNo);
|
|
|
- $("#cardNo").blur();
|
|
|
- $("#userName").val(res.data.name);
|
|
|
- $("#userName").blur();
|
|
|
- $("#userNameReadOnly").val(res.data.name);
|
|
|
- $("#age").val(res.data.age);
|
|
|
- $("#age").blur();
|
|
|
- $("#gender").selectpicker('val', res.data.sex);
|
|
|
- $("#gender").selectpicker('refresh');
|
|
|
- $("#gender").blur();
|
|
|
- $("#birthDayReadonly").val(res.data.birthDayStr);
|
|
|
- $("#birthDayReadonly").attr("title", res.data.birthDayStr);
|
|
|
- $("#birthDayReadonly").blur();
|
|
|
- $("#birthDay").val(res.data.birthDayStr);
|
|
|
- $("#birthDay").blur();
|
|
|
- $("#phoneNum").val(res.data.phoneNo);
|
|
|
- $("#phoneNum").attr("title", res.data.phoneNo);
|
|
|
- $("#phoneNum").blur();
|
|
|
- $("#patientsNature").selectpicker('val', res.data.responseType);//默认选中
|
|
|
- $('#patientsNature').selectpicker('refresh');
|
|
|
- $("#patientsNature").blur();
|
|
|
- $("#idCard").val(res.data.socialNo);
|
|
|
- $("#idCard").attr("title", res.data.socialNo);
|
|
|
- $("#idCard").blur();
|
|
|
- $("#address").val(res.data.address);
|
|
|
- $("#address").blur();
|
|
|
- $("#patientId").val(res.data.patientId);
|
|
|
- if (res.data.name != null && res.data.name != "") {
|
|
|
- $("#editUser").show();
|
|
|
- }
|
|
|
- readonlyOrNot(true);
|
|
|
- }
|
|
|
- } else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 将病人信息填入患者信息修改form
|
|
|
@@ -846,6 +561,8 @@ function fillPlusPatinet(patinet) {
|
|
|
$("#editUserGender").blur();
|
|
|
$("#editUserBirthDay").val(patinet.birthDayStr);
|
|
|
$("#editUserBirthDay").blur();
|
|
|
+ $('#editUserCertificateType').selectpicker('val', patinet.certificateType);
|
|
|
+ $('#editUserCertificateType').selectpicker('refresh');
|
|
|
$("#editUserCardNo").val(patinet.icCardNo);
|
|
|
$("#editUserCardNo").attr("title", patinet.icCardNo);
|
|
|
$("#editUserCardNo").blur();
|
|
|
@@ -858,8 +575,12 @@ function fillPlusPatinet(patinet) {
|
|
|
$("#editUserIdCard").val(patinet.socialNo);
|
|
|
$("#editUserIdCard").attr("title", patinet.socialNo);
|
|
|
$("#editUserIdCard").blur();
|
|
|
- $("#editUserAddress").val(patinet.address);
|
|
|
- $("#editUserAddress").blur();
|
|
|
+ $('#editUserProvinceCode').selectpicker('val', patinet.provinceCode);
|
|
|
+ $('#editUserProvinceCode').selectpicker('refresh');
|
|
|
+ initCity(2, patinet.cityCode);
|
|
|
+ initDistrict(2, patinet.cityCode, patinet.districtCode);
|
|
|
+ $("#editUserDetail").val(patinet.detail);
|
|
|
+ $("#editUserDetail").blur();
|
|
|
$("#editUserContact").val(patinet.relName);
|
|
|
$("#editUserContactPhone").val(patinet.contractName);
|
|
|
}
|
|
|
@@ -901,45 +622,6 @@ function clearTextOrTitle(obj) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 当按照卡号查询时,病人信息输入框不可编辑,当清空输入框时可编辑
|
|
|
- * @param flag
|
|
|
- */
|
|
|
-function readonlyOrNot(flag) {
|
|
|
- if (flag) {
|
|
|
- $("#cardNo").attr("readonly", "readonly");
|
|
|
- $("#userName").attr("readonly", "readonly");
|
|
|
- $("#age").attr("readonly", "readonly");
|
|
|
- $("#gender").attr("disabled", "disabled");
|
|
|
- $("#phoneNum").attr("readonly", "readonly");
|
|
|
- $("#patientsNature").attr("disabled", "disabled");
|
|
|
- $("#idCard").attr("readonly", "readonly");
|
|
|
- $("#address").attr("readonly", "readonly");
|
|
|
- $("#birthDayReadonly").removeClass("hide").addClass("in");
|
|
|
- $("#birthDayGroup").removeClass("in").addClass("hide");
|
|
|
- $("#userName").removeClass("in").addClass("hide");
|
|
|
- $("#userNameReadOnly").removeClass("hide").addClass("in");
|
|
|
- $("#webuiPopover0").css("display", "none");
|
|
|
- } else {
|
|
|
- $("#cardNo").removeAttr("readonly");
|
|
|
- $("#userName").removeAttr("readonly");
|
|
|
- $("#age").removeAttr("readonly");
|
|
|
- $("#gender").removeAttr("disabled");
|
|
|
- $("#gender").next().removeClass("disabled");
|
|
|
- $("#phoneNum").removeAttr("readonly");
|
|
|
- $("#patientsNature").removeAttr("disabled");
|
|
|
- $("#patientsNature").next().removeClass("disabled");
|
|
|
- $("#idCard").removeAttr("readonly");
|
|
|
- $("#address").removeAttr("readonly");
|
|
|
- $("#birthDayReadonly").removeClass("in").addClass("hide");
|
|
|
- $("#birthDayGroup").removeClass("hide").addClass("in");
|
|
|
- $("#userName").removeClass("hide").addClass("in");
|
|
|
- $("#userNameReadOnly").removeClass("in").addClass("hide");
|
|
|
- //$("#webuiPopover0").css("display", "block");
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 查询默认打印机
|
|
|
@@ -970,8 +652,6 @@ function setPrint() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 修改病人信息
|
|
|
*/
|
|
|
@@ -986,11 +666,15 @@ function modifyPatient() {
|
|
|
"age": $("#editUserAge").val(),
|
|
|
"sex": $("#editUserGender").val(),
|
|
|
"birthDay": $("#editUserBirthDay").val(),
|
|
|
+ "certificateType": $("#editUserCertificateType").val(),
|
|
|
"icCardNo": $("#editUserCardNo").val(),
|
|
|
"phoneNo": $("#editUserPhoneNum").val(),
|
|
|
"responseType": $("#editUserPatientsNature").val(),
|
|
|
"socialNo": $("#editUserIdCard").val(),
|
|
|
- "address": $("#editUserAddress").val(),
|
|
|
+ "provinceCode": $("#editUserProvinceCode").val(),
|
|
|
+ "cityCode": $("#editCityCode").val(),
|
|
|
+ "districtCode": $("#editUserDistrictCode").val(),
|
|
|
+ "detail": $("#editUserDetail").val(),
|
|
|
"patientId": $("#editUserCode").val(),
|
|
|
"relName": $("#editUserContact").val(),
|
|
|
"contractName": $("#editUserContactPhone").val()
|
|
|
@@ -1003,20 +687,46 @@ function modifyPatient() {
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
$('#editUserModal').modal('hide');
|
|
|
- fillPatinet($("#patientId").val());
|
|
|
+ //fillPatinet($("#patientId").val());
|
|
|
+ clearPlusPatinet();
|
|
|
} else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesage(res.message);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 将病人信息修改域置空
|
|
|
+ * @param patinet
|
|
|
+ */
|
|
|
+function clearPlusPatinet() {
|
|
|
+ $("#editUserCode").val(null);
|
|
|
+ $("#editUserName").val(null);
|
|
|
+ $("#editUserAge").val(null);
|
|
|
+ $("#editUserGender").selectpicker('val', '1');
|
|
|
+ $("#editUserGender").selectpicker('refresh');
|
|
|
+ $("#editUserBirthDay").val(null);
|
|
|
+ $('#editUserCertificateType').selectpicker('val', '01');
|
|
|
+ $('#editUserCertificateType').selectpicker('refresh');
|
|
|
+ $("#editUserCardNo").val(null);
|
|
|
+ $("#editUserCardNo").attr("title", null);
|
|
|
+ $("#editUserPhoneNum").val(null);
|
|
|
+ $("#editUserPhoneNum").attr("title", null);
|
|
|
+ $("#editUserPatientsNature").selectpicker('val', '01');//默认选中
|
|
|
+ $('#editUserPatientsNature').selectpicker('refresh');
|
|
|
+ $("#editUserIdCard").val(null);
|
|
|
+ $("#editUserIdCard").attr("title", null);
|
|
|
+ $('#editUserProvinceCode').selectpicker('val', null);
|
|
|
+ $('#editUserProvinceCode').selectpicker('refresh');
|
|
|
+ $('#editCityCode').selectpicker('val', null);
|
|
|
+ $('#editCityCode').selectpicker('refresh');
|
|
|
+ $('#editUserDistrictCode').selectpicker('val', null);
|
|
|
+ $('#editUserDistrictCode').selectpicker('refresh');
|
|
|
+ $("#editUserDetail").val(null);
|
|
|
+ $("#editUserContact").val(null);
|
|
|
+ $("#editUserContactPhone").val(null);
|
|
|
+}
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -1565,7 +1275,7 @@ function loadTableList() {
|
|
|
// sortable: true,
|
|
|
formatter: function (value, row, index) {
|
|
|
if (row.mzyReqrec.cancelMark == 1) {
|
|
|
- var html= '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
|
|
|
+ var html = '<button type="button" class="can-not-used" title="修改挂号"><i class="fa fa-edit"></i></button><button type="button" class="registration-no-color-foot-button"title="修改患者" onclick="editUserModal(\'' + row.mzyReqrec.patientId + '\')"><i class="fa fa-user"></i></button>';
|
|
|
// '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></i></button>' +
|
|
|
if (!(buttonCodes == null || !isInArrayStr("cancel_clinic", buttonCodes))) {
|
|
|
html += '<button type="button" class="can-not-used" title="取消接诊"><i class="fa fa-mail-reply"></i></button>';
|
|
|
@@ -1823,8 +1533,6 @@ function saveBackNo() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 打开退费重收确认弹框
|
|
|
* @param serialNo
|
|
|
@@ -2027,13 +1735,7 @@ function saveEditPayMode() {
|
|
|
$("#editPayModeModal").modal("hide");
|
|
|
loadRegistrationList(true);
|
|
|
} else if (res.code == -1) {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
+ errorMesage(res.message);
|
|
|
}
|
|
|
}
|
|
|
});
|