|
@@ -673,6 +673,14 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ delProduct(row, index) {
|
|
|
+ if (index > this.isEditIndex) {
|
|
|
+ this.formData?.items?.splice(index, 1)
|
|
|
+ } else if (index == this.isEditIndex) {
|
|
|
+ this.formData?.items?.splice(index, 1)
|
|
|
+ this.isEditIndex = -1
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|