2022-06-08 14:51:11 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<!-- 合作单位 ,该页面还用于企业后台 - 企业库 通过路由来判断页面类型-->
|
|
|
|
|
|
<div class="cooperator flex" v-if="!showDetail">
|
|
|
|
|
|
<div class="left whiteBlock">
|
2023-06-19 18:22:36 +08:00
|
|
|
|
<div class="title">{{ $t('message.cooperationUnit.flatType') }}</div>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<vue-scroll style="height: 95%">
|
|
|
|
|
|
<!-- <el-menu
|
|
|
|
|
|
default-active="1"
|
|
|
|
|
|
class="el-menu-vertical-demo"
|
|
|
|
|
|
background-color="#fbfbfb"
|
|
|
|
|
|
text-color="#2A2E3F"
|
|
|
|
|
|
active-text-color="#2A2E3F"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-menu-item
|
|
|
|
|
|
:index="setString(item.id)"
|
|
|
|
|
|
class="el-menu-item"
|
|
|
|
|
|
:class="checkedId == item.id ? 'checked_item' : ''"
|
|
|
|
|
|
v-for="(item, index) in enterpriseTypeList"
|
|
|
|
|
|
@click="selectMenu(item)"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span slot="title">{{ item.companyTypeName }}</span>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-menu> -->
|
|
|
|
|
|
<ul>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<li class="el-menu-item2" :class="checkedId == item.id ? 'checked_item' : ''"
|
|
|
|
|
|
v-for="(item, index) in enterpriseTypeList" @click="selectMenu(item)" :key="index">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
{{ item.companyTypeName }}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="right whiteBlock">
|
|
|
|
|
|
<div class="title flex2">
|
|
|
|
|
|
<span>{{ enterpriseTypeName }}</span>
|
|
|
|
|
|
<span class="right_value">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<span>{{ enterpriseTypeName
|
2024-05-29 23:43:23 +08:00
|
|
|
|
}}{{ $t('message.cooperationUnit.sum') }}:</span>
|
2024-05-31 18:53:05 +08:00
|
|
|
|
<span class="value">{{ Number(total) }}</span></span>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="flex2" style="margin-bottom: 10px">
|
|
|
|
|
|
<el-form :inline="true" class="demo-form-inline" size="small">
|
|
|
|
|
|
<el-form-item>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button v-permission="{ key: 'hzdw_add', menuPath: '/project/summary/cooperationUnit' }" type="primary"
|
|
|
|
|
|
style="height: 32px" @click="addBtn">{{
|
|
|
|
|
|
$t('message.cooperationUnit.add')
|
|
|
|
|
|
}}</el-button>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item>
|
|
|
|
|
|
<el-button type="primary" style="height: 32px"
|
|
|
|
|
|
>从企业选择</el-button
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-form-item>-->
|
|
|
|
|
|
<el-form-item>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button v-permission="{ key: 'hzdw_delete_pl', menuPath: '/project/summary/cooperationUnit' }"
|
2024-05-29 23:43:23 +08:00
|
|
|
|
type="primary" style="height: 32px" :disabled="checkedDeleteList.length == 0" @click="deleteInBatches">{{
|
2024-05-29 20:54:35 +08:00
|
|
|
|
$t('message.cooperationUnit.deleteInBatches') }}</el-button>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item>
|
|
|
|
|
|
<el-button type="primary" style="height: 32px"
|
|
|
|
|
|
>显示已删除项</el-button
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
|
<el-form-item>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button v-permission="{ key: 'hzdw_Move_pl', menuPath: '/project/summary/cooperationUnit' }"
|
|
|
|
|
|
type="primary" style="height: 32px" :disabled="checkedDeleteList.length == 0" @click="moveInBatches">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<!-- 批量移动 -->
|
2023-06-19 18:22:36 +08:00
|
|
|
|
{{ $t('message.projectInfo.batchMobile') }}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
2024-05-31 10:19:10 +08:00
|
|
|
|
<el-form v-permission="{ key: 'hzdw_query', menuPath: '/project/summary/cooperationUnit' }" :inline="true"
|
2024-05-29 20:54:35 +08:00
|
|
|
|
class="demo-form-inline" size="small">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-form-item>
|
2024-05-29 23:43:23 +08:00
|
|
|
|
<el-input :placeholder="$t('message.laborMange.placeholder1')" v-model="enterpriseName" style="width: 260px"
|
|
|
|
|
|
clearable>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item>
|
|
|
|
|
|
<el-select v-model="dictionaryItemId" clearable placeholder="请选择项目类型">
|
2024-05-29 22:53:49 +08:00
|
|
|
|
<el-option v-for="item in dictionaryItemList" :key="item.id" :label="item.name" :value="item.data">
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-form-item>
|
2024-05-01 00:06:15 +08:00
|
|
|
|
<!-- 查询 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button type="primary" plain style="height: 32px" @click="getCooperatorList">{{
|
|
|
|
|
|
$t('message.laborMange.inquire') }}</el-button>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<vue-scroll style="height: 80%" v-if="!noDataList">
|
|
|
|
|
|
<div class="list_wrap flex">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<div class="list" @click="goDetailPage(item.id, item.projectEnterpriseId, item.projectSn)"
|
|
|
|
|
|
v-for="(item, index) in listData" :key="index">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<div class="name">{{ item.enterpriseName }}</div>
|
|
|
|
|
|
<div class="code">
|
2023-06-19 18:22:36 +08:00
|
|
|
|
{{ $t('message.laborMange.unifiedSocialCreditCode') }}:{{
|
2022-06-08 14:51:11 +08:00
|
|
|
|
item.socialCode
|
|
|
|
|
|
}}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="nature">
|
|
|
|
|
|
<!-- 项目负责人: -->{{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
$t('message.projectInfo.projectLeader') + ':'
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}}{{ item.projectDirectorName }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="nature">
|
|
|
|
|
|
<!-- 项目负责人电话: -->{{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
$t('message.projectInfo.projectLeaderPhone') + ':'
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}}{{ item.projectDirectorPhone }}
|
|
|
|
|
|
</div>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<div class="nature">
|
2024-05-29 21:15:38 +08:00
|
|
|
|
<!-- 项目负责人电话: -->项目类型:{{ item.projectEnterprise.cbsProjectTypeName }}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</div>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<!-- <div class="nature">
|
|
|
|
|
|
{{ $t("message.cooperationUnit.enterpriseProperty") }}:{{
|
|
|
|
|
|
item.enterpriseProperty == 1
|
|
|
|
|
|
? $t("message.laborMange.stateOwnedBusiness")
|
|
|
|
|
|
: item.enterpriseProperty == 2
|
|
|
|
|
|
? $t("message.laborMange.overseasInvestedEnterprises")
|
|
|
|
|
|
: item.enterpriseProperty == 3
|
|
|
|
|
|
? $t("message.laborMange.collectiveEnterprises")
|
|
|
|
|
|
: item.enterpriseProperty == 4
|
|
|
|
|
|
? $t("message.laborMange.privateEnterprise")
|
|
|
|
|
|
: ""
|
|
|
|
|
|
}}
|
|
|
|
|
|
</div> -->
|
|
|
|
|
|
<!-- <div class="encoded">企业编码:5678907</div> -->
|
|
|
|
|
|
<div class="btn_wrap flex3">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<div v-permission="{ key: 'hzdw_edit', menuPath: '/project/summary/cooperationUnit' }" class="flex3"
|
|
|
|
|
|
@click.stop="editBtn(item)">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<img src="@/assets/images/icon-edit.png" />
|
|
|
|
|
|
<el-button type="text" style="margin: 0 18px 0 5px">{{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
$t('message.laborMange.edit')
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}}</el-button>
|
|
|
|
|
|
</div>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<div v-permission="{ key: 'hzdw_delete', menuPath: '/project/summary/cooperationUnit' }" class="flex3"
|
|
|
|
|
|
@click.stop="deleteBtn(item)">
|
|
|
|
|
|
<img src="@/assets/images/icon-delete.png" style="margin-right: 5px" />
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-button type="text" style="color: red">{{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
$t('message.laborMange.delete')
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}}</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="deleteList" @click.stop>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-checkbox-group v-model="checkedDeleteList" @change="getDeleteList">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-checkbox :label="item.projectEnterpriseId"></el-checkbox>
|
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
|
<div v-else class="nodata_wrap">
|
|
|
|
|
|
<img src="@/assets/images/noData.png" />
|
2023-06-19 18:22:36 +08:00
|
|
|
|
<div>{{ $t('message.laborMange.noData') }}</div>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-pagination class="pagerBox" @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
|
|
|
:current-page="pageNo" :page-size="pageSize" layout="total, sizes, prev, pager, next" :total="Number(total)"
|
|
|
|
|
|
background style="margin-top: 40px"></el-pagination>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 新增 || 编辑 企业弹窗 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-dialog :modal-append-to-body="false" :title="enterpriseDialogTitle" :close-on-click-modal="false"
|
|
|
|
|
|
:visible.sync="addEnterpriseDialog" width="750px" @close="close">
|
2022-09-05 15:19:36 +08:00
|
|
|
|
<vue-scroll class="adddialog" style="height: 618px">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<div class="dialog_content" ref="enterpriseDialog">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form size="small" ref="enterpriseForm" :model="enterpriseForm" :rules="enterpriseFormRules"
|
|
|
|
|
|
label-position="top" label-width="80px">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.theNameOfFirm')" prop="enterpriseName">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.enterpriseName"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.legalRepresentative')" prop="enterpriseLegalPerson">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.enterpriseLegalPerson"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
2022-09-05 15:19:36 +08:00
|
|
|
|
<!-- 企业类型 -->
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-col :span="12">
|
2024-05-30 13:50:41 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.formOfBusiness')" prop="enterpriseTypeId">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.enterpriseTypeId" :placeholder="$t('message.laborMange.pleaseChoose')"
|
2024-05-29 23:43:23 +08:00
|
|
|
|
style="width: 100%" :disabled="enterpriseTypeName == '全部' ? false : true">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-option v-for="item in companyTypeList" :key="item.id" :label="item.companyTypeName"
|
2024-05-30 13:50:41 +08:00
|
|
|
|
:value="item.id"></el-option>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.unifiedSocialCreditCode')" prop="socialCode">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.socialCode" :placeholder="$t('message.laborMange.placeholder2')"
|
|
|
|
|
|
maxlength="18"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.projectInfo.projectLeader')" prop="projectDirectorName">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.projectDirectorName"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')" maxlength="18"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.projectInfo.projectLeaderPhone')" prop="projectDirectorPhone">
|
|
|
|
|
|
<el-input type="number" v-model="enterpriseForm.projectDirectorPhone"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')" maxlength="18"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.openingBank')" prop="bankname">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.bankname"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.registeredCapital')" prop="registeredCapital">
|
|
|
|
|
|
<el-input type="number" @change="checkValue()" v-model="enterpriseForm.registeredCapital"
|
|
|
|
|
|
placeholder="请输入数字类型" max="999999999999999"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.numberOfRegistrant')" prop="registerPersonPhoneTel">
|
|
|
|
|
|
<el-input type="number" v-model="enterpriseForm.registerPersonPhoneTel"
|
2023-07-05 17:54:24 +08:00
|
|
|
|
oninput="if(value.length>11)value=value.slice(0,11)"
|
2024-05-29 20:54:35 +08:00
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.bankAccount')" prop="bankcardnumber">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.bankcardnumber" :placeholder="$t('message.laborMange.placeholder2')"
|
|
|
|
|
|
type="number" @wheel.native.prevent oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.legalPersonPhone')" prop="legalPersonTel">
|
|
|
|
|
|
<el-input type="number" v-model="enterpriseForm.legalPersonTel"
|
2023-07-05 17:54:24 +08:00
|
|
|
|
oninput="if(value.length>11)value=value.slice(0,11)"
|
2024-05-29 20:54:35 +08:00
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.businessNumber')" prop="businessNumber">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.businessNumber" :placeholder="$t('message.laborMange.placeholder2')"
|
|
|
|
|
|
oninput="value=value.replace(/^[a-zA-Z0-9]{10,20}$/)"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.businessLicense')" prop="businessLicenseEndDate">
|
|
|
|
|
|
<el-date-picker v-model="enterpriseForm.businessLicenseEndDate" type="date"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.pleaseSelectADate')" value-format="yyyy-MM-dd"
|
|
|
|
|
|
style="width: 100%"></el-date-picker>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.addressOfPlant')" prop="enterpriseAddress">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.enterpriseAddress"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.enterpriseMailbox')" prop="enterpriseEmail">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.enterpriseEmail"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.safetyProductionLicense')" prop="enterpriseSafeAllow">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.enterpriseSafeAllow"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.laborCertificateNo')" prop="qualificationNumber">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.qualificationNumber"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.placeholder2')"></el-input>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.natureOfUnit')" prop="enterpriseProperty">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.enterpriseProperty"
|
|
|
|
|
|
:placeholder="$t('message.laborMange.pleaseChoose')" style="width: 100%">
|
|
|
|
|
|
<el-option :label="$t('message.laborMange.stateOwnedBusiness')" :value="1"></el-option>
|
2024-05-29 22:53:49 +08:00
|
|
|
|
<el-option :label="$t('message.laborMange.overseasInvestedEnterprises')
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" :value="2"></el-option>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-option :label="$t('message.laborMange.collectiveEnterprises')" :value="3"></el-option>
|
|
|
|
|
|
<el-option :label="$t('message.laborMange.privateEnterprise')" :value="4"></el-option>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<!-- 父级企业 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.projectInfo.theParentCompany')" prop="parentEnterpriseId">
|
2024-05-29 22:53:49 +08:00
|
|
|
|
<el-select v-model="enterpriseForm.parentEnterpriseId" :placeholder="$t('message.projectInfo.pleaseChoose') +
|
2024-05-29 20:54:35 +08:00
|
|
|
|
$t('message.projectInfo.theParentCompany')
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" filterable clearable style="width: 100%">
|
|
|
|
|
|
<el-option v-for="(item, index) in parentEnterpriseList" :label="item.enterpriseName" :value="item.id"
|
|
|
|
|
|
:key="index">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<!-- 排序 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.projectInfo.sort')" prop="num">
|
2024-05-29 23:43:23 +08:00
|
|
|
|
<el-input-number v-model="enterpriseForm.sortNum" @change="handleChangeNum" :min="0"></el-input-number>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row v-if="company == 'nanchang'" :gutter="24">
|
|
|
|
|
|
<!-- 企业管理 -->
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.projectInfo.departmentType')" prop="departmentType">
|
2023-06-19 18:22:36 +08:00
|
|
|
|
<!-- 否 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-radio v-model="enterpriseForm.departmentType" :label="1">{{ $t('message.laborDev.whetherList')[0]
|
2024-05-29 23:43:23 +08:00
|
|
|
|
}}</el-radio>
|
2023-06-19 18:22:36 +08:00
|
|
|
|
<!-- 是 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-radio v-model="enterpriseForm.departmentType" :label="2">{{ $t('message.laborDev.whetherList')[1]
|
2024-05-29 23:43:23 +08:00
|
|
|
|
}}</el-radio>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.laborMange.photosOfQualification')" prop="enterpriseQualificationUrl">
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<el-upload class="upload-demo" :limit="1" accept=".png, .jpg, .jpeg" :action="uploadUrl" :on-remove="(file, flexList) => handleRemove(file, flexList, 1)
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" :on-success="(file) => handleSuccess(file, 1)" :on-error="(file) => handleError(file, 1)"
|
|
|
|
|
|
:on-preview="(file) => handlePreview(file, 1)" :before-upload="(file) => handleBeforeUpload(file, 1)"
|
|
|
|
|
|
name="files" :file-list="aptitudeFileList">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-button size="small" type="primary">{{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
$t('message.laborMange.clickOnTheUpload')
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}}</el-button>
|
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="logo" prop="logo">
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<el-upload class="upload-demo" :limit="1" accept=".png, .jpg, .jpeg" :action="uploadUrl" :on-remove="(file, flexList) => handleRemove(file, flexList, 2)
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" :on-success="(file) => handleSuccess(file, 2)" :on-error="(file) => handleError(file, 2)"
|
|
|
|
|
|
:on-preview="(file) => handlePreview(file, 2)" :before-upload="(file) => handleBeforeUpload(file, 2)"
|
|
|
|
|
|
name="files" :file-list="logoFileList">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button size="small" type="primary">{{
|
|
|
|
|
|
$t('message.laborMange.clickOnTheUpload')
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2024-05-29 21:15:38 +08:00
|
|
|
|
<el-row :gutter="24" style="font-size:18px">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
承包商项目基本信息
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-07-13 17:46:37 +08:00
|
|
|
|
<el-form-item label="承包项目名称" prop="cbsName">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.projectEnterprise.cbsName" placeholder="请输入承包项目名称"></el-input>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="项目施工区域" prop="projectBuildArea">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.projectEnterprise.projectBuildArea"
|
|
|
|
|
|
placeholder="请输入项目施工区域"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-31 11:22:35 +08:00
|
|
|
|
<el-form-item label="项目经理" prop="projectEnterprise.projectManage">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.projectEnterprise.projectManage" placeholder="请输入项目经理"></el-input>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="项目类型" prop="projectEnterprise.cbsProjectType">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.projectEnterprise.cbsProjectType" placeholder="请选择项目类型" filterable
|
|
|
|
|
|
clearable style="width: 100%">
|
|
|
|
|
|
<el-option v-for="(item, index) in dictionaryItemList" :label="item.name" :value="Number(item.data)"
|
|
|
|
|
|
:key="index">
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-31 11:22:35 +08:00
|
|
|
|
<el-form-item label="项目编号" prop="projectEnterprise.projectNumber">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.projectEnterprise.projectNumber" placeholder="请输入项目编号"></el-input>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-31 11:22:35 +08:00
|
|
|
|
<el-form-item label="施工阶段" prop="constructionStage">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.projectEnterprise.constructionStage" placeholder="请选择施工阶段" filterable
|
|
|
|
|
|
clearable style="width: 100%">
|
|
|
|
|
|
<el-option v-for="(item, index) in constructionStageList" :label="item.name"
|
|
|
|
|
|
:value="Number(item.data)" :key="index">
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="维度位置" prop="latitude">
|
|
|
|
|
|
<el-input v-model="enterpriseForm.projectEnterprise.latitude"
|
|
|
|
|
|
:placeholder="$t('message.companyDiagram.PleaseEnter')" :disabled="true"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="经度位置" prop="longitude">
|
|
|
|
|
|
<el-input :placeholder="$t('message.companyDiagram.PleaseEnter')"
|
|
|
|
|
|
v-model="enterpriseForm.projectEnterprise.longitude" :disabled="true">
|
|
|
|
|
|
<template slot="append">
|
|
|
|
|
|
<el-link type="primary" @click="toGetLocalFn">{{
|
|
|
|
|
|
$t(
|
|
|
|
|
|
'message.companyDiagram.dialog_ProjectPop_up.coordinatePicking'
|
|
|
|
|
|
)
|
|
|
|
|
|
}}</el-link>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="工程类别" prop="projectType">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.projectEnterprise.projectType" placeholder="请选择工程类别" filterable
|
|
|
|
|
|
clearable style="width: 100%">
|
2024-05-29 22:53:49 +08:00
|
|
|
|
<el-option v-for="(item, index) in projectTypeList" :label="item.name" :value="Number(item.data)"
|
|
|
|
|
|
:key="index">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="结构类型" prop="structureType">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.projectEnterprise.structureType" placeholder="请选择结构类型" filterable
|
|
|
|
|
|
clearable style="width: 100%">
|
|
|
|
|
|
<el-option v-for="(item, index) in structureTypeList" :label="item.name" :value="Number(item.data)"
|
|
|
|
|
|
:key="index">
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="项目面积(m²)" prop="enterpriseEmail">
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<el-input type="number" v-model="enterpriseForm.projectEnterprise.projectAcreage"
|
2024-05-29 20:54:35 +08:00
|
|
|
|
placeholder="请输入项目面积(m²)"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="工程状态" prop="bulidStatus">
|
|
|
|
|
|
<el-select v-model="enterpriseForm.projectEnterprise.bulidStatus" placeholder="请选择项目类型" filterable
|
|
|
|
|
|
clearable style="width: 100%">
|
|
|
|
|
|
<el-option v-for="item in $t('message.companyDiagram.BUILDSTATUS')" :label="item.name"
|
|
|
|
|
|
:value="item.id" :key="item.id">
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="开工日期" prop="enterpriseEmail">
|
2024-05-29 22:53:49 +08:00
|
|
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="enterpriseForm.projectEnterprise.startWorkDate"
|
|
|
|
|
|
type="date" placeholder="选择日期">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-31 11:22:35 +08:00
|
|
|
|
<el-form-item label="竣工日期" prop="completionDate">
|
|
|
|
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="enterpriseForm.projectEnterprise.completionDate"
|
|
|
|
|
|
type="date" placeholder="选择日期">
|
|
|
|
|
|
</el-date-picker>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 21:15:38 +08:00
|
|
|
|
<el-form-item label="联系电话" prop="projectTel">
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<el-input type="number" oninput="if(value.length>11)value=value.slice(0,11)" v-model="enterpriseForm.projectEnterprise.projectTel" placeholder="请输入联系电话"></el-input>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="现场施工图" prop="constructionMapUrl">
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<el-upload class="upload-demo" :limit="1" accept=".png, .jpg, .jpeg" :action="uploadUrl" :on-remove="(file, flexList) => handleRemove(file, flexList, 4)
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" :on-success="(file) => handleSuccess(file, 4)" :on-error="(file) => handleError(file, 4)"
|
|
|
|
|
|
:on-preview="(file) => handlePreview(file, 4)" :before-upload="(file) => handleBeforeUpload(file, 4)"
|
|
|
|
|
|
lis name="files" :file-list="constructionMapUrlList">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-button size="small" type="primary">{{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
$t('message.laborMange.clickOnTheUpload')
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}}</el-button>
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<!-- <div slot="tip" class="el-upload__tip">只能上传一张</div> -->
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-upload>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="12">
|
2024-05-29 21:15:38 +08:00
|
|
|
|
<el-form-item label="现场布置图" prop="layoutImage">
|
2024-05-31 10:13:56 +08:00
|
|
|
|
<el-upload class="upload-demo" :limit="1" accept=".png, .jpg, .jpeg" :action="uploadUrl" :on-remove="(file, flexList) => handleRemove(file, flexList, 3)
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" :on-success="(file) => handleSuccess(file, 3)" :on-error="(file) => handleError(file, 3)"
|
|
|
|
|
|
:on-preview="(file) => handlePreview(file, 3)" :before-upload="(file) => handleBeforeUpload(file, 3)"
|
|
|
|
|
|
name="files" :file-list="layoutImageList">
|
2024-05-29 21:15:38 +08:00
|
|
|
|
<el-button size="small" type="primary">{{
|
|
|
|
|
|
$t('message.laborMange.clickOnTheUpload')
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
</el-upload>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-form>
|
2022-09-05 15:19:36 +08:00
|
|
|
|
<div class="dialog-footer addpage">
|
2024-05-29 23:43:23 +08:00
|
|
|
|
<el-button class="cancleBtn" @click="addEnterpriseDialog = false" icon="el-icon-circle-close" size="medium">{{
|
|
|
|
|
|
$t('message.laborMange.cancel') }}</el-button>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button type="primary" icon="el-icon-circle-check" @click="saveEnterpriseFn('enterpriseForm')"
|
2024-05-29 22:53:49 +08:00
|
|
|
|
size="medium">{{
|
|
|
|
|
|
$t('message.laborMange.confirm') }}</el-button>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
|
</el-dialog>
|
2024-05-29 23:43:23 +08:00
|
|
|
|
<el-dialog :modal-append-to-body="false" :title="$t('message.projectInfo.batchMobile')" :close-on-click-modal="false"
|
|
|
|
|
|
:visible.sync="moveEnterpriseDialog" width="750px">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<el-form :inline="true" size="medium" ref="selectForm">
|
|
|
|
|
|
<!-- 目标企业类型 -->
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-form-item :label="$t('message.projectInfo.targetCompanyType')" prop="enterpriseType">
|
2024-05-29 22:53:49 +08:00
|
|
|
|
<el-select v-model="enterpriseType" :placeholder="$t('message.projectInfo.pleaseChoose') +
|
2024-05-29 20:54:35 +08:00
|
|
|
|
$t('message.projectInfo.targetCompanyType')
|
2024-05-29 23:43:23 +08:00
|
|
|
|
" filterable clearable>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-option v-for="(item, index) in enterpriseTypeList" :label="item.companyTypeName" :value="item.id"
|
|
|
|
|
|
:key="index">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
<div class="dialog-footer">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button class="cancleBtn" @click="moveEnterpriseDialog = false" icon="el-icon-circle-close" size="medium">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<!-- 取消 -->
|
2023-06-19 18:22:36 +08:00
|
|
|
|
{{ $t('message.energyManage.material.cancel') }}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-button>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button type="primary" icon="el-icon-circle-check" @click="moveEnterpriseFn" size="medium">
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<!-- 确定 -->
|
2023-06-19 18:22:36 +08:00
|
|
|
|
{{ $t('message.energyManage.material.confirm') }}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<!--高德地图-->
|
|
|
|
|
|
<gd-map v-if="showMap" :addProjectForm="addProjectForm" @closeMap="closeMap" @save="getLngLat"></gd-map>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 企业信息--详情 -->
|
|
|
|
|
|
<div v-else class="cooperatorDetail">
|
|
|
|
|
|
<div class="flex3 navigationTitle">
|
2024-05-29 20:54:35 +08:00
|
|
|
|
<el-button type="text" icon="el-icon-d-arrow-left" @click="showDetail = false" style="margin-left: 20px">{{
|
|
|
|
|
|
$t('message.cooperationUnit.back') }}</el-button>
|
2022-06-08 14:51:11 +08:00
|
|
|
|
<div style="margin-left: 30px">
|
2023-06-19 18:22:36 +08:00
|
|
|
|
{{ $t('message.cooperationUnit.companyDetails') }}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-05-25 20:12:36 +08:00
|
|
|
|
<Detail :detailId="detailId" :projectEnterpriseId="projectEnterpriseId" :enterpriseSn="enterpriseSn" />
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
2023-06-19 18:22:36 +08:00
|
|
|
|
import Detail from './cooperatorDatails'
|
2022-06-08 14:51:11 +08:00
|
|
|
|
import {
|
|
|
|
|
|
getEnterpriseTypeList,
|
|
|
|
|
|
setEnterpriseInfo,
|
|
|
|
|
|
editEnterpriseInfo,
|
|
|
|
|
|
deleteEnterprise,
|
|
|
|
|
|
updateEnterpriseTypeApi,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
} from '@/assets/js/api/laborPerson'
|
2022-06-08 14:51:11 +08:00
|
|
|
|
import {
|
|
|
|
|
|
getCooperatorListApi,
|
|
|
|
|
|
deleteBatchApi,
|
2024-05-29 20:54:35 +08:00
|
|
|
|
getEnterpriseInfoByIdApi
|
2023-06-19 18:22:36 +08:00
|
|
|
|
} from '@/assets/js/api/cooperationUnit'
|
2024-05-29 20:54:35 +08:00
|
|
|
|
import {
|
|
|
|
|
|
getDictionaryItemApi
|
|
|
|
|
|
} from '@/assets/js/api/companyDiagram'
|
2023-06-19 18:22:36 +08:00
|
|
|
|
import {
|
|
|
|
|
|
CheckSocialCreditCode,
|
|
|
|
|
|
checkPhone
|
|
|
|
|
|
} from '@/assets/js/util.js'
|
2024-05-29 20:54:35 +08:00
|
|
|
|
import gdMap from "../../../components/map/gd-map";
|
2022-06-08 14:51:11 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
components: {
|
2024-05-29 20:54:35 +08:00
|
|
|
|
Detail, gdMap
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2024-05-25 20:12:36 +08:00
|
|
|
|
checkedId: "",
|
2024-05-29 20:54:35 +08:00
|
|
|
|
companyTypeId: "",
|
|
|
|
|
|
companyTypeList: [],
|
|
|
|
|
|
enterpriseTypeSelectId: "",
|
2023-06-19 18:22:36 +08:00
|
|
|
|
enterpriseTypeId: '',
|
|
|
|
|
|
enterpriseTypeName: '',
|
|
|
|
|
|
projectSn: '',
|
|
|
|
|
|
enterpriseName: '',
|
2022-06-08 14:51:11 +08:00
|
|
|
|
pageNo: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
listData: [], //建设单位 列表数据
|
|
|
|
|
|
addEnterpriseDialog: false,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
enterpriseDialogTitle: this.$t('message.laborMange.theNewEnterprise'),
|
2022-06-08 14:51:11 +08:00
|
|
|
|
enterpriseDialogType: 1,
|
2024-05-29 20:54:35 +08:00
|
|
|
|
addProjectForm: {
|
|
|
|
|
|
areaCode: "",
|
|
|
|
|
|
buildingNum: "",
|
|
|
|
|
|
bulidStatus: "",
|
|
|
|
|
|
cityCode: "",
|
|
|
|
|
|
companySn: "",
|
|
|
|
|
|
constructionStage: "",
|
|
|
|
|
|
engineeringPurpose: "",
|
|
|
|
|
|
households: "",
|
|
|
|
|
|
latitude: "",
|
|
|
|
|
|
layoutImage: "",
|
|
|
|
|
|
constructionMapUrl: '',
|
|
|
|
|
|
longitude: "",
|
|
|
|
|
|
projectAcreage: "",
|
|
|
|
|
|
projectAddress: "",
|
|
|
|
|
|
projectName: "",
|
|
|
|
|
|
projectNumber: "",
|
|
|
|
|
|
projectType: "",
|
|
|
|
|
|
provincesCode: "",
|
|
|
|
|
|
saleAcreage: "",
|
|
|
|
|
|
startWorkDate: "",
|
|
|
|
|
|
structureType: "",
|
|
|
|
|
|
projectManage: "",
|
|
|
|
|
|
projectTel: "",
|
|
|
|
|
|
majorProjectType: 0
|
|
|
|
|
|
},
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//新增企业表单
|
|
|
|
|
|
enterpriseForm: {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
bankcardnumber: '', //银行卡号
|
|
|
|
|
|
bankname: '', // 开户行
|
|
|
|
|
|
businessLicenseEndDate: '', // 营业执照截止日期
|
|
|
|
|
|
businessNumber: '', //营业执照注册号
|
|
|
|
|
|
enterpriseAddress: '', //企业地址
|
|
|
|
|
|
enterpriseEmail: '', //企业邮箱
|
|
|
|
|
|
enterpriseLegalPerson: '', //法定代表人
|
|
|
|
|
|
enterpriseName: '', //企业名称
|
|
|
|
|
|
companyTypeName: '', //企业类型名称
|
|
|
|
|
|
enterpriseProperty: '', //单位性质 1.国有企业 2三资企业 3集体企业 4私营企业
|
|
|
|
|
|
enterpriseQualificationUrl: '', //企业资质图片地址
|
|
|
|
|
|
enterpriseSafeAllow: '', //企业安全生产许可证
|
|
|
|
|
|
enterpriseTypeId: '', //企业类型Id
|
|
|
|
|
|
legalPersonTel: '', //法人电话
|
|
|
|
|
|
logo: '', //logo
|
|
|
|
|
|
projectSn: '', //项目Sn
|
|
|
|
|
|
qualificationNumber: '', //资质证书号
|
|
|
|
|
|
registerPersonPhoneTel: '', //注册人电话
|
|
|
|
|
|
registeredCapital: '', //注册资金
|
|
|
|
|
|
socialCode: '', //社会统一信用代码
|
|
|
|
|
|
projectDirectorPhone: '',
|
|
|
|
|
|
projectDirectorName: '',
|
|
|
|
|
|
parentEnterpriseId: '',
|
|
|
|
|
|
departmentType: '', // 企业管理
|
2022-06-08 14:51:11 +08:00
|
|
|
|
sortNum: 0,
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
|
|
|
|
|
projectEnterprise: {
|
|
|
|
|
|
cbsName: "", // 承包商名称
|
|
|
|
|
|
projectBuildArea: "", // 项目施工区域
|
|
|
|
|
|
completionDate: "", // 竣工日期
|
|
|
|
|
|
cbsProjectType: "", // 项目类型
|
|
|
|
|
|
projectManage: "", // 项目经理
|
|
|
|
|
|
latitude: "", // 维度位置
|
|
|
|
|
|
longitude: "", // 经度位置
|
|
|
|
|
|
projectType: "", // 工程类别
|
|
|
|
|
|
projectNumber: "", // 项目编号
|
|
|
|
|
|
structureType: "", // 结构类型
|
|
|
|
|
|
projectAcreage: "", // 项目面积(m²)
|
|
|
|
|
|
bulidStatus: "", // 工程状态
|
|
|
|
|
|
startWorkDate: "", // 开工日期
|
|
|
|
|
|
constructionStage: "", // 施工阶段
|
|
|
|
|
|
layoutImage: "", // 现场布置图
|
|
|
|
|
|
constructionMapUrl: "", // 现场施工图
|
|
|
|
|
|
projectTel: "", // 联系电话
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
2024-05-29 20:54:35 +08:00
|
|
|
|
layoutImageList: [], // 现场布置图
|
|
|
|
|
|
constructionMapUrlList: [], // 现场施工图
|
|
|
|
|
|
dictionaryItemList: [],
|
|
|
|
|
|
structureTypeList: [],
|
2024-05-29 22:53:49 +08:00
|
|
|
|
dictionaryItemId: "",
|
2024-05-29 20:54:35 +08:00
|
|
|
|
constructionStageList: [],
|
|
|
|
|
|
projectTypeList: [],
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//校验新增企业表单
|
2023-06-19 18:22:36 +08:00
|
|
|
|
enterpriseFormRules: this.$t('message.laborMange.enterpriseFormRules'),
|
2022-06-08 14:51:11 +08:00
|
|
|
|
enterpriseTypeList: [],
|
2023-06-19 18:22:36 +08:00
|
|
|
|
uploadUrl: '',
|
|
|
|
|
|
fileUrl: '',
|
2022-06-08 14:51:11 +08:00
|
|
|
|
aptitudeFileList: [], //资质照片列表
|
|
|
|
|
|
logoFileList: [], // logo
|
|
|
|
|
|
checkedDeleteList: [], //批量选中的数据
|
|
|
|
|
|
showDetail: false,
|
|
|
|
|
|
noDataList: false,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
detailId: '',
|
|
|
|
|
|
projectEnterpriseId: '',
|
2024-05-29 20:54:35 +08:00
|
|
|
|
enterpriseSn: "",
|
2022-06-08 14:51:11 +08:00
|
|
|
|
pageType: 1, //1项目,2企业
|
|
|
|
|
|
moveEnterpriseDialog: false,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
enterpriseType: '',
|
2022-06-08 14:51:11 +08:00
|
|
|
|
parentEnterpriseList: [],
|
2023-06-19 18:22:36 +08:00
|
|
|
|
departmentTypeList: [
|
|
|
|
|
|
{ id: 1, name: '是' },
|
|
|
|
|
|
{ id: 2, name: '否' },
|
|
|
|
|
|
],
|
2024-05-29 20:54:35 +08:00
|
|
|
|
showMap: false,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
created() {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.company = COMPANY
|
|
|
|
|
|
this.uploadUrl = this.$store.state.UPLOADURL
|
|
|
|
|
|
this.fileUrl = this.$store.state.FILEURL
|
|
|
|
|
|
if (this.$route.path.indexOf('companyAdmin/') != -1) {
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//是企业库页面
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.projectSn = this.$store.state.projectSn
|
|
|
|
|
|
// this.projectSn = this.$store.state.userInfo.headquartersSn
|
|
|
|
|
|
this.pageType = 2
|
2022-06-08 14:51:11 +08:00
|
|
|
|
} else {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.projectSn = this.$store.state.projectSn
|
|
|
|
|
|
this.pageType = 1
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.getDictionaryItem();
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.getEnterpriseType()
|
|
|
|
|
|
this.getParentEnterpriseList()
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.getDictionaryList();
|
|
|
|
|
|
this.getDictionaryByStructure();
|
|
|
|
|
|
this.getDicProjectTypeList();
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
2024-05-31 10:13:56 +08:00
|
|
|
|
watch: {
|
|
|
|
|
|
addEnterpriseDialog: {
|
|
|
|
|
|
handler(newVal) {
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.$refs['enterpriseForm'] && this.$refs['enterpriseForm'].clearValidate();
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
deep:true,
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-06-08 14:51:11 +08:00
|
|
|
|
methods: {
|
2024-05-29 20:54:35 +08:00
|
|
|
|
//获取经纬度
|
|
|
|
|
|
toGetLocalFn() {
|
|
|
|
|
|
console.log(11111);
|
|
|
|
|
|
this.showMap = true;
|
|
|
|
|
|
// window.open("https://lbs.amap.com/console/show/picker");
|
|
|
|
|
|
},
|
|
|
|
|
|
closeMap(val) {
|
|
|
|
|
|
this.showMap = val;
|
|
|
|
|
|
},
|
|
|
|
|
|
getLngLat(v) {
|
|
|
|
|
|
this.showMap = false;
|
|
|
|
|
|
this.addProjectForm.longitude = v.lng;
|
|
|
|
|
|
this.addProjectForm.latitude = v.lat;
|
|
|
|
|
|
this.enterpriseForm.projectEnterprise.longitude = v.lng;
|
|
|
|
|
|
this.enterpriseForm.projectEnterprise.latitude = v.lat;
|
|
|
|
|
|
},
|
|
|
|
|
|
// 获取字典工程类别列表
|
|
|
|
|
|
// 获取字典工程类别列表
|
|
|
|
|
|
getDicProjectTypeList() {
|
|
|
|
|
|
getDictionaryItemApi({
|
|
|
|
|
|
dictionaryEncoding: 'project_type',
|
|
|
|
|
|
projectSn: this.projectSn
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res.result.length > 0) {
|
|
|
|
|
|
this.projectTypeList = res.result
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//获取字典施工阶段
|
|
|
|
|
|
getDictionaryList() {
|
|
|
|
|
|
getDictionaryItemApi({
|
|
|
|
|
|
dictionaryEncoding: 'project_construction_stage',
|
|
|
|
|
|
projectSn: this.projectSn
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res.result.length > 0) {
|
|
|
|
|
|
this.constructionStageList = res.result
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//获取字典 结构类型
|
|
|
|
|
|
getDictionaryByStructure() {
|
|
|
|
|
|
getDictionaryItemApi({
|
|
|
|
|
|
dictionaryEncoding: 'project_structure_type',
|
|
|
|
|
|
projectSn: this.projectSn
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res.result.length > 0) {
|
|
|
|
|
|
this.structureTypeList = res.result
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2023-06-27 14:20:11 +08:00
|
|
|
|
checkValue() {
|
|
|
|
|
|
var value = '' + this.enterpriseForm.registeredCapital.toString();
|
2024-05-17 14:53:55 +08:00
|
|
|
|
const maxConut = 999999999999999;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
if (Number(this.enterpriseForm.registeredCapital) > maxConut) {
|
2024-05-17 14:53:55 +08:00
|
|
|
|
this.enterpriseForm.registeredCapital = maxConut.toFixed(2);
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
console.log(this.enterpriseForm.registeredCapital.toString());
|
2023-06-27 14:20:11 +08:00
|
|
|
|
value = value
|
|
|
|
|
|
.replace(/[^\d.]/g, '') // 清除“数字”和“.”以外的字符
|
|
|
|
|
|
.replace(/\.{2,}/g, '.') // 只保留第一个. 清除多余的
|
|
|
|
|
|
.replace(/^\./g, '') //保证第一个为数字而不是.
|
|
|
|
|
|
.replace('.', '$#$')
|
|
|
|
|
|
.replace(/\./g, '')
|
|
|
|
|
|
.replace('$#$', '.')
|
|
|
|
|
|
.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); // 只能输入两个小数
|
|
|
|
|
|
if (value.indexOf('.') < 0 && value != '') {
|
|
|
|
|
|
// 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
|
|
|
|
|
|
value = parseFloat(value);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
value = Number(value).toFixed(2); //不足补位
|
2024-05-29 20:54:35 +08:00
|
|
|
|
console.log('1111111111111', value);
|
2023-06-27 14:20:11 +08:00
|
|
|
|
this.enterpriseForm.registeredCapital = value;
|
|
|
|
|
|
|
|
|
|
|
|
},
|
2023-06-19 18:22:36 +08:00
|
|
|
|
close() {
|
|
|
|
|
|
this.getParentEnterpriseList()
|
|
|
|
|
|
this.addEnterpriseDialog = false
|
2023-05-17 15:58:05 +08:00
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.$refs['enterpriseForm'].clearValidate()
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2024-05-29 20:54:35 +08:00
|
|
|
|
getDictionaryItem() {
|
|
|
|
|
|
getDictionaryItemApi({
|
|
|
|
|
|
dictionaryEncoding: "project_enterprise_cbs_project_type",
|
|
|
|
|
|
projectSn: this.$store.state.projectSn,
|
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
console.log('11111111111', res);
|
|
|
|
|
|
this.dictionaryItemList = res.result;
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//获取 单位类型
|
|
|
|
|
|
getEnterpriseType() {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
let data = {}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
getEnterpriseTypeList(data).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
console.log('获取企业类型列表', res)
|
2024-05-25 20:12:36 +08:00
|
|
|
|
this.enterpriseTypeList = [{
|
|
|
|
|
|
id: "",
|
2024-05-29 20:54:35 +08:00
|
|
|
|
companyTypeName: "全部",
|
|
|
|
|
|
}, ...res.result];
|
2024-05-25 20:12:36 +08:00
|
|
|
|
// this.enterpriseTypeId = res.result[0].id
|
|
|
|
|
|
// console.log('==========单位名称', res)
|
|
|
|
|
|
// this.enterpriseTypeName = res.result[0].companyTypeName
|
|
|
|
|
|
// this.enterpriseForm.companyTypeName = res.result[0].companyTypeName
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2023-06-19 18:22:36 +08:00
|
|
|
|
console.log('==========单位名称', res)
|
2024-05-25 20:12:36 +08:00
|
|
|
|
this.enterpriseTypeSelectId = this.enterpriseTypeList[0].id;
|
|
|
|
|
|
this.enterpriseTypeName = this.enterpriseTypeList[0].companyTypeName;
|
|
|
|
|
|
this.enterpriseTypeId = res.result[0].id;
|
|
|
|
|
|
this.enterpriseForm.companyTypeName = res.result[0].companyTypeName;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2024-05-25 20:12:36 +08:00
|
|
|
|
this.companyTypeList = res.result;
|
2023-06-19 18:22:36 +08:00
|
|
|
|
console.log(this.enterpriseTypeList)
|
|
|
|
|
|
this.getCooperatorList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//获取列表数据
|
|
|
|
|
|
getCooperatorList() {
|
|
|
|
|
|
let data = {
|
2023-06-30 17:22:49 +08:00
|
|
|
|
projectSn: this.$store.state.projectSn,
|
2022-06-08 14:51:11 +08:00
|
|
|
|
pageNo: this.pageNo,
|
|
|
|
|
|
pageSize: this.pageSize,
|
2024-05-25 20:12:36 +08:00
|
|
|
|
enterpriseTypeId: this.enterpriseTypeSelectId,
|
2022-06-08 14:51:11 +08:00
|
|
|
|
enterpriseName: this.enterpriseName,
|
2024-05-29 22:53:49 +08:00
|
|
|
|
cbsProjectType: this.dictionaryItemId
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
getCooperatorListApi(data).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
if (res.result.records.length > 0) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.listData = JSON.parse(JSON.stringify(res.result.records))
|
|
|
|
|
|
this.total = res.result.total
|
|
|
|
|
|
this.noDataList = false
|
2022-06-08 14:51:11 +08:00
|
|
|
|
} else {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.noDataList = true
|
|
|
|
|
|
this.listData = []
|
2024-04-22 20:00:32 +08:00
|
|
|
|
this.pageNo = 1;
|
|
|
|
|
|
this.pageSize = 10;
|
|
|
|
|
|
this.total = 0;
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 获取父级企业列表
|
|
|
|
|
|
getParentEnterpriseList() {
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
projectSn: this.projectSn,
|
|
|
|
|
|
pageNo: this.pageNo,
|
|
|
|
|
|
pageSize: 10000,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
enterpriseTypeId: '',
|
|
|
|
|
|
enterpriseName: '',
|
|
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
getCooperatorListApi(data).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.parentEnterpriseList = res.result.records
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//转换字符串
|
|
|
|
|
|
setString(item) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
return String(item)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//切换 单位类型
|
|
|
|
|
|
selectMenu(value) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
console.log('切换菜单', value)
|
|
|
|
|
|
this.checkedId = value.id
|
2024-05-25 20:12:36 +08:00
|
|
|
|
this.enterpriseTypeName = value.companyTypeName;
|
|
|
|
|
|
this.enterpriseTypeSelectId = value.id;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
if (!(value.id == '' && value.companyTypeName == '全部')) {
|
2024-05-25 20:12:36 +08:00
|
|
|
|
this.enterpriseTypeId = value.id
|
|
|
|
|
|
this.enterpriseForm.companyTypeName = value.companyTypeName
|
|
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.getCooperatorList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//新增按钮
|
|
|
|
|
|
addBtn() {
|
|
|
|
|
|
// this.$refs["enterpriseForm"].clearValidate();
|
|
|
|
|
|
this.enterpriseForm = {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
bankcardnumber: '', //银行卡号
|
|
|
|
|
|
bankname: '', // 开户行
|
|
|
|
|
|
businessLicenseEndDate: '', // 营业执照截止日期
|
|
|
|
|
|
businessNumber: '', //营业执照注册号
|
|
|
|
|
|
enterpriseAddress: '', //企业地址
|
|
|
|
|
|
enterpriseEmail: '', //企业邮箱
|
|
|
|
|
|
enterpriseLegalPerson: '', //法定代表人
|
|
|
|
|
|
enterpriseName: '', //企业名称
|
2024-05-31 10:13:56 +08:00
|
|
|
|
companyTypeName: "",
|
2023-06-19 18:22:36 +08:00
|
|
|
|
enterpriseProperty: '', //单位性质 1.国有企业 2三资企业 3集体企业 4私营企业
|
|
|
|
|
|
enterpriseQualificationUrl: '', //企业资质图片地址
|
|
|
|
|
|
enterpriseSafeAllow: '', //企业安全生产许可证
|
|
|
|
|
|
enterpriseTypeId: '', //企业类型Id
|
|
|
|
|
|
legalPersonTel: '', //法人电话
|
|
|
|
|
|
logo: '', //logo
|
|
|
|
|
|
projectSn: '', //项目Sn
|
|
|
|
|
|
qualificationNumber: '', //资质证书号
|
|
|
|
|
|
registerPersonPhoneTel: '', //注册人电话
|
|
|
|
|
|
registeredCapital: '', //注册资金
|
|
|
|
|
|
socialCode: '', //社会统一信用代码
|
|
|
|
|
|
parentEnterpriseId: '', //父级企业
|
|
|
|
|
|
departmentType: '', // 企业管理
|
2022-06-08 14:51:11 +08:00
|
|
|
|
sortNum: 0,
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
|
|
|
|
|
projectEnterprise: {
|
|
|
|
|
|
cbsName: "", // 承包商名称
|
|
|
|
|
|
projectBuildArea: "", // 项目施工区域
|
|
|
|
|
|
completionDate: "", // 竣工日期
|
|
|
|
|
|
cbsProjectType: "", // 项目类型
|
|
|
|
|
|
projectManage: "", // 项目经理
|
|
|
|
|
|
latitude: "", // 维度位置
|
|
|
|
|
|
longitude: "", // 经度位置
|
|
|
|
|
|
projectType: "", // 工程类别
|
|
|
|
|
|
projectNumber: "", // 项目编号
|
|
|
|
|
|
structureType: "", // 结构类型
|
|
|
|
|
|
projectAcreage: "", // 项目面积(m²)
|
|
|
|
|
|
bulidStatus: "", // 工程状态
|
|
|
|
|
|
startWorkDate: "", // 开工日期
|
|
|
|
|
|
constructionStage: "", // 施工阶段
|
|
|
|
|
|
projectTel: "", // 联系电话
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2024-05-31 11:22:35 +08:00
|
|
|
|
// console.log('==========',this.enterpriseForm.companyTypeName)
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.aptitudeFileList = [];
|
|
|
|
|
|
this.logoFileList = [];
|
|
|
|
|
|
this.layoutImageList = [];
|
|
|
|
|
|
this.constructionMapUrlList = [];
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseDialogType = 1
|
2022-06-08 14:51:11 +08:00
|
|
|
|
this.enterpriseDialogTitle = this.$t(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
'message.laborMange.theNewEnterprise'
|
|
|
|
|
|
)
|
|
|
|
|
|
this.addEnterpriseDialog = true
|
2024-05-31 11:22:35 +08:00
|
|
|
|
this.enterpriseForm.enterpriseTypeId = this.checkedId;
|
|
|
|
|
|
// console.log("111111111111",this.checkedId)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//编辑按钮
|
|
|
|
|
|
editBtn(value) {
|
2024-05-29 20:54:35 +08:00
|
|
|
|
console.log('11111111', value);
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.parentEnterpriseList.forEach((item, index) => {
|
|
|
|
|
|
if (value.id == item.id) {
|
|
|
|
|
|
this.parentEnterpriseList.splice(index, 1)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
console.log(
|
|
|
|
|
|
' this.parentEnterpriseList删除后的',
|
|
|
|
|
|
this.parentEnterpriseList
|
|
|
|
|
|
)
|
|
|
|
|
|
this.enterpriseDialogTitle = this.$t('message.laborMange.editEnterprise')
|
|
|
|
|
|
this.enterpriseDialogType = 2
|
|
|
|
|
|
this.aptitudeFileList = []
|
|
|
|
|
|
this.logoFileList = []
|
2024-05-29 22:53:49 +08:00
|
|
|
|
this.enterpriseForm = { ...JSON.parse(JSON.stringify(value)) }
|
2024-05-31 10:13:56 +08:00
|
|
|
|
this.enterpriseForm.enterpriseTypeId = !value.enterpriseTypeId || value.enterpriseTypeId == 0 ? '' : value.enterpriseTypeId;
|
2022-06-08 14:51:11 +08:00
|
|
|
|
let aptitude = this.enterpriseForm.enterpriseQualificationUrl
|
2023-06-19 18:22:36 +08:00
|
|
|
|
? this.enterpriseForm.enterpriseQualificationUrl.split(',')
|
|
|
|
|
|
: []
|
2022-06-08 14:51:11 +08:00
|
|
|
|
for (let i = 0; i < aptitude.length; i++) {
|
|
|
|
|
|
let obj = {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
name: aptitude[i].split('*')[0],
|
|
|
|
|
|
url: aptitude[i].split('*')[1],
|
|
|
|
|
|
}
|
|
|
|
|
|
this.aptitudeFileList.push(obj)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
let logo = this.enterpriseForm.logo
|
2023-06-19 18:22:36 +08:00
|
|
|
|
? this.enterpriseForm.logo.split(',')
|
|
|
|
|
|
: []
|
2022-06-08 14:51:11 +08:00
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < logo.length; i++) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
let obj = { name: logo[i].split('*')[0], url: logo[i].split('*')[1] }
|
|
|
|
|
|
this.logoFileList.push(obj)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (this.enterpriseForm.parentEnterpriseId == 0) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseForm.parentEnterpriseId = ''
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2024-05-29 23:43:23 +08:00
|
|
|
|
console.log(this.aptitudeFileList);
|
2024-05-29 20:54:35 +08:00
|
|
|
|
getEnterpriseInfoByIdApi({
|
|
|
|
|
|
enterpriseId: value.id,
|
|
|
|
|
|
projectSn: this.$store.state.projectSn,
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
const projectEnterprise = res.result.projectEnterprise;
|
2024-05-29 22:53:49 +08:00
|
|
|
|
console.log('222222', projectEnterprise);
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.enterpriseForm.projectEnterprise = {
|
|
|
|
|
|
...projectEnterprise
|
|
|
|
|
|
};
|
2024-05-31 10:13:56 +08:00
|
|
|
|
this.layoutImageList = this.enterpriseForm.projectEnterprise.layoutImage && this.enterpriseForm.projectEnterprise.layoutImage != 'null' ? JSON.parse(this.enterpriseForm.projectEnterprise.layoutImage) : [];
|
|
|
|
|
|
this.constructionMapUrlList = this.enterpriseForm.projectEnterprise.constructionMapUrl && this.enterpriseForm.projectEnterprise.constructionMapUrl != 'null' ? JSON.parse(this.enterpriseForm.projectEnterprise.constructionMapUrl) : [];
|
2024-05-29 20:54:35 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).finally(() => {
|
2024-05-31 10:13:56 +08:00
|
|
|
|
this.addEnterpriseDialog = true;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//新增 ||编辑 保存
|
|
|
|
|
|
saveEnterpriseFn(formName) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
if (!CheckSocialCreditCode(this.enterpriseForm.socialCode)) {
|
|
|
|
|
|
this.$message.error('请输入正确的统一社会信用代码')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2023-06-30 17:22:49 +08:00
|
|
|
|
if (this.enterpriseForm.projectDirectorPhone) {
|
|
|
|
|
|
if (!checkPhone(this.enterpriseForm.projectDirectorPhone)) {
|
|
|
|
|
|
this.$message.error('请输入正确的项目负责人电话')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2023-06-30 17:22:49 +08:00
|
|
|
|
if (this.enterpriseForm.registerPersonPhoneTel) {
|
|
|
|
|
|
if (!checkPhone(this.enterpriseForm.registerPersonPhoneTel)) {
|
|
|
|
|
|
this.$message.error('请输入正确的注册人电话')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2023-06-30 17:22:49 +08:00
|
|
|
|
if (this.enterpriseForm.legalPersonTel) {
|
|
|
|
|
|
if (!checkPhone(this.enterpriseForm.legalPersonTel)) {
|
|
|
|
|
|
this.$message.error('请输入正确的法人电话')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2023-06-30 17:22:49 +08:00
|
|
|
|
|
2024-05-31 10:13:56 +08:00
|
|
|
|
if (this.enterpriseForm.projectEnterprise.projectTel) {
|
|
|
|
|
|
if (!checkPhone(this.enterpriseForm.projectEnterprise.projectTel)) {
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.$message.error('请输入正确的联系电话')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
|
if (valid) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseForm.projectSn = this.projectSn
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//转换上传图片
|
|
|
|
|
|
if (this.aptitudeFileList.length > 0) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
let arr = []
|
2022-06-08 14:51:11 +08:00
|
|
|
|
for (let i = 0; i < this.aptitudeFileList.length; i++) {
|
|
|
|
|
|
arr.push(
|
|
|
|
|
|
this.aptitudeFileList[i].name +
|
2023-06-19 18:22:36 +08:00
|
|
|
|
'*' +
|
|
|
|
|
|
this.aptitudeFileList[i].url
|
|
|
|
|
|
)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseForm.enterpriseQualificationUrl = arr.join(',')
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (this.logoFileList.length > 0) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
let arr = []
|
2022-06-08 14:51:11 +08:00
|
|
|
|
for (let i = 0; i < this.logoFileList.length; i++) {
|
|
|
|
|
|
arr.push(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.logoFileList[i].name + '*' + this.logoFileList[i].url
|
|
|
|
|
|
)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseForm.logo = arr.join(',')
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2024-05-29 22:53:49 +08:00
|
|
|
|
console.log(11111111111, this.constructionMapUrlList);
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.enterpriseForm.projectEnterprise.layoutImage = JSON.stringify(this.layoutImageList);
|
|
|
|
|
|
this.enterpriseForm.projectEnterprise.constructionMapUrl = JSON.stringify(this.constructionMapUrlList);
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseForm.type = this.pageType
|
2022-06-08 14:51:11 +08:00
|
|
|
|
if (!this.enterpriseForm.parentEnterpriseId) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.enterpriseForm.parentEnterpriseId = '0'
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
if (this.enterpriseDialogType == 1) {
|
|
|
|
|
|
//新增提交
|
|
|
|
|
|
setEnterpriseInfo(this.enterpriseForm).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$message.success(this.$t('message.laborMange.addSuccess'))
|
|
|
|
|
|
this.addEnterpriseDialog = false
|
|
|
|
|
|
this.$refs[formName].resetFields()
|
|
|
|
|
|
this.aptitudeFileList = []
|
|
|
|
|
|
this.logoFileList = []
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.layoutImageList = []
|
|
|
|
|
|
this.constructionMapUrlList = []
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.getCooperatorList()
|
|
|
|
|
|
this.getParentEnterpriseList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
} else {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
console.log(this.enterpriseForm)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
if (
|
|
|
|
|
|
this.enterpriseForm.id == this.enterpriseForm.parentEnterpriseId
|
|
|
|
|
|
) {
|
|
|
|
|
|
this.$message.error(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$t('message.projectInfo.theParentCompany') +
|
|
|
|
|
|
this.$t('message.projectInfo.cannotChooseSelf')
|
|
|
|
|
|
)
|
|
|
|
|
|
return
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
//编辑 请求
|
|
|
|
|
|
editEnterpriseInfo(this.enterpriseForm).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.$message.success(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$t('message.laborMange.modifySuccess')
|
|
|
|
|
|
)
|
|
|
|
|
|
this.$refs[formName].resetFields()
|
|
|
|
|
|
this.addEnterpriseDialog = false
|
|
|
|
|
|
this.aptitudeFileList = []
|
|
|
|
|
|
this.logoFileList = []
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.layoutImageList = []
|
|
|
|
|
|
this.constructionMapUrlList = []
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.getCooperatorList()
|
|
|
|
|
|
this.getParentEnterpriseList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
} else {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
return false
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//删除按钮
|
|
|
|
|
|
deleteBtn(value) {
|
|
|
|
|
|
this.$confirm(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$t('message.laborMange.deleteHint'),
|
|
|
|
|
|
this.$t('message.laborMange.hint'),
|
2022-06-08 14:51:11 +08:00
|
|
|
|
{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
confirmButtonText: this.$t('message.laborMange.confirm'),
|
|
|
|
|
|
cancelButtonText: this.$t('message.laborMange.cancel'),
|
|
|
|
|
|
type: 'warning',
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
)
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
projectSn: this.projectSn,
|
|
|
|
|
|
enterpriseId: value.id,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
deleteEnterprise(data).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.$message({
|
2023-06-19 18:22:36 +08:00
|
|
|
|
type: 'success',
|
|
|
|
|
|
message: this.$t('message.laborMange.deleteSuccess'),
|
|
|
|
|
|
})
|
|
|
|
|
|
this.getCooperatorList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
})
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
// type: "info",
|
|
|
|
|
|
// message: "已取消删除",
|
|
|
|
|
|
// });
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//批量删除
|
|
|
|
|
|
deleteInBatches() {
|
|
|
|
|
|
this.$confirm(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$t('message.laborMange.deleteHint'),
|
|
|
|
|
|
this.$t('message.laborMange.hint'),
|
2022-06-08 14:51:11 +08:00
|
|
|
|
{
|
2023-06-19 18:22:36 +08:00
|
|
|
|
confirmButtonText: this.$t('message.laborMange.confirm'),
|
|
|
|
|
|
cancelButtonText: this.$t('message.laborMange.cancel'),
|
|
|
|
|
|
type: 'warning',
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
)
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
let data = {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
ids: this.checkedDeleteList.join(','),
|
|
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
deleteBatchApi(data).then((res) => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.$message({
|
2023-06-19 18:22:36 +08:00
|
|
|
|
type: 'success',
|
|
|
|
|
|
message: this.$t('message.laborMange.deleteSuccess'),
|
|
|
|
|
|
})
|
|
|
|
|
|
this.checkedDeleteList = []
|
|
|
|
|
|
this.getCooperatorList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
})
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
// type: "info",
|
|
|
|
|
|
// message: "已取消删除",
|
|
|
|
|
|
// });
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 批量移动
|
|
|
|
|
|
moveInBatches() {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.moveEnterpriseDialog = true
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 批量移动确认
|
|
|
|
|
|
moveEnterpriseFn() {
|
|
|
|
|
|
// console.log(this.checkedDeleteList.join(","))
|
|
|
|
|
|
if (!this.enterpriseType) {
|
|
|
|
|
|
this.$message.error(
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$t('message.projectInfo.pleaseChoose') +
|
|
|
|
|
|
this.$t('message.projectInfo.targetCompanyType')
|
|
|
|
|
|
)
|
2022-06-08 14:51:11 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
updateEnterpriseTypeApi({
|
|
|
|
|
|
enterpriseTypeId: this.enterpriseType,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
ids: this.checkedDeleteList.join(','),
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}).then((res) => {
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.$message({
|
2023-06-19 18:22:36 +08:00
|
|
|
|
type: 'success',
|
2022-06-08 14:51:11 +08:00
|
|
|
|
message: res.message,
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
|
|
|
|
|
this.checkedDeleteList = []
|
|
|
|
|
|
this.getCooperatorList()
|
|
|
|
|
|
this.enterpriseType = ''
|
|
|
|
|
|
this.moveEnterpriseDialog = false
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
//批量选中的数据
|
2023-06-19 18:22:36 +08:00
|
|
|
|
getDeleteList(value) { },
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//跳转详情页
|
2024-05-29 20:54:35 +08:00
|
|
|
|
goDetailPage(id, projectEnterpriseId, enterpriseSn) {
|
2024-05-25 20:12:36 +08:00
|
|
|
|
this.detailId = id;
|
|
|
|
|
|
this.projectEnterpriseId = projectEnterpriseId;
|
|
|
|
|
|
this.enterpriseSn = enterpriseSn;
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.showDetail = true
|
|
|
|
|
|
this.checkedDeleteList = []
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//删除文件
|
|
|
|
|
|
handleRemove(file, fileList, type) {
|
|
|
|
|
|
if (type == 1) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.aptitudeFileList = fileList
|
2024-05-29 20:54:35 +08:00
|
|
|
|
} else if (type == 2) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.logoFileList = fileList
|
2024-05-29 20:54:35 +08:00
|
|
|
|
} else if (type == 3) {
|
|
|
|
|
|
this.layoutImageList = fileList
|
|
|
|
|
|
} else if (type == 4) {
|
|
|
|
|
|
this.constructionMapUrlList = fileList
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
//文件上传成功
|
|
|
|
|
|
handleSuccess(file, type) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.$message.success(this.$t('message.laborMange.uploadSuccessful'))
|
2024-05-31 10:13:56 +08:00
|
|
|
|
let data = { name: file.data[0].fileInfo.originalFilename ? file.data[0].fileInfo.originalFilename : file.data[0].filename, url: file.data[0].imageUrl }
|
2024-05-30 01:06:22 +08:00
|
|
|
|
console.log(file);
|
2022-06-08 14:51:11 +08:00
|
|
|
|
if (type == 1) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.aptitudeFileList.push(data)
|
2024-05-29 20:54:35 +08:00
|
|
|
|
} else if (type == 2) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.logoFileList.push(data)
|
2024-05-29 20:54:35 +08:00
|
|
|
|
} else if (type == 3) {
|
2024-05-30 01:06:22 +08:00
|
|
|
|
this.layoutImageList= this.layoutImageList ? this.layoutImageList : [];
|
2024-05-29 20:54:35 +08:00
|
|
|
|
this.layoutImageList.push(data)
|
|
|
|
|
|
console.log(this.layoutImageList);
|
|
|
|
|
|
} else if (type == 4) {
|
|
|
|
|
|
console.log(this.constructionMapUrlList);
|
2024-05-30 01:06:22 +08:00
|
|
|
|
this.constructionMapUrlList = this.constructionMapUrlList ? this.constructionMapUrlList : [];
|
|
|
|
|
|
this.constructionMapUrlList.push(data);
|
|
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-06-19 18:22:36 +08:00
|
|
|
|
handleError(file) { },
|
|
|
|
|
|
handlePreview(file) { },
|
|
|
|
|
|
handleBeforeUpload(file) { },
|
2022-06-08 14:51:11 +08:00
|
|
|
|
//切换每页数量
|
|
|
|
|
|
handleSizeChange(val) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.pageSize = val
|
|
|
|
|
|
this.getCooperatorList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
//切换页数
|
|
|
|
|
|
handleCurrentChange(val) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
this.pageNo = val
|
|
|
|
|
|
this.getCooperatorList()
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 排序
|
|
|
|
|
|
handleChangeNum(val) {
|
2023-06-19 18:22:36 +08:00
|
|
|
|
console.log(val, this.enterpriseForm)
|
|
|
|
|
|
this.enterpriseForm.num = val
|
2022-06-08 14:51:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
},
|
2023-06-19 18:22:36 +08:00
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
|
.flex {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.flex2 {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.flex3 {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.cooperator {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.left {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
width: 16%;
|
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
|
font-size: 15px;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
// background-color: #fbfbfb;
|
|
|
|
|
|
.title {
|
|
|
|
|
|
height: 41px;
|
|
|
|
|
|
line-height: 41px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 0 22px;
|
|
|
|
|
|
// color: #282e49;
|
|
|
|
|
|
border-bottom: 2px #ebf0fc solid;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.el-menu-item2 {
|
|
|
|
|
|
border-bottom: 2px #ebf0fc solid;
|
|
|
|
|
|
height: 43px;
|
|
|
|
|
|
line-height: 43px;
|
|
|
|
|
|
padding: 0 30px !important;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.checked_item {
|
|
|
|
|
|
border-left: 3px solid #5181f6;
|
|
|
|
|
|
padding: 0 27px !important;
|
|
|
|
|
|
background-color: #e1e8fa !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.right {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
width: 84%;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.title {
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
height: 41px;
|
|
|
|
|
|
line-height: 41px;
|
|
|
|
|
|
// background-color: #ffffff;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 0 22px;
|
|
|
|
|
|
// color: #282e49;
|
|
|
|
|
|
border-bottom: 2px #ebf0fc solid;
|
|
|
|
|
|
font-weight: 600;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.right_value {
|
|
|
|
|
|
// color: rgba(115, 121, 150, 100);
|
|
|
|
|
|
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
span:first-child {
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
font-weight: 100;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.value {
|
|
|
|
|
|
color: #5181f6;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.content {
|
|
|
|
|
|
height: calc(100% - 41px);
|
|
|
|
|
|
// background-color: #fff;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 15px 20px;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.list_wrap {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 85%;
|
|
|
|
|
|
flex-wrap: wrap;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.list {
|
|
|
|
|
|
width: 30%;
|
2024-05-29 21:15:38 +08:00
|
|
|
|
height: 160px;
|
2022-06-08 14:51:11 +08:00
|
|
|
|
margin: 8px 18px;
|
|
|
|
|
|
border: 1px solid rgba(225, 232, 250, 1);
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 10px 27px;
|
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
// color: rgba(39, 46, 71, 100);
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
cursor: pointer;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.name {
|
|
|
|
|
|
// color: rgba(39, 46, 71, 100);
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 600;
|
2024-05-29 23:43:23 +08:00
|
|
|
|
overflow: hidden; //超出的文本隐藏
|
|
|
|
|
|
text-overflow: ellipsis; //溢出用省略号显示
|
|
|
|
|
|
white-space: nowrap; //溢出不换行
|
2022-06-08 14:51:11 +08:00
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.btn_wrap {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 5px;
|
|
|
|
|
|
right: 15px;
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
// display: none;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.deleteList {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 5px;
|
|
|
|
|
|
right: 15px;
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.list:hover {
|
|
|
|
|
|
box-shadow: 0px 6px 12px 2px rgba(81, 129, 246, 0.18);
|
|
|
|
|
|
border-color: #5181f6;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
/deep/ .__view {
|
|
|
|
|
|
min-height: calc(100% - 41px) !important;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
/deep/ .el-checkbox__label {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.el-menu-vertical-demo {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.cooperatorDetail {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
box-sizing: border-box;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
.navigationTitle {
|
|
|
|
|
|
// border-bottom: 2px solid #ebf0fc;
|
|
|
|
|
|
// margin-bottom: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nodata_wrap {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
height: 80%;
|
|
|
|
|
|
padding-top: 20%;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
color: #c3d4fd;
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
|
div {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2023-06-19 18:22:36 +08:00
|
|
|
|
.adddialog {
|
2022-09-05 15:19:36 +08:00
|
|
|
|
position: relative;
|
2023-06-19 18:22:36 +08:00
|
|
|
|
|
|
|
|
|
|
.dialog_content {
|
2022-09-05 15:19:36 +08:00
|
|
|
|
height: 500px;
|
2023-06-19 18:22:36 +08:00
|
|
|
|
overflow: auto;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2023-06-19 18:22:36 +08:00
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
|
width: 2px;
|
|
|
|
|
|
}
|
2024-05-29 20:54:35 +08:00
|
|
|
|
|
2023-06-19 18:22:36 +08:00
|
|
|
|
.addpage {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 80%;
|
2024-04-22 00:24:17 +08:00
|
|
|
|
left: 37%;
|
2022-09-05 15:19:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-06-19 18:22:36 +08:00
|
|
|
|
</style>
|