|
@@ -387,7 +387,7 @@ export default {
|
|
|
purchaseReturnDetailSave(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success(res.message)
|
|
|
- this.getDetail(!isEdit)
|
|
|
+ this.getDetail(true, true)
|
|
|
this.$refs.chooseTable.refresh()
|
|
|
this.spinning = false
|
|
|
} else {
|
|
@@ -421,7 +421,7 @@ export default {
|
|
|
purchaseReturnDelAll({ purchaseReturnSn: _this.$route.params.sn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- _this.getDetail(false)
|
|
|
+ _this.getDetail(true, true)
|
|
|
_this.$refs.chooseTable.refresh()
|
|
|
_this.spinning = false
|
|
|
} else {
|
|
@@ -433,7 +433,7 @@ export default {
|
|
|
purchaseReturnDetailDel({ id: row.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- _this.getDetail(false)
|
|
|
+ _this.getDetail(true, true)
|
|
|
_this.$refs.chooseTable.refresh()
|
|
|
_this.spinning = false
|
|
|
} else {
|
|
@@ -493,19 +493,21 @@ export default {
|
|
|
)
|
|
|
},
|
|
|
// 获取详情
|
|
|
- getDetail (type) {
|
|
|
+ getDetail (type, refresh) {
|
|
|
purchaseReturnDetailSn({ sn: this.$route.params.sn }).then(res => {
|
|
|
this.detailData = res.data || null
|
|
|
if (!type) {
|
|
|
this.resetSearchForm()
|
|
|
} else {
|
|
|
- // this.$refs.table.refresh(true)
|
|
|
+ if (!refresh) {
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
pageInit () {
|
|
|
this.getWarehouse()
|
|
|
- this.getDetail(true)
|
|
|
+ this.getDetail(true, true)
|
|
|
this.$refs.chooseTable.refresh(true)
|
|
|
}
|
|
|
},
|