| | |
| | | import companyInfo from "@/lang/companyInfo"; |
| | | import QRCode from "qrcode"; |
| | | |
| | | |
| | | const currentTime = new Date(); |
| | | const formattedTime = currentTime.getFullYear() |
| | | + '-' + (currentTime.getMonth() + 1) + '-' |
| | | + currentTime.getDate() + ' ' + currentTime.getHours() + ':' |
| | | + currentTime.getMinutes();formattedTime |
| | | const company = companyInfo() |
| | | const printMerge = null |
| | | let props = defineProps({ |
| | |
| | | <tr v-for="(itemFlow, index) in item.detail" :key="index"> |
| | | <td colspan="29"> |
| | | <div style="float: left;"><input style="border: none;font-size: 28px;width: 70px;margin: 5px " /></div> |
| | | <div id="bj" style="float: right;font-size: 28px">{{ id + 1 }}</div> |
| | | <div id="bj" style="float: right;font-size: 28px">{{ props.printLayer }}</div> |
| | | <div>{{ company.companyName }}</div> |
| | | <div>生产流程卡</div> |
| | | <div v-if="itemFlow.technologyNumberMerge != ''" style="text-align: right;font-weight: bolder"> |
| | | {{ itemFlow.otherRemarks }} |
| | | <div style="font-weight: bolder;display: flex;justify-content:space-between"> |
| | | <div> |
| | | 时间:{{formattedTime}} |
| | | |
| | | </div> |
| | | <div>{{itemFlow.rack}} |
| | | 流程卡号: {{ |
| | | itemFlow.process_id |
| | | }}/{{ itemFlow.technologyNumberMerge }} 共 {{ flowCardCount }} 架 |
| | | }}/{{ props.printLayer }} |
| | | </div> |
| | | <div v-else style="text-align: right;font-weight: bolder"> |
| | | {{ itemFlow.otherRemarks }} |
| | | 流程卡号: {{ |
| | | itemFlow.process_id |
| | | }}/{{ itemFlow.technologyNumber }} 共 {{ flowCardCount }} 架 |
| | | </div> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr v-for="(items, index) in item.detail" :key="index"> |
| | | <td class="tdNowrap">客户名称:</td> |
| | | <td colspan="2">{{ items.customer_name }}</td> |
| | | <td class="tdNowrap">项目名称:</td> |
| | | <td colspan="2">{{ items.project }}</td> |
| | | <td class="tdNowrap">工艺流程:</td> |
| | | <td colspan="22" style="width: 500px">{{ items.process }}</td> |
| | | </tr> |
| | | <tr v-for="(itemTr, index) in item.detail" :key="index"> |
| | | <td class="tdNowrap">磨边类型:</td> |
| | | <td colspan="2">{{ itemTr.edging_type }}</td> |
| | | <td class="tdNowrap">单片名称:</td> |
| | | <td colspan="2">{{ itemTr.glass_child }}</td> |
| | | <td class="tdNowrap">产品名称:</td> |
| | | <td colspan="22">{{ itemTr.product_name }}</td> |
| | | </tr> |
| | | <tr v-for="(items,index) in item.detail" :key="index"> |
| | | <td class="tdNowrap" style="width: 75px">客户名称:</td> |
| | | <td colspan="1" style="width: 150px;font-size: 17px">{{ items.customer_name }}</td> |
| | | <td class="tdNowrap" style="min-width: 75px">磨边类型:</td> |
| | | <td colspan="1" style="min-width: 50px">{{ items.edging_type }}</td> |
| | | <td colspan="2" style="min-width: 150px" class="tdNowrap">工艺流程:</td> |
| | | <td :colspan="item.processList.length*2" style="width: 500px">{{ items.process }}</td> |
| | | </tr> |
| | | <tr v-for="(itemTr,index) in item.detail" :key="index"> |
| | | <td class="tdNowrap">项目名称:</td> |
| | | <td colspan="1" style="font-size: 17px">{{ itemTr.project }}</td> |
| | | <td class="tdNowrap">单片名称:</td> |
| | | <td colspan="1">{{ itemTr.glass_child }}</td> |
| | | <td colspan="2" class="tdNowrap">产品名称:</td> |
| | | <td :colspan="item.processList.length*2">{{ itemTr.product_name }}</td> |
| | | </tr> |
| | | <tr> |
| | | <td rowspan='2'>序号</td> |
| | | <!-- <td rowspan='2'>编号</td> --> |
| | | <td rowspan="2">小片顺序</td> |
| | | <td rowspan='2' style="width: 90px">宽*高</td> |
| | | <td rowspan='4' style="width: 90px">宽*高</td> |
| | | <td rowspan='2'>数量</td> |
| | | <td rowspan='2'>落架</td> |
| | | <td rowspan='2'>面积</td> |
| | | <td rowspan='2'>周长</td> |
| | | <td rowspan='2'>半径</td> |
| | | <!-- <td rowspan='2'>周长</td> |
| | | <td rowspan='2'>半径</td> --> |
| | | <td rowspan='2'>备注</td> |
| | | <td v-for="(itemPr, index) in item.processList" :key="index" colspan="2">{{ itemPr.process }}</td> |
| | | </tr> |
| | | <tr> |
| | | <template v-for=" n in item.processList.length"> |
| | | <td>正品</td> |
| | | <td>次品</td> |
| | | <td colspan='2'>正品</td> |
| | | </template> |
| | | </tr> |
| | | </thead> |
| | |
| | | <tr v-for="(itemDatile, index) in item.detailList" :key="index"> |
| | | <td>{{ itemDatile.order_number }}</td> |
| | | <!-- <td>{{ itemDatile.s01Value }}</td> --> |
| | | <td>{{ itemDatile.technology_number }}</td> |
| | | <!-- <td>{{ itemDatile.technology_number }}</td> --> |
| | | <td>{{ itemDatile.child_width }}</td> |
| | | <td class="item" style="width: 5%;height: 100%;"> |
| | | {{ itemDatile.quantity }} |
| | |
| | | </td> |
| | | <td>{{ itemDatile.quantity1 }}</td> |
| | | <td>{{ itemDatile.total_area }}</td> |
| | | <td>{{ itemDatile.perimeter }}</td> |
| | | <td>{{ itemDatile.bend_radius }}</td> |
| | | <!-- <td>{{ itemDatile.perimeter }}</td> |
| | | <td>{{ itemDatile.bend_radius }}</td> --> |
| | | <td>{{ itemDatile.remarks }}</td> |
| | | <template v-for=" n in item.processList.length"> |
| | | <td></td> |
| | | <td></td> |
| | | <td colspan='2'></td> |
| | | </template> |
| | | </tr> |
| | | |
| | |
| | | </tr> |
| | | <tr> |
| | | <td>完工签名</td> |
| | | <td colspan="2"></td> |
| | | <td colspan="1"></td> |
| | | <td colspan="2"></td> |
| | | <td colspan="2"></td> |
| | | <td colspan="2"></td> |
| | |
| | | </tr> |
| | | <tr> |
| | | <td>质检签名</td> |
| | | <td colspan="1"></td> |
| | | <td colspan="2"></td> |
| | | <td colspan="2">生产签名</td> |
| | | <td colspan="2"></td> |
| | | <template v-for=" n in item.processList.length"> |
| | | <td colspan="2"></td> |
| | | </template> |
| | | </tr> |
| | | <tr> |
| | | <td>原片箱号</td> |
| | | <td colspan="28"></td> |
| | | </tr> |
| | | |
| | | <tr v-for="(qrCodeItem, index) in item.detail" :key="index"> |