|
@@ -306,7 +306,7 @@ export default {
|
|
data.list[i].no = no + i + 1
|
|
data.list[i].no = no + i + 1
|
|
data.list[i].qtyBackups = data.list[i].qty
|
|
data.list[i].qtyBackups = data.list[i].qty
|
|
data.list[i].costBackups = data.list[i].cost
|
|
data.list[i].costBackups = data.list[i].cost
|
|
- data.list[i].refundableQty = data.list[i].purchaseBillRefundableQty
|
|
|
|
|
|
+ data.list[i].refundableQty = data.list[i].purchaseBillRefundableQty + data.list[i].qty
|
|
}
|
|
}
|
|
this.dataSource = data.list
|
|
this.dataSource = data.list
|
|
return data
|
|
return data
|
|
@@ -387,7 +387,7 @@ 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.getDetail(true, true)
|
|
|
|
|
|
+ this.getDetail(true, !isEdit)
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
this.spinning = false
|
|
this.spinning = false
|
|
} else {
|
|
} else {
|
|
@@ -421,7 +421,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.getDetail(true, true)
|
|
|
|
|
|
+ _this.getDetail(true, false)
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
} else {
|
|
} else {
|
|
@@ -433,7 +433,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.getDetail(true, true)
|
|
|
|
|
|
+ _this.getDetail(true, false)
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.$refs.chooseTable.refresh()
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
} else {
|
|
} else {
|