printWristbandFun(bed) { // this.printWristbandModule.dialogVisiblePrint = true // this.patientsCardModule.operateBed = bed; this.changePrinterConfig("emergencyBandPrinter") // 获得模板 // 获得数据 // this. let p1=new Promise((resolve,reject)=>{ this.getClientConfigActive(resolve) setTimeout(function () { resolve('aaa'); },3000); }) let p2=new Promise((resolve,reject)=>{ this.getClientConfigActive(resolve) // setTimeout(function () { // resolve('bbb'); // },3000); }) Promise.all([p1,p2]).then(async (val)=>{ await new Promise((resolve,reject)=>{ setTimeout(function () { resolve('bbb'); },3000); }) console.log(val) // 开始打印 // ewellBrowserLabel.printLabel(template,data) }) },