|
@@ -68,7 +68,10 @@ function getRecordDetail(){
|
|
|
|
|
|
//填充患者信息
|
|
//填充患者信息
|
|
function initPatientInfo(data){
|
|
function initPatientInfo(data){
|
|
- $("#infoTmpl").tmpl(data).appendTo("#patientInfo");
|
|
|
|
|
|
+ const date = data.birthday.substr(0,10);
|
|
|
|
+ const age=new Date(date).getTime()/(365*24*60*60*1000);
|
|
|
|
+ const obj=Object.assign({},data,{age:Math.floor(-age)});
|
|
|
|
+ $("#infoTmpl").tmpl(obj).appendTo("#patientInfo");
|
|
}
|
|
}
|
|
//显示病例模块明细
|
|
//显示病例模块明细
|
|
function initContent(data){
|
|
function initContent(data){
|
|
@@ -157,6 +160,9 @@ function showModal(flag,code,i){
|
|
}
|
|
}
|
|
});
|
|
});
|
|
$("#delModal .confirm").click(function(){
|
|
$("#delModal .confirm").click(function(){
|
|
|
|
+ if($(".edit-box .warning").is(":visible")){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
const obj = Object.assign({},info,{msg:$("#delModal #qcMsg").val(),score:$("#delModal #qcScore").val()});
|
|
const obj = Object.assign({},info,{msg:$("#delModal #qcMsg").val(),score:$("#delModal #qcScore").val()});
|
|
editScore(obj);
|
|
editScore(obj);
|
|
});
|
|
});
|