guoyujie
2025-11-12 e49e21265285e5d7e9a2a151c1654d6f6fa53248
north-glass-erp/northglass-erp/src/components/pp/PrintProcess.vue
@@ -76,7 +76,9 @@
let printNumberFc = props.printFc
data.value.printList = JSON.parse(props.printList)
let flowCardCount = ''
const picture = ref([])
onMounted(() => {
      //判断是否是工程打印
      if(props.printProject!=null){
        request.post(`/processCard/getSelectPrintProject/${printProject}/${merges}/${props.flashback}/${props.landingSequence}`).then((res) => {
          if (res.code == 200) {
@@ -87,6 +89,7 @@
          }
        })
      }else{
        //流程卡
        request.post(`/processCard/getSelectPrinting/${merge}/${like}/${merges}/${props.flashback}/${compound}/${props.landingSequence}`, data.value).then((res) => {
          if (res.code == 200) {
            load(res.data.data)
@@ -94,6 +97,10 @@
            ElMessage.warning(res.msg)
            router.push("/login")
          }
        })
        //订单序号dwg图片查询
        request.post("/orderFile/getOrderFilePicture", data.value.printList).then((res) => {
          picture.value = res.data
        })
      }
@@ -292,7 +299,7 @@
              打印人:{{user.user.userName}}   
              时间:{{formattedTime}}
                
              <span style="font-weight: bolder;" v-if="name=='金华福喜天成玻璃有限公司'">
              <span style="font-weight: bolder;" >
                打印总数量:{{totalQuantity}}
              打印总面积:{{totalArea}}
              </span>
@@ -330,7 +337,7 @@
        <td rowspan='2'>编号</td>
        <td rowspan="2">小片顺序</td>
        <td v-if="name=='浙江巨星嘉泰新材料有限公司'"  rowspan='2' style="width: 90px">宽(弧长)×高</td>
        <td rowspan='2' style="width: 90px">宽*高</td>
        <td v-else rowspan='2' style="width: 90px">宽*高</td>
        <td rowspan='2' >数量</td>
        <td rowspan='2'>面积</td>
        <td rowspan='2'>周长</td>
@@ -454,7 +461,14 @@
      </tr>
      </tfoot>
    </table>
    <el-image
        class="picture"
        v-for="(item,index) in picture"
        :src="item.imageBase64"
        :preview-src-list="[item.imageBase64]"
        fit="contain"
        style="max-height: 700px;"
    />
  </div>
</template>
@@ -546,6 +560,8 @@
  width: 100%;
  height: 100%;
}
.picture{
  page-break-before: always;
}
</style>