From d8d1b001a4ab1bdeb40505f4a20081642a9f0f88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=B8=85?= <3115919733@qq.com>
Date: Fri, 30 May 2025 14:12:26 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BE=85=E6=9D=90=E5=87=BA=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../auxiliaryManage/auxiliaryOut/index.vue | 27 +++++++------------
1 file changed, 10 insertions(+), 17 deletions(-)
diff --git a/src/views/auxiliaryManage/auxiliaryOut/index.vue b/src/views/auxiliaryManage/auxiliaryOut/index.vue
index 31286f7..bb852f8 100644
--- a/src/views/auxiliaryManage/auxiliaryOut/index.vue
+++ b/src/views/auxiliaryManage/auxiliaryOut/index.vue
@@ -71,8 +71,8 @@
- 取消备货
- 确认备货
+ 取消备货
+ 确认备货
@@ -144,6 +144,8 @@ const state: any = reactive({
LShipType: '',
button_state: false,
button_state2: false,
+ button_stateFn: false,
+ button_stateUp: false,
STOCKSELECT: [],
AleardyBooking: false,
IFCompleteStockUp: false,//用于判断是否完成备货
@@ -463,8 +465,7 @@ function confimStockUp () {
ElMessageBox.alert('没有单据明细,请确认')
return
}
- state.loading = true
- state.button_state = true
+ state.button_stateUp = true
AuxiliaryReserve({
commitDate : state.commitDate,
USER : localStorage.get("userId"),
@@ -482,15 +483,13 @@ function confimStockUp () {
confirmButtonText: 'OK',
})
}
+ state.button_stateUp = false
}).catch((error: any) => {
ElMessageBox.alert('备货失败,' + error, '提示框', {
confirmButtonText: 'OK',
})
- state.button_state = false;
- state.loading = false;
+ state.button_stateUp = false;
});
- state.button_state = false;
- state.loading = false;
}
@@ -502,8 +501,7 @@ function cancelHandleFn() {
ElMessageBox.alert('没有单据明细,请确认')
return
}
- state.loading = true
- state.button_state = true
+ state.button_stateFn = true
AuxiliaryDessign({
commitDate : state.commitDate,
USER : localStorage.get("userId"),
@@ -522,15 +520,13 @@ function cancelHandleFn() {
confirmButtonText: 'OK',
})
}
+ state.button_stateFn = false
}).catch((error: any) => {
ElMessageBox.alert('取消备货失败,' + error, '提示框', {
confirmButtonText: 'OK',
})
- state.button_state = false;
- state.loading = false;
+ state.button_stateFn = false;
});
- state.button_state = false;
- state.loading = false;
}
function resetQuery() {
@@ -601,7 +597,6 @@ function confimStockOut() {
ElMessageBox.alert('辅材出库失败,没有出库明细,请确认')
return
}
- state.loading = true
state.button_state = true
/*
state.ReserveParams.SITENAME = localStorage.getItem("siteName") == null ? "SDK" : localStorage.getItem("siteName");
@@ -631,13 +626,11 @@ function confimStockOut() {
})
}
state.button_state = false;
- state.loading = false;
}).catch((error: any) => {
ElMessageBox.alert('辅材出库失败,' + error, '提示框', {
confirmButtonText: 'OK',
})
state.button_state = false;
- state.loading = false;
});
}