const p1=new Promise((resolve,reject)=>{
_this.$refs['contract1'].rules = this.commitRules;
_this.$refs['contract1'].validate(valid=>{
if(valid) resolve()
})
})
const p2=new Promise((resolve,reject)=>{
_this.$refs['contract2'].rules = this.commitRules;
_this.$refs['contract2'].validate(valid=>{
if(valid) resolve()
})
}Promise.all([p1,p2]).then(()=>{