修复商品编辑的bug
This commit is contained in:
@@ -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:''}}])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user