修改按钮连续提交

This commit is contained in:
王帅 2025-05-29 13:29:16 +08:00
parent 17bbd019dc
commit 86e90377a0
2 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<el-button type="primary" @click="audit">审核</el-button> <el-button type="primary" @click="audit" v-loading.fullscreen.lock="state.loadings">审核</el-button>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -125,6 +125,7 @@ const state = reactive({
ERPFactoryList: [] as any, // ERPFactoryList: [] as any, //
costCenterList: [] as any, // costCenterList: [] as any, //
costName: '', costName: '',
loadings: false,
queryParams: { queryParams: {
SHIPREQUESTNAME: '', SHIPREQUESTNAME: '',
CHECKPLANNAME: '', CHECKPLANNAME: '',
@ -194,8 +195,9 @@ function audit() {
costName: state.costName, costName: state.costName,
user : localStorage.get('userName') user : localStorage.get('userName')
} }
state.loadings = true;
Auditcheckmark(query).then((res : any) => { Auditcheckmark(query).then((res : any) => {
state.loadings = false;
if (res.success) { if (res.success) {
ElMessageBox.alert('审核过账成功', '提醒框', { ElMessageBox.alert('审核过账成功', '提醒框', {
confirmButtonText: 'OK', confirmButtonText: 'OK',

View File

@ -93,7 +93,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<el-button type="primary" @click="submit" v-loading="state.loadings">提交</el-button> <el-button type="primary" @click="submit" v-loading.fullscreen.lock="state.loadings">提交</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>