廖井涛
5 天以前 a660db06773007b1be690e0674829c00a57aeb7b
north-glass-erp/northglass-erp/src/components/pp/PrintProcess.vue
@@ -168,7 +168,19 @@
      //每个序号面积
      collection.total_area = parseFloat((collection.width * collection.height * collection.quantity / 1000000).toFixed(2))
      totalArea = add(totalArea, collection.total_area)
      totalWeight += collection.width * collection.height * collection.quantity / 1000000 * collection.separation * 2.5 * 1;
      //根据有几层计算重量
      for (let j = 0; j < produceList.value[i].detail.length; j++) {
       let ceng = produceList.value[i].detail[j].technologyNumber.length
        if (produceList.value[i].processName!=""){
          for (let k = 0; k < produceList.value[i].detail[j].technologyNumber.length; k++) {
            totalWeight += collection.width * collection.height * collection.quantity / 1000000 * collection.separation * 2.5 * 1;
          }
        }else {
          totalWeight += collection.width * collection.height * collection.quantity / 1000000 * collection.separation * 2.5 * 1;
        }
      }
      //每个序号周长
      collection.perimeter = parseFloat(((collection.width * 2 + collection.height * 2) * collection.quantity / 1000).toFixed(3))
    });
@@ -316,7 +328,7 @@
        <div id="bj" v-else style="float: right;font-size: 28px"></div>
        <div>{{ company.companyName }}</div>
        <div>
          生产流程卡<span style="font-weight: bold" v-if="printProject!=null">({{ printProject }})</span>
          ({{itemFlow.order_type}})生产流程卡<span style="font-weight: bold" v-if="printProject!=null">({{ printProject }})</span>
          <span style="font-weight: bold" v-if="props.compound!=null">({{ props.compound }}层同架)</span>
        </div>
        <div  style="font-weight: bolder;display: flex;justify-content:space-between">
@@ -357,9 +369,12 @@
      <td v-if="name=='天津北玻玻璃工业技术有限公司(TJBB-QR7.1-01)'"  colspan="4">{{ itemTr.other_remarks }}</td>
      <td v-else colspan="4">{{ itemTr.edging_type }}</td>
      <td class="tdNowrap">单片名称:</td>
      <td colspan="3">{{ itemTr.glass_child }}</td>
      <td v-if="!company.processFontSize" colspan="3">{{ itemTr.glass_child }}</td>
      <td v-else colspan="3" style="font-size: 18px;">{{ itemTr.glass_child }}</td>
      <td class="tdNowrap">产品名称:</td>
      <td :colspan="2+item.processList.length*2">{{ itemTr.product_name }}</td>
      <td v-if="!company.processFontSize" :colspan="2+item.processList.length*2">{{ itemTr.product_name }}</td>
      <td v-else :colspan="2+item.processList.length*2" style="font-size: 18px;">{{ itemTr.product_name }}</td>
    </tr>
    <tr>
      <td rowspan='2'>序号</td>
@@ -583,7 +598,10 @@
  @page {
    size: auto;  /* auto is the initial value */
    margin: 4mm 5mm 10mm 5mm  /* this affects the margin in the printer settings */
    margin: 4mm 5mm 10mm 5mm;  /* this affects the margin in the printer settings */
    @top-right {
      content: none !important;
    }
  }