Kaynağa Gözat

发票打印功能设置成同步,防止收费员重复点击打印导致串号

hurugang 3 yıl önce
ebeveyn
işleme
6322a9282c

+ 1 - 0
src/main/resources/static/js/mz/registration_list.js

@@ -2186,6 +2186,7 @@ function prn1Print(patientId, times) {
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        async: false,
         success: function (res) {
             if (res == '401' || res == 401) {
                 window.location.href = '/thmz/login/view'

+ 2 - 0
src/main/resources/static/js/mz/toll_administration.js

@@ -1578,6 +1578,7 @@ function matchProject(realNo) {
     });
 }
 
+
 /**
  * 打印发票通用方法
  * @param patientId
@@ -1596,6 +1597,7 @@ function printCommon(url, patientId, times, chargeFeeFlag) {
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        async: false,
         success: function (res) {
             if (res == '401' || res == 401) {
                 window.location.href = '/thmz/login/view'

+ 2 - 2
src/main/resources/static/js/user_manage.js

@@ -2,8 +2,8 @@
 $(function () {
     $("input").each(function () {
         this.onkeydown = function (e) { // 监听键盘事件
-            let theEvent = window.event || e;
-            let code = theEvent.keyCode || theEvent.which;
+            var theEvent = window.event || e;
+            var code = theEvent.keyCode || theEvent.which;
             if (code == 13) {//回车事件
                 $("#btn_search").click(); //触发搜索按钮点击事件
             }