浏览代码

物资类型添加检索中状态条件

wangyani 11 月之前
父节点
当前提交
845d1fee2f
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 11 11
      src/views/mes/material/typeofmaterial/index.vue

+ 11 - 11
src/views/mes/material/typeofmaterial/index.vue

@@ -25,16 +25,16 @@
         />
       </el-form-item>
 
-      <!-- <el-form-item label="状态" prop="status">
-        <el-select
-          v-model="queryParams.status"
-          placeholder="请选择状态"
-          clearable
-        >
-          <el-option label="启用" value="y"></el-option>
-          <el-option label="禁用" value="n"></el-option>
+      <el-form-item label="状态" prop="status">
+        <el-select v-model="queryParams.status" placeholder="状态">
+          <el-option
+            v-for="dict in dict.type.material_type_status"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          />
         </el-select>
-      </el-form-item> -->
+      </el-form-item>
       <el-form-item style="margin-left: 50px">
         <el-button
           type="primary"
@@ -288,7 +288,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { genCode } from "@/api/system/autocode/rule";
 export default {
   name: "hardwareType",
-  dicts: ["sys_yes_no"],
+  dicts: ["material_type_status"],
   components: {
     Treeselect,
   },
@@ -476,7 +476,7 @@ export default {
         this.form.ancestors = 0;
       }
       this.form.restitutionRequired = 1;
-      this.form.status='y'
+      this.form.status = "y";
       this.open = true;
       this.title = "新增物资类型";
     },