| | |
| | | customer.value = produceList.value[0].detail[0] |
| | | let height = 0 |
| | | let index = 0 |
| | | |
| | | produceList.value[0].detailList.forEach(order => { |
| | | if(orderDetailList.value[index]===undefined){ |
| | | orderDetailList.value[index]=[] |
| | | } |
| | | height+=50 |
| | | //判断高度是否超过350,则换页 |
| | | if(height>=500){ |
| | | height=0 |
| | | for(let i=0;i<produceList.value.length;i++){ |
| | | //换产品就换页 |
| | | if(i>0){ |
| | | index+=1 |
| | | orderDetailList.value[index]=[] |
| | | } |
| | | orderDetailList.value[index]=[] |
| | | orderDetailList.value[index].push({ |
| | | type:'product', |
| | | productName:order.product_name |
| | | type:'customer', |
| | | customer:produceList.value[i].detail[0] |
| | | }) |
| | | |
| | | |
| | | order.detailList.forEach(item => { |
| | | height+=30 |
| | | produceList.value[i].detailList.forEach(order => { |
| | | height+=50 |
| | | //判断高度是否超过350,则换页 |
| | | if(height>=500){ |
| | | height=0 |
| | | index+=1 |
| | | orderDetailList.value[index]=[] |
| | | |
| | | orderDetailList.value[index].push({ |
| | | type:'customer', |
| | | customer:produceList.value[i].detail[0] |
| | | }) |
| | | } |
| | | orderDetailList.value[index].push({ |
| | | type:'size', |
| | | size:item |
| | | type:'product', |
| | | productName:order.product_name |
| | | }) |
| | | |
| | | |
| | | order.detailList.forEach(item => { |
| | | height+=30 |
| | | if(height>=500){ |
| | | height=0 |
| | | index+=1 |
| | | orderDetailList.value[index]=[] |
| | | } |
| | | orderDetailList.value[index].push({ |
| | | type:'size', |
| | | size:item |
| | | }) |
| | | }) |
| | | }) |
| | | }) |
| | | } |
| | | console.log(orderDetailList.value) |
| | | orderDetailList.value.forEach((page,index)=>{ |
| | | let sum = { |
| | | quantity:0, |
| | |
| | | <div style="display:flex;"> |
| | | <div style="width: 100%"><span style="font-weight: bold;">客户名称</span>: |
| | | <input class="contactNumber" style="width: 80%;font-size: 9px" type="text" |
| | | v-model="customer.customer_name" /> |
| | | v-model="page[0].customer.customer_name" /> |
| | | </div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 100%"><span style="font-weight: bold">工程名称</span>:{{customer.project}}</div> |
| | | <div style="width: 100%"><span style="font-weight: bold">工程名称</span>:{{page[0].customer.project}}</div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 50%"><span style="font-weight: bold">订单号</span>:{{customer.order_id}}</div> |
| | | <div style="width: 50%"><span style="font-weight: bold">装箱单号</span>:{{customer.remarks}}</div> |
| | | <div style="width: 50%"><span style="font-weight: bold">订单号</span>:{{page[0].customer.order_id}}</div> |
| | | <div style="width: 50%"><span style="font-weight: bold">装箱单号</span>:{{page[0].customer.remarks}}</div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 50%"><span style="font-weight: bold">包装日期</span>:{{customer.reporting_work_time}}</div> |
| | | <div style="width: 50%"><span style="font-weight: bold">本架数量</span>:{{customer.quantity}}</div> |
| | | <div style="width: 50%"><span style="font-weight: bold">包装日期</span>:{{page[0].customer.reporting_work_time}}</div> |
| | | <div style="width: 50%"><span style="font-weight: bold">本架数量</span>:{{page[0].customer.quantity}}</div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 50%;font-size: 9px"><span style="font-weight: bold">加工班组</span>:{{customer.teams_groups_name2}}</div> |
| | | <div style="width: 50%;font-size: 9px"><span style="font-weight: bold">包装班组</span>:{{customer.teams_groups_name}}</div> |
| | | <div style="width: 50%;font-size: 9px"><span style="font-weight: bold">加工班组</span>:{{page[0].customer.teams_groups_name2}}</div> |
| | | <div style="width: 50%;font-size: 9px"><span style="font-weight: bold">包装班组</span>:{{page[0].customer.teams_groups_name}}</div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 50%"><span style="font-weight: bold">质量检验</span>:刘化菊</div> |
| | |
| | | <td>{{ row.size.area }}</td> |
| | | </tr> |
| | | |
| | | <tr id="footsum" v-else style="border: 0;font-size: 10px"> |
| | | <tr id="footsum" v-else-if="row.type==='sum'" style="border: 0;font-size: 10px"> |
| | | <td colspan="5" style="border: 0;"> |
| | | <div style="display:flex;"> |
| | | <div>本页数量</div> |