fix(wms): 移除重新提交按钮并更新二次调整逻辑
移除批次调拨页面中的重新提交按钮,改为使用updateTransferOrder API更新调拨单状态
This commit is contained in:
@@ -149,14 +149,14 @@
|
|||||||
v-if="scope.row.approveStatus == '1'"
|
v-if="scope.row.approveStatus == '1'"
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
>撤回</el-button>
|
>撤回</el-button>
|
||||||
<el-button
|
<!-- <el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
plain
|
plain
|
||||||
@click="handleReSubmit(scope.row)"
|
@click="handleReSubmit(scope.row)"
|
||||||
v-if="scope.row.approveStatus == '3' || scope.row.approveStatus == '2'"
|
v-if="scope.row.approveStatus == '3' || scope.row.approveStatus == '2'"
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
>重新提交</el-button>
|
>二次调整</el-button> -->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -418,18 +418,15 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
// 这里需要调用重新提交的API
|
// 这里需要调用重新提交的API
|
||||||
// 假设API为reSubmitapprove
|
// 假设API为reSubmitapprove
|
||||||
// reSubmitapprove(row.orderId).then(response => {
|
updateTransferOrder({
|
||||||
// this.$modal.msgSuccess('重新提交成功');
|
...row,
|
||||||
// this.getList();
|
approveStatus: '0',
|
||||||
// }).finally(() => {
|
}).then(response => {
|
||||||
// this.loading = false;
|
|
||||||
// });
|
|
||||||
// 模拟API调用
|
|
||||||
setTimeout(() => {
|
|
||||||
this.loading = false;
|
|
||||||
this.$modal.msgSuccess('重新提交成功');
|
this.$modal.msgSuccess('重新提交成功');
|
||||||
this.getList();
|
this.getList();
|
||||||
}, 1000);
|
}).finally(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 刷新调拨单明细列表 */
|
/** 刷新调拨单明细列表 */
|
||||||
|
|||||||
Reference in New Issue
Block a user