|
@@ -28,7 +28,7 @@ const casesEntryId = getUrlArgObjectNew("casesEntryId", srcUrl) || "";
|
|
|
const qcresultDetailId = getUrlArgObjectNew("qcresultDetailId", srcUrl) || "";
|
|
|
const appealOperationType = getUrlArgObjectNew("appealOperationType", srcUrl) || "";
|
|
|
const form = getUrlArgObjectNew("form", srcUrl) || "";
|
|
|
-let appealInfo;
|
|
|
+let appealInfo, appealExamineRecordDTOList;
|
|
|
(function () {
|
|
|
getApprovedView()
|
|
|
if (form == 2) {
|
|
@@ -51,20 +51,24 @@ function getApprovedView() {
|
|
|
return post(api.getApprovedView, param).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
data = res.data.data.data
|
|
|
- appealInfo = {
|
|
|
- exampleOperation: 2,
|
|
|
- casesEntryName: data.casesEntryName,
|
|
|
- casesEntryMsg: data.casesEntryMsg,
|
|
|
- value: data.qcresultDetaiValue,
|
|
|
- remark: data.remark,
|
|
|
- behospitalCode: data.behospitalCode,
|
|
|
- qcResultAlgVO: {
|
|
|
- casesEntryId: casesEntryId,
|
|
|
- casesId: data.casesId,
|
|
|
- id: data.qcresultDetailId,
|
|
|
- exampleOperation: appealOperationType
|
|
|
+ appealExamineRecordDTOList = data.appealExamineRecordDTOList,
|
|
|
+ appealInfo = {
|
|
|
+ exampleOperation: 2,
|
|
|
+ casesEntryName: data.casesEntryName,
|
|
|
+ casesEntryMsg: data.casesEntryMsg,
|
|
|
+ remark: data.remark,
|
|
|
+ behospitalCode: data.behospitalCode,
|
|
|
+ casesScore: appealExamineRecordDTOList[0].casesScore,
|
|
|
+ msg: appealExamineRecordDTOList[0].msg,
|
|
|
+ score: appealExamineRecordDTOList[0].qcresultDetaiValue,
|
|
|
+ isReject: appealExamineRecordDTOList[0].isReject,
|
|
|
+ qcResultAlgVO: {
|
|
|
+ casesEntryId: casesEntryId,
|
|
|
+ casesId: data.casesId,
|
|
|
+ id: data.qcresultDetailId,
|
|
|
+ exampleOperation: appealOperationType
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
getInfo(data)
|
|
|
getCon(data)
|
|
|
getAppealInfo(id, behospitalCode, casesEntryId, hospitalId, qcresultDetailId)
|
|
@@ -118,6 +122,7 @@ function getInfo(data) {
|
|
|
$('.info').append(str);
|
|
|
}
|
|
|
function getCon(data) {
|
|
|
+ console.log(data);
|
|
|
let str = ''
|
|
|
str += `<p class="con-title">申述模块:${data.casesName || '-'}</p>
|
|
|
<p class="con-title">病历内容:${data.defectContent || '-'}</p>
|
|
@@ -125,6 +130,10 @@ function getCon(data) {
|
|
|
<p class="con-title"> 评分:${data.qcresultDetaiValue || '-'}</p>
|
|
|
<p class="con-title">病案详情:<span class="goDetail">查看</span></p>`;
|
|
|
$('.content').append(str);
|
|
|
+ $('.goDetail').on('click', function (e) {
|
|
|
+ scoreDetail(data.behospitalCode, data.age, 'YH-BLZK-ZKSSKS', data.name)
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function getHistory(data) {
|
|
@@ -135,37 +144,57 @@ function getHistory(data) {
|
|
|
<p class="con-title"><span>申述时间:${item.appealCreateDate || '-'}</span><span>申述人:${item.claimantName || '-'}</span><span>审核人:${item.checkName || '-'}</span></p>
|
|
|
<p class="con-title">操作类型:${item.appealOperationType == 0 ? '删改条目' : item.appealOperationType == 1 ? '新增已有条目' : item.appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</p>
|
|
|
<p class="con-title">申述说明:${item.appealExplain || '-'}</p>
|
|
|
+ ${item.exampleStatus == 2 ?
|
|
|
+ `<p class="con-title" style="border-top: 1px solid #333;margin-top: 10px;padding-top: 10px;">审核时间:${item.appealExamineDate || '-'}</p>
|
|
|
+ <p class="con-title">申述结果:审核通过</p>
|
|
|
+ <p class="con-title">处理方式:${item.exampleOperation == 1 ? '修改' : item.exampleOperation == 2 ? '删除' : item.exampleOperation == 3 ? '新增已有' : item.exampleOperation == 4 ? '新增缺失' : '恢复条目'}</p>
|
|
|
+ <p class="con-title">质控条目:${item.casesEntryName || '-'}</p>
|
|
|
+ <p class="con-title">提示信息:${item.msg || '-'}</p>
|
|
|
+ <p class="con-title">分值:${item.score || '-'}</p>
|
|
|
+ <p class="con-title">备注:${item.exampleRemark || '-'}</p>`
|
|
|
+ : item.exampleStatus == 1 ?
|
|
|
+ `<p class="con-title" style="border-top: 1px solid #333;margin-top: 10px;padding-top: 10px;">审核时间:${item.appealExamineDate || '-'}</p>
|
|
|
+ <p class="con-title">申述结果:审核通过</p>
|
|
|
+ <p class="con-title">驳回理由:${item.rejectReason || '-'}</p>`
|
|
|
+ : ""}
|
|
|
</div>`;
|
|
|
}
|
|
|
$('.history').append(str);
|
|
|
}
|
|
|
|
|
|
-$(document).on("click", ".goDetail", (e) => {
|
|
|
- $(parent.document).find("#contentIframe").attr("src", "checkTaskList.html")
|
|
|
-});
|
|
|
|
|
|
+function scoreDetail(id, age, code, name) {
|
|
|
+ const logoParam = getLogoParam();
|
|
|
+ window.open(`./appealUserPage.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}&form=44` + logoParam)
|
|
|
+}
|
|
|
+
|
|
|
+$(document).on("click", "input[type=radio][value=1]", (e) => {
|
|
|
+ $(".endis").attr("disabled", false);
|
|
|
+});
|
|
|
+$(document).on("click", "input[type=radio][value=2]", (e) => {
|
|
|
+ $(".endis").attr("disabled", true);
|
|
|
+});
|
|
|
$(document).on("click", ".btn-sure", (e) => {
|
|
|
$("#delModal .modal-body").html("");
|
|
|
$("#delModal").show();
|
|
|
if (appealOperationType == 0) {
|
|
|
- $("#appealDel").tmpl(appealInfo).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealDel").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(1)
|
|
|
});
|
|
|
} else if (appealOperationType == 1) {
|
|
|
-
|
|
|
- $("#appealAdd").tmpl(appealInfo).appendTo("#delModal .modal-body");
|
|
|
+ console.log(appealInfo);
|
|
|
+ $("#appealAdd").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(2)
|
|
|
});
|
|
|
} else if (appealOperationType == 2) {
|
|
|
|
|
|
- $("#appealDef").tmpl(appealInfo).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealDef").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(3)
|
|
|
});
|
|
|
}
|
|
|
- console.log(appealOperationType);
|
|
|
});
|
|
|
|
|
|
|
|
@@ -178,7 +207,7 @@ $(document).on("click", ".btn-cancel", (e) => {
|
|
|
$("#delModal").show();
|
|
|
$("#delModal .modal-header .title").html('驳回');
|
|
|
|
|
|
- $("#appealReject").tmpl(appealInfo).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealReject").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
rejected()
|
|
|
});
|
|
@@ -190,9 +219,15 @@ function approved(type) {
|
|
|
appealInfo.exampleOperation = $('input:radio:checked').val()
|
|
|
if ($('input:radio:checked').val() == 2) {
|
|
|
appealInfo.delStatus == 0
|
|
|
+ } else {
|
|
|
+ appealInfo.casesEntryMsg == $(".case").val()
|
|
|
+ appealInfo.score = $('.score').val()
|
|
|
+ appealInfo.msg = $('.msg').val()
|
|
|
}
|
|
|
} else if (type == 2) {
|
|
|
appealInfo.exampleOperation = 3
|
|
|
+ appealInfo.score = $('.score').val()
|
|
|
+ appealInfo.msg = $('.msg').val()
|
|
|
} else if (type == 3) {
|
|
|
appealInfo.exampleOperation = 4
|
|
|
appealInfo.processResult = $(".textarea").val()
|
|
@@ -208,6 +243,7 @@ function approved(type) {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ console.log(appealInfo);
|
|
|
const param = {
|
|
|
...appealInfo,
|
|
|
'id': id,
|