|
|
@@ -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 = "新增物资类型";
|
|
|
},
|