guoyujia 1 сар өмнө
parent
commit
868048fd30

+ 1 - 6
src/views/business/storageCode/index.vue

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