From 1287a3a5d76c8424dbc49e0b223f283dee12b607 Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Thu, 9 May 2024 15:27:37 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=87=E4=BB=B6=E5=85=A5=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inLocation/addForm.vue | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/pages/inLocation/addForm.vue b/src/pages/inLocation/addForm.vue
index 87bcb55..d88f2c9 100644
--- a/src/pages/inLocation/addForm.vue
+++ b/src/pages/inLocation/addForm.vue
@@ -25,7 +25,7 @@
-
+
@@ -60,7 +60,7 @@
import * as sparePartsReturnApi from "@/api/sparePartsReturn"
import * as sparePartsApi from "@/api/spareParts"
import * as locationApi from "@/api/location"
-
+ const isDisabled =ref(false);
const { proxy } = getCurrentInstance()
const loading = ref(false)
// 备件弹窗
@@ -298,16 +298,18 @@ const singleColumnShow = ref(false)
if(res.data.itemName==null || res.data.itemName==''){
proxy.$modal.showToast("找不到该备件")
form.value.itemNumber = ''
+ form.value.locationNumber = '';
return;
}
itemNumber.value = ''
form.value.itemName = res.data.itemName
- if(res.data.locationNumber|| res.data.locationNumber=='' || res.data.locationNumber==null){
+ if(res.data.locationNumber=='' || res.data.locationNumber==null){
isShow.value =true
+ isDisabled.value = false
}else{
form.value.locationNumber = res.data.locationNumber
- isShow.value = false
+ isDisabled.value = true
}
// 判断是否有帐外库
// locationItem.value = res.data.list.filter(item=>item.isInAccount==='FALSE')[0]