|
@@ -36,8 +36,10 @@ $(function () {
|
|
let global_checkers = []; //审核人列表
|
|
let global_checkers = []; //审核人列表
|
|
getAllModules();
|
|
getAllModules();
|
|
getCheckUser(); //获取审核人列表
|
|
getCheckUser(); //获取审核人列表
|
|
|
|
+ const form = getUrlArgObject("form");
|
|
window.document.title = "质控申诉-" + getUrlArgObject("name");
|
|
window.document.title = "质控申诉-" + getUrlArgObject("name");
|
|
//新增申诉点击事件
|
|
//新增申诉点击事件
|
|
|
|
+
|
|
$(".add-flaw").click(function () {
|
|
$(".add-flaw").click(function () {
|
|
showModal('2');
|
|
showModal('2');
|
|
});
|
|
});
|
|
@@ -45,8 +47,7 @@ $(function () {
|
|
function showAppealDetailEvent() {
|
|
function showAppealDetailEvent() {
|
|
//申诉状态点击事件
|
|
//申诉状态点击事件
|
|
$(".flaw-item").off("click").on("click", ".title .btn", function () {
|
|
$(".flaw-item").off("click").on("click", ".title .btn", function () {
|
|
- showModal("1", $(this).attr("data_id"), $(this).attr("data_type"), $(this).attr("data_casesEntryId"),$(this).attr("data_qcresultDetailId"));
|
|
|
|
- console.log($(this).attr("qcresultDetailId"));
|
|
|
|
|
|
+ showModal("1", $(this).attr("data_id"), $(this).attr("data_type"), $(this).attr("data_casesEntryId"), $(this).attr("data_qcresultDetailId"));
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -153,12 +154,33 @@ $(function () {
|
|
const info = Object.assign(beHospital, result);
|
|
const info = Object.assign(beHospital, result);
|
|
initMenu(JSON.parse(result.menuData));
|
|
initMenu(JSON.parse(result.menuData));
|
|
// $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
// $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
- $(".subMenu >li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
|
|
- global_activeTab = $(".sub-menu .page.active").attr("code");
|
|
|
|
|
|
+ initList(msg);
|
|
|
|
+ if (form == 44) {
|
|
|
|
+ //选中样式
|
|
|
|
+ $(".sub-menu .active,.menu-mini .active").removeClass('active');
|
|
|
|
+ const mItems = $(".sub-menu .page[code=" + '查房记录' + "],.menu-mini .page[code=" + '查房记录' + "]");
|
|
|
|
+ mItems.addClass("active");
|
|
|
|
+ mItems.parents(".list-1").addClass("active");
|
|
|
|
+ mItems.parents(".list-1").addClass("slide-up");
|
|
|
|
+ mItems.parents("ul").show()
|
|
|
|
+ // //显示对应内容
|
|
|
|
+ global_activeTab = $(".sub-menu .page.active").attr("code");
|
|
|
|
+ getQcCasesEntry();
|
|
|
|
+ //initModuleData();
|
|
|
|
+ $(".flaw-table .page-item").hide();
|
|
|
|
+ $(".flaw-table,.flaw-table .page-item[code=" + '查房记录' + "]").show();
|
|
|
|
+ $(".content-item,.flaw-item").hide();
|
|
|
|
+ $(".content-item[code='" + '查房记录' + "']").show();
|
|
|
|
+ showFlawList();
|
|
|
|
+ $("#contentInfo").scrollTop(0)
|
|
|
|
+ } else {
|
|
|
|
+ $(".subMenu >li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
|
|
+ global_activeTab = $(".sub-menu .page.active").attr("code");
|
|
|
|
+ }
|
|
$(".operation").show()
|
|
$(".operation").show()
|
|
initPatientInfo(info);
|
|
initPatientInfo(info);
|
|
initContent(result.pageData);
|
|
initContent(result.pageData);
|
|
- initList(msg);
|
|
|
|
|
|
+
|
|
initScoreItem(msg);
|
|
initScoreItem(msg);
|
|
global_flawData = msg;
|
|
global_flawData = msg;
|
|
global_flawDataPay = drgs;
|
|
global_flawDataPay = drgs;
|
|
@@ -336,7 +358,7 @@ $(function () {
|
|
|
|
|
|
//评分项数据填充
|
|
//评分项数据填充
|
|
function initScoreItem(data) {
|
|
function initScoreItem(data) {
|
|
-
|
|
|
|
|
|
+
|
|
$("#flaws .flaw-box").html("");
|
|
$("#flaws .flaw-box").html("");
|
|
for (let k in data) {
|
|
for (let k in data) {
|
|
console.log(data[k]);
|
|
console.log(data[k]);
|
|
@@ -398,6 +420,7 @@ $(function () {
|
|
//新增申诉
|
|
//新增申诉
|
|
function addScore(info) {
|
|
function addScore(info) {
|
|
let param = {};
|
|
let param = {};
|
|
|
|
+ console.log(info);
|
|
if (info.type === '1') {
|
|
if (info.type === '1') {
|
|
param = {
|
|
param = {
|
|
"appealExplain": info.appealExec,
|
|
"appealExplain": info.appealExec,
|
|
@@ -408,10 +431,14 @@ $(function () {
|
|
"casesEntryMsg": info.msg,
|
|
"casesEntryMsg": info.msg,
|
|
"casesEntryName": info.standardMsg,
|
|
"casesEntryName": info.standardMsg,
|
|
"checkId": info.userId,
|
|
"checkId": info.userId,
|
|
- "casesId": info.modeId,
|
|
|
|
|
|
+ "casesId": info.casesId,
|
|
"modeName": info.modelName,
|
|
"modeName": info.modelName,
|
|
"remark": info.explainInfo,
|
|
"remark": info.explainInfo,
|
|
"value": info.score,
|
|
"value": info.score,
|
|
|
|
+ "caseScore":info.caseScore,
|
|
|
|
+ "score":info.score,
|
|
|
|
+ "msg":info.msg,
|
|
|
|
+ "isReject":info.isReject,
|
|
};
|
|
};
|
|
} else {
|
|
} else {
|
|
param = {
|
|
param = {
|
|
@@ -420,7 +447,7 @@ $(function () {
|
|
"appealType": 1,
|
|
"appealType": 1,
|
|
"behospitalCode": global_id,
|
|
"behospitalCode": global_id,
|
|
"checkId": info.userId,
|
|
"checkId": info.userId,
|
|
- "casesId": info.modelId,
|
|
|
|
|
|
+ "casesId": info.casesId,
|
|
"modeName": info.modelName,
|
|
"modeName": info.modelName,
|
|
"remark": info.explainInfo
|
|
"remark": info.explainInfo
|
|
};
|
|
};
|
|
@@ -441,7 +468,7 @@ $(function () {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- function getAppealDetail(id, flg,casesEntryId,qcresultDetailId) {
|
|
|
|
|
|
+ function getAppealDetail(id, flg, casesEntryId, qcresultDetailId) {
|
|
const param = {
|
|
const param = {
|
|
behospitalCode: global_id,
|
|
behospitalCode: global_id,
|
|
casesEntryId: casesEntryId,
|
|
casesEntryId: casesEntryId,
|
|
@@ -463,7 +490,7 @@ $(function () {
|
|
}
|
|
}
|
|
|
|
|
|
//申诉弹窗
|
|
//申诉弹窗
|
|
- function showModal(flag, code, i,id,qcresultDetailId) {
|
|
|
|
|
|
+ function showModal(flag, code, i, id, qcresultDetailId) {
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal").show();
|
|
$("#delModal").show();
|
|
//事件解绑
|
|
//事件解绑
|
|
@@ -495,12 +522,10 @@ $(function () {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.log(info);
|
|
|
|
$("#delModal .confirm").unbind("click").click(function () {
|
|
$("#delModal .confirm").unbind("click").click(function () {
|
|
if ($(".edit-box .warning").is(":visible")) {
|
|
if ($(".edit-box .warning").is(":visible")) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
const obj = {
|
|
const obj = {
|
|
appealExplain: $("#delModal #qcInfo").val(),
|
|
appealExplain: $("#delModal #qcInfo").val(),
|
|
appealOperationType: 0,
|
|
appealOperationType: 0,
|
|
@@ -510,10 +535,10 @@ $(function () {
|
|
modeName: info.modelName,
|
|
modeName: info.modelName,
|
|
qcresultDetailId: info.id,
|
|
qcresultDetailId: info.id,
|
|
workFlowNodeId: 1,
|
|
workFlowNodeId: 1,
|
|
- casesScore:info.casesScore,
|
|
|
|
- casesEntryId:info.casesEntryId,
|
|
|
|
- casesId:info.casesId,
|
|
|
|
- isReject:info.isReject,
|
|
|
|
|
|
+ casesScore: info.casesScore,
|
|
|
|
+ casesEntryId: info.casesEntryId,
|
|
|
|
+ casesId: info.casesId,
|
|
|
|
+ isReject: info.isReject,
|
|
};
|
|
};
|
|
appealItem(obj);
|
|
appealItem(obj);
|
|
});
|
|
});
|
|
@@ -524,7 +549,7 @@ $(function () {
|
|
//0申诉1驳回2审核
|
|
//0申诉1驳回2审核
|
|
//新增项模板
|
|
//新增项模板
|
|
console.log(qcresultDetailId);
|
|
console.log(qcresultDetailId);
|
|
- getAppealDetail(code, i,id,qcresultDetailId);
|
|
|
|
|
|
+ getAppealDetail(code, i, id, qcresultDetailId);
|
|
} else if (flag === '2') { //新增
|
|
} else if (flag === '2') { //新增
|
|
$("#delModal .title").text("申诉新增");
|
|
$("#delModal .title").text("申诉新增");
|
|
$("#delModal .modal-box").css("margin-top", "-281px");
|
|
$("#delModal .modal-box").css("margin-top", "-281px");
|
|
@@ -626,6 +651,7 @@ $(function () {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
const obj = Object.assign({}, global_selectedFlaw, { msg, score, appealExec, type, explainInfo, userId });
|
|
const obj = Object.assign({}, global_selectedFlaw, { msg, score, appealExec, type, explainInfo, userId });
|
|
|
|
+ console.log(obj);
|
|
addScore(obj);
|
|
addScore(obj);
|
|
});
|
|
});
|
|
}
|
|
}
|