From 5e3bd5294967d37b641573d9eea46f63f4529dd0 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 29 Aug 2025 16:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/views/design/received/index.vue | 9 +++++++-- src/views/out/monthPlan/index.vue | 12 ++++++------ src/views/out/monthPlanAudit/index.vue | 16 ++++++++-------- src/views/tender/supplierInput/index.vue | 19 ++----------------- 5 files changed, 25 insertions(+), 35 deletions(-) diff --git a/.env.development b/.env.development index 2439ac8..ab16fab 100644 --- a/.env.development +++ b/.env.development @@ -6,11 +6,11 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.209:8899' +# VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 -# VITE_APP_BASE_API = 'http://192.168.110.213:8899' +VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' diff --git a/src/views/design/received/index.vue b/src/views/design/received/index.vue index b28478f..950a8d4 100644 --- a/src/views/design/received/index.vue +++ b/src/views/design/received/index.vue @@ -17,6 +17,7 @@ @@ -93,6 +94,7 @@ @@ -181,6 +183,7 @@ import { systemUserList } from '@/api/design/appointment'; import { collectBatch, byProjectId, exportWord } from '@/api/design/received'; import { getUser } from '@/api/system/user'; import type { ComponentInternalInstance, ElFormInstance } from 'element-plus'; +import { getInfo } from '@/api/login'; // 全局实例与状态管理 const { proxy } = getCurrentInstance() as ComponentInternalInstance; @@ -202,7 +205,7 @@ const disabledAll = ref(false); // 表单是否全部禁用 const form = reactive({ projectId: currentProject.value?.id, userId: '', // 收资人 - user_major: '', // 专业 + user_major: '1', // 专业 phone: '', // 电话 email: '', // 邮箱 id: '', // 表单ID @@ -273,6 +276,8 @@ const byProjectIdAll = async () => { disabledAll.value = false; if (res.code == 200 && res.data) { + console.log('🚀 ~ byProjectIdAll ~ res:', res); + const data = res.data; // 回显基本信息 form.userId = data.userId || ''; @@ -415,7 +420,7 @@ const onView = () => { /** 获取当前用户详情(回显个人信息) */ const getUserDetail = async () => { try { - const res = await getUser(userId.value); + const res = await getInfo(); if (res.data?.user) { form.userId = res.data.user.userId; form.phone = res.data.user.phonenumber || ''; diff --git a/src/views/out/monthPlan/index.vue b/src/views/out/monthPlan/index.vue index dcaa8d1..c426eca 100644 --- a/src/views/out/monthPlan/index.vue +++ b/src/views/out/monthPlan/index.vue @@ -40,9 +40,9 @@ - - - + + +