|
@@ -458,7 +458,12 @@ export default {
|
|
|
if (this.dataSource && this.dataSource.length > 0) {
|
|
|
const hasRow = this.dataSource.find(item => item.productSn == row.productSn && item.warehouseSn == row.warehouseSn && item.warehouseLocationSn == row.warehouseLocationSn)
|
|
|
if (hasRow) {
|
|
|
- this.$message.info('该产品已在当前销售单中存在!')
|
|
|
+ // this.$message.info('该产品已在当前销售单中存在!')
|
|
|
+ this.productForm = {
|
|
|
+ productName: '',
|
|
|
+ productCode: hasRow.dealerProductEntity && hasRow.dealerProductEntity.code || ''
|
|
|
+ }
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
return
|
|
|
}
|
|
|
}
|