廖井涛
2024-08-15 8b7d4b9527b9e196df4b9ac7cf113f06798f7941
north-glass-erp/northglass-erp/src/components/pp/PrintCustomLabelSemi.vue
@@ -109,10 +109,9 @@
  <div id="print" :class="company.printLabel.className.semi.printFlowCardName()">
    <div v-for="(item1,id) in lastList" :class="company.printLabel.className.semi.entiretyName()">
      <div class="row4">{{ faceOrientation }}</div>
      <div v-for="(item,id) in labelList" :class="company.printLabel.className.semi.contentRowName()">
        <div v-if="item.title==null" class="row1">{{ item.title }}</div>
        <div v-else class="row1">{{ item.title }}:</div>
        <div class="row2">{{ item1[item.name] }}</div>
      <div  v-for="(item,id) in labelList" :class="company.printLabel.className.semi.contentRowName()">
        <div contenteditable="true" v-if="item1[item.name] != null && item1[item.name] !== ''" class="row1" >{{ item.title }}:{{ item1[item.name] }}</div>
<!--        <div v-if="item1[item.name] != null && item1[item.name] !== ''" class="row2">{{ item1[item.name] }}</div>-->
      </div>
      <div v-html="company.printLabel.customSemi(item1)"></div>
    </div>
@@ -128,7 +127,7 @@
body{
  overflow: hidden;
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  font-family: Arial;
}
@@ -173,27 +172,26 @@
}
.contentRow .row1{
  width: 30%;
  font-weight: bolder;
  width: 100%;
}
.entirety_semi .row4{
  font-weight: bolder;
  text-align: right;
}
.contentRow .row1,.contentRow .row2{
  text-align: left;
  font-weight: bolder;
}
@page {
  size: auto;
  margin: 0mm 0mm 0mm 4mm;
}
@media print {
  @page {
    size: auto;
    margin: 0mm 0mm 0mm 4mm;
  }
  div {
    page-break-inside: avoid;
  }