From 1c13bd7a2cd2c8ba69a185da69344c8b59f4e561 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 04 七月 2024 09:29:15 +0800
Subject: [PATCH] 选中求和功能以及还原双击回车才能点击单元格

---
 north-glass-erp/northglass-erp/src/views/mm/basicData/WarehouseCreateBasicData.vue |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/mm/basicData/WarehouseCreateBasicData.vue b/north-glass-erp/northglass-erp/src/views/mm/basicData/WarehouseCreateBasicData.vue
index e1e6e99..947d2dc 100644
--- a/north-glass-erp/northglass-erp/src/views/mm/basicData/WarehouseCreateBasicData.vue
+++ b/north-glass-erp/northglass-erp/src/views/mm/basicData/WarehouseCreateBasicData.vue
@@ -15,16 +15,16 @@
   input:''
 })
 let options=ref([
-  { label: "搴撳瓨缁勭粐",
+  { label: t('mainIngredientStock.inventoryOrganization'),
     value: "inventoryOrganization",
   },
-  { label: "棰嗗嚭",
+  { label: t('mainBasicData.takeOut'),
     value: "takeOut",
   },
-  { label: "鏉愭枡鍑哄簱绫诲瀷",
+  { label: t('mainIngredientStock.materialOutboundType'),
     value: "outboundType",
   },
-  { label: "鏉愭枡杩斿簱绫诲瀷",
+  { label: t('mainIngredientStock.materialReturnType'),
     value: "returningType",
   },
 ])
@@ -46,27 +46,27 @@
 const emit =  defineEmits(['gaveParent'])
 const saveBasicData =  () =>{
   if (basic.value.operateType[0]==='inventoryOrganization'){
-    basic.value.type='搴撳瓨缁勭粐'
+    basic.value.type=t('mainIngredientStock.inventoryOrganization')
   }
   else if(basic.value.operateType[0]==='takeOut'){
-    basic.value.type='棰嗗嚭'
+    basic.value.type=t('mainBasicData.takeOut')
   }
   else if(basic.value.operateType[0]==='outboundType'){
-    basic.value.type='鏉愭枡鍑哄簱绫诲瀷'
+    basic.value.type=t('mainIngredientStock.materialOutboundType')
   }
   else if(basic.value.operateType[0]==='returningType'){
-    basic.value.type='鏉愭枡杩斿簱绫诲瀷'
+    basic.value.type=t('mainIngredientStock.materialReturnType')
   }
   if(basic.value.operateType[0]==='' || basic.value.input===''){
     return
   }
   request.post(`/BasicWarehouse/addBasicWarehouse`, basic.value).then(res => {
     if (res.data) {
-      ElMessage.success('淇濆瓨鎴愬姛')
+      ElMessage.success(t('basicData.msg.saveSuccess'))
       emit('gaveParent', true)
     }
   }).catch((err)=>{
-    ElMessage.error('绯荤粺閿欒')
+    ElMessage.error(t('basicData.msg.ServerConnectionError'))
     router.push("/login")
   })
 }
@@ -76,15 +76,15 @@
   submitArr.type = basic.value.type
   submitArr.operateTypeName = basic.value.input
   if(basic.value.input===''){
-    ElMessage.warning('璇疯緭鍏ユ暟鎹�')
+    ElMessage.warning(t('mainIngredient.pleaseEnterData'))
   }else{
     request.post(`/BasicWarehouse/updateBasicWarehouse`, submitArr).then(res => {
       if (res.data) {
-        ElMessage.success('淇敼鎴愬姛')
+        ElMessage.success(t('basicData.msg.saveSuccess'))
         emit('gaveParent', true)
       }
     }).catch((err)=>{
-      ElMessage.error('绯荤粺閿欒')
+      ElMessage.error(t('basicData.msg.ServerConnectionError'))
       router.push("/login")
     })
   }
@@ -103,7 +103,7 @@
 <template>
   <div>
     <el-row>
-      <el-col :span="4">鍩虹绫诲瀷:</el-col>
+      <el-col :span="4">{{$t('orderBasicData.basicType')}}:</el-col>
       <el-col :span="12">
         <el-cascader
             v-model="basic.operateType"
@@ -115,7 +115,7 @@
       </el-col>
     </el-row>
     <el-row>
-      <el-col :span="4">鍚嶇О:</el-col>
+      <el-col :span="4">{{$t('orderBasicData.name')}}:</el-col>
       <el-col :span="12">
         <el-input v-model="basic.input"/>
       </el-col>
@@ -123,8 +123,8 @@
     <el-row>
       <el-col :span="4"></el-col>
       <el-col :span="12">
-        <el-button v-show="!props.rowIndex" @click="saveBasicData" type="primary">鏂板</el-button>
-        <el-button v-show="props.rowIndex" @click="updateBasicData" type="primary">淇敼</el-button>
+        <el-button v-show="!props.rowIndex" @click="saveBasicData" type="primary">{{$t('basicData.insert')}}</el-button>
+        <el-button v-show="props.rowIndex" @click="updateBasicData" type="primary">{{$t('basicData.update')}}</el-button>
 
       </el-col>
     </el-row>

--
Gitblit v1.8.0