|
|
@@ -1307,9 +1307,9 @@
|
|
|
this.currentIndex = index;
|
|
|
if (type=='substanceName') {
|
|
|
this.$refs.bindSubstanceRef.open(
|
|
|
- this.formData.deviceId,
|
|
|
- this.formData.deviceName,
|
|
|
- this.formData.deviceCode
|
|
|
+ this.addForm.deviceId,
|
|
|
+ this.addForm.deviceName,
|
|
|
+ this.addForm.deviceCode
|
|
|
);
|
|
|
} else {
|
|
|
this.$refs.toolModalRef.open(row.toolCodes);
|
|
|
@@ -1375,7 +1375,7 @@
|
|
|
clearTool(row, index) {
|
|
|
if (type=='substanceName') {
|
|
|
substanceKey.forEach((key) => {
|
|
|
- this.$set(this.formData.details[index], key, '');
|
|
|
+ this.$set(this.addForm.details[index], key, '');
|
|
|
});
|
|
|
} else {
|
|
|
row.tools = [];
|