diff --git a/src/views/stockOut/PurReturn/index.vue b/src/views/stockOut/PurReturn/index.vue index cc15ddc..3e8ba33 100644 --- a/src/views/stockOut/PurReturn/index.vue +++ b/src/views/stockOut/PurReturn/index.vue @@ -514,6 +514,7 @@ function resetQuery() { async function handleStockOut() { + state.button_state = true if (state.MaterialPackingUsername.length > 0) { let param = { user: localStorage.get('userId'), diff --git a/src/views/stockOut/shipRequestByTC/index.vue b/src/views/stockOut/shipRequestByTC/index.vue index 8597ac1..f7370b9 100644 --- a/src/views/stockOut/shipRequestByTC/index.vue +++ b/src/views/stockOut/shipRequestByTC/index.vue @@ -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';