|
@@ -101,17 +101,7 @@ var TableInit = function () {
|
|
|
$(function () {
|
|
|
initGenderSelect();
|
|
|
initResponceTypeSelect();
|
|
|
- var birthDay = $('#birthDayGroup').datetimepicker({
|
|
|
- format: 'yyyy-mm-dd',
|
|
|
- language: 'zh-CN',
|
|
|
- minView: "month",
|
|
|
- }).on('changeDate', changeDate);
|
|
|
-
|
|
|
- var editUserBirthDay = $('#editUserBirthDayGroup').datetimepicker({
|
|
|
- format: 'yyyy-mm-dd',
|
|
|
- language: 'zh-CN',
|
|
|
- minView: "month",
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
//设置挂号窗口的高度
|
|
|
var width = $('#confirmFee').css("width");
|
|
@@ -169,18 +159,6 @@ $(function () {
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
- /**
|
|
|
- * 保存挂号信息
|
|
|
- */
|
|
|
- $("#saveConfirmFee").on("click", function (t) {
|
|
|
- var patientId = $("#patientId").val();
|
|
|
- if (patientId == null || patientId == "") {
|
|
|
- savePatient();
|
|
|
- } else {
|
|
|
- saveMzyReqrec();
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
|
|
|
// /**
|
|
|
// * 设置窗口号
|
|
@@ -213,6 +191,43 @@ $(function () {
|
|
|
// $("#editWindowsModal").modal();
|
|
|
// });
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 退费重收事件
|
|
|
+ */
|
|
|
+ $("#saveConfirmFee").on("click", function (t) {
|
|
|
+ var serialNo = $("#serialNo").val();
|
|
|
+ if (!confirm("确定要将流水号【"+serialNo+"】的挂号记录退费重收吗?")) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: '/thmz/chargeFeeForByjz?serialNo='+serialNo+"&paymode="+$("#payType").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) {
|
|
|
+ $('#confirmFeeModal').modal('hide');
|
|
|
+ $("#serialNo").val(null);
|
|
|
+ prn1Print(res.data.patientId, res.data.times);
|
|
|
+ } else {
|
|
|
+ new PNotify({
|
|
|
+ title: '错误提示',
|
|
|
+ text: res.message,
|
|
|
+ type: 'error',
|
|
|
+ hide: true,
|
|
|
+ styling: 'bootstrap3'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
/**
|
|
|
* 患者信息修改
|
|
|
*/
|
|
@@ -564,15 +579,6 @@ function listTypeChange(object) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * 打开编辑挂号信息窗口
|
|
|
- * @param data
|
|
|
- */
|
|
|
-function editRegistration(data) {
|
|
|
- $("#editRegiModal").modal();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 打开编辑用户信息窗口
|
|
|
* @param data
|
|
@@ -673,13 +679,6 @@ function backNoModal(patientId, times) {
|
|
|
$("#backNoModal").modal();
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 打开打印窗口
|
|
|
- * @param data
|
|
|
- */
|
|
|
-function printOrPreviewModal(data) {
|
|
|
- $("#printOrPreviewModal").modal();
|
|
|
-}
|
|
|
|
|
|
/**
|
|
|
* 打开打印内容窗口
|
|
@@ -1617,14 +1616,19 @@ function loadCardList() {
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
' <div class="col-md-3 col-sm-3 col-xs-12">';
|
|
|
- var printFlag = isEmpty(mzyReqrecVo.mzyReqrec.printerId);
|
|
|
- if (printFlag) {
|
|
|
- html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">';
|
|
|
+ if (mzyReqrecVo.mzyReqrec.paymode == "本院记账") {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="退记账重收" onclick="chargeFeeForByjz(\'' + mzyReqrecVo.mzyReqrec.serialNo + '\')">';
|
|
|
+ html += ' <i class="fa fa-rmb"></i>';
|
|
|
} else {
|
|
|
- html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ var printFlag = isEmpty(mzyReqrecVo.mzyReqrec.printerId);
|
|
|
+ if (printFlag) {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">';
|
|
|
+ } else {
|
|
|
+ html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ }
|
|
|
+ html += ' <i class="fa fa-print"></i>';
|
|
|
}
|
|
|
- html += ' <i class="fa fa-print"></i>' +
|
|
|
- ' </button>' +
|
|
|
+ html += ' </button>' +
|
|
|
' </div>' +
|
|
|
' </div>';
|
|
|
} else {
|
|
@@ -1648,14 +1652,19 @@ function loadCardList() {
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
' <div class="col-md-3 col-sm-3 col-xs-12">';
|
|
|
- var printFlag = isEmpty(mzyReqrecVo.mzyReqrec.printerId);
|
|
|
- if (printFlag) {
|
|
|
- html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">';
|
|
|
+ if (mzyReqrecVo.mzyReqrec.paymode == "本院记账") {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="退记账重收" onclick="chargeFeeForByjz(\'' + mzyReqrecVo.mzyReqrec.serialNo + '\')">';
|
|
|
+ html += ' <i class="fa fa-rmb"></i>';
|
|
|
} else {
|
|
|
- html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ var printFlag = isEmpty(mzyReqrecVo.mzyReqrec.printerId);
|
|
|
+ if (printFlag) {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">';
|
|
|
+ } else {
|
|
|
+ html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ }
|
|
|
+ html += ' <i class="fa fa-print"></i>';
|
|
|
}
|
|
|
- html += ' <i class="fa fa-print"></i>' +
|
|
|
- ' </button>' +
|
|
|
+ html += ' </button>' +
|
|
|
' </div>' +
|
|
|
' </div>';
|
|
|
}
|
|
@@ -1808,24 +1817,34 @@ function loadTableList() {
|
|
|
}
|
|
|
if (row.mzyReqrec.visitedMark == 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><button type="button" class="can-not-used" title="退号"><i class="fa fa-minus-square-o"></i></button>';
|
|
|
- var printFlag = isEmpty(row.mzyReqrec.printerId);
|
|
|
- if (printFlag) {
|
|
|
- html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')">';
|
|
|
+ if (row.mzyReqrec.paymode == "本院记账") {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="退记账重收" onclick="chargeFeeForByjz(\'' + row.mzyReqrec.serialNo + '\')">';
|
|
|
+ html += '<i class="fa fa-rmb"></i></button>';
|
|
|
} else {
|
|
|
- html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ var printFlag = isEmpty(row.mzyReqrec.printerId);
|
|
|
+ if (printFlag) {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')">';
|
|
|
+ } else {
|
|
|
+ html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ }
|
|
|
+ html += '<i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
- html += '<i class="fa fa-print"></i></button>';
|
|
|
return html;
|
|
|
|
|
|
}
|
|
|
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="backNoModal(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-minus-square-o"></i></button>';
|
|
|
- var printFlag = isEmpty(row.mzyReqrec.printerId);
|
|
|
- if (printFlag) {
|
|
|
- html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')">';
|
|
|
+ if (row.mzyReqrec.paymode == "本院记账") {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="退记账重收" onclick="chargeFeeForByjz(\'' + row.mzyReqrec.serialNo + '\')">';
|
|
|
+ html += '<i class="fa fa-rmb"></i></button>';
|
|
|
} else {
|
|
|
- html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ var printFlag = isEmpty(row.mzyReqrec.printerId);
|
|
|
+ if (printFlag) {
|
|
|
+ html += ' <button type="button" class="registration-no-color-foot-button" title="打印" onclick="prn1Print(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')">';
|
|
|
+ } else {
|
|
|
+ html += ' <button type="button" class="can-not-used" title="打印">';
|
|
|
+ }
|
|
|
+ html += '<i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
- html += '<i class="fa fa-print"></i></button>';
|
|
|
return html;
|
|
|
}
|
|
|
}],
|
|
@@ -2061,6 +2080,16 @@ function clearRegistration() {
|
|
|
}
|
|
|
|
|
|
|
|
|
+/**
|
|
|
+ * 打开退费重收确认弹框
|
|
|
+ * @param serialNo
|
|
|
+ */
|
|
|
+function chargeFeeForByjz(serialNo) {
|
|
|
+ $("#serialNo").val(serialNo);
|
|
|
+ $("#confirmFeeModal").modal();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 直接打印发票
|
|
|
* @param patientId
|
|
@@ -2122,6 +2151,7 @@ function prn1Print(patientId, times) {
|
|
|
//LODOP.PREVIEW();
|
|
|
LODOP.PRINT();
|
|
|
if (times > 0) {
|
|
|
+ loadTableCount();
|
|
|
loadRegistrationList(true);
|
|
|
}
|
|
|
} else if (res.code == -1) {
|