From acaf8ca38cd32bc474bb46b593db2a8d75b9bfdd Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期六, 12 十月 2024 08:26:23 +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/PrintCustomLabelSemi2.vue |    8 +-
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue            |    8 +-
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue         |    5 +
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue           |    8 +-
 north-glass-erp/northglass-erp/src/views/pp/report/ProcessToBeCompleted.vue       |   12 ++-
 north-glass-erp/northglass-erp/src/views/pp/processCard/SelectAddProcess.vue      |   32 +++++-----
 north-glass-erp/northglass-erp/src/views/pp/report/CrossProcessBreaking.vue       |    4 
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue |    8 +-
 north-glass-erp/src/main/java/com/example/erp/mapper/pp/FlowCardMapper.java       |    2 
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue     |    8 +-
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml                         |    2 
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCardDetails.vue  |    6 +
 north-glass-erp/src/main/resources/mapper/pp/Report.xml                           |   43 ++++++++++++-
 north-glass-erp/src/main/java/com/example/erp/service/pp/FlowCardService.java     |    4 +
 14 files changed, 99 insertions(+), 51 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 ecf98b0..10b0e38 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
@@ -195,7 +195,7 @@
 .row3 {
   margin-top: -5px;
   height: 30px;
-  font-size: 20pt;
+  font-size: 22pt;
   font-weight: bolder;
 }
 
@@ -207,15 +207,15 @@
   margin-left: 40px;
 }
 .row1 span{
-  font-size: 15pt;
+  font-size: 17pt;
 }
 
 .row2 span{
-  font-size: 15pt;
+  font-size: 17pt;
 }
 
 .row5 span{
-  font-size: 15pt;
+  font-size: 17pt;
 }
 
 .row6 {
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 edecc51..0315791 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
@@ -185,7 +185,7 @@
   height: 35px;
 }
 .row1 span {
-  font-size: 15pt;
+  font-size: 17pt;
 }
 
 .row2 {
@@ -194,7 +194,7 @@
   height: 35px;
 }
 .row2 span {
-  font-size: 14pt;
+  font-size: 16pt;
 }
 span {
   font-size: 12pt;
@@ -204,7 +204,7 @@
 .row3 {
   margin-top: -5px;
   height: 35px;
-  font-size: 22pt;
+  font-size: 24pt;
   font-weight: bolder;
   line-height: 35px;
 }
@@ -216,7 +216,7 @@
   margin-left: 20px;
 }
 .row5 span {
-  font-size: 14pt;
+  font-size: 16pt;
 }
 
 .row6 {
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue
index 265260d..42f9b7a 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue
@@ -183,7 +183,7 @@
   height: 35px;
 }
 .row1 span {
-  font-size: 15pt;
+  font-size: 17pt;
 }
 .row2 {
   font-size: 12pt;
@@ -191,7 +191,7 @@
   height: 35px;
 }
 .row2 span {
-  font-size: 14pt;
+  font-size: 17pt;
 }
 span {
   font-size: 12pt;
@@ -206,7 +206,7 @@
   line-height: 35px;
 }
 .row3 span{
-  font-size: 22pt;
+  font-size: 24pt;
 }
 
 .row5 {
@@ -215,7 +215,7 @@
   font-size: 14pt;
 }
 .row5 span {
-  font-size: 14pt;
+  font-size: 16pt;
 }
 
 .row6 {
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
index ebb6d10..cf780b1 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
@@ -304,7 +304,10 @@
     {field: 'glass_address', title: t('processCard.glassAddress'), width: 90},
     {field: 'quantity', title: t('order.quantity'), width: 90},
     {field: 'total_area', title: t('order.area'), width: 90},
-    {field: 'product_name', title: t('order.product'), width: 120},
+    {field: 'product_name', title: t('order.product'), width: 120,
+      filters: [{data: ''}],
+      slots: {filter: 'num1_filter'},
+      filterMethod: filterChanged},
     {
       field: 'glass_child',
       title: t('reportingWorks.glassChild'),
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCardDetails.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCardDetails.vue
index 1ee66f2..404cc45 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCardDetails.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCardDetails.vue
@@ -309,7 +309,11 @@
     },
     {field: 'quantity', title: t('order.quantity'), width: 90},
     {field: 'total_area', title: t('order.area'), width: 90},
-    {field: 'product_name', title: t('order.product'), width: 120},
+    {field: 'product_name', title: t('order.product'), width: 120,
+      filters: [{data: ''}],
+      slots: {filter: 'num1_filter'},
+      filterMethod: filterChanged
+    },
     {
       field: 'glass_child',
       title: t('reportingWorks.glassChild'),
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue
index 9206d1c..48bceb2 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue
@@ -218,7 +218,7 @@
   height: 20px;
 }
 .row1 span {
-  font-size: 10pt;
+  font-size: 12pt;
   font-weight: bold;
 }
 
@@ -242,7 +242,7 @@
 .row3 {
   margin-top: -5px;
   height: 25px;
-  font-size: 15pt;
+  font-size: 17pt;
   font-weight: bolder;
 }
 
@@ -252,7 +252,7 @@
   font-size: 8pt;
 }
 .row5 span {
-  font-size: 10pt;
+  font-size: 12pt;
   font-weight: bold;
 }
 
