修改按钮连续提交

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-col>
<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-row>
</div>
@ -125,6 +125,7 @@ const state = reactive({
ERPFactoryList: [] as any, //
costCenterList: [] as any, //
costName: '',
loadings: false,
queryParams: {
SHIPREQUESTNAME: '',
CHECKPLANNAME: '',
@ -194,8 +195,9 @@ function audit() {
costName: state.costName,
user : localStorage.get('userName')
}
state.loadings = true;
Auditcheckmark(query).then((res : any) => {
state.loadings = false;
if (res.success) {
ElMessageBox.alert('审核过账成功', '提醒框', {
confirmButtonText: 'OK',

View File

@ -93,7 +93,7 @@
</el-form-item>
</el-col>
<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-row>
</el-form>