Commit 859c5346 by wangzhihui

```

fix(transferShipment): 修复驳回功能中的代码错误和优化逻辑

- 修正了rejectDialog.vue中if语句的缩进问题
- 在API调用成功后才执行关闭操作和显示成功提示
- 移除了条件判断确保表格在对话框关闭时始终刷新
- 统一了消息提示方式,使用$message.success替代notice.okTips
```
1 parent 9dfd9476
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
computed: { computed: {
dialogVisible: { dialogVisible: {
get() { get() {
if (this.rejectVisible) { if (this.rejectVisible) {
this.getInfoDetail() this.getInfoDetail()
} }
return this.rejectVisible return this.rejectVisible
...@@ -254,8 +254,10 @@ export default { ...@@ -254,8 +254,10 @@ export default {
this.$apis.stockManage this.$apis.stockManage
.deliveryReject({ allocateCode: this.rejectData.allocateCode, rejectNode: this.formData.rejectNode, rejectCause: this.formData.rejectCause }) .deliveryReject({ allocateCode: this.rejectData.allocateCode, rejectNode: this.formData.rejectNode, rejectCause: this.formData.rejectCause })
.then(res => { .then(res => {
this.handleClose(true) if (res) {
this.notice.okTips('驳回成功') this.handleClose(true)
this.$message.success('驳回成功')
}
}) })
.catch(() => { .catch(() => {
this.handleClose() this.handleClose()
......
...@@ -377,7 +377,7 @@ export default { ...@@ -377,7 +377,7 @@ export default {
}, },
shipmentDialogClose(obj) { shipmentDialogClose(obj) {
this.shipmentVisible = false this.shipmentVisible = false
if (obj) this.$refs.transferShipmentTable.refreshTable(true) this.$refs.transferShipmentTable.refreshTable(true)
}, },
// 查看详情 // 查看详情
handleDetail(row) { handleDetail(row) {
...@@ -408,7 +408,7 @@ export default { ...@@ -408,7 +408,7 @@ export default {
}, },
handleRejectClose(obj) { handleRejectClose(obj) {
this.rejectVisible = false this.rejectVisible = false
if (obj) this.$refs.transferShipmentTable.refreshTable(true) this.$refs.transferShipmentTable.refreshTable(true)
}, },
// 查看详情弹窗关闭 // 查看详情弹窗关闭
handleTransferDetailClose() { handleTransferDetailClose() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!