|
@@ -235,7 +235,7 @@
|
|
|
import linkMsg from './components/link-msg.vue';
|
|
import linkMsg from './components/link-msg.vue';
|
|
|
import { getDetails } from '@/api/classifyManage/itemInformation';
|
|
import { getDetails } from '@/api/classifyManage/itemInformation';
|
|
|
|
|
|
|
|
- import { getCode } from '@/api/codeManagement';
|
|
|
|
|
|
|
+ import { getCode ,rootCategoryCode } from '@/api/codeManagement';
|
|
|
|
|
|
|
|
import { addMaterial } from '@/api/material/list.js';
|
|
import { addMaterial } from '@/api/material/list.js';
|
|
|
import { deepClone } from '@/utils/index';
|
|
import { deepClone } from '@/utils/index';
|
|
@@ -347,6 +347,7 @@
|
|
|
async _getDetails() {
|
|
async _getDetails() {
|
|
|
const data = await getDetails(this.$route.query.id);
|
|
const data = await getDetails(this.$route.query.id);
|
|
|
const info = deepClone(data);
|
|
const info = deepClone(data);
|
|
|
|
|
+ console.log(123, info);
|
|
|
this.form = {
|
|
this.form = {
|
|
|
...info.category
|
|
...info.category
|
|
|
};
|
|
};
|
|
@@ -355,6 +356,15 @@
|
|
|
this.judgeSet(info);
|
|
this.judgeSet(info);
|
|
|
this.searchDeptNodeClick(this.form.chargeDeptId);
|
|
this.searchDeptNodeClick(this.form.chargeDeptId);
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (this.status == 1) {
|
|
|
|
|
+ rootCategoryCode(this.categoryLevelPathId).then((res) => {
|
|
|
|
|
+ this.$set(this.form, 'code', res);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
},
|
|
},
|
|
|
// 判断字段类型并赋值
|
|
// 判断字段类型并赋值
|
|
@@ -429,6 +439,10 @@
|
|
|
const code = await getCode(ruleCode);
|
|
const code = await getCode(ruleCode);
|
|
|
this.$set(this.form, 'code', code);
|
|
this.$set(this.form, 'code', code);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|