Przeglądaj źródła

feat: 定额库导入内部数据,费用类别导入成string

vian 4 lat temu
rodzic
commit
d6d0454cac
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      modules/ration_repository/models/ration_item.js

+ 1 - 2
modules/ration_repository/models/ration_item.js

@@ -1065,8 +1065,7 @@ rationItemDAO.prototype.batchUpdateSectionIdFromExcel = async function(data) {
         }
         sectionIDs.push(sectionId);
         // 取费专业
-        let feeType = tmp[1] ? parseInt(tmp[1]) : null;
-        feeType = isNaN(feeType) || feeType <= 0 ? null : feeType;
+        let feeType = tmp[1] || '';
         let name = tmp[4];
         name = name ? name : '';
         let caption = tmp[5];