修改出库管理连续点击
This commit is contained in:
parent
5ac11a347a
commit
a2a83269f6
@ -514,6 +514,7 @@ function resetQuery() {
|
|||||||
|
|
||||||
|
|
||||||
async function handleStockOut() {
|
async function handleStockOut() {
|
||||||
|
state.button_state = true
|
||||||
if (state.MaterialPackingUsername.length > 0) {
|
if (state.MaterialPackingUsername.length > 0) {
|
||||||
let param = {
|
let param = {
|
||||||
user: localStorage.get('userId'),
|
user: localStorage.get('userId'),
|
||||||
|
@ -853,26 +853,26 @@ async function RightIn() {
|
|||||||
materialSpecName: state.queryParams.params.MATERIALSPECNAME,
|
materialSpecName: state.queryParams.params.MATERIALSPECNAME,
|
||||||
|
|
||||||
};
|
};
|
||||||
state.loading = true;
|
state.loading2 = true;
|
||||||
DeAssignShipRequest(params).then((res: any) => {
|
DeAssignShipRequest(params).then((res: any) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|
||||||
handleQuery();
|
handleQuery();
|
||||||
state.loading = false;
|
state.loading2 = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
ElMessageBox.alert('操作失败:' + res.message, '提醒框', {
|
ElMessageBox.alert('操作失败:' + res.message, '提醒框', {
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
state.loading = false;
|
state.loading2 = false;
|
||||||
}
|
}
|
||||||
}).catch((err: any) => {
|
}).catch((err: any) => {
|
||||||
|
|
||||||
ElMessageBox.alert('操作失败:' + err.response.data.message, '提醒框', {
|
ElMessageBox.alert('操作失败:' + err.response.data.message, '提醒框', {
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
state.loading = false;
|
state.loading2 = false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -882,7 +882,7 @@ async function RightIn() {
|
|||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
state.loading = false;
|
state.loading2 = false;
|
||||||
// if (state.column3.length > 0) {
|
// if (state.column3.length > 0) {
|
||||||
// state.loading2 = true;
|
// state.loading2 = true;
|
||||||
// state.ChangeParams.header.MESSAGENAME = 'DeassignShipRequestFromBox';
|
// state.ChangeParams.header.MESSAGENAME = 'DeassignShipRequestFromBox';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user