|
@@ -10,6 +10,7 @@ window.document.title="质控评分-"+getUrlArgObject("name");
|
|
|
$(function(){
|
|
|
//本页全局变量
|
|
|
let global_flawData = {}; //缺陷数据
|
|
|
+ let global_flawDataPay = {}; //缺陷数据
|
|
|
const global_id=getUrlArgObject("id");
|
|
|
const global_age = getUrlArgObject("age");
|
|
|
let global_check;
|
|
@@ -103,8 +104,7 @@ function getRecordDetail(){
|
|
|
post(api.getRecordDetail,{'behospitalCode':global_id}).then(function(res){
|
|
|
if(res.data.code==='0'){
|
|
|
const data = res.data.data;
|
|
|
-
|
|
|
- const {beHospital,result,msg,checkStatus} = data;
|
|
|
+ const {beHospital,result,msg,checkStatus,drgs} = data;
|
|
|
global_check = checkStatus
|
|
|
const info=Object.assign(beHospital,result);
|
|
|
initMenu(JSON.parse(result.menuData));
|
|
@@ -116,11 +116,22 @@ function getRecordDetail(){
|
|
|
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")
|
|
|
+ if(type == 1){
|
|
|
+ initList(global_flawDataPay,type);
|
|
|
+ }else{
|
|
|
+ initList(global_flawData,type);
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
//填充患者信息
|
|
|
function initPatientInfo(data){
|
|
|
let hasCheck = false
|
|
@@ -185,7 +196,8 @@ function formatInfoData(k,data){
|
|
|
}
|
|
|
|
|
|
//知情同意书、谈话告知书
|
|
|
- function formatSpecPage(data,title){
|
|
|
+ function formatSpecPage(data,title,type){
|
|
|
+ $(".page-item[code='缺陷总览']").children().remove()
|
|
|
$("#appointBookTmpl").tmpl({title,data}).appendTo(".flaw-table");
|
|
|
$(".page-anchor").on("click",function(){
|
|
|
const code=$(this).attr("code");
|
|
@@ -206,11 +218,36 @@ function formatInfoData(k,data){
|
|
|
$('#contentInfo').scrollTop($(anch).offset().top-60);
|
|
|
}
|
|
|
});
|
|
|
+ if(type&&type == 1){
|
|
|
+ $(".titleNo").css({
|
|
|
+ 'background-color': '#00A1FF',
|
|
|
+ 'color': '#fff',
|
|
|
+ 'border-color': '#00A1FF'
|
|
|
+ })
|
|
|
+ $(".titlePay").css({
|
|
|
+ 'background-color': '#fff',
|
|
|
+ 'border': '1px solid #777',
|
|
|
+ 'border-right':0,
|
|
|
+ 'color': '#777'
|
|
|
+ })
|
|
|
+ }else if(type&&type==2){
|
|
|
+ $(".titleNo").css({
|
|
|
+ 'border-left':0,
|
|
|
+ 'background-color': '#fff',
|
|
|
+ 'border': '1px solid #777',
|
|
|
+ 'color': '#777'
|
|
|
+ })
|
|
|
+ $(".titlePay").css({
|
|
|
+ 'background-color': '#00A1FF',
|
|
|
+ 'color': '#fff',
|
|
|
+ 'border-color': '#00A1FF'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-function initList(data){
|
|
|
+function initList(data,type){
|
|
|
//$("#flawTotalList").tmpl({title:"缺陷总览",data:data}).appendTo(".flaw-table");
|
|
|
- formatSpecPage(data,"缺陷总览");
|
|
|
+ formatSpecPage(data,"缺陷总览",type);
|
|
|
$(".flaw-table").show();
|
|
|
$(".flaw-table .page-item[code="+global_activeTab+"]").show();
|
|
|
$(".slide-up").off("click").on("click",function(){
|