diff --git a/src/api/project/constructionUser/index.ts b/src/api/project/constructionUser/index.ts index 3a26dc4..13bcda9 100644 --- a/src/api/project/constructionUser/index.ts +++ b/src/api/project/constructionUser/index.ts @@ -1,5 +1,6 @@ import request, { download } from '@/utils/request'; import { AxiosPromise } from 'axios'; +<<<<<<< HEAD import { ConstructionUserForm, ConstructionUserQuery, @@ -28,6 +29,9 @@ export const listConstructionMonth = (query?: ConstructionMonthQuery): AxiosProm params: query }); }; +======= +import { ConstructionUserForm, ConstructionUserQuery, ConstructionUserVO } from '@/api/project/constructionUser/types'; +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 /** * 查询施工人员列表 @@ -54,28 +58,6 @@ export const getConstructionUser = (id: string | number): AxiosPromise { - return request({ - url: '/project/constructionUser/change/project', - method: 'put', - data: data - }); -}; - -/** - * 查询项目以及项目下的分包公司列表 - */ -export const getProjectContractorList = () => { - return request({ - url: '/project/project/list/project/contractorList', - method: 'get' - }); -}; - /** * 新增施工人员 * @param data diff --git a/src/api/project/constructionUser/types.ts b/src/api/project/constructionUser/types.ts index d52b4d7..6349c38 100644 --- a/src/api/project/constructionUser/types.ts +++ b/src/api/project/constructionUser/types.ts @@ -184,6 +184,7 @@ export interface ConstructionUserVO { createTime: string; } +<<<<<<< HEAD export interface skipType { /** * 项目id @@ -297,6 +298,8 @@ export interface skipTeamType { id: string | number; } +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 export interface ConstructionUserForm extends BaseEntity { /** * 主键id diff --git a/src/api/project/contractor/types.ts b/src/api/project/contractor/types.ts index ed0421d..eb7658b 100644 --- a/src/api/project/contractor/types.ts +++ b/src/api/project/contractor/types.ts @@ -51,11 +51,6 @@ export interface ContractorForm extends BaseEntity { */ id?: string | number; - /** - * 主键id - */ - projectId?: string | number; - /** * 公司名称 */ diff --git a/src/api/project/project/types.ts b/src/api/project/project/types.ts index f78eb29..f504ef5 100644 --- a/src/api/project/project/types.ts +++ b/src/api/project/project/types.ts @@ -37,12 +37,12 @@ export interface ProjectVO { /** * 项目类型 */ - projectType: string; + type: string; /** * 项目类型(1光伏 2风电) */ - projectCategory: number; + isType: number; /** * 删除时间 @@ -116,18 +116,6 @@ export interface ProjectVO { type?: string; } -export interface locationType { - /** - * 经度 - */ - lng: string; - // 纬度 - lat: string; - // 逆地理编码地址 - - projectSite: string; -} - export interface ProjectForm extends BaseEntity { /** * @@ -159,16 +147,6 @@ export interface ProjectForm extends BaseEntity { */ picUrl?: string; - /** - * 经度 - */ - lng?: string; - - /** - * 纬度 - */ - lat?: string; - /** * 备注 */ @@ -177,12 +155,12 @@ export interface ProjectForm extends BaseEntity { /** * 项目类型 */ - projectType?: string; + type?: string; /** * 项目类型(1光伏 2风电) */ - projectCategory?: number; + isType?: number; /** * 删除时间 @@ -220,14 +198,9 @@ export interface ProjectForm extends BaseEntity { onStreamTime?: string; /** - * 打卡开始时间(09:00,18:00) + * 打卡范围(09:00,18:00) */ - playCardStart?: string; - - /** - * 打卡结束时间(09:00,18:00) - */ - playCardEnd?: string; + punchRange?: string; /** * 设计总量 @@ -284,12 +257,12 @@ export interface ProjectQuery extends PageQuery { /** * 项目类型 */ - projectType?: string; + type?: string; /** * 项目类型(1光伏 2风电) */ - projectCategory?: number; + isType?: number; /** * 删除时间 @@ -301,16 +274,6 @@ export interface ProjectQuery extends PageQuery { */ projectSite?: string; - /** - * 经度 - */ - lng?: string; - - /** - * 纬度 - */ - lat?: string; - /** * 负责人 */ @@ -337,14 +300,9 @@ export interface ProjectQuery extends PageQuery { onStreamTime?: string; /** - * 打卡开始时间(09:00,18:00) + * 打卡范围(09:00,18:00) */ - playCardStart?: string; - - /** - * 打卡结束时间(09:00,18:00) - */ - playCardEnd?: string; + punchRange?: string; /** * 设计总量 diff --git a/src/components/amap/index.vue b/src/components/amap/index.vue deleted file mode 100644 index 73c6c2c..0000000 --- a/src/components/amap/index.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - - diff --git a/src/views/project/constructionUser/index.vue b/src/views/project/constructionUser/index.vue index c4ae0a7..c055de4 100644 --- a/src/views/project/constructionUser/index.vue +++ b/src/views/project/constructionUser/index.vue @@ -175,9 +175,12 @@ 黑名单 +<<<<<<< HEAD 人员迁移 入退场记录 +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 删除 @@ -340,6 +343,7 @@ +<<<<<<< HEAD @@ -459,6 +463,8 @@ +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 @@ -468,6 +474,7 @@ import { delConstructionUser, getConstructionUser, listConstructionUser, +<<<<<<< HEAD updateConstructionUser, getProjectContractorList, transferConstructionUser, @@ -479,15 +486,11 @@ import { dowloadConstructionUserTemplate, importConstructionUserInfo, listConstructionMonth +======= + updateConstructionUser +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 } from '@/api/project/constructionUser'; -import { - ConstructionUserForm, - ConstructionUserQuery, - ConstructionUserVO, - skipType, - skipOptionType, - skipTeamType -} from '@/api/project/constructionUser/types'; +import { ConstructionUserForm, ConstructionUserQuery, ConstructionUserVO } from '@/api/project/constructionUser/types'; import { useUserStoreHook } from '@/store/modules/user'; import { listContractor } from '@/api/project/contractor'; import { listProjectTeam } from '@/api/project/projectTeam'; @@ -525,6 +528,7 @@ const ids = ref>([]); const single = ref(true); const multiple = ref(true); const total = ref(0); +<<<<<<< HEAD const skip = ref(false); const fileStatus = ref(false); const showFaceDrawer = ref(false); @@ -546,11 +550,18 @@ const queryFormRef = ref(); const constructionUserFormRef = ref(); const skipName = ref(''); const calendarList = ref>([]); +======= + +const queryFormRef = ref(); +const constructionUserFormRef = ref(); + +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 const dialog = reactive({ visible: false, title: '', id: undefined }); +<<<<<<< HEAD const baseUrl = import.meta.env.VITE_APP_BASE_API; //人员迁移条件 const skipObject: skipType = reactive({ @@ -561,6 +572,8 @@ const skipObject: skipType = reactive({ const contractorList = ref>([]); //项目列表 const skipOptions = ref>([]); +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 const initFormData: ConstructionUserForm = { id: undefined, @@ -721,6 +734,7 @@ const getList = async () => { loading.value = false; }; +<<<<<<< HEAD /** 查看打卡记录详情 */ const handleViewPlayCard = async (idx: number, data: any) => { if (data.type == 'next-month' || data.type == 'prev-month') { @@ -765,6 +779,8 @@ const setUnits = async () => { getList(); } }; +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 const contractorOpt = ref(); /** 查询当前项目下的分包公司列表 */ @@ -880,6 +896,7 @@ const handleShowDrawer = (row?: ConstructionUserVO) => { showDetailDrawer.value = true; }; +<<<<<<< HEAD //打卡按钮 const handlePlayCard = async (row: ConstructionUserVO) => { const _id = row?.id || ids.value[0]; @@ -941,6 +958,8 @@ const handleUpload = async (row: ConstructionUserVO) => { fileStatus.value = true; }; +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 /** 提交按钮 */ const submitForm = () => { constructionUserFormRef.value?.validate(async (valid: boolean) => { diff --git a/src/views/project/contractor/index.vue b/src/views/project/contractor/index.vue index d95afab..004354d 100644 --- a/src/views/project/contractor/index.vue +++ b/src/views/project/contractor/index.vue @@ -122,6 +122,16 @@ const contractorFormRef = ref(); const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 const currentProject = computed(() => userStore.selectedProject); +//监听项目改变 +// watch( +// () => currentProject.value, +// (newId, oldId) => { +// /* ... */ +// queryParams.value.projectId=newId.id +// // getList() + +// } +// ) const dialog = reactive({ visible: false, title: '' @@ -135,8 +145,7 @@ const initFormData: ContractorForm = { custodian: undefined, custodianPhone: undefined, fileMap: undefined, - remark: undefined, - projectId: currentProject.value.id + remark: undefined }; const data = reactive>({ form: { ...initFormData }, @@ -163,6 +172,10 @@ const { queryParams, form, rules } = toRefs(data); /** 查询分包单位列表 */ const getList = async () => { loading.value = true; +<<<<<<< HEAD +======= + +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 const res = await listContractor(queryParams.value); contractorList.value = res.rows; total.value = res.total; diff --git a/src/views/project/project/index.vue b/src/views/project/project/index.vue index bbe66fa..b5a518b 100644 --- a/src/views/project/project/index.vue +++ b/src/views/project/project/index.vue @@ -52,14 +52,14 @@ +<<<<<<< HEAD +======= + + +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 - - - @@ -107,8 +107,9 @@ - + +<<<<<<< HEAD
基础信息
@@ -237,6 +238,44 @@
+======= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575
+<<<<<<< HEAD @@ -268,10 +308,13 @@ @close="polygonStatus = false" > +======= +>>>>>>> 7736f4a33624dcddf693271347dd34a922e58575 -