|
|
@@ -382,7 +382,7 @@ $(function () {
|
|
|
// }
|
|
|
// console.log("eleId=" + eleId);
|
|
|
// } else
|
|
|
- if (id == 'symptom' || id == 'emrHpi' || id == 'emrPs' || id == 'personalHistory' || id == 'familyHistory' || id == 'obstericalHistory' || id == 'otherCheck' || id == 'diagnose' || id == 'tentativeDiagnosis' || id == 'fzZl' ) {
|
|
|
+ if (id == 'symptom' || id == 'emrHpi' || id == 'emrPs' || id == 'personalHistory' || id == 'familyHistory' || id == 'obstericalHistory' || id == 'otherCheck' || id == 'diagnose' || id == 'tentativeDiagnosis' || id == 'fzZl' || id == 'crbHistory' ) {
|
|
|
console.log("1id=" + id);
|
|
|
if (id != $(customization[customization.length - 1]).attr("target-id")) {
|
|
|
var next = $("#" + id + "Flag").next();
|
|
|
@@ -2570,6 +2570,7 @@ function clearWorkSpaceExcludeUser(source) {
|
|
|
$("#personalHistory").val(null);
|
|
|
$("#familyHistory").val(null);
|
|
|
$("#fzZl").val(null);
|
|
|
+ $("#crbHistory").val(null);
|
|
|
$("#obstericalHistory").val(null);
|
|
|
$("#weight").val(null);
|
|
|
$("#temperature").val(null);
|
|
|
@@ -3338,6 +3339,7 @@ function editPrescription(jsonData, type) {
|
|
|
$("#personalHistory").val(jsonData.mzBlRecord.personalHistory);
|
|
|
$("#familyHistory").val(jsonData.mzBlRecord.familyHistory);
|
|
|
$("#fzZl").val(jsonData.mzBlRecord.fzZl);
|
|
|
+ $("#crbHistory").val(jsonData.mzBlRecord.crbHistory);
|
|
|
$("#obstericalHistory").val(jsonData.mzBlRecord.obstericalHistory);
|
|
|
if (jsonData.mzBlRecord.weight != null && jsonData.mzBlRecord.weight != 0) {
|
|
|
$("#weight").val(jsonData.mzBlRecord.weight);
|
|
|
@@ -6694,6 +6696,11 @@ function calculateTotalAmount(needRemoveLastObject) {
|
|
|
if(!stringIsBlank(res.discountWarningMessage)){
|
|
|
warningMesageSimaple(res.discountWarningMessage)
|
|
|
}
|
|
|
+ if(!stringIsBlank(res.ypHealthEducation)){
|
|
|
+ $("#ypHealthEducation").val(res.ypHealthEducation)
|
|
|
+ }else {
|
|
|
+ $("#ypHealthEducation").val(null)
|
|
|
+ }
|
|
|
$("#totalAmount").html(res.data.amount.toFixed(2));
|
|
|
var arrs = $("span.cf_amount");
|
|
|
for (var i = 0; i < arrs.length; i++) {
|
|
|
@@ -9689,6 +9696,18 @@ function initWorkspaceConfigForCurrent() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (res.data.crbHistoryFlag == 1) {
|
|
|
+ $("#crbHistoryFlag").removeClass("in").addClass("hide");
|
|
|
+ if ($("#crbHistoryFlagCheck").parent().hasClass("checked")) {
|
|
|
+ $("#crbHistoryFlagCheck").parent().parent().click();//当前选中改为不选中
|
|
|
+ }
|
|
|
+ } else if (res.data.crbHistoryFlag == 0) {
|
|
|
+ $("#crbHistoryFlag").removeClass("hide").addClass("in");
|
|
|
+ if (!$("#crbHistoryFlagCheck").parent().hasClass("checked")) {
|
|
|
+ $("#crbHistoryFlagCheck").parent().parent().click();//当前不选中改为选中
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (res.data.familyHistoryFlag == 1) {
|
|
|
$("#familyHistoryFlag").removeClass("in").addClass("hide");
|
|
|
if ($("#familyHistoryFlagCheck").parent().hasClass("checked")) {
|
|
|
@@ -9771,6 +9790,7 @@ function saveWorkspaceConfig() {
|
|
|
var personalHistoryFlag = $("#personalHistoryFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
var familyHistoryFlag = $("#familyHistoryFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
var fzZlFlag = $("#fzZlFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
+ var crbHistoryFlag = $("#crbHistoryFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
var obstericalHistoryFlag = $("#obstericalHistoryFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
var pressureLeftFlag = $("#pressureLeftFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
var tentativeDiagnosisFlag = $("#tentativeDiagnosisFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
@@ -9788,6 +9808,7 @@ function saveWorkspaceConfig() {
|
|
|
"personalHistoryFlag": personalHistoryFlag,
|
|
|
"familyHistoryFlag": familyHistoryFlag,
|
|
|
"fzZlFlag": fzZlFlag,
|
|
|
+ "crbHistoryFlag": crbHistoryFlag,
|
|
|
"obstericalHistoryFlag": obstericalHistoryFlag,
|
|
|
"pressureLeftFlag": pressureLeftFlag,
|
|
|
"tentativeDiagnosisFlag": tentativeDiagnosisFlag,
|
|
|
@@ -9959,6 +9980,7 @@ function getParamsForpPrescription(type) {
|
|
|
'"personalHistory": "",' +
|
|
|
'"familyHistory": "",' +
|
|
|
'"fzZl": "",' +
|
|
|
+ '"crbHistory": "",' +
|
|
|
'"obstericalHistory": "",' +
|
|
|
'"weight": "",' +
|
|
|
'"temperature": "",' +
|
|
|
@@ -10030,6 +10052,7 @@ function getParamsForpPrescription(type) {
|
|
|
jsonData.mzBlRecord.personalHistory = $("#personalHistory").val();
|
|
|
jsonData.mzBlRecord.familyHistory = $("#familyHistory").val();
|
|
|
jsonData.mzBlRecord.fzZl = $("#fzZl").val();
|
|
|
+ jsonData.mzBlRecord.crbHistory = $("#crbHistory").val();
|
|
|
jsonData.mzBlRecord.obstericalHistory = $("#obstericalHistory").val();
|
|
|
jsonData.mzBlRecord.weight = $("#weight").val();
|
|
|
jsonData.mzBlRecord.temperature = $("#temperature").val();
|
|
|
@@ -12391,6 +12414,12 @@ function printBlRecord(patientId, times, printType) {
|
|
|
} else {
|
|
|
$("#fzZlBlrecord").parent().css("display", "none");
|
|
|
}
|
|
|
+ if (mzBlRecord.crbHistory != null && mzBlRecord.crbHistory != "") {
|
|
|
+ $("#crbHistoryBlrecord").text(mzBlRecord.crbHistory);
|
|
|
+ } else {
|
|
|
+ $("#crbHistoryBlrecord").text('无');
|
|
|
+ }
|
|
|
+
|
|
|
if (mzBlRecord.obstericalHistory != null && mzBlRecord.obstericalHistory != "") {
|
|
|
$("#obstericalHistoryBlrecord").text(mzBlRecord.obstericalHistory);
|
|
|
$("#obstericalHistoryBlrecord").parent().css("display", "block");
|
|
|
@@ -12409,9 +12438,8 @@ function printBlRecord(patientId, times, printType) {
|
|
|
}
|
|
|
}
|
|
|
$("#zdAllergenBlrecord").text(zdAllergen);
|
|
|
- $("#zdAllergenBlrecord").parent().css("display", "block");
|
|
|
} else {
|
|
|
- $("#zdAllergenBlrecord").parent().css("display", "none");
|
|
|
+ $("#zdAllergenBlrecord").text('无');
|
|
|
}
|
|
|
var tz = getTz(mzBlRecord);
|
|
|
if (tz != null && tz != "") {
|
|
|
@@ -13314,7 +13342,7 @@ function initCertificateTypeSelect() {
|
|
|
function showMzBlRecordModal(patientId, times, type) {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/getMzBlrecord?patientId=' + patientId + '×=' + times,
|
|
|
+ url: '/thmz/getMzBlrecord?patientId=' + patientId + '×=' + times+'&type='+type,
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
@@ -13336,6 +13364,7 @@ function showMzBlRecordModal(patientId, times, type) {
|
|
|
$("#editPersonalHistory").val(mzBlRecord.personalHistory == null ? "" : mzBlRecord.personalHistory);
|
|
|
$("#editFamilyHistory").val(mzBlRecord.familyHistory == null ? "" : mzBlRecord.familyHistory);
|
|
|
$("#editFzZl").val(mzBlRecord.fzZl == null ? "" : mzBlRecord.fzZl);
|
|
|
+ $("#editCrbHistory").val(mzBlRecord.crbHistory == null ? "" : mzBlRecord.crbHistory);
|
|
|
$("#editObstericalHistory").val(mzBlRecord.obstericalHistory == null ? "" : mzBlRecord.obstericalHistory);
|
|
|
$("#editQtjc").val(mzBlRecord.emrPe == null ? "" : mzBlRecord.emrPe);
|
|
|
setSelectedAttr("editZd", mzBlRecord.icdCode, mzBlRecord.icdText);
|
|
|
@@ -13458,6 +13487,7 @@ function clearInput() {
|
|
|
$("#editPersonalHistory").val(null);
|
|
|
$("#editFamilyHistory").val(null);
|
|
|
$("#editFzZl").val(null);
|
|
|
+ $("#editCrbHistory").val(null);
|
|
|
$("#editObstericalHistory").val(null);
|
|
|
$("#bl_weight").val(null);
|
|
|
$("#bl_sphygmus").val(null);
|
|
|
@@ -13547,6 +13577,7 @@ function sendEmrProcess() {
|
|
|
"personalHistory": $("#editPersonalHistory").val(),
|
|
|
"familyHistory": $("#editFamilyHistory").val(),
|
|
|
"fzZl": $("#editFzZl").val(),
|
|
|
+ "crbHistory": $("#editCrbHistory").val(),
|
|
|
"obstericalHistory": $("#editObstericalHistory").val(),
|
|
|
"emrPe": $("#editQtjc").val(),
|
|
|
"weight": $("#bl_weight").val(),
|