|
@@ -373,7 +373,9 @@ export default {
|
|
|
purchaseReturnDetailSave(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success(res.message)
|
|
|
- // this.$refs.table.refresh()
|
|
|
+ if (isEdit) {
|
|
|
+ this.$refs.table.refresh()
|
|
|
+ }
|
|
|
this.$refs.chooseTable.refresh()
|
|
|
this.spinning = false
|
|
|
} else {
|
|
@@ -407,7 +409,7 @@ export default {
|
|
|
purchaseReturnDelAll({ purchaseReturnSn: _this.$route.params.sn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- // _this.$refs.table.refresh()
|
|
|
+ _this.getDetail(false)
|
|
|
_this.$refs.chooseTable.refresh()
|
|
|
_this.spinning = false
|
|
|
} else {
|
|
@@ -419,8 +421,8 @@ export default {
|
|
|
purchaseReturnDetailDel({ id: row.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
+ _this.$refs.table.refresh()
|
|
|
_this.$refs.chooseTable.refresh()
|
|
|
- _this.getDetail(true)
|
|
|
_this.spinning = false
|
|
|
} else {
|
|
|
_this.spinning = false
|