Browse Source

修复打印机故障

hurugang 6 years ago
parent
commit
32e5806c4f

+ 1 - 0
src/main/resources/static/js/daily.js

@@ -693,6 +693,7 @@ function setPrint() {
         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'

+ 1 - 0
src/main/resources/static/js/daily_collect.js

@@ -731,6 +731,7 @@ function setPrint() {
         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'

+ 1 - 0
src/main/resources/static/js/daily_repeat_print.js

@@ -723,6 +723,7 @@ function setPrint() {
         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'

+ 1 - 0
src/main/resources/static/js/registration.js

@@ -1167,6 +1167,7 @@ function setPrint() {
         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'

+ 1 - 0
src/main/resources/static/js/toll_administration.js

@@ -1360,6 +1360,7 @@ function setPrint() {
         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'