|
@@ -248,9 +248,11 @@
|
|
|
chooseStandardList(type, data) {
|
|
chooseStandardList(type, data) {
|
|
|
if (type == 9 || type == 1) {
|
|
if (type == 9 || type == 1) {
|
|
|
this.category = data[0];
|
|
this.category = data[0];
|
|
|
|
|
+ console.log(999, this.category )
|
|
|
this.attributeData.categoryId = data[0].id;
|
|
this.attributeData.categoryId = data[0].id;
|
|
|
this.$set(this.attributeData, 'code', data[0].code);
|
|
this.$set(this.attributeData, 'code', data[0].code);
|
|
|
this.$set(this.attributeData, 'name', data[0].name);
|
|
this.$set(this.attributeData, 'name', data[0].name);
|
|
|
|
|
+ this.$set(this.attributeData, 'unit', data[0].measuringUnit);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|