Browse Source

防止多次入库

WANGJIALIANG 3 years ago
parent
commit
cce947493a

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

@@ -242,7 +242,7 @@ public class YfWardPrescriptionServiceImpl implements YfWardPrescriptionService
                 }
                 ypZyPatient.setOrderDate(yzYpZyOrder.getOccTime());
                 ypZyPatient.setSectionCode("");
-                ypZyPatient.setAcctSign(yzYpZyOrder.getAmount()==0?"2":"0");
+                ypZyPatient.setAcctSign(yzYpZyOrder.getAmount()>=0?"2":"0");
                 ypZyPatient.setOutSeri(i+1);
                 ypZyPatient.setKeeper(userCode);
                 ypZyPatient.setTotalFlag("");

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

@@ -217,6 +217,7 @@ function saveDrug(data) {
         url: '/thmz/saveYpInDetlYf',
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
+        async: false,
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
         data: JSON.stringify(data),
         success: function (res) {