|
@@ -369,6 +369,7 @@ $(function () {
|
|
|
const i = $(".flaw-item[code=" + global_activeTab + "]").index($(this).parents(".flaw-item"));
|
|
|
const code = $(this).attr("code");
|
|
|
showModal('0', code, i); //申诉
|
|
|
+
|
|
|
//审核人下拉渲染
|
|
|
$("#delModal .checker-drop-box ul").html("");
|
|
|
$("#flawDropTmpl").tmpl({ info: global_checkers }).appendTo("#delModal .checker-drop-box ul");
|
|
@@ -435,10 +436,10 @@ $(function () {
|
|
|
"modeName": info.modelName,
|
|
|
"remark": info.explainInfo,
|
|
|
"value": info.score,
|
|
|
- "casesScore":info.casesScore,
|
|
|
- "score":info.score,
|
|
|
- "msg":info.msg,
|
|
|
- "isReject":info.isReject,
|
|
|
+ "casesScore": info.casesScore,
|
|
|
+ "score": info.score,
|
|
|
+ "msg": info.msg,
|
|
|
+ "isReject": info.isReject,
|
|
|
};
|
|
|
} else {
|
|
|
param = {
|
|
@@ -453,19 +454,19 @@ $(function () {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- post(api.addAppealInfo, param).then(function (res) {
|
|
|
- if (res.data.code === '0') {
|
|
|
- $("#delModal").hide();
|
|
|
- //updateFlaws(res.data.data);
|
|
|
- $.alerModal({ "message": "申诉成功", type: "tip", win: true, time: '1000' });
|
|
|
- } else {
|
|
|
- $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
|
|
|
+ // post(api.addAppealInfo, param).then(function (res) {
|
|
|
+ // if (res.data.code === '0') {
|
|
|
+ // $("#delModal").hide();
|
|
|
+ // //updateFlaws(res.data.data);
|
|
|
+ // $.alerModal({ "message": "申诉成功", type: "tip", win: true, time: '1000' });
|
|
|
+ // } else {
|
|
|
+ // $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
|
|
|
|
|
|
- }
|
|
|
- }).catch(() => {
|
|
|
- $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
|
|
|
+ // }
|
|
|
+ // }).catch(() => {
|
|
|
+ // $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
|
|
|
|
|
|
- });
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
function getAppealDetail(id, flg, casesEntryId, qcresultDetailId) {
|
|
@@ -522,6 +523,15 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
|
+ if (info.appealOperationType == 1) {
|
|
|
+ if (info.exampleStatus == 2) {
|
|
|
+ info.appealOperationType = 0
|
|
|
+ } else {
|
|
|
+ info.appealOperationType = 1
|
|
|
+ }
|
|
|
+ } else if (info.appealOperationType == 3) {
|
|
|
+ info.appealOperationType = 0
|
|
|
+ }
|
|
|
$("#delModal .confirm").unbind("click").click(function () {
|
|
|
if ($(".edit-box .warning").is(":visible")) {
|
|
|
return;
|
|
@@ -548,7 +558,6 @@ $(function () {
|
|
|
$("#delModal .modal-box").css("margin-top", '-245px');
|
|
|
//0申诉1驳回2审核
|
|
|
//新增项模板
|
|
|
- console.log(qcresultDetailId);
|
|
|
getAppealDetail(code, i, id, qcresultDetailId);
|
|
|
} else if (flag === '2') { //新增
|
|
|
$("#delModal .title").text("申诉新增");
|