diff --git a/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue b/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue
index 60ef771..d164fd8 100644
--- a/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue
+++ b/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue
@@ -13,7 +13,7 @@
-
+
@@ -43,16 +43,16 @@
-
-
+
+
-
-
+
+
-
+
-
+
@@ -122,20 +116,26 @@
-
+
+
+
+
+
+
+
-
+
@@ -231,14 +231,25 @@ const open = ref(false)
const state = reactive({
single: true,
multiple: true,
- form: {},
+ form: {
+ status: '1'
+ },
rules: {
categoryCode: [{ required: true, message: '分类编码不能为空', trigger: 'blur' }],
categoryName: [{ required: true, message: '分类名称不能为空', trigger: 'blur' }]
},
options: {
// 状态(0/1) 选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'}
- statusOptions: []
+ statusOptions: [
+ {
+ dictValue: '0',
+ dictLabel: '停用'
+ },
+ {
+ dictValue: '1',
+ dictLabel: '启用'
+ }
+ ]
}
})
@@ -259,7 +270,7 @@ function reset() {
parentCode: null,
levelNo: null,
description: null,
- status: null,
+ status: '1', // 设置默认值为'1'(启用)
createdTime: null,
updatedTime: null
}