|
@@ -300,7 +300,9 @@ export default {
|
|
purchaseReturnDetailSave(params).then(res => {
|
|
purchaseReturnDetailSave(params).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
- // this.$refs.table.refresh()
|
|
|
|
|
|
+ if (isEdit) {
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
+ }
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
this.spinning = false
|
|
this.spinning = false
|
|
} else {
|
|
} else {
|
|
@@ -334,7 +336,7 @@ export default {
|
|
purchaseReturnDelAll({ purchaseReturnSn: _this.$route.params.sn }).then(res => {
|
|
purchaseReturnDelAll({ purchaseReturnSn: _this.$route.params.sn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
_this.$message.success(res.message)
|
|
_this.$message.success(res.message)
|
|
- // _this.$refs.table.refresh()
|
|
|
|
|
|
+ _this.$refs.table.refresh()
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
} else {
|
|
} else {
|
|
@@ -346,7 +348,7 @@ export default {
|
|
purchaseReturnDetailDel({ id: row.id }).then(res => {
|
|
purchaseReturnDetailDel({ id: row.id }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
_this.$message.success(res.message)
|
|
_this.$message.success(res.message)
|
|
- // _this.$refs.table.refresh()
|
|
|
|
|
|
+ _this.$refs.table.refresh()
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
} else {
|
|
} else {
|