|
|
@@ -6,8 +6,6 @@ var pageIndex = 0;
|
|
|
var msg_list_loading = false;
|
|
|
//挂号卡片列表页面下标
|
|
|
var pageIndex = 0;
|
|
|
-//判断表格列表是否已经初始化
|
|
|
-var isTableListInit = false;
|
|
|
var LODOP; //声明为全局变量
|
|
|
//默认打印机下标
|
|
|
var printIndex = -1;
|
|
|
@@ -572,13 +570,6 @@ function listTypeChange(object) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * 打开编辑挂号信息窗口
|
|
|
- * @param data
|
|
|
- */
|
|
|
-function editRegistration(data) {
|
|
|
- $("#editRegiModal").modal();
|
|
|
-}
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -621,73 +612,8 @@ function editUserModal(data) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 打开退费信息窗口
|
|
|
- * @param patientId
|
|
|
- * @param times
|
|
|
- */
|
|
|
-function backNoModal(patientId, times) {
|
|
|
- $.ajax({
|
|
|
- type: "POST",
|
|
|
- url: '/thmz/getMzyReqrecByPatientIdAndTimes',
|
|
|
- contentType: "application/json;charset=UTF-8",
|
|
|
- dataType: "json",
|
|
|
- data: JSON.stringify({"patientId": patientId, "times": times}),
|
|
|
- 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) {
|
|
|
- $("#backNoPatientId").val(patientId);
|
|
|
- $("#backNoTimes").val(times);
|
|
|
- $("#backNoSickName").text(res.data.mzyReqrec.name);
|
|
|
- $("#backNoPayType").text(res.data.mzyReqrec.paymode);
|
|
|
- $("#backNoPhone").text(res.data.mzPatientMi.phoneNo);
|
|
|
- $("#backNoAmpm").text(res.data.mzyReqrec.ampm);
|
|
|
- $("#backNoDeptName").text(res.data.mzyReqrec.unitCode);
|
|
|
- $("#backNoChargeType").text(res.data.mzyReqrec.chargeType);
|
|
|
- $("#backNoDoctorName").text(res.data.mzyReqrec.doctorCode);
|
|
|
- $("#backNoRegiDate").text(format(res.data.mzyReqrec.requestDay, "yyyy-MM-dd HH:mm:ss"));
|
|
|
- var index = 0;
|
|
|
- var trHtml = '';
|
|
|
- if (res.data.mzyReqrec.reqFee != null && res.data.mzyReqrec.reqFee != "" && res.data.mzyReqrec.reqFee > 0) {
|
|
|
- trHtml = '<tr data-index="' + index + '"><td style="text-align: center; vertical-align: middle; ">挂号费</td><td style="text-align: center; vertical-align: middle; ">' + res.data.mzyReqrec.reqFee + '</td><td style="text-align: center; vertical-align: middle; ">' + res.data.mzyReqrec.reqFee + '</td></tr>';
|
|
|
- index++;
|
|
|
- }
|
|
|
- if (res.data.mzyReqrec.clinicFee != null && res.data.mzyReqrec.clinicFee != "" && res.data.mzyReqrec.clinicFee > 0) {
|
|
|
- trHtml += '<tr data-index="' + index + '"><td style="text-align: center; vertical-align: middle; ">诊查费</td><td style="text-align: center; vertical-align: middle; ">' + res.data.mzyReqrec.clinicFee + '</td><td style="text-align: center; vertical-align: middle; ">' + res.data.mzyReqrec.clinicFee + '</td></tr>';
|
|
|
- index++;
|
|
|
- }
|
|
|
- if (res.data.mzyReqrec.othFee != null && res.data.mzyReqrec.othFee != "" && res.data.mzyReqrec.othFee > 0) {
|
|
|
- trHtml += '<tr data-index="' + index + '"><td style="text-align: center; vertical-align: middle; ">检查费</td><td style="text-align: center; vertical-align: middle; ">' + res.data.mzyReqrec.othFee + '</td><td style="text-align: center; vertical-align: middle; ">' + res.data.mzyReqrec.othFee + '</td></tr>';
|
|
|
- }
|
|
|
- $("#tb_fee_info").find("tbody").empty();
|
|
|
- $("#tb_fee_info").find("tbody").append(trHtml);
|
|
|
- }
|
|
|
- } else {
|
|
|
- new PNotify({
|
|
|
- title: '错误提示',
|
|
|
- text: res.message,
|
|
|
- type: 'error',
|
|
|
- hide: true,
|
|
|
- styling: 'bootstrap3'
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- $("#backNoModal").modal();
|
|
|
-}
|
|
|
|
|
|
-/**
|
|
|
- * 打开打印窗口
|
|
|
- * @param data
|
|
|
- */
|
|
|
-function printOrPreviewModal(data) {
|
|
|
- $("#printOrPreviewModal").modal();
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 打开打印内容窗口
|
|
|
@@ -778,6 +704,7 @@ function queryUserInfoByCardNo() {
|
|
|
$("#patientId").val(res.data.patientId);
|
|
|
if (res.data.name != null && res.data.name != "") {
|
|
|
$("#editUser").show();
|
|
|
+ $("#clearIcCardNo").show();
|
|
|
}
|
|
|
readonlyOrNot(true);
|
|
|
} else {
|
|
|
@@ -1323,6 +1250,38 @@ function savePatient() {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// /**
|
|
|
+// * 修改病人信息诊疗卡信息
|
|
|
+// */
|
|
|
+// function modifyPatientIcCardNo() {
|
|
|
+// $.ajax({
|
|
|
+// type: "POST",
|
|
|
+// url: '/thmz/modifyPatient',
|
|
|
+// contentType: "application/json;charset=UTF-8",
|
|
|
+// dataType: "json",
|
|
|
+// data: JSON.stringify({
|
|
|
+// //"age": jsGetAge($("#birthDayReadonly").val()),
|
|
|
+// "icCardNo": $("#cardNo").val(),
|
|
|
+// "patientId": $("#patientId").val(),
|
|
|
+// }),
|
|
|
+// 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) {
|
|
|
+// editIcCardNo=false;
|
|
|
+// saveMzyReqrec();
|
|
|
+// successMesage(res)
|
|
|
+// } else {
|
|
|
+// errorMesage(res);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 修改病人信息
|
|
|
*/
|
|
|
@@ -1486,34 +1445,8 @@ function initListDoctorSelect() {
|
|
|
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * 获取按钮组选择的下标
|
|
|
- * @param id
|
|
|
- * @returns {number}
|
|
|
- */
|
|
|
-function getIndex(id) {
|
|
|
- var index = 0;
|
|
|
- var item = $("#" + id).find("button");
|
|
|
- for (var i = 0; i <= item.length; i++) {
|
|
|
- if ($(item[i]).hasClass("btn-primary")) {
|
|
|
- index = i;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return index;
|
|
|
-}
|
|
|
|
|
|
-/**
|
|
|
- * 获取时间选择器的时间数组
|
|
|
- * @returns {string[]}
|
|
|
- */
|
|
|
-function getRePortRangeArr() {
|
|
|
- var rePortRange = $('#reportrange span').html();
|
|
|
- var rePortRangeArr = rePortRange.split(" - ");
|
|
|
- rePortRangeArr[0] = rePortRangeArr[0] + " 00:00:00"
|
|
|
- rePortRangeArr[1] = rePortRangeArr[1] + " 23:59:59"
|
|
|
- return rePortRangeArr;
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 清空搜索参数
|
|
|
@@ -1595,6 +1528,7 @@ function clearRegistration() {
|
|
|
$("#address").val(null);
|
|
|
$("#patientId").val(null);
|
|
|
$("#editUser").hide();
|
|
|
+ $("#clearIcCardNo").hide();
|
|
|
//默认光标在卡号输入框
|
|
|
$("#cardNo").focus();
|
|
|
initMzWorkTime();
|
|
|
@@ -1674,11 +1608,32 @@ function prn1Print(patientId,times) {
|
|
|
};
|
|
|
|
|
|
|
|
|
-//判断字符是否为空的方法
|
|
|
-function isEmpty(obj) {
|
|
|
- if (typeof obj == "undefined" || obj == null || obj == "") {
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 销卡
|
|
|
+ * @param data
|
|
|
+ */
|
|
|
+function clearIcCardNo() {
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: '/thmz/clearIcCardNo?patientId=' + $("#patientId").val(),
|
|
|
+ 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) {
|
|
|
+ successMesage(res);
|
|
|
+ } else {
|
|
|
+ errorMesage(res);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|