@@ -262,7 +262,7 @@
   font-size: 8pt;
 }
 .row6 span {
-  font-size: 10pt;
+  font-size: 12pt;
   font-weight: bold;
 }
 .cell{
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 a4ba061..242b651 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
@@ -183,7 +183,7 @@
   height: 20px;
 }
 .row1 span {
-  font-size: 10pt;
+  font-size: 12pt;
 }
 
 .row2 {
@@ -192,7 +192,7 @@
   height: 20px;
 }
 .row2 span {
-  font-size: 10pt;
+  font-size: 12pt;
 }
 span {
   font-size: 10pt;
@@ -202,7 +202,7 @@
 .row3 {
   margin-top: -5px;
   height: 28px;
-  font-size: 15pt;
+  font-size: 17pt;
   font-weight: bolder;
 }
 
@@ -213,7 +213,7 @@
 }
 
 .row5 span {
-  font-size: 8pt;
+  font-size: 10pt;
 }
 
 
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectAddProcess.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectAddProcess.vue
index b9d02a2..515e4ec 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectAddProcess.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectAddProcess.vue
@@ -8,9 +8,11 @@
 import {Search} from "@element-plus/icons-vue";
 import { useI18n } from 'vue-i18n'
 import  useUserInfoStore from '@/stores/userInfo'
+import useOrderInfoStore from "@/stores/sd/order/orderInfo"
 //璇█鑾峰彇
 const { t } = useI18n()
 const userStore = useUserInfoStore()
+const orderInfo = useOrderInfoStore()
 let router=useRouter()
 const getTableRow = (row,type) =>{
   switch (type) {
@@ -93,10 +95,11 @@
 
 
 //绗竴娆″姞杞借幏鍙栬繎涓冨ぉ鏃堕棿鍜岄粯璁ょ姸鎬�
-form.date1 = getNowTime()
-let startTime = form.date1[0]
-let endTime = form.date1[1]
-
+if (orderInfo.workOrderDate[0]=="" && orderInfo.workOrderDate[1]==""){
+  orderInfo.workOrderDate=getNowTime()
+}
+let startTime = orderInfo.workOrderDate[0]
+let endTime = orderInfo.workOrderDate[1]
 //绗竴娆″姞杞芥暟鎹�
 
 request.post(`/processCard/selectAddProcess/${startTime}/${endTime}`, filterData.value).then((res) => {
@@ -114,8 +117,8 @@
 //鐐瑰嚮鏌ヨ
 const getWorkOrder = () => {
 
-  let startTime = form.date1[0]
-  let endTime = form.date1[1]
+  let startTime = orderInfo.workOrderDate[0]
+  let endTime = orderInfo.workOrderDate[1]
   request.post(`/processCard/selectAddProcess/${startTime}/${endTime}`, filterData.value).then((res) => {
     if (res.code == 200) {
 
@@ -150,8 +153,8 @@
   }
 
 //鑾峰彇閫変腑鏃堕棿
-  let startTime = form.date1[0]
-  let endTime = form.date1[1]
+  let startTime = orderInfo.workOrderDate[0]
+  let endTime = orderInfo.workOrderDate[1]
 
   request.post(`/processCard/selectAddProcess/${startTime}/${endTime}`, filterData.value).then((res) => {
     if (res.code == 200) {
@@ -259,14 +262,13 @@
     <div id="selectForm">
       <el-row :gutter="0">
         <el-date-picker
-            v-model="form.date1"
-            type="daterange"
-            format="YYYY/MM/DD"
-            value-format="YYYY-MM-DD"
-            :start-placeholder="$t('basicData.startDate')"
-            :end-placeholder="$t('basicData.endDate')"
+            v-model="orderInfo.workOrderDate"
             :default-time="defaultTime"
-
+            :end-placeholder="$t('basicData.endDate')"
+            :start-placeholder="$t('basicData.startDate')"
+            format="YYYY/MM/DD"
+            type="daterange"
+            value-format="YYYY-MM-DD"
         />
 
         &nbsp;&nbsp;
diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/CrossProcessBreaking.vue b/north-glass-erp/northglass-erp/src/views/pp/report/CrossProcessBreaking.vue
index 2f27376..a98840d 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/CrossProcessBreaking.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/CrossProcessBreaking.vue
@@ -18,8 +18,8 @@
     {field: 'breakageReason', width: 100,title: t('reportingWorks.breakageReason'), sortable: true,showOverflow:"ellipsis"},
     {field: 'breakageQuantity', width: 100,title: t('reportingWorks.quantityBroken'), sortable: true},
     {field: 'area',width: 100, title: t('reportingWorks.wornArea'), sortable: true},
-    {field: 'project', width: 120,title: t('order.project'), sortable: true},
-    {field: 'orderId',width: 120, title: t('order.orderId'), sortable: true},
+    {field: 'project', width: 120,title: t('order.project'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
+    {field: 'orderId',width: 120, title: t('order.orderId'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
     {field: 'glassChild',width: 120, title: t('reportingWorks.glassChild'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
   ],//琛ㄦ牸琛ㄥご瀛楁
   data:[],//琛ㄦ牸鏁版嵁
diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/ProcessToBeCompleted.vue b/north-glass-erp/northglass-erp/src/views/pp/report/ProcessToBeCompleted.vue
index 4be2474..31a5ae0 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/ProcessToBeCompleted.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/ProcessToBeCompleted.vue
@@ -20,7 +20,7 @@
 })
 
 //宸ュ簭
-const value = ref(t('machine.edgeGrinding'))
+const value = ref()
 
 //琛ㄥ熬姹傚拰
 const sumNum = (list, field) => {
@@ -257,7 +257,9 @@
     },
     {field: 'order_number', width: 100, title: t('order.OrderNum')},
     {field: 'technology_number', width: 120, title: t('processCard.technologyNumber'), showOverflow: "ellipsis"},
-    {field: 'glass_child', width: 100, title: t('reportingWorks.glassChild')},
+    {field: 'glass_child', width: 100, title: t('reportingWorks.glassChild'), filters: [{data: ''}],
+      slots: {filter: 'num1_filter'},
+      filterMethod: filterChanged},
     {field: 'child_width', width: 120, title: t('order.width')},
     {field: 'child_height', width: 120, title: t('order.height')},
     {field: 'quantity', width: 120, title: t('order.quantity')},
@@ -267,7 +269,9 @@
     {field: 'completeArea', width: 120, title: t('report.completedArea')},
     {field: 'incompleteNum', width: 120, title: t('report.unfinishedQuantity')},
     {field: 'incompleteArea', width: 120, title: t('report.unfinishedArea')},
-    {field: 'product_name', width: 120, title: t('order.product')},
+    {field: 'product_name', width: 120, title: t('order.product'), filters: [{data: ''}],
+      slots: {filter: 'num1_filter'},
+      filterMethod: filterChanged},
   ],//琛ㄥご鎸夐挳
 
   toolbarConfig: {
@@ -437,7 +441,7 @@
 <style scoped>
 .main-div-customer {
   width: 99%;
-  height: 100%;
+  height: 93%;
 }
 
 #selectForm {
diff --git a/north-glass-erp/src/main/java/com/example/erp/mapper/pp/FlowCardMapper.java b/north-glass-erp/src/main/java/com/example/erp/mapper/pp/FlowCardMapper.java
index 2f198f2..2c4f91a 100644
--- a/north-glass-erp/src/main/java/com/example/erp/mapper/pp/FlowCardMapper.java
+++ b/north-glass-erp/src/main/java/com/example/erp/mapper/pp/FlowCardMapper.java
@@ -179,7 +179,7 @@
 
     List<Map<String, Object>> selectFlowCardMerge(String processId);
 
-    Boolean updateFlowCardMerge(String processId,List<Integer> technologyNumbers);
+    Boolean updateFlowCardMerge(String processId,List<Integer> technologyNumbers,Integer index);
 
     Boolean deleteflowCardSort(String orderId, String processId);
 
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/FlowCardService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/FlowCardService.java
index f97b815..740eb49 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/pp/FlowCardService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/FlowCardService.java
@@ -719,12 +719,14 @@
         List<FlowCard> flowCardList = JSONArray.parseArray(JSONObject.toJSONString(object.get("flowCard")), FlowCard.class);
         if (!flowCardList.isEmpty()) {
             List<Map<String, Object>> flowCardList1=flowCardMapper.selectFlowCardMerge(flowCardList.get(0).getProcessId());
+            int index=1;
             for(int i = 0;i < flowCardList1.size();i++){
                 if(Integer.valueOf(flowCardList1.get(i).get("count2").toString())>1){
                     List<Integer> technologyNumber = Arrays.stream(flowCardList1.get(i).get("count1").toString().split(","))
                             .map(Integer::parseInt)
                             .collect(Collectors.toList());
-                    flowCardMapper.updateFlowCardMerge(flowCardList.get(0).getProcessId(),technologyNumber);
+                    flowCardMapper.updateFlowCardMerge(flowCardList.get(0).getProcessId(),technologyNumber,index);
+                    index+=1;
                     returns="true";
                 }
             }
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 348e5ed..1aece63 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -2261,7 +2261,7 @@
     </select>
 
     <update id="updateFlowCardMerge">
-        update  pp.flow_card fc set fc.merge=1
+        update  pp.flow_card fc set fc.merge=#{index}
         where fc.process_id = #{processId} and fc.technology_number  in
         <foreach item="technologyNumber" collection="technologyNumbers" open="(" separator="," close=")">
             #{technologyNumber}
diff --git a/north-glass-erp/src/main/resources/mapper/pp/Report.xml b/north-glass-erp/src/main/resources/mapper/pp/Report.xml
index 376afb5..46b388b 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/Report.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/Report.xml
@@ -257,6 +257,12 @@
         <if test="crossProcessBreakingDTO.breakageType != null and crossProcessBreakingDTO.breakageType != ''">
             and dd.breakage_type regexp #{crossProcessBreakingDTO.breakageType}
         </if>
+        <if test="crossProcessBreakingDTO.project != null and crossProcessBreakingDTO.project != ''">
+            and o.project regexp #{crossProcessBreakingDTO.project}
+        </if>
+        <if test="crossProcessBreakingDTO.orderId != null and crossProcessBreakingDTO.orderId != ''">
+            and o.order_id regexp #{crossProcessBreakingDTO.orderId}
+        </if>
         GROUP BY dd.id
         order by dd.id desc
         limit #{offset},#{pageSize}
@@ -279,6 +285,33 @@
           and dd.available = 0
           and reviewed_state != 2
           and rw.this_process != dd.responsible_process
+        <if test="crossProcessBreakingDTO.code != null and crossProcessBreakingDTO.code != ''">
+            and JSON_UNQUOTE( JSON_EXTRACT( od.other_columns, '$.S01' )) regexp #{crossProcessBreakingDTO.code}
+        </if>
+        <if test="crossProcessBreakingDTO.processId != null and crossProcessBreakingDTO.processId != ''">
+            and rw.process_id regexp #{crossProcessBreakingDTO.processId}
+        </if>
+        <if test="crossProcessBreakingDTO.thisProcess != null and crossProcessBreakingDTO.thisProcess != ''">
+            and rw.this_process regexp #{crossProcessBreakingDTO.thisProcess}
+        </if>
+        <if test="crossProcessBreakingDTO.responsibleProcess != null and crossProcessBreakingDTO.responsibleProcess != ''">
+            and dd.responsible_process regexp #{crossProcessBreakingDTO.responsibleProcess}
+        </if>
+        <if test="crossProcessBreakingDTO.responsibleTeam != null and crossProcessBreakingDTO.responsibleTeam != ''">
+            and dd.responsible_team regexp #{crossProcessBreakingDTO.responsibleTeam}
+        </if>
+        <if test="crossProcessBreakingDTO.glassChild != null and crossProcessBreakingDTO.glassChild != ''">
+            and ogd.glass_child regexp #{crossProcessBreakingDTO.glassChild}
+        </if>
+        <if test="crossProcessBreakingDTO.breakageType != null and crossProcessBreakingDTO.breakageType != ''">
+            and dd.breakage_type regexp #{crossProcessBreakingDTO.breakageType}
+        </if>
+        <if test="crossProcessBreakingDTO.project != null and crossProcessBreakingDTO.project != ''">
+            and o.project regexp #{crossProcessBreakingDTO.project}
+        </if>
+        <if test="crossProcessBreakingDTO.orderId != null and crossProcessBreakingDTO.orderId != ''">
+            and o.order_id regexp #{crossProcessBreakingDTO.orderId}
+        </if>
         order by dd.id desc
     </select>
 
@@ -451,14 +484,14 @@
                ogd.glass_child,
                ogd.child_width,
                ogd.child_height,
-               od.quantity,
+               fc.quantity,
                ROUND(ogd.child_width * ogd.child_height / 1000000, 2)               as childArea,
-               ROUND(ogd.child_width * ogd.child_height * od.quantity / 1000000, 2) as actualArea,
+               ROUND(ogd.child_width * ogd.child_height * fc.quantity / 1000000, 2) as actualArea,
                odpd.reporting_work_num                                              as completeNum,
                ROUND(ogd.child_width * ogd.child_height * odpd.reporting_work_num / 1000000,
                      2)                                                             as completeArea,
-               od.quantity - odpd.reporting_work_num                                as incompleteNum,
-               ROUND(ogd.child_width * ogd.child_height * (od.quantity - odpd.reporting_work_num) / 1000000,
+               fc.quantity - odpd.reporting_work_num                                as incompleteNum,
+               ROUND(ogd.child_width * ogd.child_height * (fc.quantity - odpd.reporting_work_num) / 1000000,
                      2)                                                             as incompleteArea,
                od.product_name
 
@@ -483,7 +516,7 @@
           and o.create_time between #{selectTime1} and #{selectTime2}
           and position(#{orderId} in od.order_id)
           and position(#{inputProject} in o.project)
-          and od.quantity > odpd.reporting_work_num
+          and fc.quantity - odpd.reporting_work_num>0
 
         group by fc.process_id, fc.order_number, fc.technology_number
         order by fc.process_id, fc.order_number, fc.technology_number

--
Gitblit v1.8.0