This commit is contained in:
郭飞 2025-06-04 08:48:19 +08:00
commit 8545d50326
12 changed files with 38 additions and 64 deletions

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">
@ -106,7 +106,7 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="page-search-btns"> <div class="page-search-btns">
<el-button type="primary" @click="confimStockOut" :disabled="state.button_state">出库</el-button> <el-button type="primary" @click="confimStockOut" :disabled="state.button_state" v-loading.fullscreen.lock="state.button_state">出库</el-button>
</div> </div>
</el-row> </el-row>
</div> </div>
@ -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");
@ -626,21 +621,17 @@ function confimStockOut() {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} else { } else {
/*state.button_state = false;
state.loading = false;*/
ElMessageBox.alert('辅材出库失败,' + res.message, '', { ElMessageBox.alert('辅材出库失败,' + res.message, '', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} }
state.button_state = 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;
}); });
state.button_state = false;
state.loading = false;
} }
</script> </script>

View File

@ -179,7 +179,7 @@
type="primary" type="primary"
@click="submit" @click="submit"
:disabled="state.button_state" :disabled="state.button_state"
v-loading="state.loadings" v-loading.fullscreen.lock="state.loadings"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -608,8 +608,8 @@ function submit() {
state.button_state = false state.button_state = false
state.loadings = false state.loadings = false
} }
state.button_state = false // state.button_state = false
state.loadings = false // state.loadings = false
} catch (error) { } catch (error) {
ElMessageBox.alert('运行错误', '提醒框', { ElMessageBox.alert('运行错误', '提醒框', {
confirmButtonText: 'OK' confirmButtonText: 'OK'
@ -617,9 +617,9 @@ function submit() {
state.button_state = false state.button_state = false
state.loadings = false state.loadings = false
} finally { } finally {
state.loading = false // state.loading = false
state.button_state = false // state.button_state = false
state.loadings = false // state.loadings = false
} }
} }
</script> </script>

View File

@ -187,7 +187,7 @@
<el-col :span="2"> <el-col :span="2">
<div class="page-search-btns" style="float: right"> <div class="page-search-btns" style="float: right">
<el-button <el-button
v-loading="state.loading2" v-loading.fullscreen.lock="state.loading2"
type="primary" type="primary"
@click="submit" @click="submit"
:disabled="state.Button_state" :disabled="state.Button_state"

View File

@ -105,7 +105,7 @@
</el-row> </el-row>
</el-form> </el-form>
<div class="page-search-btns"> <div class="page-search-btns">
<el-button type="primary" v-loading="state.loading2" @click="submit" :disabled="state.button_state">提交</el-button> <el-button type="primary" v-loading.fullscreen.lock="state.loading2" @click="submit" :disabled="state.button_state">提交</el-button>
</div> </div>
</el-row> </el-row>
</div> </div>
@ -496,8 +496,6 @@ function submit() {
state.button_state = false state.button_state = false
state.loading2 = false state.loading2 = false
} }
state.loading2 = false
state.button_state = false
} }
// //
const handQuery = () => { const handQuery = () => {

View File

@ -71,11 +71,11 @@
</div> </div>
</el-col> </el-col>
<el-col :span="2" class="transfer-switch"> <el-col :span="2" class="transfer-switch">
<el-button :disabled="loading" type="primary" @click="LeftIn"><el-icon> <el-button :disabled="loading" type="primary" @click="LeftIn" v-loading.fullscreen.lock="loading"><el-icon>
<ArrowRight /> <ArrowRight />
</el-icon></el-button> </el-icon></el-button>
<!-- v-loading="loading2" --> <!-- v-loading="loading2" -->
<el-button :disabled="loading2" type="primary" @click="RightIn"><el-icon> <el-button :disabled="loading2" type="primary" @click="RightIn" v-loading.fullscreen.lock="loading2"><el-icon>
<ArrowLeft /> <ArrowLeft />
</el-icon></el-button> </el-icon></el-button>
</el-col> </el-col>
@ -435,6 +435,7 @@ async function LeftIn() {
}; };
AssignAndDessign(param).then((res: any) => { AssignAndDessign(param).then((res: any) => {
if (IFTRUE(res)) { if (IFTRUE(res)) {
state.MaterialPackingList = []
handle(tempRow, tempevent, tempcolumn); handle(tempRow, tempevent, tempcolumn);
handleQuery(); handleQuery();
state.loading = false; state.loading = false;
@ -442,7 +443,7 @@ async function LeftIn() {
ElMessageBox.alert(res.data.RETURNCODE + '->' + res.data.RETURNMESSAGE, '', { ElMessageBox.alert(res.data.RETURNCODE + '->' + res.data.RETURNMESSAGE, '', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
state.loading2 = false; state.loading = false;
} }
@ -459,7 +460,7 @@ async function LeftIn() {
}) })
} }
state.loading = false; // state.loading = false;
} }
@ -483,6 +484,7 @@ async function RightIn() {
}; };
AssignAndDessign(param).then((res: any) => { AssignAndDessign(param).then((res: any) => {
if (IFTRUE(res)) { if (IFTRUE(res)) {
state.MaterialPackingUsername = []
handle(tempRow, tempevent, tempcolumn); handle(tempRow, tempevent, tempcolumn);
handleQuery(); handleQuery();
state.loading2 = false; state.loading2 = false;
@ -529,8 +531,6 @@ async function handleStockOut() {
// handleQuery(); // handleQuery();
console.log(res) console.log(res)
if (IFTRUE(res)) { if (IFTRUE(res)) {
state.loading = false;
state.loading2 = false;
ElMessageBox.alert('出库完成', '提示框', { ElMessageBox.alert('出库完成', '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
@ -549,15 +549,9 @@ async function handleStockOut() {
ElMessageBox.alert(error, '提示框', { ElMessageBox.alert(error, '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
state.loading = false
state.loading2 = false;
state.button_state = false state.button_state = false
state.button_loadings = false; state.button_loadings = false;
}); });
state.loading = false;
state.loading2 = false;
state.button_state = false
state.button_loadings = false;
} else { } else {
ElMessageBox.alert("请先选择要采购退货的标签", '提示框', { ElMessageBox.alert("请先选择要采购退货的标签", '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
@ -565,8 +559,6 @@ async function handleStockOut() {
state.button_state = false state.button_state = false
state.button_loadings = false; state.button_loadings = false;
} }
state.button_state = false
state.button_loadings = false;
} }

View File

@ -634,7 +634,7 @@ async function LeftIn() {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} }
state.loading = false; // state.loading = false;
// if (state.MaterialPackingList.length > 0 && state.column4.length > 0) { // if (state.MaterialPackingList.length > 0 && state.column4.length > 0) {
// state.loading = true; // state.loading = true;
@ -882,7 +882,7 @@ async function RightIn() {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} }
state.loading2 = 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';

View File

@ -188,7 +188,7 @@
type="primary" type="primary"
@click="handleReserve" @click="handleReserve"
:disabled="state.Button_state" :disabled="state.Button_state"
v-loading="state.button_loading" v-loading.fullscreen.lock="state.button_loading"
>确定</el-button >确定</el-button
> >
</div> </div>
@ -500,8 +500,6 @@ async function handleReserve() {
state.button_loading = false state.button_loading = false
} }
state.loading = false state.loading = false
state.Button_state = false
state.button_loading = false
} }
function handleSelectionChange(selection: any) { function handleSelectionChange(selection: any) {
@ -596,7 +594,6 @@ async function LeftIn() {
}) })
} }
state.loading3 = false
} }
async function RightIn() { async function RightIn() {

View File

@ -585,29 +585,28 @@ async function RightIn() {
materialSpecName: state.queryParams.params.MATERIALSPECNAME, materialSpecName: state.queryParams.params.MATERIALSPECNAME,
opType: 'Dessign', opType: 'Dessign',
}; };
state.loading = true; state.loading2 = true;
AssignOrDessignShipRequest(params).then((res: any) => { AssignOrDessignShipRequest(params).then((res: any) => {
if (res.code == 200) { if (res.code == 200) {
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 {
ElMessageBox.alert('勾选的数据不能为空!', '提示框', { ElMessageBox.alert('勾选的数据不能为空!', '提示框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',
}) })
} }
state.loading = false;
} }
function handleStockOut() { function handleStockOut() {

View File

@ -273,7 +273,7 @@
<el-col :span="2"> <el-col :span="2">
<div class="page-search-btns" style="float: right"> <div class="page-search-btns" style="float: right">
<el-button <el-button
v-loading="state.loading2" v-loading.fullscreen.lock="state.loading2"
type="primary" type="primary"
@click="submit" @click="submit"
:disabled="state.Button_state" :disabled="state.Button_state"

View File

@ -273,7 +273,7 @@
<el-col :span="2"> <el-col :span="2">
<div class="page-search-btns" style="float: right"> <div class="page-search-btns" style="float: right">
<el-button <el-button
v-loading="state.loading2" v-loading.fullscreen.lock="state.loading2"
type="primary" type="primary"
@click="submit" @click="submit"
:disabled="state.Button_state" :disabled="state.Button_state"

View File

@ -85,9 +85,9 @@
</el-row> </el-row>
</el-form> </el-form>
<div class="page-search-btns"> <div class="page-search-btns">
<el-button type="primary" v-loading="state.loading2" @click="Hold()" <el-button type="primary" v-loading.fullscreen.lock="state.loading2" @click="Hold()"
:disabled="state.Button_state">冻结</el-button> :disabled="state.Button_state">冻结</el-button>
<el-button type="primary" v-loading="state.loading3" @click="Release()" <el-button type="primary" v-loading.fullscreen.lock="state.loading3" @click="Release()"
:disabled="state.Button_state2">释放</el-button> :disabled="state.Button_state2">释放</el-button>
</div> </div>
</el-row> </el-row>
@ -389,8 +389,6 @@ function Release() {
state.Button_state2 = false state.Button_state2 = false
state.loading3 = false state.loading3 = false
}); });
state.loading3 = false
state.Button_state2 = false
} }
function resetQuery() { function resetQuery() {
queryFormRef.value.resetFields(); queryFormRef.value.resetFields();

View File

@ -244,7 +244,7 @@
<div class="page-search-btns"> <div class="page-search-btns">
<el-button <el-button
type="primary" type="primary"
v-loading="state.loading2" v-loading.fullscreen.lock="state.loading2"
@click="submit" @click="submit"
:disabled="state.Button_state" :disabled="state.Button_state"
>提交</el-button >提交</el-button
@ -716,7 +716,6 @@ async function submit() {
confirmButtonText: 'OK' confirmButtonText: 'OK'
}) })
} }
state.loading2 = false
state.Button_state = false state.Button_state = false
} }
/* /*