Forráskód Böngészése

后台住院空单判断,出院拿药默认明细显示

WANGJIALIANG 2 éve
szülő
commit
0a47971215

+ 3 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/yf/YfWardPrescriptionServiceImpl.java

@@ -511,6 +511,9 @@ public class YfWardPrescriptionServiceImpl implements YfWardPrescriptionService
                     }
                 }
             }
+            if(i == 0 || count == 0){
+                throw new MzException("请检查后重发,含空药单:"+pageNoStr);
+            }
             if (i == count || pageClass.equals("T") || pageClass.equals("HT")) {
                 yzYpPageNoMapper.updateYzYpPageNo(Integer.parseInt(pageNoStr), 3, userCode);
             }

+ 1 - 0
src/main/resources/static/js/yf/ward_prescription.js

@@ -203,6 +203,7 @@ function detail(no, type, code, flag) {
         initButtonChange("#hz", 1);
     } else {
         switch (type) {
+            case "1":
             case "2":
             case "5":
             case "6":