From 9d8aa29beeb5d681fb48d92b9ede88128651e429 Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期一, 29 十二月 2025 15:57:14 +0800
Subject: [PATCH] 天津双奇点-新增台账增加商品id字段,修复切换公司失败
---
src/pages/index.vue | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/pages/index.vue b/src/pages/index.vue
index c71cd5e..c2d8002 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -602,7 +602,7 @@
show.value = false;
const factoryId = factoryListTem.value[arr.indexs[0]].deptId
const loginForm = {
- username: userStore.name,
+ userName: userStore.name,
password: uni.getStorageSync('remembered_password'),
factoryId: factoryId,
}
@@ -674,7 +674,23 @@
return
}
detailApi({id:barcodeId}).then((resp) => {
- if(resp.code!=200||!resp.data)return
+
+ if(resp.code!=200){
+ uni.showToast({
+ title:resp.msg,
+ icon:"none",
+ duration: 1500
+ })
+ return
+ }
+ if(!resp.data){
+ uni.showToast({
+ title:'鍟嗗搧涓嶅瓨鍦�',
+ icon:"none",
+ duration: 1500
+ })
+ return
+ }
// barcodeDetail.value = resp.data
refGoodsDetailPopup.value.open({
type: type,
--
Gitblit v1.9.3