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 | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 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 3b8f3d1..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,25 +46,28 @@
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(t('basicData.msg.ServerConnectionError'))
+ router.push("/login")
})
}
const updateBasicData = () =>{
@@ -73,13 +76,16 @@
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(t('basicData.msg.ServerConnectionError'))
+ router.push("/login")
})
}
@@ -97,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"
@@ -109,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>
@@ -117,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