|
@@ -29,7 +29,7 @@ $(function () {
|
|
const casesName = getUrlArgObject("casesName");
|
|
const casesName = getUrlArgObject("casesName");
|
|
let global_check;
|
|
let global_check;
|
|
let global_check_home, global_check_show;
|
|
let global_check_home, global_check_show;
|
|
- let global_entryName,global_casesEntryId
|
|
|
|
|
|
+ let global_entryName, global_casesEntryId
|
|
const global_code = getUrlArgObject("code");
|
|
const global_code = getUrlArgObject("code");
|
|
let global_activeTab = $(".sub-menu .page.active").attr("code"); //当前激活菜单项
|
|
let global_activeTab = $(".sub-menu .page.active").attr("code"); //当前激活菜单项
|
|
let global_modules = {}; //模板数据缓存
|
|
let global_modules = {}; //模板数据缓存
|
|
@@ -37,7 +37,7 @@ $(function () {
|
|
let global_selectedFlaw = {}; //新增时选中的条目信息
|
|
let global_selectedFlaw = {}; //新增时选中的条目信息
|
|
let global_checkers = []; //审核人列表
|
|
let global_checkers = []; //审核人列表
|
|
getAllModules();
|
|
getAllModules();
|
|
- getCheckUser(); //获取审核人列表
|
|
|
|
|
|
+
|
|
const form = getUrlArgObject("form") || 0;
|
|
const form = getUrlArgObject("form") || 0;
|
|
window.document.title = "质控申诉-" + getUrlArgObject("name");
|
|
window.document.title = "质控申诉-" + getUrlArgObject("name");
|
|
//新增申诉点击事件
|
|
//新增申诉点击事件
|
|
@@ -376,7 +376,6 @@ $(function () {
|
|
}
|
|
}
|
|
showFlawList();
|
|
showFlawList();
|
|
$(".flaw-item .oper a").unbind("click").click(function () {
|
|
$(".flaw-item .oper a").unbind("click").click(function () {
|
|
- console.log(123);
|
|
|
|
const i = $(".flaw-item[code=" + global_activeTab + "]").index($(this).parents(".flaw-item"));
|
|
const i = $(".flaw-item[code=" + global_activeTab + "]").index($(this).parents(".flaw-item"));
|
|
const code = $(this).attr("code");
|
|
const code = $(this).attr("code");
|
|
showModal('0', code, i); //申诉
|
|
showModal('0', code, i); //申诉
|
|
@@ -501,6 +500,8 @@ $(function () {
|
|
|
|
|
|
//申诉弹窗
|
|
//申诉弹窗
|
|
function showModal(flag, code, i, id, qcresultDetailId) {
|
|
function showModal(flag, code, i, id, qcresultDetailId) {
|
|
|
|
+ global_check_home = ''
|
|
|
|
+ global_check_show = '';
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal").show();
|
|
$("#delModal").show();
|
|
//事件解绑
|
|
//事件解绑
|
|
@@ -508,6 +509,7 @@ $(function () {
|
|
$("#addQcScore,#addQcMsg,#addQcInfo").off("input");
|
|
$("#addQcScore,#addQcMsg,#addQcInfo").off("input");
|
|
$("#delModal .confirm").show();
|
|
$("#delModal .confirm").show();
|
|
if (flag === '0') { //申诉
|
|
if (flag === '0') { //申诉
|
|
|
|
+ getCheckUser(); //获取审核人列表
|
|
const flawsList = formatFlawKeys(global_flawData);
|
|
const flawsList = formatFlawKeys(global_flawData);
|
|
const info = JSON.parse(JSON.stringify(flawsList[global_activeTab])) && JSON.parse(JSON.stringify(flawsList[global_activeTab][i]))
|
|
const info = JSON.parse(JSON.stringify(flawsList[global_activeTab])) && JSON.parse(JSON.stringify(flawsList[global_activeTab][i]))
|
|
let defectContent
|
|
let defectContent
|
|
@@ -556,7 +558,6 @@ $(function () {
|
|
console.log(123);
|
|
console.log(123);
|
|
const userId = $(".checker-drop-input").attr("code");
|
|
const userId = $(".checker-drop-input").attr("code");
|
|
const appealExec = $("#delModal #qcInfo").val(); //申诉说明
|
|
const appealExec = $("#delModal #qcInfo").val(); //申诉说明
|
|
- console.log(userId);
|
|
|
|
if (!userId) {
|
|
if (!userId) {
|
|
$(".edit-box .warning .red").text("请选择审核人~");
|
|
$(".edit-box .warning .red").text("请选择审核人~");
|
|
$(".edit-box .warning").show();
|
|
$(".edit-box .warning").show();
|
|
@@ -587,8 +588,9 @@ $(function () {
|
|
qcresultDetaiValue: info.score,
|
|
qcresultDetaiValue: info.score,
|
|
qcresultDetailMsg: info.standardMsg,
|
|
qcresultDetailMsg: info.standardMsg,
|
|
defectContent: defectContent,
|
|
defectContent: defectContent,
|
|
- casesEntryMsg:info.msg,
|
|
|
|
|
|
+ casesEntryMsg: info.msg,
|
|
value: info.score,
|
|
value: info.score,
|
|
|
|
+ remark: info.explainInfo,
|
|
};
|
|
};
|
|
appealItem(obj);
|
|
appealItem(obj);
|
|
});
|
|
});
|
|
@@ -600,6 +602,7 @@ $(function () {
|
|
//新增项模板
|
|
//新增项模板
|
|
getAppealDetail(code, i, id, qcresultDetailId);
|
|
getAppealDetail(code, i, id, qcresultDetailId);
|
|
} else if (flag === '2') { //新增
|
|
} else if (flag === '2') { //新增
|
|
|
|
+ getCheckUser(); //获取审核人列表
|
|
$("#delModal .title").text("申诉新增");
|
|
$("#delModal .title").text("申诉新增");
|
|
$("#delModal .modal-box").css("margin-top", "-281px");
|
|
$("#delModal .modal-box").css("margin-top", "-281px");
|
|
//新增项模板
|
|
//新增项模板
|
|
@@ -817,7 +820,7 @@ $(function () {
|
|
$("#addQcScore").val(score);
|
|
$("#addQcScore").val(score);
|
|
}
|
|
}
|
|
$(document).on("blur", ".flaw-drop-input", (e) => {
|
|
$(document).on("blur", ".flaw-drop-input", (e) => {
|
|
- $('.flaw-drop-input').val(global_entryName).attr({ "code": global_casesEntryId,"title": global_entryName });
|
|
|
|
|
|
+ $('.flaw-drop-input').val(global_entryName).attr({ "code": global_casesEntryId, "title": global_entryName });
|
|
});
|
|
});
|
|
$(".flaw-drop-input").blur(function () {
|
|
$(".flaw-drop-input").blur(function () {
|
|
console.log(111);
|
|
console.log(111);
|