|
@@ -417,7 +417,7 @@ export default {
|
|
const _this = this
|
|
const _this = this
|
|
// 判断是否已添加此产品
|
|
// 判断是否已添加此产品
|
|
if (this.dataSource && this.dataSource.length > 0) {
|
|
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)
|
|
|
|
|
|
+ const hasRow = this.dataSource.find(item => item.productSn == row.productSn)
|
|
if (hasRow) {
|
|
if (hasRow) {
|
|
// this.$message.info('该产品已在当前销售单中存在!')
|
|
// this.$message.info('该产品已在当前销售单中存在!')
|
|
this.productForm = {
|
|
this.productForm = {
|
|
@@ -480,6 +480,7 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
// this.resetSearchForm(true) // 不刷新库存
|
|
// this.resetSearchForm(true) // 不刷新库存
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
this.$message.success('产品添加成功', 2.5)
|
|
this.$message.success('产品添加成功', 2.5)
|
|
}
|
|
}
|
|
this.isInster = false
|
|
this.isInster = false
|