|
@@ -144,18 +144,13 @@ const handleBatchPrintQrCode = async () => {
|
|
const res1 = await printUpdate(selections.value.map(e => e.id))
|
|
const res1 = await printUpdate(selections.value.map(e => e.id))
|
|
if (res1.code == 200) {
|
|
if (res1.code == 200) {
|
|
handleRefreshStorageCode()
|
|
handleRefreshStorageCode()
|
|
- index = selections.value.findIndex(l=>l.isPrint == 1)
|
|
|
|
- console.log(index)
|
|
|
|
- if (index != -1) {
|
|
|
|
- proxy.$modal.msgError('不能重复打印存储码')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
printJS({
|
|
printJS({
|
|
printable: "image-group", // 这里是你要打印内容的DOM元素的id
|
|
printable: "image-group", // 这里是你要打印内容的DOM元素的id
|
|
type: "html",
|
|
type: "html",
|
|
style: "@page { size: auto; margin: 0mm; }", // 可以添加打印样式
|
|
style: "@page { size: auto; margin: 0mm; }", // 可以添加打印样式
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ selections.value = []
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|