yaodeguang пре 2 месеци
родитељ
комит
9fdc4a7f0e

+ 6 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/zd/JcJyItemChargeMapper.java

@@ -141,6 +141,9 @@ public interface JcJyItemChargeMapper {
         "         b.code," +
         "         b.amount," +
         "         a.name," +
+            "         a.hnsyb_code," +
+            "         a.national_code," +
+            "         a.national_name," +
         "         a.del_flag," +
         "         a.charge_amount," +
         "         zy_flag = isnull(b.zy_flag,'0')," +
@@ -186,6 +189,9 @@ public interface JcJyItemChargeMapper {
             "         b.code," +
             "         b.amount," +
             "         a.name," +
+            "         a.hnsyb_code," +
+            "         a.national_code," +
+            "         a.national_name," +
             "         a.del_flag," +
             "         a.charge_amount," +
             "         zy_flag = isnull(b.zy_flag,'0')," +

+ 62 - 0
src/main/resources/static/js/mz/jc_jy_zd_item.js

@@ -1,5 +1,6 @@
 //@ sourceURL=jc_jy_zd_item.js
 var chargeItemMap = null;
+var chargeItemObj = null;
 $(function () {
     $("#btn_add").click(function (t) {
         var sourceGroup = getIndex("source_group");
@@ -641,6 +642,24 @@ function getJcItemChargesByItemCode(code) {
                     }
                 }
             },
+            {
+                field: 'hnsyb_code',
+                title: '省医保编码',
+                align: "center",
+                valign: 'middle'
+            },
+            {
+                field: 'national_code',
+                title: '国家医保编码',
+                align: "center",
+                valign: 'middle'
+            },
+            {
+                field: 'national_name',
+                title: '国家医保名称',
+                align: "center",
+                valign: 'middle'
+            },
             {
                 field: 'zy_flag',
                 title: '住院停用',
@@ -924,6 +943,24 @@ function getJyItemChargesByItemCode(code) {
                     }
                 }
             },
+            {
+                field: 'hnsyb_code',
+                title: '省医保编码',
+                align: "center",
+                valign: 'middle'
+            },
+            {
+                field: 'national_code',
+                title: '国家医保编码',
+                align: "center",
+                valign: 'middle'
+            },
+            {
+                field: 'national_name',
+                title: '国家医保名称',
+                align: "center",
+                valign: 'middle'
+            },
             {
                 field: 'zy_flag',
                 title: '住院停用',
@@ -1570,12 +1607,25 @@ function initZdChargeSelect() {
                 return;
             }
             var html = '';
+            // if (chargeItemObj == null) {
+            //     chargeItemObj = []
+            // }
             $.each(data.data, function (commentIndex, comment) {
                 html += '<option value="' + comment.code + '">' + comment.name + '(' + comment.code + ')</option>';
                 if (chargeItemMap == null) {
                     chargeItemMap = new MyMap()
                 }
+                if (chargeItemObj == null) {
+                    chargeItemObj = new MyMap()
+                }
                 chargeItemMap.put(comment.code, comment.chargeAmount);
+                let obj = {
+                    code: comment.code,
+                    hnsybCode: comment.hnsybCode,
+                    nationalCode: comment.nationalCode,
+                    nationalName: comment.nationalName
+                }
+                chargeItemObj.put(comment.code,obj)
             });
             $('#chargeItem').empty();
             $('#chargeItem').html(html);
@@ -1592,9 +1642,15 @@ function initZdChargeSelect() {
  */
 function setChargeAmount() {
     var chargeAmount = chargeItemMap.get($('#chargeItem').val());
+    var chargeObj = chargeItemObj.get($('#chargeItem').val());
     if (chargeAmount != null) {
         $("#chargeAmount").val(chargeAmount.toFixed(2));
     }
+    if (chargeObj != null) {
+        $("#hnsybCode").val(chargeObj.hnsybCode);
+        $("#nationalCode").val(chargeObj.nationalCode);
+        $("#nationalName").val(chargeObj.nationalName);
+    }
 }
 
 /**
@@ -1602,9 +1658,15 @@ function setChargeAmount() {
  */
 function setChargeAmountJy() {
     var chargeAmount = chargeItemMap.get($('#chargeItemJy').val());
+    var chargeObj = chargeItemObj.get($('#chargeItemJy').val());
     if (chargeAmount != null) {
         $("#chargeAmountJy").val(chargeAmount.toFixed(2));
     }
+    if (chargeObj != null) {
+        $("#hnsybCodeJy").val(chargeObj.hnsybCode);
+        $("#nationalCodeJy").val(chargeObj.nationalCode);
+        $("#nationalNameJy").val(chargeObj.nationalName);
+    }
 }
 
 /**

+ 48 - 0
src/main/resources/templates/mz/jc_jy_zd_item.html

@@ -389,6 +389,30 @@
                                    placeholder="请输入">
                         </div>
                     </div>
+                    <div class="item form-group thmz_alert">
+                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="hnsybCode">省医保编码
+                        </label>
+                        <div class="col-md-10 col-sm-10 col-xs-12">
+                            <input id="hnsybCode" class="form-control optional" readonly
+                                   placeholder="请输入">
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="nationalCode">国家医保编码
+                        </label>
+                        <div class="col-md-10 col-sm-10 col-xs-12">
+                            <input id="nationalCode" class="form-control optional" readonly
+                                   placeholder="请输入">
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="nationalName">国家医保名称
+                        </label>
+                        <div class="col-md-10 col-sm-10 col-xs-12">
+                            <input id="nationalName" class="form-control optional" readonly
+                                   placeholder="请输入">
+                        </div>
+                    </div>
                     <div class="item form-group thmz_alert">
                         <label class="control-label col-md-2 col-sm-2 col-xs-12" for="zyFlagJcCharge">住院停用
                         </label>
@@ -454,6 +478,30 @@
                                    placeholder="请输入">
                         </div>
                     </div>
+                    <div class="item form-group thmz_alert">
+                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="hnsybCodeJy">省医保编码
+                        </label>
+                        <div class="col-md-10 col-sm-10 col-xs-12">
+                            <input id="hnsybCodeJy" class="form-control optional" readonly
+                                   placeholder="请输入">
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="nationalCodeJy">国家医保编码
+                        </label>
+                        <div class="col-md-10 col-sm-10 col-xs-12">
+                            <input id="nationalCodeJy" class="form-control optional" readonly
+                                   placeholder="请输入">
+                        </div>
+                    </div>
+                    <div class="item form-group thmz_alert">
+                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="nationalNameJy">国家医保名称
+                        </label>
+                        <div class="col-md-10 col-sm-10 col-xs-12">
+                            <input id="nationalNameJy" class="form-control optional" readonly
+                                   placeholder="请输入">
+                        </div>
+                    </div>
                     <div class="item form-group thmz_alert">
                         <label class="control-label col-md-2 col-sm-2 col-xs-12" for="zyFlagJyCharge">住院停用
                         </label>