From 31289865951e00cce9cdaa450cc645f36255af66 Mon Sep 17 00:00:00 2001
From: 于杰 <1210123631@qq.com>
Date: 星期四, 04 十二月 2025 09:06:46 +0800
Subject: [PATCH] 修复 调整小片右键不跟随鼠标的bug 多次右键菜单保留的bug
---
north-glass-erp/northglass-erp/src/views/mm/basicData/WarehouseCreateBasicData.vue | 40 +++++++++++++++++++++++++++++-----------
1 files changed, 29 insertions(+), 11 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 947d2dc..eb3cdc0 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,18 +15,27 @@
input:''
})
let options=ref([
- { label: t('mainIngredientStock.inventoryOrganization'),
+ { label: t('ingredientsStock.inventoryOrganization'),
value: "inventoryOrganization",
},
- { label: t('mainBasicData.takeOut'),
+ { label: t('warehouseBasicData.takeOut'),
value: "takeOut",
},
- { label: t('mainIngredientStock.materialOutboundType'),
+ { label: t('ingredientsStock.materialOutboundType'),
value: "outboundType",
},
- { label: t('mainIngredientStock.materialReturnType'),
+ { label: t('ingredientsStock.materialReturnType'),
value: "returningType",
},
+ { label: t('productStock.inventoryArea'),
+ value: "region",
+ },
+ /*{ label: t('ingredients.originalFilm'),
+ value: "originalFilm",
+ },
+ { label: t('ingredients.accessories'),
+ value: "accessories",
+ },*/
])
let props = defineProps({
@@ -46,17 +55,26 @@
const emit = defineEmits(['gaveParent'])
const saveBasicData = () =>{
if (basic.value.operateType[0]==='inventoryOrganization'){
- basic.value.type=t('mainIngredientStock.inventoryOrganization')
+ basic.value.type=t('ingredientsStock.inventoryOrganization')
}
else if(basic.value.operateType[0]==='takeOut'){
- basic.value.type=t('mainBasicData.takeOut')
+ basic.value.type=t('warehouseBasicData.takeOut')
}
else if(basic.value.operateType[0]==='outboundType'){
- basic.value.type=t('mainIngredientStock.materialOutboundType')
+ basic.value.type=t('ingredientsStock.materialOutboundType')
}
else if(basic.value.operateType[0]==='returningType'){
- basic.value.type=t('mainIngredientStock.materialReturnType')
+ basic.value.type=t('ingredientsStock.materialReturnType')
}
+ else if(basic.value.operateType[0]==='region'){
+ basic.value.type=t('productStock.inventoryArea')
+ }
+ /*else if(basic.value.operateType[0]==='originalFilm'){
+ basic.value.type=t('ingredients.originalFilm')
+ }
+ else if(basic.value.operateType[0]==='accessories'){
+ basic.value.type=t('ingredients.accessories')
+ }*/
if(basic.value.operateType[0]==='' || basic.value.input===''){
return
}
@@ -76,7 +94,7 @@
submitArr.type = basic.value.type
submitArr.operateTypeName = basic.value.input
if(basic.value.input===''){
- ElMessage.warning(t('mainIngredient.pleaseEnterData'))
+ ElMessage.warning(t('ingredients.pleaseEnterData'))
}else{
request.post(`/BasicWarehouse/updateBasicWarehouse`, submitArr).then(res => {
if (res.data) {
@@ -103,13 +121,13 @@
<template>
<div>
<el-row>
- <el-col :span="4">{{$t('orderBasicData.basicType')}}:</el-col>
+ <el-col :span="4">{{$t('orderBasicData.page.searchOrderBasicData')}}:</el-col>
<el-col :span="12">
<el-cascader
v-model="basic.operateType"
:options="options"
clearable
- placeholder=""
+ :placeholder="$t('processCard.pleaseSelect')"
:disabled="props.rowIndex"
/>
</el-col>
--
Gitblit v1.8.0