|
@@ -443,28 +443,26 @@ $(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": {
|
|
|
- "reviewer": info.exampleDate > info.gmtModified ? info.reviewer : info.linkman,
|
|
|
- "exampleDate": info.exampleDate > info.gmtModified ? info.exampleDate : info.gmtModified,
|
|
|
- ...info
|
|
|
- }
|
|
|
+ "optResultAlgVO": info
|
|
|
};
|
|
|
- console.log(param);
|
|
|
- // 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)});
|
|
|
+ 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)});
|
|
|
|
|
|
- // }
|
|
|
- // }).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)});
|
|
|
|
|
|
- // });
|
|
|
+ });
|
|
|
}
|
|
|
//添加评分项
|
|
|
function addScore(info) {
|
|
@@ -502,6 +500,7 @@ $(function () {
|
|
|
|
|
|
//显示删除/修改弹窗
|
|
|
function showModal(flag, code, i, id, qcresultDetailId) {
|
|
|
+ console.log(flag);
|
|
|
$("#delModal .modal-body").html("");
|
|
|
$("#delModal").show();
|
|
|
$("#delModal .cancel").text("关闭")
|
|
@@ -644,7 +643,7 @@ $(function () {
|
|
|
} else if (flag === '3') {
|
|
|
$("#delModal .title").text("恢复提示");
|
|
|
$("#delModal .modal-body").html('<p>确定要恢复该评分记录吗?</p>');
|
|
|
- $("#delModal .confirm").text("关闭").unbind("click").click(function () {
|
|
|
+ $("#delModal .confirm").text("取消").unbind("click").click(function () {
|
|
|
$("#delModal").hide();
|
|
|
});
|
|
|
$("#delModal .cancel").show().text("恢复").unbind("click").click(function () {
|
|
@@ -653,10 +652,11 @@ $(function () {
|
|
|
} else {
|
|
|
$("#delModal .title").text("删除提示");
|
|
|
$("#delModal .modal-body").html('<p>确定要删除该评分记录吗?</p>');
|
|
|
- $("#delModal .confirm").text("关闭").unbind("click").click(function () {
|
|
|
+ $("#delModal .confirm").text("取消").unbind("click").click(function () {
|
|
|
$("#delModal").hide();
|
|
|
});
|
|
|
$("#delModal .cancel").show().text("删除").unbind("click").click(function () {
|
|
|
+ console.log(123);
|
|
|
delScore(code, info);
|
|
|
});
|
|
|
}
|
|
@@ -673,6 +673,9 @@ $(function () {
|
|
|
const info = res.data.data || {};
|
|
|
const appealInfo = info.appealExamineRecordDTOList;
|
|
|
$("#appealStatusTmpl").tmpl(appealInfo).appendTo("#delModal .modal-body");
|
|
|
+ $("#delModal .cancel").text("关闭").unbind("click").click(function () {
|
|
|
+ $("#delModal").hide();
|
|
|
+ });
|
|
|
/*if (flg === '1') {
|
|
|
$(".check-item").hide();
|
|
|
$(".reject-item").show();
|