From 9b9fdcb4711279a303cf8da9ce9e3ff30b1bf6e0 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 20 三月 2025 16:45:06 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override

---
 north-glass-erp/northglass-erp/src/router/index.js                         |    4 ++--
 north-glass-erp/northglass-erp/src/lang/en.js                              |    1 +
 north-glass-erp/northglass-erp/src/lang/ar.js                              |    1 +
 north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue          |   17 ++++++++++++++++-
 north-glass-erp/northglass-erp/src/lang/ru.js                              |    1 +
 north-glass-erp/northglass-erp/src/lang/zh.js                              |    1 +
 north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java |   19 +++++++++++++------
 7 files changed, 35 insertions(+), 9 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/lang/ar.js b/north-glass-erp/northglass-erp/src/lang/ar.js
index fa0b146..de2804b 100644
--- a/north-glass-erp/northglass-erp/src/lang/ar.js
+++ b/north-glass-erp/northglass-erp/src/lang/ar.js
@@ -248,6 +248,7 @@
         oneClickReturn:'涓�閿��鍥�',
 
         quantityMount:'鏁伴噺閲戦',
+        allAmount:'闈㈢Н閲戦锛堟�婚噾棰濓級',
 
         msg:{
             productCheck:'丕賱乇噩丕亍 丕禺鬲賷丕乇 賲賳鬲噩',
diff --git a/north-glass-erp/northglass-erp/src/lang/en.js b/north-glass-erp/northglass-erp/src/lang/en.js
index 3db8dcf..8c4e6d4 100644
--- a/north-glass-erp/northglass-erp/src/lang/en.js
+++ b/north-glass-erp/northglass-erp/src/lang/en.js
@@ -248,6 +248,7 @@
         oneClickReturn:'涓�閿��鍥�',
 
         quantityMount:'Quantity and Amount',
+        allAmount:'闈㈢Н閲戦锛堟�婚噾棰濓級',
 
         msg:{
             productCheck:'Please select a product',
diff --git a/north-glass-erp/northglass-erp/src/lang/ru.js b/north-glass-erp/northglass-erp/src/lang/ru.js
index 6e136d7..4fee41d 100644
--- a/north-glass-erp/northglass-erp/src/lang/ru.js
+++ b/north-glass-erp/northglass-erp/src/lang/ru.js
@@ -248,6 +248,7 @@
         oneClickReturn:'涓�閿��鍥�',
 
         quantityMount:'鏁伴噺閲戦',
+        allAmount:'闈㈢Н閲戦锛堟�婚噾棰濓級',
 
         msg:{
             productCheck:'袩芯卸邪谢褍泄褋褌邪, 胁褘斜械褉懈褌械 锌褉芯写褍泻褌',
diff --git a/north-glass-erp/northglass-erp/src/lang/zh.js b/north-glass-erp/northglass-erp/src/lang/zh.js
index 77a8477..14f1be0 100644
--- a/north-glass-erp/northglass-erp/src/lang/zh.js
+++ b/north-glass-erp/northglass-erp/src/lang/zh.js
@@ -248,6 +248,7 @@
         oneClickReturn:'涓�閿��鍥�',
 
         quantityMount:'鏁伴噺閲戦',
+        allAmount:'闈㈢Н閲戦锛堟�婚噾棰濓級',
 
         msg:{
             productCheck:'璇烽�夋嫨浜у搧',
diff --git a/north-glass-erp/northglass-erp/src/router/index.js b/north-glass-erp/northglass-erp/src/router/index.js
index c873d06..05d332c 100644
--- a/north-glass-erp/northglass-erp/src/router/index.js
+++ b/north-glass-erp/northglass-erp/src/router/index.js
@@ -1217,8 +1217,8 @@
       component: () => import('../views/RegisterView.vue')
     },
     {
-      path: '/appDownLoad',
-      name: 'appDownLoad',
+      path: '/app',
+      name: 'app',
       component: () => import('../views/system/app/appDownload.vue')
     }
     
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 bce39a0..0f3d636 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
@@ -934,6 +934,8 @@
 
     if(titleUploadData.value.calculateType===3){
       item.grossAmount=multiply(item.price,item.quantity)
+    }else if(titleUploadData.value.calculateType===4){
+      item.grossAmount=parseFloat(divideAuto(item.width * item.height* item.quantity*item.price,1000000,company.decValue))
     }else{
       item.grossAmount=multiply(item.price,item.computeGrossArea)
     }
@@ -1220,7 +1222,11 @@
   // 鑾峰彇淇濈暀闈㈢Н,
   const decValue = company.decValue
   switch (titleUploadData.value.calculateType){
-    case 2:{
+    case 2 :{
+      areaSum = parseFloat(divideAuto(row.width * row.height* row.quantity,1000000,company.decValue))
+      break
+    }
+    case 4:{
       areaSum = parseFloat(divideAuto(row.width * row.height* row.quantity,1000000,company.decValue))
       break
     }
@@ -1283,6 +1289,8 @@
       }
       if(titleUploadData.value.calculateType===3){
         item.grossAmount=multiply(item.price , item.quantity)
+      }else if(titleUploadData.value.calculateType===4){
+        item.grossAmount=parseFloat(divideAuto(item.width * item.height* item.quantity*item.price,1000000,company.decValue))
       }else{
         item.grossAmount=multiply(item.price * 1 , item.computeGrossArea)
       }
@@ -1344,6 +1352,8 @@
      }
      if(titleUploadData.value.calculateType===3){
        row.grossAmount=multiply(row.price ,row.quantity)
+     }else if(titleUploadData.value.calculateType===4){
+       row.grossAmount=parseFloat(divideAuto(row.width * row.height* row.quantity*row.price,1000000,company.decValue))
      }else{
        row.grossAmount=multiply(row.price , row.computeGrossArea)
      }
@@ -1443,6 +1453,10 @@
     if( !isNaN(item.computeArea*1) && item.computeArea != null ){
       if(titleUploadData.value.calculateType===3){
         item.grossAmount=parseFloat(multiply(item.price , item.quantity))
+      }else if(titleUploadData.value.calculateType===4){
+        item.grossArea = countArea(item)
+        item.computeGrossArea = item.grossArea
+        item.grossAmount=parseFloat(divideAuto(item.width * item.height* item.quantity*item.price,1000000,company.decValue))
       }else{
         item.grossArea = countArea(item)
         item.computeGrossArea = item.grossArea
@@ -1657,6 +1671,7 @@
             <el-option :value="1" :label="t('order.areaAmountPerPiece')"/>
             <el-option :value="2" :label="t('order.areaAmountAge')"/>
             <el-option :value="3" :label="t('order.quantityMount')"/>
+            <el-option :value="4" :label="t('order.allAmount')"/>
           </el-select>
         </el-col>
         <el-col  :span="2"><el-text>*{{$t('order.salesman')}}锛�</el-text></el-col>
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 9f34bf6..99549a2 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
@@ -896,11 +896,18 @@
     }
 
     public Object scannerGlassInfo(String projectNo) {
-        String projectId = "p" + projectNo.substring(0,8);
-        Integer heatNo = Integer.valueOf(projectNo.substring(8,11));
-        Integer sortNo = Integer.valueOf(projectNo.substring(11,14));
-        String processId = orderMapper.getProcessIdByOptimizeHeatDetail(projectId,heatNo,sortNo);
-        String orderId = flowCardMapper.getOrderIdByProcessId(processId);
-        return orderMapper.scannerGlassInfo(projectId,heatNo,sortNo,orderId);
+        try{
+            String projectId = "P" + projectNo.substring(0,8);
+            //鐐夊彿
+            Integer heatNo = Integer.valueOf(projectNo.substring(8,11));
+            //鐐夊唴搴忓彿
+            Integer sortNo = Integer.valueOf(projectNo.substring(11,14));
+            String processId = orderMapper.getProcessIdByOptimizeHeatDetail(projectId,heatNo,sortNo);
+            String orderId = flowCardMapper.getOrderIdByProcessId(processId);
+            return orderMapper.scannerGlassInfo(projectId,heatNo,sortNo,orderId);
+        }catch (Exception e){
+            return null;
+        }
+
     }
 }

--
Gitblit v1.8.0