From ff1be3b4ed56b84848ad34ea2383788c220bff64 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 24 十一月 2025 13:14:17 +0800
Subject: [PATCH] 修改产品一级玻璃类别bug以及发货一行两列无金额打印

---
 north-glass-erp/northglass-erp/src/views/sd/product/CreateProduct.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/sd/product/CreateProduct.vue b/north-glass-erp/northglass-erp/src/views/sd/product/CreateProduct.vue
index 065a967..903d091 100644
--- a/north-glass-erp/northglass-erp/src/views/sd/product/CreateProduct.vue
+++ b/north-glass-erp/northglass-erp/src/views/sd/product/CreateProduct.vue
@@ -107,7 +107,12 @@
         item.separation = JSON.parse(item.separation)
       })
       productTotal.value = res.data.title
-      productGlassTypeStore.GlassType =[res.data.title.typeId.substring(0,2),res.data.title.typeId]
+      if(res.data.title.typeId.length===2){
+        productGlassTypeStore.GlassType =[res.data.title.typeId.substring(0,2)]
+      }else{
+        productGlassTypeStore.GlassType =[res.data.title.typeId.substring(0,2),res.data.title.typeId]
+      }
+
       //BasicData.value = res.data
     }else{
       ElMessage.warning(res.msg)
@@ -127,7 +132,12 @@
     ElMessage.warning(t('product.msg.glassType'))
     return
   }
-  productTotal.value.typeId =  productGlassTypeStore.GlassType[1]
+  if(productGlassTypeStore.GlassType[1]!==undefined){
+    productTotal.value.typeId =  productGlassTypeStore.GlassType[1]
+  }else{
+    productTotal.value.typeId =  productGlassTypeStore.GlassType[0]
+  }
+
 
   let productName = ""
   productDetailList.value.forEach(item =>{

--
Gitblit v1.8.0