소스 검색

fix: 导入关键字的时候,关键字单位也要导入

vian 3 년 전
부모
커밋
c681c5c17f
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      modules/all_models/std_price_info_items.js
  2. 1 0
      modules/price_info_lib/facade/index.js

+ 4 - 0
modules/all_models/std_price_info_items.js

@@ -12,6 +12,10 @@ const keywordSchema = new Schema({
         type: String,
         default: ''
     }, // 系数(关键字效果)
+    unit: {
+        type: String,
+        default: ''
+    }, // 单位
     group: {
         type: String,
         default: ''

+ 1 - 0
modules/price_info_lib/facade/index.js

@@ -272,6 +272,7 @@ async function importKeyData(libID, mainData, subData) {
         const keywordItem = {
             code: rowData[0] || '',
             keyword: rowData[1] || '',
+            unit: rowData[2] || '',
             coe: rowData[3] || '',
             group: rowData[4] || '',
             optionCode: rowData[5] || '',