Index: ssts-web/src/main/webapp/disinfectsystem/common/terminateInvoicePlan.js =================================================================== diff -u -r13846 -r14732 --- ssts-web/src/main/webapp/disinfectsystem/common/terminateInvoicePlan.js (.../terminateInvoicePlan.js) (revision 13846) +++ ssts-web/src/main/webapp/disinfectsystem/common/terminateInvoicePlan.js (.../terminateInvoicePlan.js) (revision 14732) @@ -4,6 +4,14 @@ showResult("请选择需要终止的申请单"); return false; } + for(var i = 0;i < records.length;i++){ + if ("已发货" == records[i].get('deliverStatus')){ + showResult("该单已发货或已终止的,不能被终止!"); + return false; + } + } + + var record = records[0]; var id = record.data['id'];