Sfoglia il codice sorgente

药房接收入库显示药品医保编码

WANGJIALIANG 3 anni fa
parent
commit
ba5f69155c

+ 1 - 0
src/main/java/cn/hnthyy/thmz/controller/yf/YfWarehouseController.java

@@ -113,6 +113,7 @@ public class YfWarehouseController {
                 y.setRetprice(ypZdDict.getRetprice());
                 y.setPackSize(ypZdDict.getPackSize());
                 y.setClFlag(ypZdDict.getClFlag());
+                y.setNationalCode(ypZdDict.getNationalCode());
                 y.setSplitPercent(0.0);
                 YpBase ypBase = ypBaseService.queryYpBase(y.getChargeCode(), y.getSerial(), y.getGroupNo());
                 y.setSpecification(ypBase.getSpecification());

+ 2 - 1
src/main/java/cn/hnthyy/thmz/entity/his/yp/YpZdDict.java

@@ -187,5 +187,6 @@ public class YpZdDict {
     private String manufactoryName;
     //是否摆药机操作 1:是 0:否
     private Integer byjFlag;
-
+    //药品医保编码
+    private String nationalCode;
 }

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/yp/YpZdDictMapper.java

@@ -13,7 +13,7 @@ public interface YpZdDictMapper {
      * @param code
      * @return
      */
-    @Select("select code,name,specification,mz_restrict,bill_item_mz,pack_retprice,country_flag,supply_type,pack_unit,weight,volum,weigh_unit,vol_unit,pack_size,manu_code,frequency,serial,drug_flag,mini_unit,ps_flag,retprice,fix_price,buy_price,isnull(byj_flag,0) byj_flag from yp_zd_dict WITH(NOLOCK) where code = #{code,jdbcType=VARCHAR} and serial = #{serial}")
+    @Select("select code,name,specification,mz_restrict,bill_item_mz,pack_retprice,country_flag,supply_type,pack_unit,weight,volum,weigh_unit,vol_unit,pack_size,manu_code,frequency,serial,drug_flag,mini_unit,ps_flag,retprice,fix_price,buy_price,isnull(byj_flag,0) byj_flag,national_code from yp_zd_dict WITH(NOLOCK) where code = #{code,jdbcType=VARCHAR} and serial = #{serial}")
     YpZdDict selectYpZdDictByCodeAndSerial(@Param("code") String code,@Param("serial") String serial);
 
     /**

+ 2 - 0
src/main/java/cn/hnthyy/thmz/vo/YpOutDetlVo.java

@@ -114,4 +114,6 @@ public class YpOutDetlVo {
   private String drugFlag;
   //最小包装单位
   private String miniUnit;
+  //药品医保编码
+  private String nationalCode;
 }

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

@@ -134,6 +134,14 @@ function initDrugTable(drawNo) {
                 formatter: function (value, row, index) {
                     return value == null ? "-" : format(value, "yyyy-MM-dd");
                 }
+            },{
+                field: 'nationalCode',
+                title: '医保编码',
+                align: "center",
+                valign: 'middle',
+                formatter: function (value, row, index) {
+                    return value == null ? "-" : value;
+                }
             }
         ],
         responseHandler: function (res) {