update 更新包装托盘打印

This commit is contained in:
lb
2023-08-14 14:17:04 +08:00
parent 62f625197f
commit d1bc97f42a
3 changed files with 205 additions and 53 deletions

View File

@@ -62,7 +62,7 @@
" />
<Overlay v-if="overlayVisible" />
<PrintDom ref="print" v-if="printDOMmount" @destroy="printDOMmount = false" />
<PrintDom ref="print" v-if="printDOMmount" @destroy="printDOMmount = false" @refresh-list="getList" />
</div>
</template>
@@ -620,12 +620,16 @@ export default {
confirmButtonText: "确认",
cancelButtonText: "我再想想",
type: "warning",
}).then(() => {
this.printDOMmount = true;
this.$nextTick(() => {
this.$refs["print"].print(data);
})
.then(() => {
this.printDOMmount = true;
this.$nextTick(() => {
this.$refs["print"].print(data);
});
})
.catch((err) => {
// console.log("cancel ", err);
});
});
}
}
},