Browse Source

修改打印

dev-xx
pref_mail@163.com 10 months ago
parent
commit
7e36c9c235
  1. 5
      src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue

5
src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue

@ -162,12 +162,13 @@ const printTemplate = (type: 'haveTem' | 'notHaveTem') => {
for (let i = 0; i < cloneNodeList.length; i++) {
const element = cloneNodeList[i];
for (let j = 0; j < element.childNodes.length; j++) {
const child = element.childNodes[j];
if (child.className !== 'image-container') continue;
// child.style.setProperty('--isShow', type === 'haveTem' ? 'flex' : 'none');
child.style.height = '0px';
child.style.setProperty('--aa', type === 'haveTem' ? '#000' : '#fff');
child.style.setProperty('--aa', type === 'haveTem' ? '#000 !important' : '#fff !important');
child.style.setProperty('--height', type === 'haveTem' ? 'auto !important' : '0px !important');
break;
}
}

Loading…
Cancel
Save