fix(wms): 移除重新提交按钮并更新二次调整逻辑

移除批次调拨页面中的重新提交按钮,改为使用updateTransferOrder API更新调拨单状态
This commit is contained in:
砂糖
2026-04-10 11:43:47 +08:00
parent 9b52621df1
commit ec0fa3966a

View File

@@ -149,14 +149,14 @@
v-if="scope.row.approveStatus == '1'"
icon="el-icon-refresh"
>撤回</el-button>
<el-button
<!-- <el-button
size="mini"
type="text"
plain
@click="handleReSubmit(scope.row)"
v-if="scope.row.approveStatus == '3' || scope.row.approveStatus == '2'"
icon="el-icon-refresh"
>重新提交</el-button>
>二次调整</el-button> -->
<el-button
size="mini"
type="text"
@@ -418,18 +418,15 @@ export default {
this.loading = true;
// 这里需要调用重新提交的API
// 假设API为reSubmitapprove
// reSubmitapprove(row.orderId).then(response => {
// this.$modal.msgSuccess('重新提交成功');
// this.getList();
// }).finally(() => {
// this.loading = false;
// });
// 模拟API调用
setTimeout(() => {
this.loading = false;
updateTransferOrder({
...row,
approveStatus: '0',
}).then(response => {
this.$modal.msgSuccess('重新提交成功');
this.getList();
}, 1000);
}).finally(() => {
this.loading = false;
});
});
},
/** 刷新调拨单明细列表 */