|
@@ -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);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|