Browse Source

修复打印bug

dev-xx
qb 5 months ago
parent
commit
a06cb081ee
  1. 7
      src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue

7
src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue

@ -213,6 +213,13 @@ const printTemplate = (type: 'haveTem' | 'notHaveTem') => {
element.style.borderColor = type === 'haveTem' ? '#000' : '#fff';
}
const lineArr = document.querySelectorAll('.printCode .line');
for (let index = 0; index < lineArr.length; index++) {
const element = lineArr[index];
element.style.borderColor = type === 'haveTem' ? '#000' : '#fff';
}
print(printNode);
};

Loading…
Cancel
Save