|
@@ -64,7 +64,10 @@ function initMenu(data){
|
|
|
$(".page").on("click",function(){
|
|
|
$(".info-item .cont,.flaw-item,td").removeClass("active"); //清空缺陷定位背景
|
|
|
const title = $(this).attr("code");
|
|
|
- if(title==="缺陷总览"||title==="谈话告知书"||title==="知情同意书"||title==="医嘱信息"){
|
|
|
+ if(title==="缺陷总览"||title==="谈话告知书"||title==="知情同意书"){
|
|
|
+ if(title==="缺陷总览"){
|
|
|
+ getRecordDetailUpdate()
|
|
|
+ }
|
|
|
$(".flaw-table .page-item").hide();
|
|
|
$(".flaw-table,.flaw-table .page-item[code="+title+"]").show();
|
|
|
}else{
|
|
@@ -129,6 +132,27 @@ function getRecordDetail(){
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+function getRecordDetailUpdate(){
|
|
|
+ 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} = data;
|
|
|
+ // global_check = checkStatus
|
|
|
+ // const info=Object.assign(beHospital,result);
|
|
|
+ // initMenu(JSON.parse(result.menuData));
|
|
|
+ // $(".subMenu >li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
|
+ // global_activeTab=$(".sub-menu .page.active").attr("code");
|
|
|
+ // initPatientInfo(info);
|
|
|
+ // initContent(result.pageData);
|
|
|
+ initList(msg);
|
|
|
+ initScoreItem(msg);
|
|
|
+ global_flawData=msg;
|
|
|
+ global_flawDataPay=drgs;
|
|
|
+ // setBoxHeight();
|
|
|
+ // changePay()
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
function changePay(){
|
|
|
$(document).on('click',".titleSpecial span",function(){
|
|
|
let type = $(this).attr("data-type")
|
|
@@ -241,9 +265,9 @@ function formatInfoData(k,data){
|
|
|
})
|
|
|
}else if(type&&type==2){
|
|
|
$(".titleNo").css({
|
|
|
- 'border-left':0,
|
|
|
'background-color': '#fff',
|
|
|
'border': '1px solid #777',
|
|
|
+ 'border-left':0,
|
|
|
'color': '#777'
|
|
|
})
|
|
|
$(".titlePay").css({
|