修复商品编辑的bug

This commit is contained in:
季圣华
2023-08-17 10:02:09 +08:00
parent 2217bf3efd
commit cc8f65b5ab

View File

@@ -929,12 +929,12 @@
getMaxBarCode({}).then((res)=> { getMaxBarCode({}).then((res)=> {
if (res && res.code === 200) { if (res && res.code === 200) {
this.maxBarCodeInfo = res.data.barCode - 0 this.maxBarCodeInfo = res.data.barCode - 0
this.maxBarCodeInfo = this.maxBarCodeInfo this.maxBarCodeInfo = this.maxBarCodeInfo + 1
target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}]) target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}])
} }
}) })
} else { } else {
this.maxBarCodeInfo = this.maxBarCodeInfo this.maxBarCodeInfo = this.maxBarCodeInfo + 1
target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}]) target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}])
} }
}, },