Browse Source

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

vian 3 years ago
parent
commit
c681c5c17f

+ 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] || '',