浏览代码

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

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';