Jelajahi Sumber

查询小科室+号转义处理

WANGJIALIANG 2 tahun lalu
induk
melakukan
58b6070497
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      src/main/resources/static/js/mz/clinic.js

+ 3 - 2
src/main/resources/static/js/mz/clinic.js

@@ -3411,10 +3411,11 @@ function initListDeptSelect() {
  * 小科室列表
  */
 function initSmallDeptByDept() {
+    let code = escape($('#inpatientWardBeHospitalized').val()).replace(/\+/g, '%2B');
     //小科室列表
     $.ajax({
         type: "GET",
-        url: '/thmz/getSmallDeptByDept?code=' + $('#inpatientWardBeHospitalized').val(),
+        url: '/thmz/getSmallDeptByDept?code=' + code,
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
         success: function (res) {
@@ -3435,7 +3436,7 @@ function initSmallDeptByDept() {
     //病床数
     $.ajax({
         type: "GET",
-        url: '/thmz/getBedStatusNumByDept?code=' + $('#inpatientWardBeHospitalized').val(),
+        url: '/thmz/getBedStatusNumByDept?code=' + code,
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
         success: function (res) {