diff --git a/.env.development b/.env.development
index 0fcb698..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.188: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/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/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/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/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..23f482d 100644
--- a/src/utils/projectTeam.ts
+++ b/src/utils/projectTeam.ts
@@ -2,7 +2,13 @@ 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');
+ console.log(useUserStore().permissions);
+
+ if (!isPermission && useUserStore().permissions[0] != '*:*:*') return;
+
const { id } = $cache.local.getJSON('selectedProject');
const res = await listProjectTeam({
pageNum: 1,
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';
-
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..b9fc009 100644
--- a/src/views/design/received/index.vue
+++ b/src/views/design/received/index.vue
@@ -17,6 +17,7 @@
@@ -93,6 +94,7 @@
@@ -112,7 +114,7 @@
{
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/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/out/monthPlan/index.vue b/src/views/out/monthPlan/index.vue
index e24ca17..c426eca 100644
--- a/src/views/out/monthPlan/index.vue
+++ b/src/views/out/monthPlan/index.vue
@@ -8,7 +8,7 @@
-
+
@@ -40,9 +40,9 @@
-
-
-
+
+
+
@@ -72,17 +72,17 @@
-
+
-
+
-
+
@@ -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..7db8adf 100644
--- a/src/views/out/monthPlanAudit/index.vue
+++ b/src/views/out/monthPlanAudit/index.vue
@@ -32,10 +32,10 @@
-
-
-
-
+
+
+
+
@@ -44,16 +44,16 @@
-
+
-
+
-
+
-
+
@@ -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: {
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
- 导入安全协议书
+ 导入安全协议书
+
修改
删除
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;
};
//获取版本号
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 () => {
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 @@
* 入库资料
-
- 上传文件
-
-
-
- 查看文件
-
-
-
-
+ 上传文件