From c75c276cca04877b26fec9ae00e3b1837ce19556 Mon Sep 17 00:00:00 2001 From: xm Date: Sat, 18 Dec 2021 21:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=8F=AC=E5=9B=9E?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=9A=84=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=B8=BA=E6=95=B0=E5=AD=97=E5=8F=8A=E5=85=B6=E4=BB=96=E6=83=85?= =?UTF-8?q?=E5=86=B5=EF=BC=8C=E9=99=90=E5=AE=9A=E4=BA=86=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=86=85=E5=AE=B9=E4=B8=BA=E5=8F=AC=E5=9B=9E?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../medicalRecallDir/medicalRecallList.jsp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/medicalRecallDir/medicalRecallList.jsp b/src/main/webapp/WEB-INF/views/medicalRecallDir/medicalRecallList.jsp index 62739944..db05ce49 100644 --- a/src/main/webapp/WEB-INF/views/medicalRecallDir/medicalRecallList.jsp +++ b/src/main/webapp/WEB-INF/views/medicalRecallDir/medicalRecallList.jsp @@ -781,16 +781,23 @@ $.ajax({ url: "${path}/medicalRecall/updateState", type: "POST", - data: {"state": "已召回", "archiveDetailId": archiveDetailId, recallReason: recallReason,content:$("#inpatientNo").val(),formToken:$("#formToken").val()}, + data: { + "state": "已召回", + "archiveDetailId": archiveDetailId, + recallReason: recallReason, + content: $("#inpatientNo").val(), + formToken: $("#formToken").val() + }, success: function (result) { //刷新 - if(result == '1'){ + if (parseInt(result) >= 1) { toastr.success("召回成功!"); $('#table').bootstrapTable('refresh'); - }else if(result == '2'){ + // 因为实际返回值会出现大于2,但是实际召回是成功的情况,故修改成大于1均为召回成功,限定了其他情况下返回的错误提示统一都为召回失败 + // }else if(result == '2'){ + // toastr.error("召回失败!"); + } else { toastr.error("召回失败!"); - }else{ - toastr.error(result); } }, error: function () { //刷新