|
|
|
@ -282,6 +282,9 @@ |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="" class="commonbutton" @click="btnDragColDesign">设计列排序</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '人员检验检查条码')" class="listBtn"> |
|
|
|
<el-button type="" class="commonbutton" @click="printPromise2()" style="font-size: 12px">人员+检查条码</el-button> |
|
|
|
</div> |
|
|
|
<!-- elProgress.display dialogWin.LocalConfig |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="" class="commonbutton" @click="dialogWin.LocalConfig = true">本地设置</el-button> |
|
|
|
@ -940,6 +943,23 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 临时加 |
|
|
|
printGuidePacs(row) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
this.guidePrintPromise("0008", false, row) |
|
|
|
.then((res) => { |
|
|
|
return this.pacsPrint(row, "0004", false); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
resolve(res); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
reject(err); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async printPromise() { |
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.info({ |
|
|
|
@ -967,6 +987,35 @@ export default { |
|
|
|
this.elProgress.display = false; |
|
|
|
}, |
|
|
|
|
|
|
|
// 临时加 |
|
|
|
async printPromise2() { |
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.info({ |
|
|
|
showClose: true, |
|
|
|
message: "请勾选要打印人员检验检查条码的记录!", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.display = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
let row = this.multipleSelection[i]; |
|
|
|
try { |
|
|
|
await this.printGuidePacs(row); |
|
|
|
} catch (error) { |
|
|
|
console.log("printPromise", error); |
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.percentage = Math.floor( |
|
|
|
((i + 1) * 100) / this.multipleSelection.length |
|
|
|
); |
|
|
|
} |
|
|
|
this.elProgress.display = false; |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleSelectionChange(rows) { |
|
|
|
//this.multipleSelection = rows; |
|
|
|
//// console.log('this.multipleSelection',this.multipleSelection) |
|
|
|
|