Procházet zdrojové kódy

feat: 添加状态筛选功能,支持启用和停用状态的选择

xieyong před 4 dny
rodič
revize
d4adf3ebaf

+ 16 - 1
src/views/material/product/components/index-search.vue

@@ -52,6 +52,19 @@
           </el-select>
         </el-form-item>
       </el-col>
+      <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
+        <el-form-item label="状态">
+          <el-select
+            v-model="where.isEnabled"
+            style="width: 100%"
+            clearable
+            placeholder="全部"
+          >
+            <el-option :value="1" label="启用"></el-option>
+            <el-option :value="0" label="停用"></el-option>
+          </el-select>
+        </el-form-item>
+      </el-col>
       <!-- <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
         <el-form-item label="BOM状态">
           <el-input
@@ -117,7 +130,8 @@
         name: '',
         code: '',
         modelType: '',
-        bomStatus: ''
+        bomStatus: '',
+        isEnabled: ''
       };
       return {
         defaultWhere,
@@ -156,6 +170,7 @@
 
       resetAllSearch() {
         this.$set(this.where, 'allSearch', false);
+        this.$set(this.where, 'isEnabled', '');
       },
 
       // 刷新数据