|
@@ -51,7 +51,12 @@ function getApprovedView() {
|
|
|
return post(api.getApprovedView, param).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
data = res.data.data.data
|
|
|
- appealExamineRecordDTOList = data.appealExamineRecordDTOList;
|
|
|
+ appealExamineRecordDTOList = {
|
|
|
+ casesEntryName:data.qcresultDetailMsg,
|
|
|
+ value: data.qcresultDetaiValue,
|
|
|
+ msg: data.appealExamineRecordDTOList[0].msg,
|
|
|
+ explainInfo: data.appealExamineRecordDTOList[0].appealExplain,
|
|
|
+ };
|
|
|
appealInfo = {
|
|
|
exampleOperation: 2,
|
|
|
casesEntryName: data.casesEntryName,
|
|
@@ -62,11 +67,11 @@ function getApprovedView() {
|
|
|
casesEntryId: casesEntryId,
|
|
|
casesId: data.casesId,
|
|
|
id: data.qcresultDetailId,
|
|
|
- casesScore: appealExamineRecordDTOList[0].casesScore,
|
|
|
- msg: appealExamineRecordDTOList[0].msg,
|
|
|
- score: appealExamineRecordDTOList[0].value,
|
|
|
- isReject: appealExamineRecordDTOList[0].isReject,
|
|
|
- explainInfo: appealExamineRecordDTOList[0].explainInfo,
|
|
|
+ casesScore: data.appealExamineRecordDTOList[0].casesScore,
|
|
|
+ msg: data.appealExamineRecordDTOList[0].msg,
|
|
|
+ score: data.qcresultDetaiValue,
|
|
|
+ isReject: data.appealExamineRecordDTOList[0].isReject,
|
|
|
+ explainInfo: data.appealExamineRecordDTOList[0].appealExplain,
|
|
|
}
|
|
|
};
|
|
|
$('.info').html('');
|
|
@@ -129,7 +134,7 @@ function getCon(data) {
|
|
|
str += `<p class="con-title">申诉模块:${data.casesName || '-'}</p>
|
|
|
<p class="con-title">病历内容:${data.defectContent || '-'}</p>
|
|
|
<p class="con-title">缺陷详情:${data.qcresultDetailMsg || '-'}</p>
|
|
|
- <p class="con-title"> 评分:${data.qcresultDetaiValue || '-'}</p>
|
|
|
+ <p class="con-title"> 评分:-${data.qcresultDetaiValue || '-'}</p>
|
|
|
<p class="con-title">病案详情:<span class="goDetail">查看</span></p>`;
|
|
|
$('.content').append(str);
|
|
|
$('.goDetail').on('click', function (e) {
|
|
@@ -156,7 +161,7 @@ function getHistory(data) {
|
|
|
<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">审核结果:驳回</p>
|
|
|
<p class="con-title">驳回理由:${item.rejectReason || '-'}</p>`
|
|
|
: ""}
|
|
|
</div>`;
|
|
@@ -179,24 +184,23 @@ $(document).on("click", "input[type=radio][value=2]", (e) => {
|
|
|
$(document).on("click", ".btn-sure", (e) => {
|
|
|
$("#delModal .modal-body").html("");
|
|
|
$("#delModal").show();
|
|
|
- console.log(appealExamineRecordDTOList[0]);
|
|
|
if (appealOperationType == 0) {
|
|
|
- $("#appealDel").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealDel").tmpl(appealExamineRecordDTOList).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(1)
|
|
|
});
|
|
|
} else if (appealOperationType == 1) {
|
|
|
- $("#appealAdd").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealAdd").tmpl(appealExamineRecordDTOList).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(2)
|
|
|
});
|
|
|
} else if (appealOperationType == 2) {
|
|
|
- $("#appealDef").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealDef").tmpl(appealExamineRecordDTOList).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(3)
|
|
|
});
|
|
|
} else if (appealOperationType == 3) {
|
|
|
- $("#appealRec").tmpl(appealExamineRecordDTOList[0]).appendTo("#delModal .modal-body");
|
|
|
+ $("#appealRec").tmpl(appealExamineRecordDTOList).appendTo("#delModal .modal-body");
|
|
|
$("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
approved(4)
|
|
|
});
|
|
@@ -316,12 +320,16 @@ function rejected() {
|
|
|
}
|
|
|
|
|
|
//获取待审核数量
|
|
|
-getAuditNumber()
|
|
|
function getAuditNumber() {
|
|
|
return post(api.getAuditNumber, {}).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
auditNumber = res.data.data.data > 99 ? '99+' : res.data.data.data
|
|
|
- $(".menu .page", parent.document).children('.reds').html(auditNumber)
|
|
|
+ if(auditNumber == 0){
|
|
|
+ $(".menu .page", parent.document).children('.reds').hide()
|
|
|
+ $(".menu .dian", parent.document).hide()
|
|
|
+ }else{
|
|
|
+ $(".menu .page", parent.document).children('.reds').html(auditNumber)
|
|
|
+ }
|
|
|
} else {
|
|
|
const token = localStorage.getItem('accessToken');
|
|
|
if (!token && window.location.href.indexOf('login') == -1) {
|