|
@@ -16,6 +16,7 @@
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
|
|
+
|
|
|
<el-form-item label="分类" prop="categoryLevelName">
|
|
<el-form-item label="分类" prop="categoryLevelName">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="form.categoryLevelName"
|
|
v-model="form.categoryLevelName"
|
|
@@ -30,6 +31,8 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="8" v-else key="2">
|
|
<el-col :span="8" v-else key="2">
|
|
|
<el-form-item label="编码" prop="code">
|
|
<el-form-item label="编码" prop="code">
|
|
|
<el-input v-model="form.code" :disabled="status == 0" />
|
|
<el-input v-model="form.code" :disabled="status == 0" />
|
|
@@ -349,6 +352,8 @@
|
|
|
this.categoryLevelPathId = info.category.categoryLevelPathIdParent;
|
|
this.categoryLevelPathId = info.category.categoryLevelPathIdParent;
|
|
|
this.judgeSet(info);
|
|
this.judgeSet(info);
|
|
|
this.searchDeptNodeClick(this.form.chargeDeptId);
|
|
this.searchDeptNodeClick(this.form.chargeDeptId);
|
|
|
|
|
+
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
},
|
|
},
|
|
|
// 判断字段类型并赋值
|
|
// 判断字段类型并赋值
|
|
|
judgeSet(info) {
|
|
judgeSet(info) {
|
|
@@ -400,7 +405,10 @@
|
|
|
handleDirectorChange(id, info) {},
|
|
handleDirectorChange(id, info) {},
|
|
|
// 确定分类
|
|
// 确定分类
|
|
|
async confirmCategory(node, title, PathInfo, ruleCode) {
|
|
async confirmCategory(node, title, PathInfo, ruleCode) {
|
|
|
|
|
+
|
|
|
|
|
+ if(this.status != 0) {
|
|
|
this.$set(this.form, 'code', null);
|
|
this.$set(this.form, 'code', null);
|
|
|
|
|
+ }
|
|
|
this.categoryLevelPathId = PathInfo.categoryLevelPathId.split(',')[0];
|
|
this.categoryLevelPathId = PathInfo.categoryLevelPathId.split(',')[0];
|
|
|
|
|
|
|
|
if (title == '选择产品分类') {
|
|
if (title == '选择产品分类') {
|
|
@@ -415,7 +423,7 @@
|
|
|
|
|
|
|
|
this.ruleCode = ruleCode;
|
|
this.ruleCode = ruleCode;
|
|
|
|
|
|
|
|
- if (ruleCode && ruleCode != '自定义') {
|
|
|
|
|
|
|
+ if (ruleCode && ruleCode != '自定义' && this.status != 0) {
|
|
|
const code = await getCode(ruleCode);
|
|
const code = await getCode(ruleCode);
|
|
|
this.$set(this.form, 'code', code);
|
|
this.$set(this.form, 'code', code);
|
|
|
}
|
|
}
|