FengChaoYu 3 tahun lalu
induk
melakukan
b780ad5e39
1 mengubah file dengan 5 tambahan dan 7 penghapusan
  1. 5 7
      src/views/basic_data/material/machine_list.vue

+ 5 - 7
src/views/basic_data/material/machine_list.vue

@@ -127,13 +127,7 @@
             show-overflow-tooltip
           >
             <template slot-scope="scope">
-              {{
-                scope.row.type == "INNER"
-                  ? "内机"
-                  : scope.row.type == "OUTSIDE"
-                  ? "外机"
-                  : "配件"
-              }}
+              {{ findMachineType(scope.row.type) }}
             </template>
           </el-table-column>
           <el-table-column
@@ -495,6 +489,10 @@ export default {
         outsideMachineVolume: 2,
       };
     },
+    findMachineType(val) {
+      const obj = this.distList.find((value) => value.dictCode === val)
+      return obj ? obj.dictValue : ''
+    },
   },
 };
 </script>