|
|
@@ -8,6 +8,8 @@ var groupIdMap = null;
|
|
|
var LODOP; //声明为全局变量
|
|
|
//默认打印机下标
|
|
|
var printIndex = -1;
|
|
|
+//当前光标点击的元素ID
|
|
|
+var currentEleId = null;
|
|
|
$(function () {
|
|
|
initGenderSelect();
|
|
|
iniAdmissStatus();
|
|
|
@@ -209,6 +211,20 @@ $(function () {
|
|
|
loadYpList(0);
|
|
|
});
|
|
|
|
|
|
+ /**
|
|
|
+ * 中药点击事件
|
|
|
+ */
|
|
|
+ $("#chinese_medicine_name").on("click", function (t) {
|
|
|
+ var obj = $("#chineseMedicinePopoverContent").parent().parent().parent();
|
|
|
+ if ($(obj).hasClass("in") || $(obj).css("display") == "block") {
|
|
|
+ $('#chinese_medicine_name').webuiPopover('hide');
|
|
|
+ $("#treeButton").webuiPopover('hide');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $('#chinese_medicine_name').webuiPopover('show');
|
|
|
+ loadYpList(1);
|
|
|
+ });
|
|
|
+
|
|
|
/**
|
|
|
* 项目点击事件
|
|
|
*/
|
|
|
@@ -226,6 +242,96 @@ $(function () {
|
|
|
setTimeout(function () {
|
|
|
getLodop();
|
|
|
}, 800);
|
|
|
+
|
|
|
+
|
|
|
+ //键盘监听回车键
|
|
|
+ $(document).keyup(function (event) {
|
|
|
+ if (event.keyCode == 13) { //是否是回车
|
|
|
+ //var el = event.srcElement || event.target;
|
|
|
+ if (currentEleId == 'zy_drugWin') {
|
|
|
+ $("#zyInstruction").next().click();
|
|
|
+ currentEleId = 'zyInstruction';
|
|
|
+ } else if (currentEleId == 'zyInstruction') {
|
|
|
+ saveMedicine(1);
|
|
|
+ currentEleId = 'saveChineseMedicine';
|
|
|
+ } else if (currentEleId == 'saveChineseMedicine') {
|
|
|
+ $("input.zyfs").focus();
|
|
|
+ currentEleId = 'zyfs';
|
|
|
+ } else if (currentEleId == 'zyfs') {
|
|
|
+ $("#zy_orderFrequency_1").next().click();
|
|
|
+ currentEleId = 'zy_orderFrequency_1';
|
|
|
+ } else if (currentEleId == 'zy_orderFrequency_1') {
|
|
|
+ $("#useType_1").next().click();
|
|
|
+ currentEleId = 'useType_1';
|
|
|
+ } else if (currentEleId == 'useType_1') {
|
|
|
+ $("#cyJssm").next().click();
|
|
|
+ currentEleId = 'cyJssm';
|
|
|
+ } else if (currentEleId == 'cyJssm') {
|
|
|
+ $("#zy_supplyType_1").next().click();
|
|
|
+ currentEleId = 'zy_supplyType_1';
|
|
|
+ } else if (currentEleId == 'zy_supplyType_1') {
|
|
|
+ $("#chinese_medicine_name").focus();
|
|
|
+ $("#chinese_medicine_name").click();
|
|
|
+ currentEleId = 'chinese_medicine_name';
|
|
|
+ } else if (currentEleId == 'supplyType') {
|
|
|
+ $("#drugWinUnit").next().click();
|
|
|
+ currentEleId = 'drugWinUnit';
|
|
|
+ } else if (currentEleId == 'drugWinUnit') {
|
|
|
+ $("#drugWin").focus();
|
|
|
+ currentEleId = 'drugWin';
|
|
|
+ } else if (currentEleId == 'drugWin') {
|
|
|
+ $("#dayNum").next().click();
|
|
|
+ currentEleId = 'dayNum';
|
|
|
+ } else if (currentEleId == 'dayNum') {
|
|
|
+ $("#orderFrequency").next().click();
|
|
|
+ currentEleId = 'orderFrequency';
|
|
|
+ } else if (currentEleId == 'orderFrequency') {
|
|
|
+ $("#packUnit").next().click();
|
|
|
+ currentEleId = 'packUnit';
|
|
|
+ } else if (currentEleId == 'packUnit') {
|
|
|
+ $("#medicalAdvice").next().click();
|
|
|
+ currentEleId = 'medicalAdvice';
|
|
|
+ } else if (currentEleId == 'medicalAdvice') {
|
|
|
+ saveMedicine(0);
|
|
|
+ currentEleId = 'saveWesternMedicine';
|
|
|
+ } else if (currentEleId == 'saveWesternMedicine') {
|
|
|
+ $("#western_medicine_name").focus();
|
|
|
+ $("#western_medicine_name").click();
|
|
|
+ currentEleId = 'western_medicine_name';
|
|
|
+ }
|
|
|
+ else if (currentEleId == 'chargeUnit') {
|
|
|
+ $("#itemQuantity").focus();
|
|
|
+ currentEleId = 'itemQuantity';
|
|
|
+ } else if (currentEleId == 'itemQuantity' || currentEleId == 'jyZdSample' || currentEleId == 'yshPart') {
|
|
|
+ $("#execUnit").next().click();
|
|
|
+ currentEleId = 'execUnit';
|
|
|
+ } else if (currentEleId == 'execUnit') {
|
|
|
+ $("#remark").focus();
|
|
|
+ currentEleId = 'remark';
|
|
|
+ } else if (currentEleId == 'remark') {
|
|
|
+ saveJyJcItem(true);
|
|
|
+ currentEleId = 'saveJyJcItem';
|
|
|
+ } else if (currentEleId == 'saveJyJcItem') {
|
|
|
+ $("#jcJyItem").focus();
|
|
|
+ $("#jcJyItem").click();
|
|
|
+ currentEleId = 'jcJyItem';
|
|
|
+ }
|
|
|
+ else if (currentEleId == 'freeBedNum') {
|
|
|
+ $("#inpatientWardBeHospitalized").next().click();
|
|
|
+ currentEleId = 'inpatientWardBeHospitalized';
|
|
|
+ } else if (currentEleId == 'inpatientWardBeHospitalized') {
|
|
|
+ $("#smallWardBeHospitalized").next().click();
|
|
|
+ currentEleId = 'smallWardBeHospitalized';
|
|
|
+ } else if (currentEleId == 'smallWardBeHospitalized') {
|
|
|
+ $("#admissStatus").next().click();
|
|
|
+ currentEleId = 'admissStatus';
|
|
|
+ } else if (currentEleId == 'admissStatus') {
|
|
|
+ saveZyReq(true);
|
|
|
+ currentEleId = "freeBedNum";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
@@ -241,8 +347,8 @@ function configWorkspaceModal() {
|
|
|
*/
|
|
|
function initDayNum() {
|
|
|
var html = '';
|
|
|
- for( var i=1;i<=31;i++){
|
|
|
- html+='<option value="'+i+'">'+i+'</option>';
|
|
|
+ for (var i = 1; i <= 31; i++) {
|
|
|
+ html += '<option value="' + i + '">' + i + '</option>';
|
|
|
}
|
|
|
$('#dayNum').html(html);
|
|
|
$('#dayNum').selectpicker('refresh');
|
|
|
@@ -1308,7 +1414,7 @@ function callBackZlDetail(code, mzChargeDetail) {
|
|
|
$("#current_code").val(row.code);
|
|
|
$("#remark").val(mzChargeDetail.instructionText);
|
|
|
$("#jcJyZltype").val(row.type);
|
|
|
- if(mzChargeDetail.execDept!=null && mzChargeDetail.execDept!=""){
|
|
|
+ if (mzChargeDetail.execDept != null && mzChargeDetail.execDept != "") {
|
|
|
$("#execUnit").selectpicker('val', mzChargeDetail.execDept);
|
|
|
$('#execUnit').selectpicker('refresh');
|
|
|
}
|
|
|
@@ -1447,9 +1553,9 @@ function editPrescription(jsonData, type) {
|
|
|
$("#yshPart").selectpicker('val', mzYjReq.inspectPart);
|
|
|
$('#yshPart').selectpicker('refresh');
|
|
|
}
|
|
|
- checkJcJyItemInfo(code, null, false);
|
|
|
+ checkJcJyItemInfo(code, null, null, false);
|
|
|
$("#remark").val(mzYjReq.jyRemark);
|
|
|
- if(mzYjReq.execDept!=null && mzYjReq.execDept!=""){
|
|
|
+ if (mzYjReq.execDept != null && mzYjReq.execDept != "") {
|
|
|
$("#execUnit").selectpicker('val', mzYjReq.execDept);
|
|
|
$('#execUnit').selectpicker('refresh');
|
|
|
}
|
|
|
@@ -1459,7 +1565,7 @@ function editPrescription(jsonData, type) {
|
|
|
}
|
|
|
}
|
|
|
//入院证
|
|
|
- if (mzZyReq != null && mzZyReq.reqDept != null && mzZyReq.reqDept != "") {
|
|
|
+ if (mzZyReq != null && mzZyReq.reqDept != null && mzZyReq.reqDept != "") {
|
|
|
$("#inpatientWardBeHospitalized").selectpicker('val', mzZyReq.reqDept);
|
|
|
$('#inpatientWardBeHospitalized').selectpicker('refresh');
|
|
|
initSmallDeptByDept();
|
|
|
@@ -2082,21 +2188,21 @@ function saveWesternMedicine(calculateTotalAmountFlag) {
|
|
|
var supplyType = $("#supplyType").val();
|
|
|
//用法描述
|
|
|
var supplyTypeText = $('#supplyType option:selected').text();
|
|
|
- supplyTypeText=supplyTypeText.substring(0,supplyTypeText.indexOf("("));
|
|
|
+ supplyTypeText = supplyTypeText.substring(0, supplyTypeText.indexOf("("));
|
|
|
//药品默认单次使用剂量
|
|
|
var drugWinDb = $("#drugWinDb").val();
|
|
|
//处方实际单次使用剂量
|
|
|
var drugWin = $("#drugWin").val();
|
|
|
//剂量单位
|
|
|
var drugWinUnit = $('#drugWinUnit option:selected').text();
|
|
|
- drugWinUnit=drugWinUnit.substring(0,drugWinUnit.indexOf("("));
|
|
|
+ drugWinUnit = drugWinUnit.substring(0, drugWinUnit.indexOf("("));
|
|
|
//天数
|
|
|
var dayNum = $("#dayNum").val();
|
|
|
//频次编码
|
|
|
var orderFrequency = $("#orderFrequency").val();
|
|
|
//频次描述
|
|
|
var orderFrequencyText = $('#orderFrequency option:selected').text();
|
|
|
- orderFrequencyText=orderFrequencyText.substring(0,orderFrequencyText.indexOf("("));
|
|
|
+ orderFrequencyText = orderFrequencyText.substring(0, orderFrequencyText.indexOf("("));
|
|
|
//总量
|
|
|
var gross = $("#gross").val();
|
|
|
//包装单位
|
|
|
@@ -2108,7 +2214,7 @@ function saveWesternMedicine(calculateTotalAmountFlag) {
|
|
|
var medicalAdvice = $("#medicalAdvice").val();
|
|
|
//医嘱内容
|
|
|
var medicalAdviceText = $('#medicalAdvice option:selected').text();
|
|
|
- medicalAdviceText=medicalAdviceText.substring(0,medicalAdviceText.indexOf("("));
|
|
|
+ medicalAdviceText = medicalAdviceText.substring(0, medicalAdviceText.indexOf("("));
|
|
|
//金额
|
|
|
var totalRetprice = parseFloat($("#totalRetprice").val());
|
|
|
//单价
|
|
|
@@ -2550,7 +2656,7 @@ function saveJyJcItemReal(calculateTotalAmountFlag) {
|
|
|
var execUnit = $("#execUnit").val();
|
|
|
//执行科室
|
|
|
var execUnitName = $('#execUnit option:selected').text();
|
|
|
- execUnitName=execUnitName.substring(0,execUnitName.indexOf("("));
|
|
|
+ execUnitName = execUnitName.substring(0, execUnitName.indexOf("("));
|
|
|
//次数
|
|
|
var itemQuantity = $("#itemQuantity").val();
|
|
|
//描述编码
|
|
|
@@ -2563,13 +2669,13 @@ function saveJyJcItemReal(calculateTotalAmountFlag) {
|
|
|
if (jcJyZltype == "1" || jcJyZltype == 1) {
|
|
|
//检验
|
|
|
chargeUnit = $('#jyZdSample option:selected').text();
|
|
|
- chargeUnit=chargeUnit.substring(0,chargeUnit.indexOf("("));
|
|
|
+ chargeUnit = chargeUnit.substring(0, chargeUnit.indexOf("("));
|
|
|
chargeUnitCode = $('#jyZdSample').val();
|
|
|
chargeUnitName = " 检验物:";
|
|
|
} else if (jcJyZltype == "2" || jcJyZltype == 2) {
|
|
|
//检查
|
|
|
chargeUnit = $('#yshPart option:selected').text();
|
|
|
- chargeUnit=chargeUnit.substring(0,chargeUnit.indexOf("("));
|
|
|
+ chargeUnit = chargeUnit.substring(0, chargeUnit.indexOf("("));
|
|
|
chargeUnitCode = $('#yshPart').val();
|
|
|
chargeUnitName = " 检查部位:";
|
|
|
}
|
|
|
@@ -2619,10 +2725,10 @@ function saveJyJcItemReal(calculateTotalAmountFlag) {
|
|
|
html += '<span class="jcjyItemGroupId">' + groupId + '</span>.<span style="margin-left: 5px"></span>'
|
|
|
html += jcJyItem + ' ';
|
|
|
if (jcJyZltype == "3" || jcJyZltype == 3) {
|
|
|
- html+=" 数量:"+itemQuantity;
|
|
|
+ html += " 数量:" + itemQuantity;
|
|
|
}
|
|
|
- if(execUnit!=null && execUnit!=""){
|
|
|
- html+=" 执行科室:"+execUnitName;
|
|
|
+ if (execUnit != null && execUnit != "") {
|
|
|
+ html += " 执行科室:" + execUnitName;
|
|
|
}
|
|
|
if (chargeUnit != null && chargeUnit != '') {
|
|
|
html += chargeUnitName + chargeUnit;
|
|
|
@@ -3145,7 +3251,24 @@ function billItemButtonChange(object, objectIndex) {
|
|
|
$("#rp_form" + objectIndex).removeClass("hide").addClass("show");
|
|
|
$(object).removeClass("btn-default").addClass("btn-primary");
|
|
|
$("#western_medicine_name").webuiPopover('hide');
|
|
|
+ $("#chinese_medicine_name").webuiPopover('hide');
|
|
|
$("#jcJyItem").webuiPopover('hide');
|
|
|
+ if (objectIndex == 0) {
|
|
|
+ $("#western_medicine_name").focus();
|
|
|
+ $("#western_medicine_name").click();
|
|
|
+ currentEleId = 'western_medicine_name';
|
|
|
+ } else if (objectIndex == 1) {
|
|
|
+ $("#chinese_medicine_name").focus();
|
|
|
+ $("#chinese_medicine_name").click();
|
|
|
+ currentEleId = 'chinese_medicine_name';
|
|
|
+ } else if (objectIndex == 2) {
|
|
|
+ $("#jcJyItem").focus();
|
|
|
+ $("#jcJyItem").click();
|
|
|
+ currentEleId = 'jcJyItem';
|
|
|
+ } else if (objectIndex == 3) {
|
|
|
+ currentEleId = 'freeBedNum';
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -3424,6 +3547,8 @@ function initRecommendList() {
|
|
|
//中药弹窗
|
|
|
settings.trigger = 'click';
|
|
|
settings.content = '<div id="chineseMedicinePopoverContent"><table id="tb_table_chinese_medicine"></table></div>';
|
|
|
+ //手动触发
|
|
|
+ settings.trigger = 'manual';
|
|
|
var chineseMedicineWebuiPopover = $('#chinese_medicine_name').webuiPopover('destroy').webuiPopover(settings);
|
|
|
//诊疗与医技弹窗
|
|
|
settings.trigger = 'manual';
|
|
|
@@ -3551,13 +3676,13 @@ function initRecommendList() {
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
- //中药选中事件
|
|
|
- $("#chinese_medicine_name").on("click", function (t) {
|
|
|
- if ($(chineseMedicineWebuiPopover).css("display") == "block") {
|
|
|
- $("#chineseMedicinePopoverContent").parent().parent().prev().css("left", "23px");
|
|
|
- loadYpList(1);
|
|
|
- }
|
|
|
- });
|
|
|
+ // //中药选中事件
|
|
|
+ // $("#chinese_medicine_name").on("click", function (t) {
|
|
|
+ // if ($(chineseMedicineWebuiPopover).css("display") == "block") {
|
|
|
+ // $("#chineseMedicinePopoverContent").parent().parent().prev().css("left", "23px");
|
|
|
+ // loadYpList(1);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
// //诊疗与医技弹窗选中事件
|
|
|
// $("#jcJyItem").on("click", function (t) {
|
|
|
@@ -4161,6 +4286,11 @@ function checkYpInfo(code, serial, groupNo, needNotice) {
|
|
|
} else {
|
|
|
fitWesternMedicine(res, groupNo);
|
|
|
}
|
|
|
+ if (needNotice) {
|
|
|
+ //选中药品后,光标默认到用法
|
|
|
+ $("#supplyType").next().click();
|
|
|
+ currentEleId = 'supplyType';
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
|
@@ -4198,6 +4328,7 @@ function checkZyInfo(code, serial, async) {
|
|
|
//如果
|
|
|
if ($("#zyTab").find("li") == null || $("#zyTab").find("li").length == 0) {
|
|
|
initNavTabs(1);
|
|
|
+ $("input.zyfs").val(1);
|
|
|
}
|
|
|
$("#chinese_medicine_name").val(res.data.name);
|
|
|
$("#chinese_medicine_name").blur();
|
|
|
@@ -4205,6 +4336,11 @@ function checkZyInfo(code, serial, async) {
|
|
|
$("#zy_packRetprice").val(res.data.packRetprice);
|
|
|
$("#current_code").val(res.data.code);
|
|
|
$("#current_serial").val(res.data.serial);
|
|
|
+ if (async) {
|
|
|
+ //选中药品后,光标默认到数量输入框
|
|
|
+ $("#zy_drugWin").focus();
|
|
|
+ currentEleId = 'zy_drugWin';
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
|
@@ -4320,6 +4456,9 @@ function loadjcJyItemList() {
|
|
|
$("#jyZdSampleDiv").removeClass("in").addClass("hide");
|
|
|
$("#yshPartDiv").removeClass("in").addClass("hide");
|
|
|
$("#itemQuantityDiv").removeClass("hide").addClass("in");
|
|
|
+ $("#itemQuantity").val(1);
|
|
|
+ $("#chargeUnit").focus();
|
|
|
+ currentEleId = 'chargeUnit';
|
|
|
return;
|
|
|
}
|
|
|
if (row.type == 1) {
|
|
|
@@ -4343,7 +4482,7 @@ function loadjcJyItemList() {
|
|
|
}
|
|
|
$("#itemQuantityDiv").removeClass("in").addClass("hide");
|
|
|
$("#jcJyItemChargeDetail").removeClass("hide").addClass("in");
|
|
|
- checkJcJyItemInfo(row.code, row.name, true);
|
|
|
+ checkJcJyItemInfo(row.code, row.name, row.type, true);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -4357,7 +4496,7 @@ function loadjcJyItemList() {
|
|
|
* @param async 当用户操作的时候 true 异步, 范文和处方回写的时候false同步 因为需要等数据加载完才能设置对应的值
|
|
|
*/
|
|
|
//function checkJcJyItemInfo(code, name, type) {
|
|
|
-function checkJcJyItemInfo(code, name, async) {
|
|
|
+function checkJcJyItemInfo(code, name, type, async) {
|
|
|
//判断是否有重复的项目 返回true 说明有重复的
|
|
|
if (verifyRepeat(code, null, 2)) {
|
|
|
return;
|
|
|
@@ -4390,6 +4529,16 @@ function checkJcJyItemInfo(code, name, async) {
|
|
|
$("#current_code").val(code);
|
|
|
$("#execUnit").selectpicker('val', res.execUnit);//默认不选中
|
|
|
$("#execUnit").selectpicker('refresh');
|
|
|
+ if (async) {
|
|
|
+ if (type == 1) {
|
|
|
+ //选中项目后,光标默认到数量输入框
|
|
|
+ $("#jyZdSample").next().click();
|
|
|
+ currentEleId = 'jyZdSample';
|
|
|
+ } else if (type == 2) {
|
|
|
+ $("#yshPart").next().click();
|
|
|
+ currentEleId = 'yshPart';
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
|
@@ -4559,20 +4708,44 @@ function verifyRepeat(code, serial, index) {
|
|
|
}
|
|
|
var tableId = $("#" + tabId + " li.active").find("a").attr("href");
|
|
|
var items = $(tableId).find("div:eq(0)").find("div.form-group");
|
|
|
+ var groupId = null;
|
|
|
+ if (index == 0) {
|
|
|
+ groupId = $("#groupId").val();
|
|
|
+ }
|
|
|
if (items != null && items.length > 0) {
|
|
|
for (var i = 0; i < items.length; i++) {
|
|
|
if (serial == null) {
|
|
|
- var temporary_items_code = $(items[i]).find("input.temporary_items_code").val();
|
|
|
- if (code === temporary_items_code) {
|
|
|
- errorMesageSimaple("项目与第" + numToChineseNum(i + 1) + "条重复");
|
|
|
- return true;
|
|
|
+ //西药需要判断组号,因为可能会有不同组的皮试用药,需要相同的药品
|
|
|
+ if (index == 0) {
|
|
|
+ var temporary_items_code = $(items[i]).find("input.temporary_items_code").val();
|
|
|
+ var temporary_items_groupId = $(items[i]).find("input.temporary_items_groupId").val();
|
|
|
+ if (code === temporary_items_code && groupId === temporary_items_groupId) {
|
|
|
+ errorMesageSimaple("项目与第" + numToChineseNum(i + 1) + "条重复");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ var temporary_items_code = $(items[i]).find("input.temporary_items_code").val();
|
|
|
+ if (code === temporary_items_code) {
|
|
|
+ errorMesageSimaple("项目与第" + numToChineseNum(i + 1) + "条重复");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
- var temporary_items_code = $(items[i]).find("input.temporary_items_code").val();
|
|
|
- var temporary_items_serial = $(items[i]).find("input.temporary_items_serial").val();
|
|
|
- if (code === temporary_items_code && serial === temporary_items_serial) {
|
|
|
- errorMesageSimaple("项目与第" + numToChineseNum(i + 1) + "条重复");
|
|
|
- return true;
|
|
|
+ if (index == 0) {
|
|
|
+ var temporary_items_groupId = $(items[i]).find("input.temporary_items_groupId").val();
|
|
|
+ var temporary_items_code = $(items[i]).find("input.temporary_items_code").val();
|
|
|
+ var temporary_items_serial = $(items[i]).find("input.temporary_items_serial").val();
|
|
|
+ if (code === temporary_items_code && serial === temporary_items_serial && groupId === temporary_items_groupId) {
|
|
|
+ errorMesageSimaple("项目与第" + numToChineseNum(i + 1) + "条重复");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ var temporary_items_code = $(items[i]).find("input.temporary_items_code").val();
|
|
|
+ var temporary_items_serial = $(items[i]).find("input.temporary_items_serial").val();
|
|
|
+ if (code === temporary_items_code && serial === temporary_items_serial) {
|
|
|
+ errorMesageSimaple("项目与第" + numToChineseNum(i + 1) + "条重复");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -4626,7 +4799,7 @@ function initNavTabs(index) {
|
|
|
html += ' <div style="width: 130px;float: left;">' +
|
|
|
' <label class="my_label_2">付数:</label>' +
|
|
|
' <input type="text" class="form-control my_label_input_2 zyfs"' +
|
|
|
- ' placeholder="请输入" style="padding-left: 10px;" onchange="calculateZyAmount()" value="1">' +
|
|
|
+ ' placeholder="请输入" style="padding-left: 10px;" onchange="calculateZyAmount()">' +
|
|
|
' </div>';
|
|
|
html += '<div style="width: 130px;float: left;">' +
|
|
|
' <label class="my_label_2">频次:</label>' +
|
|
|
@@ -6167,26 +6340,26 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
|
|
|
$("#printJyReq").removeClass("in").addClass("hide");
|
|
|
$("#printJyReq").off("click");
|
|
|
if (jsonData.mzYjReqList != null && jsonData.mzYjReqList.length > 0) {
|
|
|
- var hadJc=false;
|
|
|
- var hadJy=false;
|
|
|
- for(var i=0;i<jsonData.mzYjReqList.length;i++){
|
|
|
- var mzYjReq=jsonData.mzYjReqList[i];
|
|
|
- if(mzYjReq.reqType==2){
|
|
|
- hadJy=true;
|
|
|
- }else if(mzYjReq.reqType==3){
|
|
|
- hadJc=true;
|
|
|
+ var hadJc = false;
|
|
|
+ var hadJy = false;
|
|
|
+ for (var i = 0; i < jsonData.mzYjReqList.length; i++) {
|
|
|
+ var mzYjReq = jsonData.mzYjReqList[i];
|
|
|
+ if (mzYjReq.reqType == 2) {
|
|
|
+ hadJy = true;
|
|
|
+ } else if (mzYjReq.reqType == 3) {
|
|
|
+ hadJc = true;
|
|
|
}
|
|
|
}
|
|
|
- if(hadJc){
|
|
|
+ if (hadJc) {
|
|
|
$("#printJcReq").removeClass("hide").addClass("in");
|
|
|
$("#printJcReq").off("click").on("click", function (t) {
|
|
|
- printYjReq(patientId, times,3);
|
|
|
+ printYjReq(patientId, times, 3);
|
|
|
});
|
|
|
}
|
|
|
- if(hadJy){
|
|
|
+ if (hadJy) {
|
|
|
$("#printJyReq").removeClass("hide").addClass("in");
|
|
|
$("#printJyReq").off("click").on("click", function (t) {
|
|
|
- printYjReq(patientId, times,2);
|
|
|
+ printYjReq(patientId, times, 2);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
@@ -6664,10 +6837,10 @@ function getTz(mzBlRecord) {
|
|
|
* @param times
|
|
|
* @param type 申请单类型:2:检验;3:检查
|
|
|
*/
|
|
|
-function printYjReq(patientId, times,type) {
|
|
|
+function printYjReq(patientId, times, type) {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/printYjReq?patientId=' + patientId + '×=' + times+"&reqType="+type,
|
|
|
+ url: '/thmz/printYjReq?patientId=' + patientId + '×=' + times + "&reqType=" + type,
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
@@ -6959,7 +7132,6 @@ function printZyReq(patientId) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 初始化科室下拉选
|
|
|
*/
|