|
@@ -361,7 +361,10 @@ export default {
|
|
|
onClick={() => {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
- this.formData.items[index].isEditRow = false
|
|
|
+ this.formData.items.splice(index, 1, {
|
|
|
+ ...this.formData.items[index],
|
|
|
+ isEditRow: false
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}}
|
|
@@ -375,7 +378,10 @@ export default {
|
|
|
onClick={() => {
|
|
|
this.formData.items.map((item, index_) => {
|
|
|
if (index_ == index) {
|
|
|
- item.isEditRow = true
|
|
|
+ this.formData.items.splice(index, 1, {
|
|
|
+ ...this.formData.items[index],
|
|
|
+ isEditRow: true
|
|
|
+ })
|
|
|
if (this.formData.type == 'M' && row.goodsCategoryId) {
|
|
|
materialNormList({
|
|
|
isShowStockQty: true,
|
|
@@ -391,7 +397,10 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
- item.isEditRow = false
|
|
|
+ this.formData.items.splice(index_, 1, {
|
|
|
+ ...this.formData.items[index_],
|
|
|
+ isEditRow: false
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}}
|