|
@@ -285,7 +285,6 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.resetSearchForm(true)
|
|
this.resetSearchForm(true)
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.$refs.partQuery.pageInit()
|
|
|
|
this.$message.info(res.message)
|
|
this.$message.info(res.message)
|
|
}
|
|
}
|
|
this.spinning = false
|
|
this.spinning = false
|
|
@@ -304,7 +303,6 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.resetSearchForm(true)
|
|
this.resetSearchForm(true)
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.$refs.partQuery.pageInit()
|
|
|
|
this.$message.info(res.message)
|
|
this.$message.info(res.message)
|
|
this.spinning = false
|
|
this.spinning = false
|
|
} else {
|
|
} else {
|
|
@@ -401,7 +399,6 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.resetSearchForm(true)
|
|
this.resetSearchForm(true)
|
|
- this.$refs.partQuery.pageInit()
|
|
|
|
this.spinning = false
|
|
this.spinning = false
|
|
} else {
|
|
} else {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
@@ -422,7 +419,6 @@ export default {
|
|
salesDetailDelAll({ salesBillSn: _this.detailData.salesBillSn }).then(res => {
|
|
salesDetailDelAll({ salesBillSn: _this.detailData.salesBillSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
_this.resetSearchForm(true)
|
|
_this.resetSearchForm(true)
|
|
- _this.$refs.partQuery.pageInit()
|
|
|
|
}
|
|
}
|
|
_this.$message.info(res.message)
|
|
_this.$message.info(res.message)
|
|
_this.delLoading = false
|
|
_this.delLoading = false
|
|
@@ -445,7 +441,6 @@ export default {
|
|
salesDetailDel({ id: row.id }).then(res => {
|
|
salesDetailDel({ id: row.id }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
_this.resetSearchForm(true)
|
|
_this.resetSearchForm(true)
|
|
- _this.$refs.partQuery.pageInit()
|
|
|
|
}
|
|
}
|
|
_this.$message.info(res.message)
|
|
_this.$message.info(res.message)
|
|
_this.delLoading = false
|
|
_this.delLoading = false
|
|
@@ -463,7 +458,12 @@ export default {
|
|
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 && item.warehouseSn == row.warehouseSn && item.warehouseLocationSn == row.warehouseLocationSn)
|
|
if (hasRow) {
|
|
if (hasRow) {
|
|
- this.$message.info('该产品已在当前销售单中存在!')
|
|
|
|
|
|
+ // this.$message.info('该产品已在当前销售单中存在!')
|
|
|
|
+ this.productForm = {
|
|
|
|
+ productName: '',
|
|
|
|
+ productCode: hasRow.dealerProductEntity && hasRow.dealerProductEntity.code || ''
|
|
|
|
+ }
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -515,7 +515,6 @@ export default {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.resetSearchForm(true)
|
|
this.resetSearchForm(true)
|
|
this.$message.success('产品添加成功', 2.5)
|
|
this.$message.success('产品添加成功', 2.5)
|
|
- this.$refs.partQuery.pageInit()
|
|
|
|
}
|
|
}
|
|
this.isInster = false
|
|
this.isInster = false
|
|
this.spinning = false
|
|
this.spinning = false
|