| | |
| | | } |
| | | }) |
| | | }else{ |
| | | console.log(printType) |
| | | if (printType == 1) { |
| | | data.value.printList = JSON.parse(route.query.printList) |
| | | request.post(`/processCard/getSelectPrintLabel1`,data.value).then((res) => { |
| | |
| | | od.other_columns, |
| | | od.bend_radius, |
| | | od.order_number as heat_layout_id, |
| | | ogd.technology_number as heat_layout_sort |
| | | a.id as heat_layout_sort |
| | | from pp.optimize_detail opd |
| | | left join sd.`order` o on SUBSTR(opd.process_id, 1, 10) = o.order_id |
| | | left join sd.order_detail od |
| | |
| | | left join sd.product p on od.product_id = p.id |
| | | left join sd.basic_glass_type e on e.type_id = p.type_id |
| | | left join sd.customer c on c.id = o.customer_id |
| | | left join |
| | | (select (@row_number := @row_number + 1) as id,process_id as process_id from (select process_id from pp.optimize_detail tt where project_no =#{projectNo} group by process_id) tt,(select @row_number := 0) as t) a |
| | | on a.process_id=opd.process_id |
| | | where opd.project_no = #{projectNo} |
| | | order by opd.stock_id |
| | | </select> |
| | |
| | | and d.customer_id = #{orderDetail.order.customerId} |
| | | and om.money is not null |
| | | group by d.delivery_id, o.order_id, om.`column` |
| | | |
| | | UNION ALL |
| | | |
| | | select d.delivery_id, |
| | | d.order_id, |
| | | d.customer_name, |
| | | d.project, |
| | | '运费' as product_name, |
| | | d.freight_quantity as quantity, |
| | | 0 as area, |
| | | d.freight_price as price, |
| | | d.freight as money, |
| | | date(d.create_time) as create_time |
| | | |
| | | from sd.delivery d |
| | | |
| | | where date(d.create_time) >= #{startDate} |
| | | and date(d.create_time) <= #{endDate} |
| | | and d.customer_id = #{orderDetail.order.customerId} |
| | | and d.freight >0 |
| | | group by d.delivery_id |
| | | </select> |
| | | |
| | | <select id="exportSelectCustomerOderDate" > |