From ba389833f9fbb043c3fa2df5aac8ed00d899e0fb Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 02 二月 2026 11:44:13 +0800
Subject: [PATCH] 进销存升级app: 1.不需要登录公司
---
src/pages/index.vue | 37 +++++++++++++++++--------------------
1 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 8a6647f..80c611c 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -1,20 +1,20 @@
<template>
<view class="content">
- <view class="header-section">
- <view class="currentFactory">
- <up-text type="primary"
- :text="userStore.currentFactoryName"
- @click="show = true"
- size="18"
- class="factoryName"
- suffixIcon="arrow-right"
- :iconStyle="iconStyle"></up-text>
- </view>
- <up-picker :show="show"
- :columns="factoryList"
- @confirm="changeFactory"
- @cancel="show = false"></up-picker>
- </view>
+<!-- <view class="header-section">-->
+<!-- <view class="currentFactory">-->
+<!-- <up-text type="primary"-->
+<!-- :text="userStore.currentFactoryName"-->
+<!-- @click="show = true"-->
+<!-- size="18"-->
+<!-- class="factoryName"-->
+<!-- suffixIcon="arrow-right"-->
+<!-- :iconStyle="iconStyle"></up-text>-->
+<!-- </view>-->
+<!-- <up-picker :show="show"-->
+<!-- :columns="factoryList"-->
+<!-- @confirm="changeFactory"-->
+<!-- @cancel="show = false"></up-picker>-->
+<!-- </view>-->
<view class="hero-section">
<view class="bg-img">
<view class="hero-content">
@@ -196,8 +196,7 @@
import modal from "@/plugins/modal";
import useUserStore from "@/store/modules/user";
- const userStore = useUserStore();
- const factoryId = ref("");
+ const userStore = useUserStore();;
const show = ref(false);
const factoryList = ref([]);
const factoryListTem = ref([]);
@@ -657,8 +656,7 @@
factoryListTem.value = res.data;
res.data.forEach(item => {
factoryList.value[0].push(item.deptName);
- });
- factoryId.value = userStore.currentDeptId;
+ })
} else {
// 濡傛灉res.data涓嶆槸鏁扮粍锛岃缃负绌烘暟缁�
factoryList.value = [];
@@ -761,7 +759,6 @@
const loginForm = {
username: userStore.name,
password: uni.getStorageSync("remembered_password"),
- factoryId: factoryId,
};
modal.loading("鍒锋柊涓紝璇疯�愬績绛夊緟...");
userStore
--
Gitblit v1.9.3