Ver código fonte

门诊药房请求开药药房修改

‘chenzhilei’ 1 mês atrás
pai
commit
49e0efc8ad
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      src/main/resources/static/js/mz/clinic.js

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

@@ -8087,9 +8087,11 @@ function loadYpList(index, event) {
             postAjaxJsonHttpRequst("/thmz/checkKssByUserCode",{code:row.code,ypName:row.name,serial:row.serial,patientId:$("#patientId").text(),ypType:row.ypType},true,function (cres) {
                 if(cres.code == 0){
                     $('#' + MedicineName).webuiPopover('hide');
+                    console.log("row",row)
+                    console.log("index",index)
                     if (index == 0) {
                         clearWesternMedicine(false);
-                        checkYpInfo(row.code, row.serial, row.ypType, true, null, 3);
+                        checkYpInfo(row.code, row.serial, row.groupNo, true, null, 3);
                     }
                     if (index == 1) {
                         checkZyInfo(row.code, row.serial, $("#zyClassType").val(), true);
@@ -8128,7 +8130,7 @@ function checkYpInfo(code, serial, groupNo, needNotice, orderNo, type) {
     //$("#treeButton").webuiPopover('hide');
     $.ajax({
         type: "GET",
-        url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo") + "&groupNo=71",
+        url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo") + "&groupNo=" + groupNo,
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},