Browse Source

解决出库界面 重复循环重复键值问题

阿伏兔 4 years ago
parent
commit
6ac70fab1c
1 changed files with 12 additions and 12 deletions
  1. 12 12
      src/views/warehouseBusiness/outStock/index.vue

+ 12 - 12
src/views/warehouseBusiness/outStock/index.vue

@@ -435,8 +435,8 @@
                 placeholder="请输入模糊查找"
               >
                 <el-option
-                  v-for="dict in userOptions"
-                  :key="dict.userName"
+                  v-for="(dict, index) in userOptions"
+                  :key="index.userName"
                   :label="dict.nickName"
                   :value="dict.userName"
                 ></el-option>
@@ -486,8 +486,8 @@
                 style="width: 80%"
               >
                 <el-option
-                  v-for="dict in fIfdamageOptions"
-                  :key="dict.dictValue"
+                  v-for="(dict, index) in fIfdamageOptions"
+                  :key="index.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
                 />
@@ -504,8 +504,8 @@
                 style="width: 80%"
               >
                 <el-option
-                  v-for="dict in fIfweighOptions"
-                  :key="dict.dictValue"
+                  v-for="(dict, index) in fIfweighOptions"
+                  :key="index.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
                 />
@@ -562,8 +562,8 @@
                 style="width: 80%"
               >
                 <el-option
-                  v-for="dict in jFeetunitOptions"
-                  :key="dict.dictValue"
+                  v-for="(dict, index) in jFeetunitOptions"
+                  :key="index.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
                 />
@@ -676,8 +676,8 @@
                   style="width: 80%"
                 >
                   <el-option
-                    v-for="dict in fTrademodeidOptions"
-                    :key="dict.dictValue"
+                    v-for="(dict, index) in fTrademodeidOptions"
+                    :key="index.dictValue"
                     :label="dict.dictLabel"
                     :value="dict.dictValue"
                   />
@@ -706,8 +706,8 @@
                   remote
                 >
                   <el-option
-                    v-for="dict in deptOptions"
-                    :key="dict.deptId"
+                    v-for="(dict, index) in deptOptions"
+                    :key="index.deptId"
                     :label="dict.deptName"
                     :value="dict.deptId"
                   ></el-option>