|
@@ -27,8 +27,8 @@ $(function () {
|
|
|
const global_id = getUrlArgObject("id");
|
|
|
const global_hid = getUrlArgObject("hid");
|
|
|
let global_check;
|
|
|
- let global_check_home, global_check_show,check_Operation_WithAppeal;
|
|
|
- let global_entryName,global_casesEntryId
|
|
|
+ let global_check_home, global_check_show, check_Operation_WithAppeal;
|
|
|
+ let global_entryName, global_casesEntryId
|
|
|
const global_code = getUrlArgObject("code");
|
|
|
let global_activeTab = $(".sub-menu .page.active").attr("code"); //当前激活菜单项
|
|
|
let global_modules = {}; //模板数据缓存
|
|
@@ -52,6 +52,13 @@ $(function () {
|
|
|
});
|
|
|
}
|
|
|
function initMenu(data) {
|
|
|
+ console.log(data);
|
|
|
+ data.push({
|
|
|
+ id: 6,
|
|
|
+ name: "其他信息",
|
|
|
+ parentId: -1,
|
|
|
+ sonMode: [],
|
|
|
+ })
|
|
|
const menu = [{ id: 0, name: "缺陷总览", parentId: -1, sonMode: [] }, ...(data || [])];
|
|
|
//菜单数据填充
|
|
|
$("#subMenuTmpl").tmpl(menu).appendTo("#subMenu");
|
|
@@ -102,7 +109,7 @@ $(function () {
|
|
|
$(".check").css('display', 'block').text(global_check == 1 ? '重新核查' : '病历核查')
|
|
|
}
|
|
|
}
|
|
|
- if (title === "缺陷总览" || title === "谈话告知书" || title === "知情同意书" || title === '医嘱信息' || title === '检验信息' || title === '检查信息' || title === '护理信息') {
|
|
|
+ if (title === "缺陷总览" || title === "谈话告知书" || title === "知情同意书" || title === '医嘱信息' || title === '检验信息' || title === '检查信息' || title === '护理信息' || title === '其他信息') {
|
|
|
if (title === "缺陷总览") {
|
|
|
getRecordDetailUpdate()
|
|
|
}
|
|
@@ -130,31 +137,37 @@ $(function () {
|
|
|
}
|
|
|
function iframeShow(title) {
|
|
|
if (title === '医嘱信息') {
|
|
|
- $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentNursing").css("display", "none")
|
|
|
+ $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentNursing,#contentOther").css("display", "none")
|
|
|
$("#contentIframeIn").css({ display: 'block' }).attr("src", 'advice.html').contents().find(".adviceWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
$(window).resize(function () {
|
|
|
$("#contentIframeIn").contents().find(".adviceWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
});
|
|
|
} else if (title === '检验信息') {
|
|
|
- $("#contentIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentNursing").css("display", "none")
|
|
|
+ $("#contentIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentNursing,#contentOther").css("display", "none")
|
|
|
$("#pacsIframeIn").css({ display: 'block' }).attr("src", 'pacs.html').contents().find(".pacsWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
$(window).resize(function () {
|
|
|
$("#pacsIframeIn").contents().find(".pacsWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
});
|
|
|
} else if (title === '检查信息') {
|
|
|
- $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#contentNursing").css("display", "none")
|
|
|
+ $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#contentNursing,#contentOther").css("display", "none")
|
|
|
$("#assistIframeIn").css({ display: 'block' }).attr("src", 'assist.html').contents().find(".assistWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
$(window).resize(function () {
|
|
|
$("#assistIframeIn").contents().find(".assistWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
});
|
|
|
} else if (title === '护理信息') {
|
|
|
- $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentIframeIn").css("display", "none")
|
|
|
+ $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentIframeIn,#contentOther").css("display", "none")
|
|
|
$("#contentNursing").css({ display: 'block' }).attr("src", 'nursing.html').contents().find(".nursingWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
$(window).resize(function () {
|
|
|
$("#contentNursing").contents().find(".nursingWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
});
|
|
|
+ } else if (title === '其他信息') {
|
|
|
+ $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn,#contentIframeIn,#contentNursing").css("display", "none")
|
|
|
+ $("#contentOther").css({ display: 'block' }).attr("src", 'other.html').contents().find(".otherWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
+ $(window).resize(function () {
|
|
|
+ $("#contentOther").contents().find(".otherWrp").height(window.innerHeight - $("#patientInfo").height() - 20 + 'px')
|
|
|
+ });
|
|
|
} else {
|
|
|
- $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#assistIframeIn,#contentNursing").css({ display: 'none' })
|
|
|
+ $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#assistIframeIn,#contentNursing,#contentOther").css({ display: 'none' })
|
|
|
}
|
|
|
}
|
|
|
//判断有无某一权限
|
|
@@ -175,11 +188,11 @@ $(function () {
|
|
|
post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {
|
|
|
if (res.data.code === '0') {
|
|
|
const data = res.data.data;
|
|
|
- const { beHospital, result, msg, checkStatus, drgs, mrStatus, checkShow,checkOperationWithAppeal } = data;
|
|
|
+ const { beHospital, result, msg, checkStatus, drgs, mrStatus, checkShow, checkOperationWithAppeal } = data;
|
|
|
global_check = checkStatus
|
|
|
global_check_home = mrStatus
|
|
|
global_check_show = checkShow;//0隐藏操作按钮1显示
|
|
|
- check_Operation_WithAppeal =JSON.parse(checkOperationWithAppeal)
|
|
|
+ check_Operation_WithAppeal = JSON.parse(checkOperationWithAppeal)
|
|
|
const info = Object.assign(beHospital, result);
|
|
|
initMenu(JSON.parse(result.menuData));
|
|
|
// $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
@@ -367,7 +380,7 @@ $(function () {
|
|
|
//评分项数据填充
|
|
|
function initScoreItem(data) {
|
|
|
$("#flaws .flaw-box").html("");
|
|
|
- let hasAu = showCheckBtns && global_check_show && hasData('FUNC000013'); //修改缺陷权限
|
|
|
+ let hasAu = showCheckBtns && global_check_show && hasData('FUNC000013'); //修改缺陷权限
|
|
|
let hasAu2 = showCheckBtns && global_check_show && hasData('FUNC000012'); //删除缺陷权限
|
|
|
let hasAu3 = check_Operation_WithAppeal
|
|
|
console.log(hasAu3);
|
|
@@ -395,7 +408,7 @@ $(function () {
|
|
|
}
|
|
|
})
|
|
|
$(".edit-flaw").css({ "display": hasAu ? "inline" : "none" });
|
|
|
- $(".del-flaw").css({ "display": hasAu2 ? "inline" : "none" });
|
|
|
+ $(".del-flaw").css({ "display": hasAu2 ? "inline" : "none" });
|
|
|
$(".add-flaw").css({ "display": hasAu3 && global_check_show ? "inline" : "none" });
|
|
|
$(".recover-flaw").css({ "display": hasAu2 ? "inline" : "none" });
|
|
|
$(".flaw-item .title a[href]").unbind("click").click(function () {
|
|
@@ -451,22 +464,22 @@ $(function () {
|
|
|
function editScore(info) {
|
|
|
info.reviewer = info.exampleDate > info.gmtModified ? info.reviewer : info.linkman
|
|
|
info.exampleDate = info.exampleDate > info.gmtModified ? info.exampleDate : info.gmtModified
|
|
|
-
|
|
|
+
|
|
|
const param = {
|
|
|
"behospitalCode": global_id,
|
|
|
"optResultAlgVO": info
|
|
|
};
|
|
|
- post(api.editScore,param).then(function(res){
|
|
|
- if(res.data.code==='0'){
|
|
|
+ post(api.editScore, param).then(function (res) {
|
|
|
+ if (res.data.code === '0') {
|
|
|
$("#delModal").hide();
|
|
|
updateFlaws(res.data.data);
|
|
|
- $.alerModal({"message":"修改成功",type:"tip",time:'1000',win:true});
|
|
|
- }else{
|
|
|
- $.alerModal({"message":'修改失败,请重试~',type:"tip",time:'1000',isFather: true,win: 'default', fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ $.alerModal({ "message": "修改成功", type: "tip", time: '1000', win: true });
|
|
|
+ } else {
|
|
|
+ $.alerModal({ "message": '修改失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
|
|
|
|
|
|
}
|
|
|
- }).catch(()=>{
|
|
|
- $.alerModal({"message":'修改失败,请重试~',type:"tip",time:'1000',isFather: true,win: 'default', fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ }).catch(() => {
|
|
|
+ $.alerModal({ "message": '修改失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
|
|
|
|
|
|
});
|
|
|
}
|
|
@@ -755,7 +768,7 @@ $(function () {
|
|
|
console.log(123);
|
|
|
});
|
|
|
$(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 });
|
|
|
});
|
|
|
//更新缺陷列表
|
|
|
function updateFlaws(info) {
|