廖井涛
10 小时以前 f7a2fcdda7f1120498c5c5f75c5a99955fc54b43
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue
@@ -36,6 +36,13 @@
const printType=route.query.printType
onMounted(() => {
  if (localStorage.getItem('hasRefreshed')=="false") {
    localStorage.setItem('hasRefreshed', 'true');
    location.reload();
  }else{
    localStorage.setItem('hasRefreshed', 'false');
  }
  //流程卡编辑打印标签 常州
  if (printType == 1) {
    request.post(`/processCard/getSelectPrintCustomLabel2/${type}/1`, data.value).then((res) => {
      if (res.code == 200) {
@@ -58,7 +65,9 @@
      }
    })
  }else if(printType==2){
  }
  //明细分架打印标签 常州
  else if(printType==2){
    request.post(`/processCard/getSelectPrintCustomLabelDetails/${type}/1`, data.value).then((res) => {
      if (res.code == 200) {
        produceList.value = deepClone(res.data.title)
@@ -147,7 +156,8 @@
        <span>{{ item.processingNote }}</span>
      </div>
    </div>
    <div style="width: 20px" v-if="id%2===0"></div>
    <div style="width: 19px" v-if="id%2===0"></div>
      <div class="element-to-break-after" style="width: 1px" v-if="id%2===1"></div>
    </template>
  </div>
@@ -225,7 +235,9 @@
  font-size: 8pt;
}
.element-to-break-after {
  page-break-after: always;
}
@@ -235,7 +247,7 @@
  }
  @page {
    size: auto;  /* auto is the initial value */
    margin: 2mm 2mm 2mm 2mm;  /* this affects the margin in the printer settings */
    margin: 2mm 2mm 2mm 2mm !important;  /* this affects the margin in the printer settings */
  }
}