|
@@ -52,11 +52,12 @@ function getApprovedView() {
|
|
|
return post(api.getApprovedView, param).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
data = res.data.data
|
|
|
+ console.log();
|
|
|
appealExamineRecordDTOList = {
|
|
|
- casesEntryName: data.appealExamineRecordDTOList[0].casesEntryName,
|
|
|
- value: data.appealExamineRecordDTOList[0].value,
|
|
|
- msg: data.appealExamineRecordDTOList[0].casesEntryMsg,
|
|
|
- explainInfo: data.appealExamineRecordDTOList[0].appealExplain,
|
|
|
+ casesEntryName: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].casesEntryName,
|
|
|
+ value: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].score,
|
|
|
+ msg: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].msg,
|
|
|
+ explainInfo: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].appealExplain,
|
|
|
};
|
|
|
appealInfo = {
|
|
|
exampleOperation: 2,
|
|
@@ -68,11 +69,11 @@ function getApprovedView() {
|
|
|
qcResultAlgVO: {
|
|
|
casesEntryId: casesEntryId,
|
|
|
id: data.qcresultDetailId,
|
|
|
- casesScore: data.appealExamineRecordDTOList[0].casesScore,
|
|
|
- msg: data.appealExamineRecordDTOList[0].msg,
|
|
|
+ casesScore: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].casesScore,
|
|
|
+ msg: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].msg,
|
|
|
score: data.qcresultDetaiValue,
|
|
|
- isReject: data.appealExamineRecordDTOList[0].isReject,
|
|
|
- explainInfo: data.appealExamineRecordDTOList[0].appealExplain,
|
|
|
+ isReject: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].isReject,
|
|
|
+ explainInfo: data.appealExamineRecordDTOList[data.appealExamineRecordDTOList.length-1].appealExplain,
|
|
|
}
|
|
|
};
|
|
|
$('.info').html('');
|
|
@@ -157,7 +158,7 @@ function getHistory(data) {
|
|
|
<p class="con-title">提示信息:${item.casesEntryMsg || '-'}</p>
|
|
|
<p class="con-title">分值:${item.value || '-'}</p>
|
|
|
<p class="con-title">备注:${item.appealRemark || '-'}</p>
|
|
|
- `:""}
|
|
|
+ `: ""}
|
|
|
<p class="con-title">申诉说明:${item.appealExplain || '-'}</p>
|
|
|
${item.exampleStatus == 2 ?
|
|
|
`<p class="con-title" ><span>审核时间:${item.appealExamineDate || '-'}</span><span>审核人:${item.checkName || '-'}</span></p>
|
|
@@ -221,10 +222,10 @@ $(document).on("click", ".btn-sure", (e) => {
|
|
|
$(document).on("click", ".goback", (e) => {
|
|
|
console.log(form);
|
|
|
if (form == 1 || form == 2) {
|
|
|
- $(parent.document).find("#contentIframe").attr("src", './appealCheck.html?page='+ page);
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", './appealCheck.html?page=' + page);
|
|
|
} else {
|
|
|
console.log(123);
|
|
|
- $(parent.document).find("#contentIframe").attr("src", './appealHistory.html?page='+ page);
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", './appealHistory.html?page=' + page);
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -241,6 +242,7 @@ $(document).on("click", ".btn-cancel", (e) => {
|
|
|
});
|
|
|
//审核
|
|
|
function approved(type) {
|
|
|
+ console.log(type);
|
|
|
if (type == 1) {
|
|
|
appealInfo.exampleOperation = $('input:radio:checked').val()
|
|
|
if ($('input:radio:checked').val() == 2) {
|
|
@@ -250,12 +252,24 @@ function approved(type) {
|
|
|
appealInfo.qcResultAlgVO.score = $('.score').val()
|
|
|
appealInfo.qcResultAlgVO.explainInfo = $('.explainInfo').val()
|
|
|
appealInfo.qcResultAlgVO.msg = $('.msg').val()
|
|
|
+ let val = $(".msg").val()
|
|
|
+ if (!val) {
|
|
|
+ $(".appealDel .warning .red").text("提示信息不能为空~");
|
|
|
+ $(".appealDel .warning").show();
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
} else if (type == 2) {
|
|
|
appealInfo.exampleOperation = 3
|
|
|
appealInfo.qcResultAlgVO.score = $('.score').val()
|
|
|
appealInfo.qcResultAlgVO.explainInfo = $('.explainInfo').val()
|
|
|
appealInfo.qcResultAlgVO.msg = $('.msg').val()
|
|
|
+ let val = $(".msg").val()
|
|
|
+ if (!val) {
|
|
|
+ $(".appealAdd .warning .red").text("提示信息不能为空~");
|
|
|
+ $(".appealAdd .warning").show();
|
|
|
+ return
|
|
|
+ }
|
|
|
} else if (type == 3) {
|
|
|
appealInfo.exampleOperation = 4
|
|
|
appealInfo.processResult = $(".textarea").val()
|
|
@@ -270,7 +284,6 @@ function approved(type) {
|
|
|
$(".appealDef .warning").show();
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
} else if (type == 4) {
|
|
|
appealInfo.exampleOperation = 5
|
|
|
appealInfo.qcResultAlgVO.score = $('.score').val()
|