| | |
| | | const details = ref([]) |
| | | const user=userInfo() |
| | | |
| | | let totalQuantity = 0; // 用于记录总数量 |
| | | let totalArea = 0; // 用于记录总面积 |
| | | |
| | | const data = ref({ |
| | | printList: [] |
| | |
| | | //处理同配置打印 |
| | | handleGetQRCode() |
| | | handleSummary() |
| | | AreaQuantitySummary() |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | router.push("/login") |
| | |
| | | } |
| | | } |
| | | |
| | | const AreaQuantitySummary = () => { |
| | | |
| | | |
| | | for (let i = 0; i < produceList.value.length; i++) { |
| | | // 遍历当前项目的 detail 数组 |
| | | for (let j = 0; j < produceList.value[i].detail.length; j++) { |
| | | // 累加数量 |
| | | totalQuantity += produceList.value[i].detail[j].quantity; |
| | | // 累加面积 |
| | | totalArea += produceList.value[i].detail[j].gross_area; |
| | | } |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <div>{{ company.companyName }}</div> |
| | | <div>生产流程卡</div> |
| | | <div style="font-weight: bolder;display: flex;justify-content:space-between"> |
| | | <div>打印人:{{user.user.userName}} 时间:{{formattedTime}}</div> |
| | | <div> |
| | | 打印人:{{user.user.userName}} |
| | | 时间:{{formattedTime}} |
| | | |
| | | <span style="font-weight: bolder;" v-if="name=='金华福喜天成玻璃有限公司'"> |
| | | 打印总数量:{{totalQuantity}} |
| | | 打印总面积:{{totalArea}} |
| | | </span> |
| | | </div> |
| | | <div> |
| | | <span v-if="name!='金华福喜天成玻璃有限公司'" style="font-size: 10px">{{itemFlow.otherRemarks}}</span> |
| | | 流程卡号: {{ |