This commit is contained in:
jhd
2026-07-07 09:42:36 +08:00
118 changed files with 6616 additions and 178 deletions

View File

@@ -334,16 +334,13 @@ export default {
/** 打印标签 */
handlePrintLabel(row) {
this.labelRender.data = row;
this.labelRender.type = getCoilTagPrintType(row);
this.labelRender.data = {
...row,
updateTime: row.updateTime?.split(' ')[0] || '',
};
this.$nextTick(() => {
const el = this.$refs.labelRender && this.$refs.labelRender.$el;
if (el) {
el.style.display = 'block';
window.print();
el.style.display = 'none';
}
});
this.$refs.labelRender.printLabel();
})
},
handleExport() {