修改库内管理连续点击

This commit is contained in:
王帅 2025-05-29 13:45:05 +08:00
parent 86e90377a0
commit 5ac11a347a
5 changed files with 12 additions and 8 deletions

View File

@ -102,10 +102,10 @@
</div> </div>
</el-col> </el-col>
<el-col :span="2" class="transfer-switch"> <el-col :span="2" class="transfer-switch">
<el-button type="primary" @click="LeftIn" v-loading="loading3" <el-button type="primary" @click="LeftIn" v-loading.fullscreen.lock="loading3"
><el-icon> <ArrowRight /> </el-icon ><el-icon> <ArrowRight /> </el-icon
></el-button> ></el-button>
<el-button type="primary" @click="RightIn" v-loading="state.loading2" <el-button type="primary" @click="RightIn" v-loading.fullscreen.lock="state.loading2"
><el-icon> <ArrowLeft /> </el-icon ><el-icon> <ArrowLeft /> </el-icon
></el-button> ></el-button>
</el-col> </el-col>

View File

@ -91,10 +91,10 @@
</el-col> </el-col>
<el-col :span="1" class="transfer-switch"> <el-col :span="1" class="transfer-switch">
<el-button type="primary" @click="LeftIn" v-loading="loading"><el-icon> <el-button type="primary" @click="LeftIn" v-loading.fullscreen.lock="loading"><el-icon>
<ArrowRight /> <ArrowRight />
</el-icon></el-button> </el-icon></el-button>
<el-button type="primary" @click="RightIn" v-loading="loading2"><el-icon> <el-button 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>
@ -148,7 +148,7 @@
</el-col> </el-col>
<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 type="primary" @click="handleStockOut" :disabled="state.buttonOut_state" v-loading="state.buttonOut_loading">转换</el-button> <el-button type="primary" @click="handleStockOut" :disabled="state.buttonOut_state" v-loading.fullscreen.lock="state.buttonOut_loading">转换</el-button>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -105,7 +105,7 @@
</el-form> </el-form>
<div class="page-search-btns" style="margin-bottom: 10px;"> <div class="page-search-btns" style="margin-bottom: 10px;">
<el-button type="primary" @click="queryInfo">搜索</el-button> <el-button type="primary" @click="queryInfo">搜索</el-button>
<el-button type="primary" @click="handleReview">审核</el-button> <el-button type="primary" @click="handleReview" v-loading.fullscreen.lock="state.loadings">审核</el-button>
<!-- <el-button type="primary" @click="exportExcel">导出</el-button> --> <!-- <el-button type="primary" @click="exportExcel">导出</el-button> -->
</div> </div>
</el-row> </el-row>
@ -575,6 +575,7 @@ const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableH
commitDate: state.commitDate commitDate: state.commitDate
}) })
}) })
state.loadings = true;
checkMaterialPack(paramList) checkMaterialPack(paramList)
.then((res: any) => { .then((res: any) => {
if (res.success) { if (res.success) {
@ -583,6 +584,7 @@ const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableH
} else { } else {
proxy.$ElMessage.warning(res.message) proxy.$ElMessage.warning(res.message)
} }
state.loadings = false
}).catch(() => { }) }).catch(() => { })
} }

View File

@ -318,7 +318,7 @@
type="primary" type="primary"
@click="modifiedRemark" @click="modifiedRemark"
:disabled="state.CAREER_ASSISTANCEDrawer" :disabled="state.CAREER_ASSISTANCEDrawer"
v-loading="state.loadings" v-loading.fullscreen.lock="state.loadings"
>更新</el-button >更新</el-button
> >
</el-col> </el-col>

View File

@ -120,7 +120,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<el-button type="primary" @click="updateInfo" v-loading="state.loadings">更新</el-button> <el-button type="primary" @click="updateInfo" v-loading.fullscreen.lock="state.loadings">更新</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
@ -269,6 +269,7 @@ function updateInfo() {
if (!valid) { if (!valid) {
return return
} }
state.loadings = true;
updatePacking({ updatePacking({
...state.updateParams, ...state.updateParams,
dataList: state.selection, dataList: state.selection,
@ -282,6 +283,7 @@ function updateInfo() {
} else { } else {
proxy.$ElMessage.error(res.message) proxy.$ElMessage.error(res.message)
} }
state.loadings = false;
}) })
}); });
} }