Explorar o código

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

vian %!s(int64=4) %!d(string=hai) anos
pai
achega
d6d0454cac
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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];