辅材出库

This commit is contained in:
王帅 2025-05-30 14:12:26 +08:00
parent 5827be1c27
commit d8d1b001a4

View File

@ -71,8 +71,8 @@
<div class="page-table-operate"> <div class="page-table-operate">
<div class="page-table-title"></div> <div class="page-table-title"></div>
<div> <div>
<el-button type="primary" :disabled="state.button_state" @click="cancelHandleFn">取消备货</el-button> <el-button type="primary" :disabled="state.button_stateFn" @click="cancelHandleFn" v-loading.fullscreen.lock="state.button_stateFn">取消备货</el-button>
<el-button type="primary" :disabled="state.button_state" @click="confimStockUp">确认备货</el-button> <el-button type="primary" :disabled="state.button_stateUp" @click="confimStockUp" v-loading.fullscreen.lock="state.button_stateUp">确认备货</el-button>
</div> </div>
</div> </div>
<div class="vue-element-page-table"> <div class="vue-element-page-table">
@ -144,6 +144,8 @@ const state: any = reactive({
LShipType: '', LShipType: '',
button_state: false, button_state: false,
button_state2: false, button_state2: false,
button_stateFn: false,
button_stateUp: false,
STOCKSELECT: [], STOCKSELECT: [],
AleardyBooking: false, AleardyBooking: false,
IFCompleteStockUp: false,// IFCompleteStockUp: false,//
@ -463,8 +465,7 @@ function confimStockUp () {
ElMessageBox.alert('没有单据明细,请确认') ElMessageBox.alert('没有单据明细,请确认')
return return
} }
state.loading = true state.button_stateUp = true
state.button_state = true
AuxiliaryReserve({ AuxiliaryReserve({
commitDate : state.commitDate, commitDate : state.commitDate,
USER : localStorage.get("userId"), USER : localStorage.get("userId"),
@ -482,15 +483,13 @@ function confimStockUp () {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} }
state.button_stateUp = false
}).catch((error: any) => { }).catch((error: any) => {
ElMessageBox.alert('备货失败,' + error, '提示框', { ElMessageBox.alert('备货失败,' + error, '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
state.button_state = false; state.button_stateUp = false;
state.loading = false;
}); });
state.button_state = false;
state.loading = false;
} }
@ -502,8 +501,7 @@ function cancelHandleFn() {
ElMessageBox.alert('没有单据明细,请确认') ElMessageBox.alert('没有单据明细,请确认')
return return
} }
state.loading = true state.button_stateFn = true
state.button_state = true
AuxiliaryDessign({ AuxiliaryDessign({
commitDate : state.commitDate, commitDate : state.commitDate,
USER : localStorage.get("userId"), USER : localStorage.get("userId"),
@ -522,15 +520,13 @@ function cancelHandleFn() {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} }
state.button_stateFn = false
}).catch((error: any) => { }).catch((error: any) => {
ElMessageBox.alert('取消备货失败,' + error, '提示框', { ElMessageBox.alert('取消备货失败,' + error, '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
state.button_state = false; state.button_stateFn = false;
state.loading = false;
}); });
state.button_state = false;
state.loading = false;
} }
function resetQuery() { function resetQuery() {
@ -601,7 +597,6 @@ function confimStockOut() {
ElMessageBox.alert('辅材出库失败,没有出库明细,请确认') ElMessageBox.alert('辅材出库失败,没有出库明细,请确认')
return return
} }
state.loading = true
state.button_state = true state.button_state = true
/* /*
state.ReserveParams.SITENAME = localStorage.getItem("siteName") == null ? "SDK" : localStorage.getItem("siteName"); state.ReserveParams.SITENAME = localStorage.getItem("siteName") == null ? "SDK" : localStorage.getItem("siteName");
@ -631,13 +626,11 @@ function confimStockOut() {
}) })
} }
state.button_state = false; state.button_state = false;
state.loading = false;
}).catch((error: any) => { }).catch((error: any) => {
ElMessageBox.alert('辅材出库失败,' + error, '提示框', { ElMessageBox.alert('辅材出库失败,' + error, '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
state.button_state = false; state.button_state = false;
state.loading = false;
}); });
} }
</script> </script>