|
|
@@ -200,7 +200,7 @@
|
|
|
</el-form>
|
|
|
<span style="float: right;margin-top:-10px;">
|
|
|
<el-button size="small" @click="addshow = false">取 消</el-button>
|
|
|
- <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="addAnnualAudit()" :loading="addLoading">确 定</el-button>
|
|
|
</span>
|
|
|
<br>
|
|
|
</el-dialog>
|
|
|
@@ -453,6 +453,7 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
this.entityForm.SupplierName = obj.Realname
|
|
|
},
|
|
|
addAnnualAudit () {
|
|
|
+ this.addLoading = true
|
|
|
this.$refs['EntityFormref'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.entityForm.auditer = this.auditer
|
|
|
@@ -481,9 +482,13 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
message: res.data.message
|
|
|
})
|
|
|
}
|
|
|
+ this.addLoading = false
|
|
|
}).catch(err => {
|
|
|
+ this.addLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.addLoading = false
|
|
|
}
|
|
|
})
|
|
|
},
|