|
@@ -199,12 +199,12 @@ $(function () {
|
|
|
*/
|
|
|
$("#saveConfirmFee").on("click", function (t) {
|
|
|
var serialNo = $("#serialNo").val();
|
|
|
- if (!confirm("确定要将流水号【"+serialNo+"】的挂号记录退费重收吗?")) {
|
|
|
+ if (!confirm("确定要将流水号【" + serialNo + "】的挂号记录退费重收吗?")) {
|
|
|
return;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/chargeFeeForByjz?serialNo='+serialNo+"&paymode="+$("#payType").val(),
|
|
|
+ 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")},
|
|
@@ -1571,13 +1571,13 @@ function loadCardList() {
|
|
|
html += '</div><div class="el-row" title="' + mzyReqrecVo.mzPatientMi.phoneNo + '">' + sex + ' / ' + mzyReqrecVo.mzPatientMi.age + '岁 / ' + mzyReqrecVo.mzPatientMi.phoneNo + '</div><div class="el-row" title="' + mzyReqrecVo.mzyReqrec.ampm + '">' + mzyReqrecVo.mzyReqrec.ampm + ' / ' + mzyReqrecVo.mzyReqrec.chargeType + '</div><div class="el-row" title="' + mzyReqrecVo.mzyReqrec.chargeType + '">' + mzyReqrecVo.mzyReqrec.unitCode + ' / ' + mzyReqrecVo.mzyReqrec.doctorCode + '</div><div class="el-row">' + format(mzyReqrecVo.mzyReqrec.requestDay, "yyyy-MM-dd HH:mm:ss") + '</div></div></div>';
|
|
|
if (mzyReqrecVo.mzyReqrec.cancelMark == 1) {
|
|
|
html += '<div class="patient-card-foot">' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="修改挂号">' +
|
|
|
' <i class="fa fa-edit"></i>' +
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
' title="修改患者" onclick="editUserModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\')">' +
|
|
|
' <i class="fa fa-user"></i>' +
|
|
@@ -1589,13 +1589,19 @@ function loadCardList() {
|
|
|
// ' <i class="fa fa-credit-card"></i>' +
|
|
|
// ' </button>' +
|
|
|
// ' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' <button type="button" class="can-not-used"' +
|
|
|
+ ' title="取消接诊">' +
|
|
|
+ ' <i class="fa fa-mail-reply"></i>' +
|
|
|
+ ' </button>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="退号">' +
|
|
|
' <i class="fa fa-minus-square-o"></i>' +
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="打印">' +
|
|
|
' <i class="fa fa-print"></i>' +
|
|
@@ -1605,13 +1611,13 @@ function loadCardList() {
|
|
|
}
|
|
|
if (mzyReqrecVo.mzyReqrec.visitedMark == 1) {
|
|
|
html += '<div class="patient-card-foot">' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="修改挂号">' +
|
|
|
' <i class="fa fa-edit"></i>' +
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
' title="修改患者" onclick="editUserModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\')">' +
|
|
|
' <i class="fa fa-user"></i>' +
|
|
@@ -1623,13 +1629,19 @@ function loadCardList() {
|
|
|
// ' <i class="fa fa-credit-card"></i>' +
|
|
|
// ' </button>' +
|
|
|
// ' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
+ ' title="取消接诊" onclick="cancelClinic\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">' +
|
|
|
+ ' <i class="fa fa-mail-reply"></i>' +
|
|
|
+ ' </button>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="退号">' +
|
|
|
' <i class="fa fa-minus-square-o"></i>' +
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">';
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">';
|
|
|
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>';
|
|
@@ -1647,13 +1659,13 @@ function loadCardList() {
|
|
|
' </div>';
|
|
|
} else {
|
|
|
html += '<div class="patient-card-foot">' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="can-not-used"' +
|
|
|
' title="修改挂号">' +
|
|
|
' <i class="fa fa-edit"></i>' +
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
' title="修改患者" onclick="editUserModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\')">' +
|
|
|
' <i class="fa fa-user"></i>' +
|
|
@@ -1665,13 +1677,19 @@ function loadCardList() {
|
|
|
// ' <i class="fa fa-credit-card"></i>' +
|
|
|
// ' </button>' +
|
|
|
// ' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
+ ' <button type="button" class="can-not-used"' +
|
|
|
+ ' title="取消接诊">' +
|
|
|
+ ' <i class="fa fa-mail-reply"></i>' +
|
|
|
+ ' </button>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">' +
|
|
|
' <button type="button" class="registration-no-color-foot-button"' +
|
|
|
' title="退号" onclick="backNoModal(\'' + mzyReqrecVo.mzyReqrec.patientId + '\',' + mzyReqrecVo.mzyReqrec.times + ')">' +
|
|
|
' <i class="fa fa-minus-square-o"></i>' +
|
|
|
' </button>' +
|
|
|
' </div>' +
|
|
|
- ' <div class="col-md-3 col-sm-3 col-xs-12">';
|
|
|
+ ' <div class="col-md-2 col-sm-2 col-xs-12">';
|
|
|
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>';
|
|
@@ -1742,13 +1760,13 @@ function loadTableList() {
|
|
|
align: "center",
|
|
|
valign: 'middle',
|
|
|
// sortable: true
|
|
|
- },{
|
|
|
+ }, {
|
|
|
field: 'mzyReqrec.times',
|
|
|
title: '就诊次数',
|
|
|
align: "center",
|
|
|
valign: 'middle',
|
|
|
// sortable: true
|
|
|
- },{
|
|
|
+ }, {
|
|
|
field: 'mzyReqrec.name',
|
|
|
title: '病人姓名',
|
|
|
align: "center",
|
|
@@ -1848,12 +1866,14 @@ function loadTableList() {
|
|
|
formatter: function (value, row, index) {
|
|
|
if (row.mzyReqrec.cancelMark == 1) {
|
|
|
return '<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>' +
|
|
|
+ // '<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>' +
|
|
|
+ '<button type="button" class="can-not-used" title="取消接诊"><i class="fa fa-mail-reply"></i></button>'+
|
|
|
'<button type="button" class="can-not-used" title="退号"><i class="fa fa-minus-square-o"></i></button><button type="button" class="can-not-used" title="打印" ><i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
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="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>' +
|
|
|
+ // '<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>' +
|
|
|
+ '<button type="button" class="registration-no-color-foot-button" title="取消接诊" onclick="cancelClinic(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-mail-reply"></i></button>'+
|
|
|
'<button type="button" class="can-not-used" title="退号"><i class="fa fa-minus-square-o"></i></button>';
|
|
|
if (row.mzyReqrec.paymode == "本院记账") {
|
|
|
html += ' <button type="button" class="registration-no-color-foot-button" title="退记账重收" onclick="chargeFeeForByjz(\'' + row.mzyReqrec.serialNo + '\')">';
|
|
@@ -1867,11 +1887,13 @@ function loadTableList() {
|
|
|
}
|
|
|
html += '<i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
+ // html += '<button type="button" class="registration-no-color-foot-button" title="取消接诊" onclick="cancelClinic(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times + ')"><i class="fa fa-mail-reply"></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="editPayMode(\'' + row.mzyReqrec.patientId + '\','+row.mzyReqrec.times+',\''+row.mzyReqrec.paymode+'\','+row.mzyReqrec.dcountNo+')"><i class="fa fa-credit-card"></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>' +
|
|
|
+ '<button type="button" class="can-not-used" title="取消接诊"><i class="fa fa-mail-reply"></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>';
|
|
|
if (row.mzyReqrec.paymode == "本院记账") {
|
|
|
html += ' <button type="button" class="registration-no-color-foot-button" title="退记账重收" onclick="chargeFeeForByjz(\'' + row.mzyReqrec.serialNo + '\')">';
|
|
@@ -1885,6 +1907,7 @@ function loadTableList() {
|
|
|
}
|
|
|
html += '<i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
+ //html += '<button type="button" class="can-not-used" title="取消接诊"><i class="fa fa-mail-reply"></i></button>';
|
|
|
return html;
|
|
|
}
|
|
|
}],
|
|
@@ -2208,6 +2231,44 @@ function prn1Print(patientId, times) {
|
|
|
};
|
|
|
|
|
|
|
|
|
+/**
|
|
|
+ * 取消接诊
|
|
|
+ * @param patientId
|
|
|
+ */
|
|
|
+function cancelClinic(patientId, times) {
|
|
|
+ $("#messageModal").modal();
|
|
|
+ $("#messageContent").html("确认取消当前病人的接诊记录吗?");
|
|
|
+ $("#messageButton").off("click").on("click", function (t) {
|
|
|
+ $("#messageModal").modal("hide");
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: '/thmz/cancelClinic?patientId=' + patientId + "×=" + times,
|
|
|
+ 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) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ successMesage(res);
|
|
|
+ if (times > 0) {
|
|
|
+ loadTableCount();
|
|
|
+ loadRegistrationList(true);
|
|
|
+ }
|
|
|
+ } else if (res.code == -1) {
|
|
|
+ errorMesage(res);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
//判断字符是否为空的方法
|
|
|
function isEmpty(obj) {
|
|
|
if (typeof obj == "undefined" || obj == null || obj == "") {
|
|
@@ -2248,10 +2309,10 @@ function exportExcel() {
|
|
|
* @param times
|
|
|
* @param paymode
|
|
|
*/
|
|
|
-function editPayMode(patientId,times,paymode,dcountNo) {
|
|
|
- var message = "当前病人本次挂号的收费方式为【"+paymode+"】,确定需要修改吗?";
|
|
|
- if(dcountNo==1){
|
|
|
- message = "当前病人本次挂号的收费方式为【"+paymode+"】,且本次挂号已经结算,确定需要修改吗?如仍需继续修改,会影响已经结算的报表,请重新打印本次挂号所在日期的【日结报表】!";
|
|
|
+function editPayMode(patientId, times, paymode, dcountNo) {
|
|
|
+ var message = "当前病人本次挂号的收费方式为【" + paymode + "】,确定需要修改吗?";
|
|
|
+ if (dcountNo == 1) {
|
|
|
+ message = "当前病人本次挂号的收费方式为【" + paymode + "】,且本次挂号已经结算,确定需要修改吗?如仍需继续修改,会影响已经结算的报表,请重新打印本次挂号所在日期的【日结报表】!";
|
|
|
}
|
|
|
$("#editPayModeTip").html(message);
|
|
|
$("#patientId").val(patientId);
|
|
@@ -2265,10 +2326,10 @@ function editPayMode(patientId,times,paymode,dcountNo) {
|
|
|
/**
|
|
|
* 提交修改收款方式
|
|
|
*/
|
|
|
-function saveEditPayMode(){
|
|
|
+function saveEditPayMode() {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/updatePayMode?patientId=' + $("#patientId").val() + "×=" + $("#times").val()+"&payMode="+$("#payTypeEditPayMode").val(),
|
|
|
+ url: '/thmz/updatePayMode?patientId=' + $("#patientId").val() + "×=" + $("#times").val() + "&payMode=" + $("#payTypeEditPayMode").val(),
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|