Commit aa2f512e authored by tanjunxin's avatar tanjunxin

fix: 物料产品分类增加物料分类编码字段

parent 33a39544
......@@ -63,7 +63,7 @@
<dict-tag :options="dict.type.mes_item_product" :value="scope.row.itemOrProduct"/>
</template>
</el-table-column>
<el-table-column prop="itemTypeCode" label="物料分类编码" width="200"/>
<el-table-column prop="enableFlag" label="是否启用" width="100">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.enableFlag"/>
......@@ -104,7 +104,7 @@
<!-- 添加或修改物料分类对话框 -->
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-row>
<el-col :span="12" v-if="form.parentTypeId !== 0">
<el-form-item label="父分类" prop="parentTypeId">
......@@ -134,7 +134,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="物料/产品">
......@@ -302,7 +302,7 @@ export default {
handleUpdate(row) {
this.reset();
getItemType(row.itemTypeId).then(response => {
this.form = response.data;
this.form = response.data;
this.open = true;
this.title = "修改分类";
});
......@@ -332,7 +332,7 @@ export default {
this.open = false;
this.getList();
});
} else {
} else {
addItemType(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment