From 307cd7a9860c804eddd56465f0423efb950337dc Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 25 七月 2025 14:16:53 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override

---
 north-glass-erp/northglass-erp/src/stores/sd/companySet/洛阳北玻.js             |    1 +
 north-glass-erp/northglass-erp/src/stores/sd/companySet/金华天成.js             |    1 +
 north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue           |    5 +++++
 north-glass-erp/northglass-erp/src/stores/sd/companySet/新疆恒鑫.js             |    1 +
 north-glass-erp/northglass-erp/src/stores/sd/companySet/常州吉利.js             |    1 +
 north-glass-erp/northglass-erp/src/components/sd/order/OrderProcess.vue     |   45 +++++++++++++++++++++++++++++++++++++--------
 north-glass-erp/src/main/java/com/example/erp/service/pp/ReportService.java |    1 +
 north-glass-erp/northglass-erp/src/stores/sd/companySet/天津北玻.js             |    1 +
 north-glass-erp/northglass-erp/src/views/sd/order/UpdateOrderCraft.vue      |    4 +++-
 9 files changed, 51 insertions(+), 9 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/components/sd/order/OrderProcess.vue b/north-glass-erp/northglass-erp/src/components/sd/order/OrderProcess.vue
index 4cbb0e4..3b18357 100644
--- a/north-glass-erp/northglass-erp/src/components/sd/order/OrderProcess.vue
+++ b/north-glass-erp/northglass-erp/src/components/sd/order/OrderProcess.vue
@@ -1,7 +1,6 @@
 <script setup>
 import {computed, onMounted, reactive, ref, watch} from "vue";
 import {changeFilterEvent, filterChanged} from "@/hook"
-import footSum from "@/hook/footSum"
 import {useI18n} from "vue-i18n"
 import request from "@/utils/request"
 import {ElMessage} from "element-plus"
@@ -99,7 +98,7 @@
 })
 
 
-
+let mergeCells = ref()
 const getWorkOrder = () => {
   gridOptions.loading = true
   request.post(`/report/processCardProgress/${props.orderId}`,column).then(async (res) => {
@@ -121,10 +120,12 @@
       res.data.data.forEach(item => {
         item.reportWorkQuantity=JSON.parse(item.reportWorkQuantity)
         item.reportWorkQuantityCount=JSON.parse(item.reportWorkQuantityCount)
+        item.reportWorkQuantityShow=JSON.parse(item.reportWorkQuantityShow)
       })
 
       await xGrid.value.loadData(res.data.data)
       await xGrid.value.setMergeCells(res.data.mergeCells)
+      mergeCells.value = res.data.mergeCells
       gridOptions.loading = false
 
     } else {
@@ -133,14 +134,41 @@
   })
 }
 
-const quantitySum = ( row,column )=>{
-  const reportWorkQuantity = row.reportWorkQuantity[column.title] || ''
-  const reportWorkQuantityCount = row.reportWorkQuantityCount[column.title] || ''
-  if(reportWorkQuantity===reportWorkQuantityCount){
-    return reportWorkQuantity
+const filterChange = () =>{
+  if(xGrid.value.isFilter()){
+    xGrid.value.clearMergeCells()
+    xGrid.value.clearMergeFooterItems()
+  }else{
+    xGrid.value.setMergeCells(mergeCells.value)
+    xGrid.value.updateFooter()
   }
 
-  return (reportWorkQuantity
+
+}
+const footSum =(list, field) => {
+  if(xGrid.value.isFilter()){
+    return
+  }
+  let count = 0
+  list.forEach(item => {
+    if(field.indexOf('.')>-1){
+      let  array = field.split('.')
+      count += Number(item[array[0]][array[1]]) || 0
+    }else {
+      count += Number(item[field])  || 0
+    }
+  })
+  return count.toFixed(2)
+}
+
+const quantitySum = ( row,column )=>{
+  const reportWorkQuantityCount = row.reportWorkQuantityCount[column.title] || ''
+  const reportWorkQuantityShow = row.reportWorkQuantityShow[column.title] || ''
+  if(reportWorkQuantityShow===reportWorkQuantityCount){
+    return reportWorkQuantityShow
+  }
+
+  return (reportWorkQuantityShow
       +'('
       +reportWorkQuantityCount
       +')' )
@@ -151,6 +179,7 @@
 <template>
   <div style="width: 100%;height: 100%">
     <vxe-grid
+        @filter-change ='filterChange'
         height="100%"
         size="mini"
         class="mytable-scrollbar"
diff --git "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\244\251\346\264\245\345\214\227\347\216\273.js" "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\244\251\346\264\245\345\214\227\347\216\273.js"
index de484d9..c091097 100644
--- "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\244\251\346\264\245\345\214\227\347\216\273.js"
+++ "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\244\251\346\264\245\345\214\227\347\216\273.js"
@@ -41,6 +41,7 @@
         materialOutboundColor:false,//搴撳瓨鏌ヨ鍏ュ簱瓒呰繃涓�瀹氭椂闂存敼鍙橀鑹诧紝娲涢槼true锛屽叾浠杅alse
         storageBtn:false,//鏄惁鏄剧ず鎶ュ伐鍏ュ簱鐩稿叧鍐呭锛屾礇闃硉rue锛屽叾浠杅alse
         teamsType:false,//鏄惁寮�鍚彮缁勪笅鎷夋锛屾礇闃硉rue锛屽叾浠杅alse
+        alienFunction:false,//鏄惁寮�鍚紓褰㈠姛鑳斤紝鏆傛椂閮芥槸false
         //澶╂触
         printLabel: {
             custom: (item1) => {
diff --git "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\270\270\345\267\236\345\220\211\345\210\251.js" "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\270\270\345\267\236\345\220\211\345\210\251.js"
index 2149bcc..0a0e30e 100644
--- "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\270\270\345\267\236\345\220\211\345\210\251.js"
+++ "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\345\270\270\345\267\236\345\220\211\345\210\251.js"
@@ -41,6 +41,7 @@
         materialOutboundColor:false,//搴撳瓨鏌ヨ鍏ュ簱瓒呰繃涓�瀹氭椂闂存敼鍙橀鑹诧紝娲涢槼true锛屽叾浠杅alse
         storageBtn:false,//鏄惁鏄剧ず鎶ュ伐鍏ュ簱鐩稿叧鍐呭锛屾礇闃硉rue锛屽叾浠杅alse
         teamsType:false,//鏄惁寮�鍚彮缁勪笅鎷夋锛屾礇闃硉rue锛屽叾浠杅alse
+        alienFunction:false,//鏄惁寮�鍚紓褰㈠姛鑳斤紝鏆傛椂閮芥槸false
         //澶╂触
         printLabel: {
             custom: (item1) => {
diff --git "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\226\260\347\226\206\346\201\222\351\221\253.js" "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\226\260\347\226\206\346\201\222\351\221\253.js"
index a287ced..489ca73 100644
--- "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\226\260\347\226\206\346\201\222\351\221\253.js"
+++ "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\226\260\347\226\206\346\201\222\351\221\253.js"
@@ -41,6 +41,7 @@
         materialOutboundColor:false,//搴撳瓨鏌ヨ鍏ュ簱瓒呰繃涓�瀹氭椂闂存敼鍙橀鑹诧紝娲涢槼true锛屽叾浠杅alse
         storageBtn:false,//鏄惁鏄剧ず鎶ュ伐鍏ュ簱鐩稿叧鍐呭锛屾礇闃硉rue锛屽叾浠杅alse
         teamsType:false,//鏄惁寮�鍚彮缁勪笅鎷夋锛屾礇闃硉rue锛屽叾浠杅alse
+        alienFunction:false,//鏄惁寮�鍚紓褰㈠姛鑳斤紝鏆傛椂閮芥槸false
         //澶╂触
         printLabel: {
             custom: (item1) => {
diff --git "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\264\233\351\230\263\345\214\227\347\216\273.js" "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\264\233\351\230\263\345\214\227\347\216\273.js"
index 796f0e8..b15f6db 100644
--- "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\264\233\351\230\263\345\214\227\347\216\273.js"
+++ "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\346\264\233\351\230\263\345\214\227\347\216\273.js"
@@ -42,6 +42,7 @@
         materialOutboundColor:true,//搴撳瓨鏌ヨ鍏ュ簱瓒呰繃涓�瀹氭椂闂存敼鍙橀鑹诧紝娲涢槼true锛屽叾浠杅alse
         storageBtn:true,//鏄惁鏄剧ず鎶ュ伐鍏ュ簱鐩稿叧鍐呭锛屾礇闃硉rue锛屽叾浠杅alse
         teamsType:true,//鏄惁寮�鍚彮缁勪笅鎷夋锛屾礇闃硉rue锛屽叾浠杅alse
+        alienFunction:false,//鏄惁寮�鍚紓褰㈠姛鑳斤紝鏆傛椂閮芥槸false
         //澶╂触
         printLabel: {
             custom: (item1) => {
diff --git "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\351\207\221\345\215\216\345\244\251\346\210\220.js" "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\351\207\221\345\215\216\345\244\251\346\210\220.js"
index cda52aa..a499ba6 100644
--- "a/north-glass-erp/northglass-erp/src/stores/sd/companySet/\351\207\221\345\215\216\345\244\251\346\210\220.js"
+++ "b/north-glass-erp/northglass-erp/src/stores/sd/companySet/\351\207\221\345\215\216\345\244\251\346\210\220.js"
@@ -43,6 +43,7 @@
         materialOutboundColor:false,//搴撳瓨鏌ヨ鍏ュ簱瓒呰繃涓�瀹氭椂闂存敼鍙橀鑹诧紝娲涢槼true锛屽叾浠杅alse
         storageBtn:false,//鏄惁鏄剧ず鎶ュ伐鍏ュ簱鐩稿叧鍐呭锛屾礇闃硉rue锛屽叾浠杅alse
         teamsType:false,//鏄惁寮�鍚彮缁勪笅鎷夋锛屾礇闃硉rue锛屽叾浠杅alse
+        alienFunction:false,//鏄惁寮�鍚紓褰㈠姛鑳斤紝鏆傛椂閮芥槸false
         //澶╂触
         printLabel: {
             custom: (item1) => {
diff --git a/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue b/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
index feb4c5a..1bd93ff 100644
--- a/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
+++ b/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
@@ -837,6 +837,11 @@
   gridOptions.loading = true
   await initOrder(0)
 
+  //寮傚舰瀵煎叆
+  if(!company.alienFunction){
+    gridOptions.menuConfig.body.options[0][13].disabled=true
+  }
+
   //鍚敤琛ㄦ牸鎷栧姩閫変腑
   addListener(xGrid.value,gridOptions)
   let productData = route.query.produceList
diff --git a/north-glass-erp/northglass-erp/src/views/sd/order/UpdateOrderCraft.vue b/north-glass-erp/northglass-erp/src/views/sd/order/UpdateOrderCraft.vue
index 7eaba9f..4540375 100644
--- a/north-glass-erp/northglass-erp/src/views/sd/order/UpdateOrderCraft.vue
+++ b/north-glass-erp/northglass-erp/src/views/sd/order/UpdateOrderCraft.vue
@@ -390,7 +390,9 @@
 }
 
 const changeTrademark = ()=>{
-   exportToDXF()
+  if(company.alienFunction){
+    exportToDXF()
+  }
   rowIndex.value.icon = JSON.stringify(trademarkAttr.value)
   trademarkVisible.value=false
   Object.keys(trademarkAttr.value).forEach((key) => (trademarkAttr.value[key] = ''))
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportService.java
index a6cbc14..97a4c22 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportService.java
@@ -222,6 +222,7 @@
                 Map<String, String> data = JSON.parseObject(dataList.get(i).get("reportWorkQuantity"),
                         new TypeReference<Map<String, String>>() {
                         });
+                dataList.get(i).put("reportWorkQuantityShow",dataList.get(i).get("reportWorkQuantity"));
                 for (String key : clos.keySet()) {
                     if(data.get(key) != null){
                        Integer max = orderGlassDetailMapper

--
Gitblit v1.8.0