Browse Source

医技项目的序号调整

hurugang 3 years ago
parent
commit
2bfe6f0d03
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/main/resources/static/js/mz/clinic.js

+ 10 - 0
src/main/resources/static/js/mz/clinic.js

@@ -2701,6 +2701,16 @@ function removeYpOrProject(index, obj) {
     var tableId = $("#" + tabId + " li.active").find("a").attr("href");
     //var totalRetprice = $(obj).parent().find("input.temporary_items_amount").val();
     //calculateCfAmount(tableId, totalRetprice, null, index, 1);
+    //医技的序号调整一下
+    if(index == 2){
+        var nextAll = $(obj).parent().nextAll();
+        if(nextAll!=null && nextAll.length>0){
+            for(var i=0;i<nextAll.length;i++){
+               var index= $(nextAll[i]).find(".jcjyItemGroupId").text();
+                $(nextAll[i]).find(".jcjyItemGroupId").text(index-1);
+            }
+        }
+    }
     $(obj).parent().remove();
     if (index != 3) {
         calculateTotalAmount();