修改出库管理连续点击

This commit is contained in:
王帅 2025-05-29 13:55:35 +08:00
parent 5ac11a347a
commit a2a83269f6
2 changed files with 6 additions and 5 deletions

View File

@ -514,6 +514,7 @@ function resetQuery() {
async function handleStockOut() {
state.button_state = true
if (state.MaterialPackingUsername.length > 0) {
let param = {
user: localStorage.get('userId'),

View File

@ -853,26 +853,26 @@ async function RightIn() {
materialSpecName: state.queryParams.params.MATERIALSPECNAME,
};
state.loading = true;
state.loading2 = true;
DeAssignShipRequest(params).then((res: any) => {
if (res.success) {
handleQuery();
state.loading = false;
state.loading2 = false;
}
else {
ElMessageBox.alert('操作失败:' + res.message, '提醒框', {
confirmButtonText: 'OK',
})
state.loading = false;
state.loading2 = false;
}
}).catch((err: any) => {
ElMessageBox.alert('操作失败:' + err.response.data.message, '提醒框', {
confirmButtonText: 'OK',
})
state.loading = false;
state.loading2 = false;
})
}
else {
@ -882,7 +882,7 @@ async function RightIn() {
confirmButtonText: 'OK',
})
}
state.loading = false;
state.loading2 = false;
// if (state.column3.length > 0) {
// state.loading2 = true;
// state.ChangeParams.header.MESSAGENAME = 'DeassignShipRequestFromBox';