|
@@ -2300,10 +2300,16 @@ function fitZyReqContent(zyReqPrescription, contentId, titleId, checkBox) {
|
|
|
function afterFitContent(contentId, zyReqHtml, titleId) {
|
|
|
$("#" + contentId).html(zyReqHtml);
|
|
|
$("#" + titleId).removeClass("hide").addClass("in");
|
|
|
- $("#" + titleId).find("input[type='checkbox']").prop("checked", true);
|
|
|
- $("#" + contentId).find("input[type='checkbox']").each(function (index, obj) {
|
|
|
- $(obj).prop("checked", true);
|
|
|
- });
|
|
|
+ //是否默认勾选处方回调
|
|
|
+ var checkboxFlag = localStorage.getItem("checkboxFlag");
|
|
|
+ if(checkboxFlag!=null &&(checkboxFlag=="0" || checkboxFlag==0)){
|
|
|
+ $("#" + titleId).find("input[type='checkbox']").prop("checked", true);
|
|
|
+ $("#" + contentId).find("input[type='checkbox']").each(function (index, obj) {
|
|
|
+ $(obj).prop("checked", true);
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ $("#" + titleId).find("input[type='checkbox']").prop("checked", false);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -2379,8 +2385,15 @@ function prescriptionJmblChosice(obj) {
|
|
|
* @param id
|
|
|
*/
|
|
|
function medicalModelModal(id) {
|
|
|
- $("#conciseRecordsYlfw").prop("checked", true);
|
|
|
- $("#prescriptionSubsidiaryYlfw").prop("checked", true);
|
|
|
+ //是否默认勾选处方回调
|
|
|
+ var checkboxFlag = localStorage.getItem("checkboxFlag");
|
|
|
+ if(checkboxFlag!=null &&(checkboxFlag=="0" || checkboxFlag==0)){
|
|
|
+ $("#conciseRecordsYlfw").prop("checked", true);
|
|
|
+ $("#prescriptionSubsidiaryYlfw").prop("checked", true);
|
|
|
+ }else {
|
|
|
+ $("#conciseRecordsYlfw").prop("checked", false);
|
|
|
+ $("#prescriptionSubsidiaryYlfw").prop("checked", false);
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
url: '/thmz/getTemplateById?id=' + id,
|
|
@@ -7269,6 +7282,17 @@ function initWorkspaceConfigForCurrent() {
|
|
|
$("#tentativeDiagnosisFlagCheck").parent().parent().click();//当前不选中改为选中
|
|
|
}
|
|
|
}
|
|
|
+ if (res.data.checkboxFlag == 1) {
|
|
|
+ if ($("#checkboxFlagCheck").parent().hasClass("checked")) {
|
|
|
+ $("#checkboxFlagCheck").parent().parent().click();//当前选中改为不选中
|
|
|
+ }
|
|
|
+ } else if (res.data.checkboxFlag == 0) {
|
|
|
+ if (!$("#checkboxFlagCheck").parent().hasClass("checked")) {
|
|
|
+ $("#checkboxFlagCheck").parent().parent().click();//当前不选中改为选中
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //设置是否默认勾选处方回调
|
|
|
+ localStorage.setItem("checkboxFlag",res.data.checkboxFlag);
|
|
|
} else {
|
|
|
errorMesage(res);
|
|
|
}
|
|
@@ -7289,6 +7313,7 @@ function saveWorkspaceConfig() {
|
|
|
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;
|
|
|
+ var checkboxFlag = $("#checkboxFlagCheck").parent().hasClass("checked") == true ? 0 : 1;
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: '/thmz/saveWorkspaceConfig',
|
|
@@ -7302,7 +7327,8 @@ function saveWorkspaceConfig() {
|
|
|
"familyHistoryFlag": familyHistoryFlag,
|
|
|
"obstericalHistoryFlag": obstericalHistoryFlag,
|
|
|
"pressureLeftFlag": pressureLeftFlag,
|
|
|
- "tentativeDiagnosisFlag": tentativeDiagnosisFlag
|
|
|
+ "tentativeDiagnosisFlag": tentativeDiagnosisFlag,
|
|
|
+ "checkboxFlag": checkboxFlag
|
|
|
}),
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
success: function (res) {
|
|
@@ -8170,8 +8196,15 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
|
|
|
//退费时,查看的明细还是处方开立的情况
|
|
|
payMark = 0;
|
|
|
}
|
|
|
- $("#conciseRecordsJzxq").prop("checked", true);
|
|
|
- $("#prescriptionSubsidiaryJzxq").prop("checked", true);
|
|
|
+ //是否默认勾选处方回调
|
|
|
+ var checkboxFlag = localStorage.getItem("checkboxFlag");
|
|
|
+ if(checkboxFlag!=null &&(checkboxFlag=="0" || checkboxFlag==0)){
|
|
|
+ $("#conciseRecordsJzxq").prop("checked", true);
|
|
|
+ $("#prescriptionSubsidiaryJzxq").prop("checked", true);
|
|
|
+ }else {
|
|
|
+ $("#conciseRecordsJzxq").prop("checked", false);
|
|
|
+ $("#prescriptionSubsidiaryJzxq").prop("checked", false);
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
url: '/thmz/getMzPrescriptionVo?patientId=' + patientId + '×=' + times + '&MzBlRecordFlag=false&payMark=' + payMark + '&clnicId=' + clnicId,
|