|
@@ -284,7 +284,8 @@ export default {
|
|
|
}).then(res => {
|
|
|
this.resetSearchForm(true)
|
|
|
if (res.status == 200) {
|
|
|
- this.$refs.partQuery.resetCurForm()
|
|
|
+ // this.$refs.partQuery.resetCurForm()
|
|
|
+ this.$refs.partQuery.pageInit()
|
|
|
this.$message.info(res.message)
|
|
|
}
|
|
|
this.spinning = false
|
|
@@ -303,6 +304,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
this.resetSearchForm(true)
|
|
|
if (res.status == 200) {
|
|
|
+ this.$refs.partQuery.pageInit()
|
|
|
this.$message.info(res.message)
|
|
|
this.spinning = false
|
|
|
} else {
|
|
@@ -411,7 +413,8 @@ export default {
|
|
|
id: this.detailData.id
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.resetSearchForm()
|
|
|
+ this.resetSearchForm(true)
|
|
|
+ this.$refs.partQuery.pageInit()
|
|
|
this.spinning = false
|
|
|
} else {
|
|
|
this.spinning = false
|
|
@@ -431,7 +434,8 @@ export default {
|
|
|
_this.spinning = true
|
|
|
salesDetailDelAll({ salesBillSn: _this.detailData.salesBillSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetSearchForm()
|
|
|
+ _this.resetSearchForm(true)
|
|
|
+ _this.$refs.partQuery.pageInit()
|
|
|
}
|
|
|
_this.$message.info(res.message)
|
|
|
_this.delLoading = false
|
|
@@ -454,6 +458,7 @@ export default {
|
|
|
salesDetailDel({ id: row.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.resetSearchForm(true)
|
|
|
+ _this.$refs.partQuery.pageInit()
|
|
|
}
|
|
|
_this.$message.info(res.message)
|
|
|
_this.delLoading = false
|
|
@@ -521,9 +526,10 @@ export default {
|
|
|
stockSn: row.stockSn
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.resetSearchForm()
|
|
|
- this.$refs.partQuery.resetCurForm()
|
|
|
+ this.resetSearchForm(true)
|
|
|
+ // this.$refs.partQuery.resetCurForm()
|
|
|
this.$message.success('产品添加成功', 2.5)
|
|
|
+ this.$refs.partQuery.pageInit()
|
|
|
}
|
|
|
this.isInster = false
|
|
|
this.spinning = false
|