소스 검색

普通报销报销类型取消分包

chenjun 1 년 전
부모
커밋
9796db7c17
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      zjugis-business/src/main/resources/templates/CommonCost/js/index.js

+ 3 - 2
zjugis-business/src/main/resources/templates/CommonCost/js/index.js

@@ -167,8 +167,9 @@
         let trFragment = document.createDocumentFragment();
         trFragment.appendChild(trDom);
         $(".tbody").append(trFragment)
-        if(viewState === 'v'){
-            costTypeJSON = costTypeNoSubJSON
+        costTypeJSON = costTypeNoSubJSON;
+        if(viewState != 'v'){
+            costTypeJSON = costTypeJSON
         }
         costTypeJSON.forEach(obj => {
             obj.treeName = 'CommonCostDetailDO[' + i + ']$costType';