Commit 859c5346 by wangzhihui

```

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

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