|
@@ -110,14 +110,14 @@ function getTabData(activePage,qcCheckMain){
|
|
|
desc:data_desc, //降序
|
|
|
doctorName: doctorName,
|
|
|
deptName:deptName=="全部"?"":deptName||'',
|
|
|
- doctorCode: doctorNum,
|
|
|
+ //doctorCode: doctorNum,
|
|
|
leaveHosDateStart: isPlacefile==1?behosDateStart:'', //出院日期--开始时间
|
|
|
leaveHosDateEnd: isPlacefile==1?behosDateEnd:'', //出院日期--结束时间
|
|
|
"behosDateStart": isPlacefile==1?'':behosDateStart, //出院日期--开始时间
|
|
|
"behosDateEnd": isPlacefile==1?'':behosDateEnd, //出院日期--结束时间
|
|
|
size: 15,
|
|
|
statisticsType:statisticsType,
|
|
|
- checkStatus: qcCheckStatus?Number(qcCheckStatus):qcCheckStatus, //病历核查状态
|
|
|
+ /*checkStatus: qcCheckStatus?Number(qcCheckStatus):qcCheckStatus, //病历核查状态
|
|
|
mrStatus: fpCheckStatus?Number(fpCheckStatus):fpCheckStatus, //首页核查状态(1:已核查,0:未核查)
|
|
|
chName: qcCheckName, //病历核查人员
|
|
|
diagnose: qcCheckMain, //病历主症状..........
|
|
@@ -125,11 +125,11 @@ function getTabData(activePage,qcCheckMain){
|
|
|
chTimeStart: qcCheckDateStart.replace(/\//g,'-'), //病历核查起始时间
|
|
|
chTimeEnd: qcCheckDateEnd.replace(/\//g,'-'), //病历核查截止时间
|
|
|
mrTimeStart: fpCheckDateStart.replace(/\//g,'-'), //首页核查起始时间
|
|
|
- mrTimeEnd: fpCheckDateEnd.replace(/\//g,'-'), //首页核查截止时间
|
|
|
+ mrTimeEnd: fpCheckDateEnd.replace(/\//g,'-'),*/ //首页核查截止时间
|
|
|
}
|
|
|
$('.pagination').html("")
|
|
|
$('.tbody').html(emptyBox('努力加载中...','',1))
|
|
|
- return post(api.qcListByDept,param).then(res =>{
|
|
|
+ return post(api.qcListByDeptYw,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
tabList = res.data.data.records
|
|
|
const totalPage = res.data.data.pages
|
|
@@ -149,7 +149,7 @@ function getTabData(activePage,qcCheckMain){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-//getTabData(1)
|
|
|
+getTabData(1)
|
|
|
|
|
|
$(".filter").on("click", function(e){
|
|
|
behosDateStart = $("#datepicker").val()
|
|
@@ -334,6 +334,23 @@ function bindOrder(){
|
|
|
getTabData(1);
|
|
|
});
|
|
|
}
|
|
|
+const moreKeys = 'medHomePage,admissionNote,firstCourseNote,courseRecord,operationInfo,dischargeNote,docAdviceNote,otherCase';//需要收起的字段
|
|
|
+function get30Str(str){
|
|
|
+ let part1='',part2='';
|
|
|
+ let istr = str||'';
|
|
|
+ if(istr.length>30){
|
|
|
+ part1=istr.substr(0,30);
|
|
|
+ part2=istr.substr(30);
|
|
|
+ return `<div class="more-cont"><span>${part1}</span><span class="part-2">${part2}</span><i>...</i><a class="more-btn">更多</a></div>`;
|
|
|
+ }
|
|
|
+ return `<div class="more-cont"><span>${istr}</span></div>`;
|
|
|
+}
|
|
|
+pageSet = $(".tabTitle th[key]").map((i,it)=>{
|
|
|
+ return {
|
|
|
+ val:$(it).attr('key'),
|
|
|
+ status:1,
|
|
|
+ }
|
|
|
+});
|
|
|
function renderTab(data){
|
|
|
let str = ``
|
|
|
let hasSelectAll = true;
|
|
@@ -344,45 +361,29 @@ function renderTab(data){
|
|
|
}
|
|
|
for(let i = 0; i < data.length; i++){
|
|
|
const item = data[i]
|
|
|
- if(!item.hasSelect){
|
|
|
+ /*if(!item.hasSelect){
|
|
|
hasSelectAll = false
|
|
|
- }
|
|
|
+ }*/
|
|
|
// <td class="recordScoreOperaBtn textCenter" style="opacity:${hasData('FUNC000017')?'1':'0.5'}">评分</td>
|
|
|
str += `
|
|
|
<tr data-index=${i}>
|
|
|
- <td class="scoreOperaItem textCenter">${item.hasSelect ? `<img class="iconCheck" src=${iconCheck} />`:`<img class="iconCheck" src=${iconUnCheck} />`}</td>
|
|
|
+ <td class="scoreOperaItem textCenter">${i+1}</td>
|
|
|
`
|
|
|
for(let j = 0; j < pageSet.length; j++){
|
|
|
- if(pageSet[j].status == 1){
|
|
|
- if(pageSet[j].val === "checkStatus" || pageSet[j].val === "mrStatus" ){
|
|
|
- str += `<td class="${isTextCenter(pageSet[j].val) ? 'textCenter':''}"><span data-index=${i} class="${pageSet[j].val=='name'?'patientNameSpan':'' } ">${item[pageSet[j].val] =="1"? "已核查" :item[pageSet[j].val] === 0 ? "未核查":"-"}<span></td>`
|
|
|
- }else if(pageSet[j].val == 'scoreRes'||pageSet[j].val == 'scoreBn'){
|
|
|
- str += `<td class="${isTextCenter(pageSet[j].val) ? 'textCenter':'textCenter'}"><span data-index=${i} class="${pageSet[j].val=='name'?'patientNameSpan':'' } ">${item[pageSet[j].val]===null?'-': item[pageSet[j].val]}<span></td>`
|
|
|
+ if(pageSet[j].status === 1){
|
|
|
+ colName=pageSet[j].val;
|
|
|
+ /*if(colName === "level"){
|
|
|
+ str += `<td class="textCenter"><span data-index=${i}>${item[colName]}</span></td>`
|
|
|
+ }else */if(moreKeys.indexOf(colName)>-1){
|
|
|
+ str += `<td class="textCenter">${get30Str(item[colName])}</td>`
|
|
|
}else{
|
|
|
- str += `<td class="${isTextCenter(pageSet[j].val) ? 'textCenter':'textCenter'}"><span data-index=${i} class="${pageSet[j].val=='name'?'patientNameSpan':'' } ">${item[pageSet[j].val] || "-"}<span></td>`
|
|
|
+ str += `<td class="textCenter"><span data-index=${i} class="${colName==='name'?'patientNameSpan':'' } ">${item[colName]}</span></td>`
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // <td >${item.behospitalCode || "-"}</td>
|
|
|
- // <td>${item.fileCode || "-"}</td>
|
|
|
- // <td class="textCenter"><span data-index=${i} class="patientNameSpan">${item.name || "-"}<span></td>
|
|
|
- // <td class="textCenter">${item.sex || "-"}</td>
|
|
|
- // <td class="textCenter">${item.age || "-"}</td>
|
|
|
- // <td class="textCenter">${item.bedCode || "-"}</td>
|
|
|
- // <td class="textCenter">${item.behospitalDate&&item.behospitalDate.slice(0,10) || "-"}</td>
|
|
|
- // <td class="textCenter">${item.leaveHospitalDate&&item.leaveHospitalDate.slice(0,10)|| "-"}</td>
|
|
|
- // <td class="textCenter">${item.diagnose|| "-"}</td>
|
|
|
- // <td class="textCenter">${item.behDoctorName || "-"}</td>
|
|
|
- // <td class="textCenter">${item.doctorName || "-"}</td>
|
|
|
- // <td class="textCenter">${item.directorDoctorName || "-"}</td>
|
|
|
- // <td class="textCenter">${item.behDeptName || "-"}</td>
|
|
|
- // <td class="textCenter">${item.level || "-"}</td>
|
|
|
- // <td class="textCenter">${item.scoreRes || "-"}</td>
|
|
|
- // <td class="textCenter">${item.gradeTime&&item.gradeTime.slice(0,10) || "-"}</td>
|
|
|
-
|
|
|
str += "</tr>"
|
|
|
}
|
|
|
- if(data.length === 0){
|
|
|
+ /*if(data.length === 0){
|
|
|
hasSelectAll = false
|
|
|
}
|
|
|
if(hasSelectAll){
|
|
@@ -391,7 +392,7 @@ function renderTab(data){
|
|
|
}else{
|
|
|
$('.scoreOpera img').attr("src" ,iconUnCheck)
|
|
|
$('.scoreOpera').attr("data-selectall",false)
|
|
|
- }
|
|
|
+ }*/
|
|
|
$('.tbody').html(str)
|
|
|
bindScoreOperaItem()
|
|
|
bindRecordScoreOper()
|
|
@@ -1145,7 +1146,7 @@ $((function($){
|
|
|
const param = {
|
|
|
"behospitalCode": behospitalCode,
|
|
|
"deptId": deptId.trim(),
|
|
|
- "doctorCode":doctorNum,
|
|
|
+ //"doctorCode":doctorNum,
|
|
|
"doctorName": doctorName,
|
|
|
"asc":data_asc, //升序
|
|
|
"desc":data_desc, //降序
|
|
@@ -1156,7 +1157,7 @@ $((function($){
|
|
|
"isPlacefile": isPlacefile,
|
|
|
"level": level,
|
|
|
"name": name,
|
|
|
- "checkStatus": qcCheckStatus?Number(qcCheckStatus):qcCheckStatus, //病历核查状态
|
|
|
+ /*"checkStatus": qcCheckStatus?Number(qcCheckStatus):qcCheckStatus, //病历核查状态
|
|
|
"mrStatus": fpCheckStatus?Number(fpCheckStatus):fpCheckStatus, //首页核查状态(1:已核查,0:未核查)
|
|
|
"chName": qcCheckName, //病历核查人员
|
|
|
"diagnose": qcCheckMain, //病历主症状..........
|
|
@@ -1166,12 +1167,21 @@ $((function($){
|
|
|
"mrTimeStart": fpCheckDateStart.replace(/\//g,'-'), //首页核查起始时间
|
|
|
"mrTimeEnd": fpCheckDateEnd.replace(/\//g,'-'), //首页核查截止时间
|
|
|
"deptName":deptName=="全部"?"":deptName||'',
|
|
|
- "statisticsType":statisticsType,
|
|
|
+ "statisticsType":statisticsType,*/
|
|
|
}
|
|
|
- $.alerModal({type:"radio",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ let time = exportTimeLimit.defectTime
|
|
|
+ if((new Date(behosDateEnd) - new Date(behosDateStart))/24/60/60/1000 > time){
|
|
|
+ $.alerModal({"message":`最多只能导出${time}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
+ expJson(api.qualityControlExportByDept,param).then(res =>{
|
|
|
+ $(".divModal",parent.document).html("")
|
|
|
+ downloadExportedData(res.data, behosDateStart.slice(0,10).replace(/-/g,"")+"-"+behosDateEnd.slice(0,10).replace(/-/g,"")+"抽查住院病历质量情况.xls")
|
|
|
+ })
|
|
|
+ /*$.alerModal({type:"radio",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
closeRadio()
|
|
|
radioSelect()
|
|
|
- bindSaveColPort(param)
|
|
|
+ bindSaveColPort(param)*/
|
|
|
|
|
|
})
|
|
|
})($));
|
|
@@ -1195,7 +1205,7 @@ function bindSaveColPort(param){
|
|
|
return
|
|
|
}
|
|
|
param.radioCheck = radioCheck||1
|
|
|
- expJson(api.exportQcListDept,param).then(res =>{
|
|
|
+ expJson(api.qualityControlExportByDept,param).then(res =>{
|
|
|
$(".divModal",parent.document).html("")
|
|
|
downloadExportedData(res.data, behosDateStart.slice(0,10).replace(/-/g,"")+"-"+behosDateEnd.slice(0,10).replace(/-/g,"")+"抽查住院病历质量情况.xls")
|
|
|
})
|