|
@@ -1770,7 +1770,9 @@ function saveJyJcItem() {
|
|
|
html += '<i class="fa fa-long-arrow-down" style="cursor: pointer;height: 20px;line-height: 20px;width: 20px;font-size: 20px;" onclick="arrowDown(this)"></i>';
|
|
|
html += ' <i class="fa fa-long-arrow-left" style="cursor: pointer;height: 20px;line-height: 20px;width: 20px;font-size: 20px;" onclick="editJyJcItem(this)"></i>';
|
|
|
html += '<i class="fa fa-remove" style="cursor: pointer;height: 20px;line-height: 20px;width: 20px;font-size: 20px;margin-left: 10px;" onclick="removeYpOrProject(2,this)"></i>';
|
|
|
- html += '<i class="fa fa-eye" style="cursor: pointer;height: 20px;line-height: 20px;width: 20px;font-size: 20px;" onclick="getJcJyItemChargeByCode(\'' + currentCode + '\')"></i>';
|
|
|
+ if($("#jcJyItemChargeDetail").hasClass("in")){
|
|
|
+ html += '<i class="fa fa-eye" style="cursor: pointer;height: 20px;line-height: 20px;width: 20px;font-size: 20px;" onclick="getJcJyItemChargeByCode(\'' + currentCode + '\')"></i>';
|
|
|
+ }
|
|
|
html += '<input type="hidden" class="temporary_items_code" value="' + currentCode + '"/>';
|
|
|
html += '<input type="hidden" class="temporary_items_jcJyItemName" value="' + jcJyItem + '"/>';
|
|
|
html += '<input type="hidden" class="temporary_items_amount" value="' + jcjyItemPrice + '"/>';
|
|
@@ -1846,6 +1848,11 @@ function removeYpOrProject(index, obj) {
|
|
|
if(index == 0){
|
|
|
//西药被清空后,重置药房类型编码
|
|
|
$(tableId).find("input.current_groupNo").val(null);
|
|
|
+ //当本处方内容都被删除完后,也删除处方table
|
|
|
+ $("#" + tabId).find("a[href=\""+tableId+"\"]").parent().remove();
|
|
|
+ $(tableId).remove();
|
|
|
+ //切换处方 最后一个被选中
|
|
|
+ $("#" + tabId).find("li:last > a").off("click").tab('show');
|
|
|
}else if (index == 1) {
|
|
|
//当中药处方被清空完后,重置当前中药类型为空
|
|
|
$("#current_zyClassType").val(null);
|
|
@@ -2042,6 +2049,8 @@ function clearJyJcItem() {
|
|
|
$("#jcjyItemPrice").val(null);
|
|
|
//备注
|
|
|
$("#remark").val(null);
|
|
|
+ //描述
|
|
|
+ $("#chargeUnit").val(null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -3192,6 +3201,9 @@ function checkYpInfo(code, serial, groupNo) {
|
|
|
} else if (groupNo == '131') {
|
|
|
message = "精二药物需要单独处方,是否需要新增处方?"
|
|
|
}
|
|
|
+ // else if(groupNo=='151'){
|
|
|
+ // message = "诊疗项目需要单独处方,是否需要新增处方?"
|
|
|
+ // }
|
|
|
$("#messageModal").modal();
|
|
|
$("#messageContent").html(message);
|
|
|
$("#messageButton").off("click").on("click", function (t) {
|
|
@@ -3202,6 +3214,22 @@ function checkYpInfo(code, serial, groupNo) {
|
|
|
}
|
|
|
//当前编辑的处方非普通西药处方
|
|
|
} else {
|
|
|
+ //如果
|
|
|
+ if($("#xyTab").find("li") ==null || $("#xyTab").find("li").length==0){
|
|
|
+ initNavTabs(0);
|
|
|
+ }
|
|
|
+ var cfdesc='普药';
|
|
|
+ if(groupNo=='91'){
|
|
|
+ cfdesc='医材';
|
|
|
+ }else if(groupNo=='111'){
|
|
|
+ cfdesc='麻、精一';
|
|
|
+ }else if(groupNo=='131'){
|
|
|
+ cfdesc='精二';
|
|
|
+ }
|
|
|
+ // else if(groupNo=='151'){
|
|
|
+ // cfdesc='诊疗';
|
|
|
+ // }
|
|
|
+ $("#xyTab li.active").find("a").find("small.cfdesc").text("("+cfdesc+")");
|
|
|
fitWesternMedicine(res);
|
|
|
}
|
|
|
}
|
|
@@ -3363,6 +3391,16 @@ function loadjcJyItemList() {
|
|
|
},
|
|
|
onClickRow: function (row, $element) {
|
|
|
$('#jcJyItem').webuiPopover('hide');
|
|
|
+ if(row.chargeAmount!=null){
|
|
|
+ $("#jcJyItem").val(row.name);
|
|
|
+ $("#jcJyItem").blur();
|
|
|
+ $("#jcjyItemPrice").val(row.chargeAmount);
|
|
|
+ $("#chargeUnit").val(row.specification);
|
|
|
+ $("#current_code").val(row.code);
|
|
|
+ $("#jcJyItemChargeDetail").removeClass("in").addClass("hide");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $("#jcJyItemChargeDetail").removeClass("hide").addClass("in");
|
|
|
checkJcJyItemInfo(row.code, row.name);
|
|
|
}
|
|
|
});
|
|
@@ -3621,10 +3659,10 @@ function initNavTabs(index) {
|
|
|
tabId = "zlTab";
|
|
|
tabContentId = "zlTabContent";
|
|
|
paneId = "zlcf_1";
|
|
|
- cfdesc='医技';
|
|
|
+ cfdesc='医技与诊疗';
|
|
|
}
|
|
|
if ($("#" + tabId).children().length == 0) {
|
|
|
- $("#" + tabId).append('<li class="active"><a href="#' + paneId + '" role="tab" data-toggle="tab">处方一 <small>('+cfdesc+')</small></a></li>');
|
|
|
+ $("#" + tabId).append('<li class="active"><a href="#' + paneId + '" role="tab" data-toggle="tab">处方一 <small class="cfdesc">('+cfdesc+')</small></a></li>');
|
|
|
var html = '<div class="tab-pane fade in active" id="' + paneId + '" style="height: 100%;min-height: 285px;position: relative;">';
|
|
|
html += '<input class="current_groupNo" type="hidden"/>';
|
|
|
html += ' <div class="cf_content rb_item" style="height: 250px;padding-top: 5px;"></div>' +
|
|
@@ -3693,7 +3731,7 @@ function initNavTabs(index) {
|
|
|
/**
|
|
|
* 添加处方分页
|
|
|
* @param index 0 西药 1 中药 2 诊疗
|
|
|
- * @param groupNo 71 普通西药 91 医材 111 麻、精一 131 精二
|
|
|
+ * @param groupNo 71 普通西药 91 医材 111 麻、精一 131 精二 151 诊疗
|
|
|
*/
|
|
|
function refreshNavTabs(index,groupNo) {
|
|
|
var tabId = null;
|
|
@@ -3712,6 +3750,9 @@ function refreshNavTabs(index,groupNo) {
|
|
|
}else if(groupNo=='131'){
|
|
|
cfdesc='精二';
|
|
|
}
|
|
|
+ // else if(groupNo=='151'){
|
|
|
+ // cfdesc='诊疗';
|
|
|
+ // }
|
|
|
} else if (index == 1) {
|
|
|
//中草药
|
|
|
tabId = "zyTab";
|
|
@@ -3723,7 +3764,7 @@ function refreshNavTabs(index,groupNo) {
|
|
|
tabId = "zlTab";
|
|
|
tabContentId = "zlTabContent";
|
|
|
paneIdPrfix = "zlcf_";
|
|
|
- cfdesc='医技';
|
|
|
+ cfdesc='医技与诊疗';
|
|
|
}
|
|
|
// var tableId = $("#"+tabId+" li.active").find("a").attr("href");
|
|
|
// var length = $(tableId).find("div:eq(0)").children().length;
|
|
@@ -3733,7 +3774,7 @@ function refreshNavTabs(index,groupNo) {
|
|
|
// }
|
|
|
var childrens = $("#" + tabId).children().length;
|
|
|
childrens++;
|
|
|
- var cfTitle = "处方" + numToChineseNum(childrens)+" <small>("+cfdesc+")</small>";
|
|
|
+ var cfTitle = "处方" + numToChineseNum(childrens)+" <small class=\"cfdesc\">("+cfdesc+")</small>";
|
|
|
var paneId = paneIdPrfix + childrens;
|
|
|
//清除选中的样式
|
|
|
$("#" + tabId).find("li.active").removeClass("active");
|