廖井涛
7 天以前 a660db06773007b1be690e0674829c00a57aeb7b
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue
@@ -36,9 +36,14 @@
const printType=route.query.printType
onMounted(() => {
  console.log(printType)
  if (localStorage.getItem('hasRefreshed')=="false") {
    localStorage.setItem('hasRefreshed', 'true');
    location.reload();
  }else{
    localStorage.setItem('hasRefreshed', 'false');
  }
  if(printType==1){
    request.post(`/processCard/getSelectPrintCustomLabel/${type}/1`, data.value).then((res) => {
    request.post(`/processCard/getSelectPrintCustomLabel2/${type}/1`, data.value).then((res) => {
      if (res.code == 200) {
        produceList.value = deepClone(res.data.title)
        list.value = deepClone(res.data.data)
@@ -65,17 +70,14 @@
        list.value = deepClone(res.data.data)
        const data = produceList.value[0].value
        dataList = JSON.parse(`[${data}]`);
        console.log(switchType)
        if (switchType===true){
          labelList = props.titleList
        }else {
          labelList = dataList[0]
        }
        labelList = dataList[0]
        for (let i = 0; i < list.value.length; i++) {
          let count = list.value[i].data.length
          for (let j = 0; j < count; j++) {
            for (let k = 0; k < list.value[i].data[j].quantity; k++) {
              props.lastList.push(list.value[i].data[j])
              lastList.value.push(list.value[i].data[j])
            }
          }
        }
@@ -198,7 +200,7 @@
.row3 {
  margin-top: -5px;
  height: 30px;
  font-size: 20pt;
  font-size: 22pt;
  font-weight: bolder;
}
@@ -210,15 +212,15 @@
  margin-left: 40px;
}
.row1 span{
  font-size: 15pt;
  font-size: 17pt;
}
.row2 span{
  font-size: 15pt;
  font-size: 17pt;
}
.row5 span{
  font-size: 15pt;
  font-size: 17pt;
}
.row6 {
@@ -237,7 +239,7 @@
  }
  @page {
    size: auto;  /* auto is the initial value */
    margin: 12mm 4mm 2mm 6mm;  /* this affects the margin in the printer settings */
    margin: 12mm 4mm 2mm 6mm !important;  /* this affects the margin in the printer settings */
  }
}