From 09691bdbe60c98e3dc18e4e931a2fd22084b2d77 Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Fri, 29 Aug 2025 10:36:16 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E4=BF=AE=E6=94=B91111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/project/index.ts | 2 -- src/views/biddingManagemen/appointment/index.vue | 2 +- src/views/project/project/index.vue | 10 +++++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/api/project/project/index.ts b/src/api/project/project/index.ts index 04d5b65..cd3d1d7 100644 --- a/src/api/project/project/index.ts +++ b/src/api/project/project/index.ts @@ -96,8 +96,6 @@ export const addProjectFacilities = (data: any) => { * @param data */ export const addProjectPilePoint = (data: any) => { - console.log('🚀 ~ addProjectPilePoint ~ data:', data); - return request({ url: '/facility/photovoltaicPanelPoint/parts/geoJson', method: 'post', diff --git a/src/views/biddingManagemen/appointment/index.vue b/src/views/biddingManagemen/appointment/index.vue index c71349c..835b495 100644 --- a/src/views/biddingManagemen/appointment/index.vue +++ b/src/views/biddingManagemen/appointment/index.vue @@ -25,7 +25,7 @@ placeholder="请选择招投标专员" class="w-full transition-all duration-300 border-gray-300 focus:border-blue-400 focus:ring-1 focus:ring-blue-400" > - + diff --git a/src/views/project/project/index.vue b/src/views/project/project/index.vue index 31a0bbd..04ec6b7 100644 --- a/src/views/project/project/index.vue +++ b/src/views/project/project/index.vue @@ -46,7 +46,9 @@ - 添加子项目 + 添加子项目 @@ -73,7 +75,7 @@ uploadUrl="/project/projectFile/upload/dxf" :data="{ projectId: scope.row.id }" > - 上传DXF + 上传DXF - 导入安全协议书 + 导入安全协议书 + 修改 删除 From a21bf2f755a105d7e911b31772727076a33f4d7b Mon Sep 17 00:00:00 2001 From: dhr <2216804034@qq.com> Date: Fri, 29 Aug 2025 14:47:58 +0800 Subject: [PATCH 2/8] 0829 --- .env.development | 2 +- src/views/ProjectScreen/index.vue | 1 - src/views/patch/index.vue | 69 +++++++++++++++---------------- 3 files changed, 35 insertions(+), 37 deletions(-) diff --git a/.env.development b/.env.development index 500d6b0..16dfc46 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.209:8899' +VITE_APP_BASE_API = 'http://192.168.110.149:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 diff --git a/src/views/ProjectScreen/index.vue b/src/views/ProjectScreen/index.vue index 306c494..612dd7d 100644 --- a/src/views/ProjectScreen/index.vue +++ b/src/views/ProjectScreen/index.vue @@ -14,7 +14,6 @@ import Header from './components/header.vue'; import leftPage from './components/leftPage.vue'; import centerPage from './components/centerPage.vue'; import rightPage from './components/rightPage.vue'; - From 54651368795ee2393678aed7f99d019d9e501a1d Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 29 Aug 2025 14:57:52 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=8F=AD=E7=BB=84?= =?UTF-8?q?=E9=99=90=E5=88=B6=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/App.vue | 2 -- src/store/modules/user.ts | 1 + src/utils/projectTeam.ts | 4 ++++ src/views/out/monthPlan/index.vue | 12 ++++++++++-- src/views/out/monthPlanAudit/index.vue | 9 ++++++++- 6 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index 1db4544..2439ac8 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 diff --git a/src/App.vue b/src/App.vue index a0780e4..8621d55 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,14 +8,12 @@ import useSettingsStore from '@/store/modules/settings'; import { handleThemeStyle } from '@/utils/theme'; import useAppStore from '@/store/modules/app'; -import { getProjectTeam } from './utils/projectTeam'; const appStore = useAppStore(); onMounted(() => { nextTick(() => { // 初始化主题样式 handleThemeStyle(useSettingsStore().theme); - getProjectTeam(); }); }); diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 086d45c..e04a9f5 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -134,6 +134,7 @@ export const useUserStore = defineStore('user', () => { roles.value = projectRole; const projectPermissions = permissionList.value.find((item) => item.projectId == selectedProject.value?.id)?.projectPermissions || []; permissions.value = projectPermissions; + getProjectTeam(); }; // 注销 diff --git a/src/utils/projectTeam.ts b/src/utils/projectTeam.ts index 1134b68..176c032 100644 --- a/src/utils/projectTeam.ts +++ b/src/utils/projectTeam.ts @@ -2,7 +2,11 @@ import $cache from '@/plugins/cache'; //获取班组列表 import { listProjectTeam } from '@/api/project/projectTeam'; import { ProjectTeamVO } from '@/api/project/projectTeam/types'; +import useUserStore from '@/store/modules/user'; export const getProjectTeam = async () => { + const isPermission = useUserStore().permissions.some((item) => item == 'project:team:list'); + if (!isPermission) return; + const { id } = $cache.local.getJSON('selectedProject'); const res = await listProjectTeam({ pageNum: 1, diff --git a/src/views/out/monthPlan/index.vue b/src/views/out/monthPlan/index.vue index e24ca17..dcaa8d1 100644 --- a/src/views/out/monthPlan/index.vue +++ b/src/views/out/monthPlan/index.vue @@ -8,7 +8,7 @@ - + @@ -113,6 +113,13 @@ import { useUserStoreHook } from '@/store/modules/user'; const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 const currentProject = computed(() => userStore.selectedProject); +const month = computed(() => { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); // getMonth() 从0开始 + const currentMonth = `${year}-${month}`; + return currentMonth; +}); const monthPlanList = ref([]); const buttonLoading = ref(false); const loading = ref(true); @@ -152,7 +159,8 @@ const data = reactive({ planValue: undefined, completeValue: undefined, differenceValue: undefined, - planMonth: undefined, + planMonth: month.value, + valueType: undefined, planAuditStatus: undefined, completeAuditStatus: undefined, diff --git a/src/views/out/monthPlanAudit/index.vue b/src/views/out/monthPlanAudit/index.vue index b134549..28c058e 100644 --- a/src/views/out/monthPlanAudit/index.vue +++ b/src/views/out/monthPlanAudit/index.vue @@ -80,6 +80,13 @@ import { useUserStoreHook } from '@/store/modules/user'; const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 const currentProject = computed(() => userStore.selectedProject); +const month = computed(() => { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); // getMonth() 从0开始 + const currentMonth = `${year}-${month}`; + return currentMonth; +}); const monthPlanAuditList = ref([]); const buttonLoading = ref(false); const loading = ref(true); @@ -116,7 +123,7 @@ const data = reactive>({ purchaseValue: undefined, constructionValue: undefined, totalValue: undefined, - planMonth: undefined, + planMonth: month.value, params: {} }, rules: { From 7c2e4d7e149170ebe6127f5079bce59ed815ed89 Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Fri, 29 Aug 2025 14:58:31 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/bidding/appointment/index.ts | 2 +- src/views/contract/division/index.vue | 12 +++++------- src/views/contract/limitPrice/index.vue | 13 ++++++------- src/views/tender/bidd/index.vue | 12 +++++------- 5 files changed, 18 insertions(+), 23 deletions(-) diff --git a/.env.development b/.env.development index 1db4544..c0501b7 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.158:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 diff --git a/src/api/bidding/appointment/index.ts b/src/api/bidding/appointment/index.ts index 8f58106..4db7a6e 100644 --- a/src/api/bidding/appointment/index.ts +++ b/src/api/bidding/appointment/index.ts @@ -21,7 +21,7 @@ export const AddbiddingUser = (data) => { data }); }; -// 新增招投标人员 +// 查询招投标人员 export const biddingUserList = (projectId) => { return request({ url: '/bidding/biddingUser/list', diff --git a/src/views/contract/division/index.vue b/src/views/contract/division/index.vue index 3f80b55..0bca716 100644 --- a/src/views/contract/division/index.vue +++ b/src/views/contract/division/index.vue @@ -96,10 +96,7 @@ - 一键展开 - - - 一键收起 + {{ isExpandAll ? '一键收起' : '一键展开' }} @@ -413,11 +410,12 @@ const changeSheet = () => { getTreeList(); }; -const toggleExpandAll = (isExpand: boolean) => { +const toggleExpandAll = () => { + isExpandAll.value = !isExpandAll.value; + console.log(isExpandAll.value); treeData.value.forEach((row) => { - treeTableRef.value.toggleRowExpansion(row, isExpand); + treeTableRef.value.toggleRowExpansion(row, isExpandAll.value); }); - isExpandAll.value = isExpand; }; //打开获取表数据 const getTreeList = async () => { diff --git a/src/views/contract/limitPrice/index.vue b/src/views/contract/limitPrice/index.vue index c38b70b..e10bd99 100644 --- a/src/views/contract/limitPrice/index.vue +++ b/src/views/contract/limitPrice/index.vue @@ -14,11 +14,9 @@ - 一键展开 - - - 一键收起 + {{ isExpandAll ? '一键收起' : '一键展开' }} + { }; const tableRef = ref(); -const toggleExpandAll = (isExpand: boolean) => { +const toggleExpandAll = () => { + isExpandAll.value = !isExpandAll.value; + console.log(isExpandAll.value); tableData.value.forEach((row) => { - tableRef.value.toggleRowExpansion(row, isExpand); + tableRef.value.toggleRowExpansion(row, isExpandAll.value); }); - isExpandAll.value = isExpand; }; //导入 const importExcel = (options: any): any => { diff --git a/src/views/tender/bidd/index.vue b/src/views/tender/bidd/index.vue index 27afe21..3c3972b 100644 --- a/src/views/tender/bidd/index.vue +++ b/src/views/tender/bidd/index.vue @@ -17,10 +17,7 @@ - 一键展开 - - - 一键收起 + {{ isExpandAll ? '一键收起' : '一键展开' }} @@ -163,11 +160,12 @@ const changeSheet = (val: any) => { getTableData(); }; //展开树 -const toggleExpandAll = (isExpand: boolean) => { +const toggleExpandAll = () => { + isExpandAll.value = !isExpandAll.value; + console.log(isExpandAll.value); tableData.value.forEach((row) => { - tableRef.value.toggleRowExpansion(row, isExpand); + tableRef.value.toggleRowExpansion(row, isExpandAll.value); }); - isExpandAll.value = isExpand; }; //获取版本号 From 70aa152b1a43e877ec5b9e172801ebeb09715f80 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 29 Aug 2025 15:08:26 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=8F=AD=E7=BB=84?= =?UTF-8?q?=E9=99=90=E5=88=B6=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/projectTeam.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/projectTeam.ts b/src/utils/projectTeam.ts index 176c032..23f482d 100644 --- a/src/utils/projectTeam.ts +++ b/src/utils/projectTeam.ts @@ -5,7 +5,9 @@ import { ProjectTeamVO } from '@/api/project/projectTeam/types'; import useUserStore from '@/store/modules/user'; export const getProjectTeam = async () => { const isPermission = useUserStore().permissions.some((item) => item == 'project:team:list'); - if (!isPermission) return; + console.log(useUserStore().permissions); + + if (!isPermission && useUserStore().permissions[0] != '*:*:*') return; const { id } = $cache.local.getJSON('selectedProject'); const res = await listProjectTeam({ From 31b00165cf19657136103406632c8d45fa0bef1b Mon Sep 17 00:00:00 2001 From: dhr <2216804034@qq.com> Date: Fri, 29 Aug 2025 16:12:14 +0800 Subject: [PATCH 6/8] 1 --- src/views/design/appointment/index copy 2.vue | 9 +++++++-- src/views/design/appointment/index.vue | 2 ++ src/views/design/received/index.vue | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/design/appointment/index copy 2.vue b/src/views/design/appointment/index copy 2.vue index d87d820..8609bfd 100644 --- a/src/views/design/appointment/index copy 2.vue +++ b/src/views/design/appointment/index copy 2.vue @@ -5,7 +5,12 @@ 人员配置 请配置项目相关负责人员信息 - + 点击编辑 @@ -220,7 +225,7 @@ - + { + console.log(1111111111111); + if (!deptId) { ElMessage.warning('请先选择部门'); return; diff --git a/src/views/design/received/index.vue b/src/views/design/received/index.vue index b28478f..51604eb 100644 --- a/src/views/design/received/index.vue +++ b/src/views/design/received/index.vue @@ -112,7 +112,7 @@ Date: Fri, 29 Aug 2025 16:16:47 +0800 Subject: [PATCH 7/8] =?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 @@ - - - + + + @@ -72,17 +72,17 @@ - + - + - + diff --git a/src/views/out/monthPlanAudit/index.vue b/src/views/out/monthPlanAudit/index.vue index 28c058e..7db8adf 100644 --- a/src/views/out/monthPlanAudit/index.vue +++ b/src/views/out/monthPlanAudit/index.vue @@ -32,10 +32,10 @@ - - - - + + + + @@ -44,16 +44,16 @@ - + - + - + - + diff --git a/src/views/tender/supplierInput/index.vue b/src/views/tender/supplierInput/index.vue index 680aaf1..cea16ef 100644 --- a/src/views/tender/supplierInput/index.vue +++ b/src/views/tender/supplierInput/index.vue @@ -277,7 +277,7 @@ * 入库资料 - - 上传文件 - - - - 查看文件 - - - - + 上传文件 From 47a8b170616da264bd153126eeb1cf56a2a56b73 Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Fri, 29 Aug 2025 16:33:37 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ctr/index.vue | 745 +++++++++++----------- src/views/materials/appointment/index.vue | 5 +- src/views/tender/plan/index.vue | 12 +- 3 files changed, 380 insertions(+), 382 deletions(-) diff --git a/src/views/ctr/index.vue b/src/views/ctr/index.vue index c46404a..1cb9d4b 100644 --- a/src/views/ctr/index.vue +++ b/src/views/ctr/index.vue @@ -1,440 +1,439 @@ - - - - - - - - - - 收入合同 - 支出合同 - - - - - {{ contract_type == "income" ? "收入合同" : "支出合同" }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 选择招标 - - - - - - - - - - - + + + + + + + + + + + + 选择招标 + + + + + + + + + + + - - - - - - - - - - 上一步 - 下一步 - - - - {{ contract_type == "income" ? "收入合同" : "支出合同" }} - - - - 月结算 - 形象节点 - - - - - - - - - - - - - - - - - 上一步 - 提交 - - - - + + + + + + + + + + 上一步 + 下一步 - - - - - - - - - - 选择 - - - - - - - + + + {{ contract_type == 'income' ? '收入合同' : '支出合同' }} + + + + 月结算 + 形象节点 + + + + + + + + + + + + + + + + + 上一步 + 提交 + + + + + + + + + + + + + + 选择 + + + + + + + + diff --git a/src/views/materials/appointment/index.vue b/src/views/materials/appointment/index.vue index cda181e..710abb2 100644 --- a/src/views/materials/appointment/index.vue +++ b/src/views/materials/appointment/index.vue @@ -10,7 +10,7 @@ @click="isDisabled = false" class="px-8 py-2.5 transition-all duration-300 font-medium" v-if="isDisabled" - v-hasPermi="['ailiaoshebei:purchaseUser:byProject']" + v-hasPermi="['cailiaoshebei:purchaseUser:addOrUpdate']" > 点击编辑 @@ -38,7 +38,7 @@ @click="submitForm" icon="Check" class="px-8 py-2.5 transition-all duration-300 transform hover:scale-105 bg-blue-500 hover:bg-blue-600 text-white font-medium" - v-hasPermi="['cailiaoshebei:purchaseUser:add']" + v-hasPermi="['cailiaoshebei:purchaseUser:addOrUpdate']" > 确认提交 @@ -121,6 +121,7 @@ const designUser = async () => { return; } Object.assign(form, res.data); + // form.userId = res.data.userId; isDisabled.value = true; } } catch (error) { diff --git a/src/views/tender/plan/index.vue b/src/views/tender/plan/index.vue index dfc29b3..63a4eff 100644 --- a/src/views/tender/plan/index.vue +++ b/src/views/tender/plan/index.vue @@ -167,10 +167,7 @@ - 一键展开 - - - 一键收起 + {{ isExpandAll ? '一键收起' : '一键展开' }} @@ -514,11 +511,12 @@ const changeSheet = () => { getTreeList(); }; -const toggleExpandAll = (isExpand: boolean) => { +const toggleExpandAll = () => { + isExpandAll.value = !isExpandAll.value; + console.log(isExpandAll.value); treeData.value.forEach((row) => { - treeTableRef.value.toggleRowExpansion(row, isExpand); + treeTableRef.value.toggleRowExpansion(row, isExpandAll.value); }); - isExpandAll.value = isExpand; }; //打开获取表数据 const getTreeList = async () => {
请配置项目相关负责人员信息