From d3dfcd3e96cb0f2b04cfe973e4f348ee5fe96032 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期一, 26 八月 2024 14:02:22 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue           |    2 +-
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue |    2 +-
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue     |    2 +-
 north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java        |   31 ++++++++++++++++++-------------
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml                         |    2 +-
 5 files changed, 22 insertions(+), 17 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue
index 6616cf9..5bbb871 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue
@@ -118,7 +118,7 @@
       <div class="row3" v-if="item.other_columns!=null&&(JSON.parse(item.other_columns).S02!=null)">{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</div>
       <div class="row3" v-else>{{Math.round(item.width)}}x{{Math.round(item.height)}}={{item.quantity}}</div>
       <div class="row5">
-        <span>{{item.remarks}}</span>&nbsp;
+        <span>{{item.filmNumber}}</span>&nbsp;
         <span>{{ item.processingNote }}</span>
       </div>
     </div>
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue
index 5479bf5..6e9bde8 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue
@@ -119,7 +119,7 @@
       <div class="row3" v-if="item.other_columns!=null&&(JSON.parse(item.other_columns).S02!=null)">{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</div>
       <div class="row3" v-else>{{Math.round(item.width)}}x{{Math.round(item.height)}}={{item.quantity}}</div>
       <div class="row5">
-        <span>{{item.remarks}}</span>&nbsp;
+        <span>{{item.filmNumber}}</span>&nbsp;
         <span>{{ item.processingNote }}</span>
       </div>
     </div>
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue
index 0c942ff..52683af 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue
@@ -117,7 +117,7 @@
       <div class="row3" v-if="item.other_columns==null||JSON.parse(item.other_columns).S02==null">{{item.width}}x{{item.height}}={{item.quantity}}</div>
       <div class="row3" v-else>{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</div>
       <div class="row5">
-        <span>{{item.remarks}}</span>&nbsp;
+        <span>{{item.filmNumber}}</span>&nbsp;
         <span>{{ item.processingNote }}</span>
       </div>
     </div>
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java b/north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java
index d63ce0a..1b6323b 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java
@@ -232,22 +232,27 @@
             }
 
             Map<String,Object> otherColumns = JSON.parseObject(OrderDetails.get(i).getOtherColumns(), new TypeReference<Map<String, Object>>(){});
-            otherColumns.values().removeIf(value -> value == null || value.equals(""));
-            OrderDetails.get(i).setOtherColumns(JSON.toJSONString(otherColumns));
-
             int finalI = i;
-            otherColumns.forEach((key, value) ->{
+            if(otherColumns!=null){
+                otherColumns.values().removeIf(value -> value == null || value.equals(""));
+                OrderDetails.get(i).setOtherColumns(JSON.toJSONString(otherColumns));
 
-                if(value!=null && !value.equals("") && key.contains("M")) {
-                    orderOtherMoneyList.forEach(orderOtherMoney -> {
-                        if (orderOtherMoney.getColumn().equals(key)) {
-                            orderOtherMoney.setQuantity(
-                                    orderOtherMoney.getQuantity()+(Double.parseDouble((String) value)  * OrderDetails.get(finalI).getQuantity()));
-                        }
-                    });
-                }
+                otherColumns.forEach((key, value) ->{
 
-            });
+                    if(value!=null && !value.equals("") && key.contains("M")) {
+                        orderOtherMoneyList.forEach(orderOtherMoney -> {
+                            if (orderOtherMoney.getColumn().equals(key)) {
+                                orderOtherMoney.setQuantity(
+                                        orderOtherMoney.getQuantity()+(Double.parseDouble((String) value)  * OrderDetails.get(finalI).getQuantity()));
+                            }
+                        });
+                    }
+
+                });
+            }else{
+                OrderDetails.get(i).setOtherColumns("{}");
+            }
+
         }
 
 
diff --git a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
index 9d0153b..92f06ae 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -1139,7 +1139,7 @@
                                            pl.order_sort = fc.order_number and
                                            pl.technology_number = fc.technology_number
         where pl.create_time between #{selectTime1} and #{selectTime2}
-        GROUP BY fc.process_id, ogd.technology_number, pl.reporting_work_id
+        GROUP BY fc.process_id,fc.order_number, ogd.technology_number, pl.reporting_work_id
         order by pl.id desc, fc.process_id, ogd.technology_number
     </select>
 

--
Gitblit v1.8.0