|
|
@@ -522,7 +522,7 @@ $(function () {
|
|
|
var tableData = $("#tb_table_chinese_medicine").bootstrapTable('getData');
|
|
|
if (tableData != null && tableData.length > 0 && dataIndex != null) {
|
|
|
var trData = tableData[dataIndex];
|
|
|
- checkZyInfo(trData.code, trData.serial, true);
|
|
|
+ checkZyInfo(trData.code, trData.serial, $("#zyClassType").val(), true);
|
|
|
$("#chinese_medicine_name").click();
|
|
|
}
|
|
|
} else {
|
|
|
@@ -2746,13 +2746,13 @@ function resetNewGroupId(type) {
|
|
|
}
|
|
|
$(formGroups[j]).find("span.groupId").text(newGroupId);
|
|
|
$(formGroups[j]).find("input.temporary_items_groupId").val(newGroupId);
|
|
|
- var map = groupIdMap.get(newGroupId+'');
|
|
|
+ var map = groupIdMap.get(newGroupId + '');
|
|
|
if (map == null) {
|
|
|
map = new Map();
|
|
|
map.put("supplyType", $(formGroups[j]).find("input.temporary_items_supplyType").val());
|
|
|
map.put("orderFrequency", $(formGroups[j]).find("input.temporary_items_orderFrequency").val());
|
|
|
map.put("dayNum", $(formGroups[j]).find("input.temporary_items_dayNum").val());
|
|
|
- groupIdMap.put(newGroupId+'', map);
|
|
|
+ groupIdMap.put(newGroupId + '', map);
|
|
|
}
|
|
|
if (prevGroupId == null || tempGroupId != prevGroupId) {
|
|
|
prevGroupId = tempGroupId;
|
|
|
@@ -3024,7 +3024,7 @@ function editPrescription(jsonData, type) {
|
|
|
continue;
|
|
|
}
|
|
|
//中药与颗粒剂
|
|
|
- checkZyInfo(code, serial, false);
|
|
|
+ checkZyInfo(code, serial, groupNo, false);
|
|
|
//类型
|
|
|
$("#zyClassType").selectpicker('val', groupNo);
|
|
|
$('#zyClassType').selectpicker('refresh');
|
|
|
@@ -4308,7 +4308,7 @@ function editWesternMedicine(obj) {
|
|
|
$("#categoriesFlag").val($(parentObject).find("input.temporary_items_categoriesFlag").val());
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo"),
|
|
|
+ url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo") + "&groupNo=71",
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
@@ -6485,7 +6485,7 @@ function loadYpList(index, event) {
|
|
|
checkYpInfo(row.code, row.serial, row.ypType, true, null, 3);
|
|
|
}
|
|
|
if (index == 1) {
|
|
|
- checkZyInfo(row.code, row.serial, true);
|
|
|
+ checkZyInfo(row.code, row.serial, $("#zyClassType").val(), true);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -6511,7 +6511,7 @@ function checkYpInfo(code, serial, groupNo, needNotice, orderNo, type) {
|
|
|
//$("#treeButton").webuiPopover('hide');
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo"),
|
|
|
+ url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo") + "&groupNo=71",
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
@@ -6662,16 +6662,17 @@ function hintProjectSelfPayInfo(selfpayProp, projectDesc) {
|
|
|
* 按照药品的编码 和药品拆零规格查询药品信息 中药
|
|
|
* @param code
|
|
|
* @param serial
|
|
|
+ * @param groupNo 药房信息
|
|
|
* @param async 当用户操作的时候 true 异步, 范文和处方回写的时候false同步 因为需要等数据加载完才能设置对应的值
|
|
|
*/
|
|
|
-function checkZyInfo(code, serial, async) {
|
|
|
+function checkZyInfo(code, serial, groupNo, async) {
|
|
|
//判断是否有重复的项目 返回true 说明有重复的
|
|
|
if (verifyRepeat(code, serial, null, 1)) {
|
|
|
return;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo"),
|
|
|
+ url: '/thmz/getYpZdDictByCodeAndSerial?code=' + code + "&serial=" + serial + "&deptNo=" + localStorage.getItem("currentDeptNo") + "&groupNo=" + groupNo,
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
@@ -9731,13 +9732,31 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
$("#jcReqTz").text(tz);
|
|
|
$("#jcReqReqDept").text(res.deptName);
|
|
|
$("#jcReqReqDoctor").text(res.doctorName);
|
|
|
+
|
|
|
+ // $("#patientIdJyReq").text(mzPatientMi.patientId);
|
|
|
+ // $("#patientNameJyReq").text(mzPatientMi.name);
|
|
|
+ // $("#patientGenderJyReq").text(mzPatientMi.gender);
|
|
|
+ // $("#patientAgeJyReq").text(mzPatientMi.ageString);
|
|
|
+ // $("#patientCardNoJyReq").text(mzPatientMi.icCardNo);
|
|
|
+ // $("#responseTypeJyReq").text(mzPatientMi.responseTypeName);
|
|
|
+ // $("#icdTextJyReq").text(res.data.icdText);
|
|
|
+ // $("#jyReqEmrChiefComplaint").text(mzBlRecord.emrChiefComplaint);
|
|
|
+ // $("#jyReqHis").text(mzBlRecord.emrHpi);
|
|
|
+ // $("#jyReqTz").text(tz);
|
|
|
+ // $("#jyReqReqDept").text(res.deptName);
|
|
|
+ // $("#jyReqReqDoctor").text(res.doctorName);
|
|
|
+
|
|
|
for (var i = 0; i < mzYjReqList.length; i++) {
|
|
|
var mzYjReq = mzYjReqList[i];
|
|
|
+ if (mzYjReq == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
if (i == 0) {
|
|
|
var dateStr = format(mzYjReq.reqDate, "yyyy-MM-dd");
|
|
|
$("#jcReqReqDate").text(dateStr);
|
|
|
+ // $("#jyReqReqDoctor").text(dateStr);
|
|
|
}
|
|
|
- if (mzYjReq == null || mzYjReq.reqType == 2) {
|
|
|
+ if (mzYjReq.reqType == 2) {
|
|
|
continue;
|
|
|
}
|
|
|
if ((i == 0 && index > 0) || i > 0) {
|