LIJU 2 周之前
父节点
当前提交
8e439bd192

+ 2 - 1
src/main/java/cn/hnthyy/thmz/controller/mz/MzPharmacyController.java

@@ -2182,7 +2182,8 @@ public class MzPharmacyController {
         ybParams.put("mdtrtSetlType", item.get("mdtrtSetlType") != null ? item.get("mdtrtSetlType") : "2");
         
         // 处方药标志
-        ybParams.put("rxFlag", item.get("rxFlag") != null ? item.get("rxFlag") : "0");
+        // ybParams.put("rxFlag", item.get("rxFlag") != null ? item.get("rxFlag") : "1");
+        ybParams.put("rxFlag", "1");
         
         // 拆零标志(0-否;1-是)
         ybParams.put("trdnFlag", item.get("clFlag") != null ? item.get("clFlag") : "0");

+ 2 - 1
src/main/java/cn/hnthyy/thmz/service/impl/yb/YbParamDetailServiceImpl.java

@@ -133,7 +133,8 @@ public class YbParamDetailServiceImpl implements YbParamDetailService {
         selinfoSold.setPharPracCertNo("HY321322000735");
         selinfoSold.setSelRetnOpterName("宋荣芝");
         selinfoSold.setMdtrtSetlType(baseInfo.getMdtrtSetlType() != null ? baseInfo.getMdtrtSetlType() : "2");
-        selinfoSold.setRxFlag(baseInfo.getRxFlag() != null ? baseInfo.getRxFlag() : "0");
+        // selinfoSold.setRxFlag(baseInfo.getRxFlag() != null ? baseInfo.getRxFlag() : "0");
+        selinfoSold.setRxFlag("1");
         selinfoSold.setTrdnFlag(baseInfo.getTrdnFlag() != null ? baseInfo.getTrdnFlag() : "0");
         selinfoSold.setPsnCertType(baseInfo.getPsnCertType() != null ? baseInfo.getPsnCertType() : "01");
         selinfoSold.setCertno(baseInfo.getCertno() != null ? baseInfo.getCertno() : "");

+ 3 - 2
src/main/java/cn/hnthyy/thmz/service/impl/yb/YbParamServiceImpl.java

@@ -102,7 +102,7 @@ public class YbParamServiceImpl implements YbParamService {
             
             // 4. 默认参数
             selinfoSold.setMdtrtSetlType("2"); // 默认自费结算
-            selinfoSold.setRxFlag("0"); // 默认非处方药
+            selinfoSold.setRxFlag("1"); // 默认处方药
             selinfoSold.setTrdnFlag("0"); // 默认非拆零
             
             // 5. 追溯码信息
@@ -124,7 +124,8 @@ public class YbParamServiceImpl implements YbParamService {
                     YpZdDict ypZdDict = ypZdDictService.queryYpZdDictByCodeAndSerial(chargeItemCode, "01");
                     if (ypZdDict != null) {
                         selinfoSold.setMedListCodg(ypZdDict.getNationalCode());
-                        selinfoSold.setRxFlag(ypZdDict.getRxFlag() != null ? ypZdDict.getRxFlag() : "0");
+                        // selinfoSold.setRxFlag(ypZdDict.getRxFlag() != null ? ypZdDict.getRxFlag() : "1");
+                        selinfoSold.setRxFlag("1");
                         selinfoSold.setTrdnFlag(ypZdDict.getClFlag() != null ? ypZdDict.getClFlag() : "0");
                     }
                 }

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

@@ -3345,7 +3345,8 @@ function callYbSaleGoodsItem(realNo, orderNo, receiptNo, times, patientId, name,
             mdtrtSetlType: item.mdtrtSetlType || '2',
             
             // 处方药标志
-            rxFlag: item.rxFlag || '0',
+            // rxFlag: item.rxFlag || '1',
+            rxFlag: "1",//医院默认都是处方药
             
             // 拆零标志(0-否;1-是)
             trdnFlag: item.clFlag || '0',
@@ -3492,7 +3493,8 @@ function callYbReturnGoodsItem(realNo, orderNo, receiptNo, times, patientId, nam
             // finlTrnsPric: item.unit_price,
             
             // // 处方药标志
-            // rxFlag: item.rxFlag || '0',
+            // rxFlag: item.rxFlag || '1',
+            // rxFlag: '1',//医院默认都是处方药
             
             // // 拆零标志(0-否;1-是)
             // trdnFlag: item.clFlag || '0',