Commit bbe71844 authored by danfuman's avatar danfuman

Merge branch 'V20230915' of http://192.168.60.201/root/dsk-operate-sys into V20230915

parents ccb48ec5 3f17abb0
......@@ -82,17 +82,18 @@ public class CustomerServiceImpl implements ICustomerService {
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(Customer customer) {
dealWithcustomerData(customer);
customer.setUipId(enterpriseCommonService.getUipIdByCompanyNameOrCompanyId(customer.getCompanyName(), customer.getCompanyId()));
Long userId = LoginHelper.getUserId();
customer.setCreateId(userId);
customer.setUpdateId(userId);
customer.setTenantId(LoginHelper.getTenantId());
//查重
Customer verifyCustomer = baseMapper.selectByCompanyNameAndUserId(customer.getCompanyName(), userId);
if (!ObjectUtils.isEmpty(verifyCustomer)) {
throw new ServiceException("当前客户信息已存在,请勿重复添加!");
}
dealWithcustomerData(customer);
customer.setUipId(enterpriseCommonService.getUipIdByCompanyNameOrCompanyId(customer.getCompanyName(), customer.getCompanyId()));
customer.setCreateId(userId);
customer.setUpdateId(userId);
customer.setTenantId(LoginHelper.getTenantId());
int i = baseMapper.insert(customer);
if (i == 0) throw new ServiceException("客户信息添加错误!");
......
package com.dsk.search.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.map.MapUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson2.JSONObject;
......@@ -13,10 +14,12 @@ import com.dsk.common.exception.ServiceException;
import com.dsk.common.utils.DskOpenApiUtil;
import com.dsk.common.utils.StringUtils;
import com.dsk.jsk.domain.vo.ImportantProjectExportVo;
import com.dsk.jsk.service.EnterpriseService;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import java.util.ArrayList;
import java.util.HashMap;
......@@ -37,6 +40,9 @@ public class BusinessOpportunityRadarService {
@Autowired
ICustomerService iCustomerService;
@Autowired
private EnterpriseService enterpriseService;
public AjaxResult jskBidNewsPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/news/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
......@@ -111,14 +117,18 @@ public class BusinessOpportunityRadarService {
companyName = companyName.replace("<font color='#FF204E'>", "");
companyName = companyName.replace("</font>", "");
}
companyMap.put("claimStatus", 0);
companyMap.put("claimStatus", null);
for (CustomerStatusListVo vo : claimStatusList) {
if (companyName.equals(vo.getCompanyName())) {
companyMap.put("claimStatus", vo.getStatus());
}
}
Integer jskEid = MapUtils.getInteger(companyMap, "jskEid");
companyMap.put("uipId", enterpriseService.getUipIdByCompanyNameOrCompanyId(companyName, jskEid));
}
return BeanUtil.toBean(map, AjaxResult.class);
}
......
......@@ -23,10 +23,9 @@
<div class="content_item">
<div class="label">企业资质</div>
<div class="content_right content_item_ckquery">
<div class="item_ckquery_list" v-for="(item,i) in aptitudeDtoList" :key="i"
:class="i>0?'item_ckquery_distance':''">
<el-cascader :options="optionss" separator='丨' clearable :ref="i" class="content_item_list"
v-model="item.codeStr" @change='optionsbtn(i)' filterable :props="{
<div class="item_ckquery_list" v-for="(item,i) in aptitudeDtoList" :key="i" :class="i>0?'item_ckquery_distance':''">
<el-cascader :options="optionss" separator='丨' clearable :ref="i" class="content_item_list" v-model="item.codeStr" @change='optionsbtn(i)'
filterable :props="{
checkStrictly:true,
label:'name',
value:'id',
......@@ -71,7 +70,7 @@
</el-select>
</div> -->
<div class="select-popper">
<el-dropdown trigger="click" placement='bottom-start' >
<el-dropdown trigger="click" placement='bottom-start'>
<div class="el-dropdown-link " :class="filePlaceCode?'select-active':''">
<span>进省备案{{filePlaceCode?' 1项':''}}</span>
<i class="el-icon-caret-bottom"></i>
......@@ -94,8 +93,7 @@
</div>
<el-dropdown-menu slot="dropdown" class="select-list select-radio">
<el-dropdown-item v-for="(itme,i) in filePlaceTypeList" :key="i">
<el-radio :label="itme.value" v-model="filePlaceType"
@input="filePlaceTypeList_btn(i)">
<el-radio :label="itme.value" v-model="filePlaceType" @input="filePlaceTypeList_btn(i)">
{{itme.text}}
</el-radio>
</el-dropdown-item>
......@@ -121,9 +119,8 @@
工商注册地{{addresslength>0?(addresslength+'项'):''}}
<i class="el-icon-caret-bottom"></i>
</div>
<el-cascader ref="address" class="cascader-region" popper-class='cascader-region-addd'
@input="addressListbtn" v-model="addressType" :options="addressList" :props="props"
collapse-tags></el-cascader>
<el-cascader ref="address" class="cascader-region" popper-class='cascader-region-addd' @input="addressListbtn" v-model="addressType"
:options="addressList" :props="props" collapse-tags></el-cascader>
</div>
<!-- <div class="select-popper">
<el-dropdown trigger="click" placement='bottom-start'>
......@@ -183,10 +180,9 @@
<i class="el-icon-caret-bottom"></i>
</div>
<el-select v-model="systemValue" @input="systemCertificationbtn" popper-class='select-multiple-pop'
class="select-multiple" multiple placeholder="请选择">
<el-option v-for=" (itme,i) in systemCertification" :key="i" :label="itme.value"
:value="itme.key">
<el-select v-model="systemValue" @input="systemCertificationbtn" popper-class='select-multiple-pop' class="select-multiple" multiple
placeholder="请选择">
<el-option v-for=" (itme,i) in systemCertification" :key="i" :label="itme.value" :value="itme.key">
</el-option>
</el-select>
......@@ -207,42 +203,37 @@
</el-dropdown>
</div>
<div class="select-popper">
<div class=" "
:class="(aTaxYeartext.length>0&&aTaxYeartext[0]!='不限')?'select-active':''">
<div class=" " :class="(aTaxYeartext.length>0&&aTaxYeartext[0]!='不限')?'select-active':''">
纳税信用等级{{(aTaxYeartext.length>0&&aTaxYeartext[0]!='不限')>0?(aTaxYeartext.length+'项'):''}}
<i class="el-icon-caret-bottom"></i>
</div>
<el-select v-model="aTaxYeartext" popper-class='select-multiple-pop' class="select-multiple"
@change="aTaxYearBtn" multiple placeholder="请选择">
<el-select v-model="aTaxYeartext" popper-class='select-multiple-pop' class="select-multiple" @change="aTaxYearBtn" multiple
placeholder="请选择">
<el-option v-for=" (itme,i) in aTaxYearList" :key="i" :label="itme.label" :value="itme.value">
</el-option>
</el-select>
</div>
<div class="select-popper">
<div class=" "
:class="(companyTypeText.length>0&&companyTypeText[0]!='不限')?'select-active':''">
<div class=" " :class="(companyTypeText.length>0&&companyTypeText[0]!='不限')?'select-active':''">
企业类型{{(companyTypeText.length>0&&companyTypeText[0]!='不限')>0?(companyTypeText.length+'项'):''}}
<i class="el-icon-caret-bottom"></i>
</div>
<el-select v-model="companyTypeText" popper-class='select-multiple-pop' class="select-multiple"
@change="companyTypebtn" multiple placeholder="请选择">
<el-option v-for=" (itme,i) in companyTypeList" :key="i" :label="itme.value"
:value="itme.label">
<el-select v-model="companyTypeText" popper-class='select-multiple-pop' class="select-multiple" @change="companyTypebtn" multiple
placeholder="请选择">
<el-option v-for=" (itme,i) in companyTypeList" :key="i" :label="itme.value" :value="itme.label">
</el-option>
</el-select>
</div>
<div class="select-popper">
<div class=" "
:class="(businessStatusText.length>0&&businessStatusText[0]!='不限')?'select-active':''">
<div class=" " :class="(businessStatusText.length>0&&businessStatusText[0]!='不限')?'select-active':''">
登记状态{{(businessStatusText.length>0&&businessStatusText[0]!='不限')>0?(businessStatusText.length+'项'):''}}
<i class="el-icon-caret-bottom"></i>
</div>
<el-select v-model="businessStatusText" popper-class='select-multiple-pop' class="select-multiple"
@change="businessStatusTextbtn" multiple placeholder="请选择">
<el-option v-for=" (itme,i) in businessStatusList" :key="i" :label="itme.label"
:value="itme.value">
<el-select v-model="businessStatusText" popper-class='select-multiple-pop' class="select-multiple" @change="businessStatusTextbtn"
multiple placeholder="请选择">
<el-option v-for=" (itme,i) in businessStatusList" :key="i" :label="itme.label" :value="itme.value">
</el-option>
</el-select>
</div>
......@@ -255,8 +246,8 @@
<i class="el-icon-caret-bottom"></i>
</div>
<el-dropdown-menu slot="dropdown" class="select-list select-radio">
<div class="select-radio-list " :class="itme.value==establishText?'active':''" :command='i'
v-for="(itme,i) in establishList" :key="i+'oo'">
<div class="select-radio-list " :class="itme.value==establishText?'active':''" :command='i' v-for="(itme,i) in establishList"
:key="i+'oo'">
<template v-if="itme.value=='自定义'">
<span @mouseenter='getinputDate()'>
<el-radio :label="itme.value" v-model="establishText">
......@@ -268,9 +259,8 @@
<el-radio v-else :label="itme.value" @change="establishListbtn" v-model="establishText">
{{itme.value}}
</el-radio>
<el-date-picker class="select-radio-picker" v-if="itme.value=='自定义'"
v-model='startTimetext' @change="timeInput" placement='right-end'
value-format="yyyy-MM-dd" ref="saveDateInput" type="daterange">
<el-date-picker class="select-radio-picker" v-if="itme.value=='自定义'" v-model='startTimetext' @change="timeInput"
placement='right-end' value-format="yyyy-MM-dd" ref="saveDateInput" type="daterange">
</el-date-picker>
</div>
</el-dropdown-menu>
......@@ -278,29 +268,25 @@
</div>
<div class="select-popper">
<el-dropdown @command="handleNumber" trigger="click" ref="popperMoney" placement="bottom-start"
:hide-on-click="false">
<el-dropdown @command="handleNumber" trigger="click" ref="popperMoney" placement="bottom-start" :hide-on-click="false">
<div class="el-dropdown-link" :class="(registeredAssetsText!=='不限')?'select-popper-active':''">
注册资本{{(registeredAssetsText!=='不限')?'1项':''}}<i class="el-icon-caret-bottom"></i>
</div>
<el-dropdown-menu slot="dropdown" class="dropdown-list-radio">
<template v-for=" (item,i) in registeredAssets">
<el-dropdown-item v-if='item.value!="自定义"'
:class="item.value==registeredAssetsText?'color_text ':''"
<el-dropdown-item v-if='item.value!="自定义"' :class="item.value==registeredAssetsText?'color_text ':''"
:command="{'value':item.value,'key':'注册资本','label':item.label}">
<p @click="registeredAssetsText=item.value">
{{item.value}}
</p>
</el-dropdown-item>
<el-dropdown-item v-else command="自定义" style="padding: 0px;">
<div @mouseenter="showHandleNumber = true"
:class="registeredAssetsText=='自定义'?'color_text':''" style="padding: 0px 20px;"
<div @mouseenter="showHandleNumber = true" :class="registeredAssetsText=='自定义'?'color_text':''" style="padding: 0px 20px;"
@mouseleave="showHandleNumber = false">
<span :class="registeredAssetsText=='自定义'?'color_text':''">
自定义<i class="el-icon-arrow-right" style="padding-left: 24px;"></i>
</span>
<div class="jabph_popper_box" style="position:absolute;left: 124px;"
v-if="showHandleNumber">
<div class="jabph_popper_box" style="position:absolute;left: 124px;" v-if="showHandleNumber">
<div class="jabph_popper_wrap">
<el-input class="jabph_popper_input" v-model="startNumMoney">
</el-input>
......@@ -322,37 +308,31 @@
</el-dropdown>
</div>
<div class="select-popper">
<el-dropdown @command="handleNumber" trigger="click" ref="popperActualCapi" placement="bottom-start"
:hide-on-click="false">
<el-dropdown @command="handleNumber" trigger="click" ref="popperActualCapi" placement="bottom-start" :hide-on-click="false">
<div class="el-dropdown-link" :class="(actualCapi!=='不限')?'select-popper-active':''">
实缴资本{{(actualCapi!=='不限')?'1项':''}}<i class="el-icon-caret-bottom"></i>
</div>
<el-dropdown-menu slot="dropdown" class="dropdown-list-radio">
<template v-for=" (item,i) in registeredAssets">
<el-dropdown-item v-if='item.value!="自定义"'
:class="item.value==actualCapi?'color_text ':''"
<el-dropdown-item v-if='item.value!="自定义"' :class="item.value==actualCapi?'color_text ':''"
:command="{'value':item.value,'key':'实缴资本','label':item.label}">
<p @click="actualCapi=item.value">
{{item.value}}
</p>
</el-dropdown-item>
<el-dropdown-item v-else command="自定义" style="padding: 0px;">
<div @mouseenter="showHandleNumber = true"
:class="actualCapi=='自定义'?'color_text':''" style="padding: 0px 20px;"
<div @mouseenter="showHandleNumber = true" :class="actualCapi=='自定义'?'color_text':''" style="padding: 0px 20px;"
@mouseleave="showHandleNumber = false">
<span :class="actualCapi=='自定义'?'color_text':''">
自定义<i class="el-icon-arrow-right" style="padding-left: 24px;"></i>
</span>
<div class="jabph_popper_box" style="position:absolute;left: 124px;"
v-if="showHandleNumber">
<div class="jabph_popper_box" style="position:absolute;left: 124px;" v-if="showHandleNumber">
<div class="jabph_popper_wrap">
<el-input class="jabph_popper_input" v-limit-num
v-model="leftActualCapi">
<el-input class="jabph_popper_input" v-limit-num v-model="leftActualCapi">
</el-input>
</div>
<div class="jabph_popper_wrap">
<el-input class="jabph_popper_input" v-limit-num
v-model="rightActualCapi">
<el-input class="jabph_popper_input" v-limit-num v-model="rightActualCapi">
</el-input>
</div>
<div>
......@@ -366,34 +346,29 @@
</template>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="select-popper">
<el-dropdown @command="handleNumber" trigger="click" ref="popperInsuredNum" placement="bottom-start"
:hide-on-click="false">
<el-dropdown @command="handleNumber" trigger="click" ref="popperInsuredNum" placement="bottom-start" :hide-on-click="false">
<div class="el-dropdown-link" :class="InsuredNumText?'select-popper-active':''">
社保人数{{InsuredNumText?'1项':''}}<i class="el-icon-caret-bottom"></i>
</div>
<el-dropdown-menu slot="dropdown" class="dropdown-list-radio">
<template v-for=" (item,i) in InsuredNumList">
<el-dropdown-item v-if='item.value!="自定义"'
:class="item.value==InsuredNumText?'color_text ':''"
<el-dropdown-item v-if='item.value!="自定义"' :class="item.value==InsuredNumText?'color_text ':''"
:command="{'value':item.value,'key':'社保人数','label':item.label}">
<p @click="InsuredNumText=item.value">
{{item.value}}
</p>
</el-dropdown-item>
<el-dropdown-item v-else command="自定义" style="padding: 0px;">
<div @mouseenter="showHandleNumber = true"
:class="InsuredNumText=='自定义'?'color_text':''" style="padding: 0px 20px;">
<div @mouseenter="showHandleNumber = true" :class="InsuredNumText=='自定义'?'color_text':''" style="padding: 0px 20px;">
<!-- @mouseleave="showHandleNumber = false" -->
<span :class="InsuredNumText=='自定义'?'color_text':''">
自定义<i class="el-icon-arrow-right" style="padding-left: 24px;"></i>
</span>
<div class="jabph_popper_box" style="position:absolute;left: 124px;"
v-if="showHandleNumber">
<div class="jabph_popper_box" style="position:absolute;left: 124px;" v-if="showHandleNumber">
<div class="jabph_popper_wrap">
<el-input class="jabph_popper_input" v-model="startInsuredNum">
</el-input>
......@@ -416,13 +391,11 @@
</el-dropdown>
</div>
</div>
</div>
<div class="content_item content_item_padding0">
<div class="search-new" >
<div class="search-new">
<span @click="search()">查询</span>
<span @click="reset()">重置</span>
</div>
......@@ -435,17 +408,14 @@
<p class="title-left">
<span style="margin-right:4;color:rgba(35, 35, 35, 0.40);font-size: 18px;position: relative;top:2px;">·</span>共有{{total}}条
</p>
<el-popover v-model="fieldshow" placement="bottom-start" trigger="click"
popper-class="viewlist-el-popover">
<el-popover v-model="fieldshow" placement="bottom-start" trigger="click" popper-class="viewlist-el-popover">
<ul class="pup_list">
<li v-for="(itme,i) in fieldOptions" :class="itme.status?'activefield':''"
@click="handsequencingList(i)" :key="i">
<li v-for="(itme,i) in fieldOptions" :class="itme.status?'activefield':''" @click="handsequencingList(i)" :key="i">
{{itme.value}}
</li>
</ul>
<span slot="reference" class="toolbar-right-download" >
{{fieldText}}<i class="el-icon-arrow-down"
:style="{transform:fieldshow?'rotate(180deg)':''}"></i>
<span slot="reference" class="toolbar-right-download">
{{fieldText}}<i class="el-icon-arrow-down" :style="{transform:fieldshow?'rotate(180deg)':''}"></i>
</span>
</el-popover>
<div class="toolbar-right-search">
......@@ -476,16 +446,17 @@
</div>
<div class="info-list-right">
<p class="card-right-title">
<router-link :to="toEnterpriseDetail(item.jskEid)" >
<router-link :to="toEnterpriseDetail(item.jskEid)">
<span class="title" v-html="item.name"> </span>
</router-link>
</p>
<p class="card-right-title card-right-title1" :ref="'labels'+item.id" :style="{padding: '16px 0px 12px 0px'}">
<span :ref="'cardRightTitle1span'+item.id" >
<span class="positive positive1" v-if="item.businessStatus" >{{item.businessStatus}}</span>
<span :ref="'cardRightTitle1span'+item.id">
<span class="positive positive1" v-if="item.businessStatus">{{item.businessStatus}}</span>
<template v-for="(itemLabels,indexLabels) in item.labels">
<span class="positive positive1" :style="{'background':itemLabels.bgColor,'color':itemLabels.fontColor}">{{ itemLabels.labelName }} <template v-if="itemLabels.num>1">{{itemLabels.num}}</template></span>
<span class="positive positive1" :style="{'background':itemLabels.bgColor,'color':itemLabels.fontColor}">{{ itemLabels.labelName }}
<template v-if="itemLabels.num>1">{{itemLabels.num}}</template></span>
</template>
</span>
<!-- <span class="positive-gdbq" :ref="'positivegdbq'+item.id" v-if="labelsWidth('labels'+item.id,1)" @click="labelsClick('labels'+item.id,'positivegdbq'+item.id,'cardRightTitle1span'+item.id)">更多标签 <i class="el-icon-caret-bottom"></i></span> -->
......@@ -510,59 +481,59 @@
<span class="right-title-black">{{item.creditCode}}</span>
</template>
</p>
<p class="card-right-title" style="padding-top: 8px ;">
<template v-if="item.aptitudeCountNew!=null">
<span class="right-title-grey">资质资格:</span>
<router-link :to="toEnterprise(item.jskEid,'')" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'')" target="_blank">
<span class="right-title-blue" v-html="item.aptitudeCountNew"> </span>
</router-link>
</template>
<template v-if="item.recentlyCount!=null">
<span class="right-title-grey">中标业绩:</span>
<router-link :to="toEnterprise(item.jskEid,'performance')" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'performance')" target="_blank">
<span class="right-title-blue" v-html="item.recentlyCount"> </span>
</router-link>
</template>
<template v-if="item.skyCount!=null">
<span class="right-title-grey">四库业绩:</span>
<router-link :to="toEnterprise(item.jskEid,'performance',2)" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'performance',2)" target="_blank">
<span class="right-title-blue" v-html="item.skyCount"> </span>
</router-link>
</template>
<template v-if="item.registeredPersonnelCount!=null">
<span class="right-title-grey">注册人员:</span>
<router-link :to="toEnterprise(item.jskEid,'personnel',2)" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'personnel',2)" target="_blank">
<span class="right-title-blue" v-html="item.registeredPersonnelCount"> </span>
</router-link>
</template>
<template v-if="item.threePersonnelCount!=null">
<span class="right-title-grey">三类人员:</span>
<router-link :to="toEnterprise(item.jskEid,'personnel',5)" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'personnel',5)" target="_blank">
<span class="right-title-blue" v-html="item.threePersonnelCount"> </span>
</router-link>
</template>
<template v-if="item.jskBidCount>0">
<span class="right-title-grey">招标公告:</span>
<router-link :to="toEnterprise(item.jskEid,'business',5)" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'business',5)" target="_blank">
<span class="right-title-blue" v-html="item.jskBidCount"> </span>
</router-link>
</template>
<template v-if="item.customerCount>0">
<span class="right-title-grey">客户:</span>
<router-link :to="toEnterprise(item.jskEid,'business',1)" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'business',1)" target="_blank">
<span class="right-title-blue" v-html="item.customerCount"> </span>
</router-link>
</template>
<template v-if="item.supplierCount>0">
<span class="right-title-grey">供应商:</span>
<router-link :to="toEnterprise(item.jskEid,'business',2)" target="_blank" >
<router-link :to="toEnterprise(item.jskEid,'business',2)" target="_blank">
<span class="right-title-blue" v-html="item.supplierCount"> </span>
</router-link>
</template>
</p>
<p class="card-right-title" v-if="item.formerName!=null&&(item.formerName.indexOf('color')!=-1||item.name.indexOf('color')!=-1)" style="padding: 10px 0px 0px 0px;">
<p class="card-right-title" v-if="item.formerName!=null&&(item.formerName.indexOf('color')!=-1||item.name.indexOf('color')!=-1)"
style="padding: 10px 0px 0px 0px;">
<span class="right-title-grey">曾用名:</span>
<span class="right-title-grey" style="width: 984px;" v-html="item.formerName"></span>
</p>
......@@ -573,12 +544,7 @@
</li>
</ul>
<div class="pagination clearfix" v-show="total>0">
<el-pagination
background
:page-size="limit"
:current-page="page"
@current-change="handleCurrentChange"
layout="prev, pager, next"
<el-pagination background :page-size="limit" :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total">
</el-pagination>
</div>
......@@ -587,30 +553,30 @@
</div>
</template>
<script>
import jsk_data from '@/assets/json/jsk.json';
import aptitudeCode from '@/assets/json/aptitudeCode.json';
import jabph from '@/assets/json/jabph.json';
import options from '@/assets/json/options.json';
import api from '@/api/enterpriseData/enterpriseData.js';
import {encodeStr} from "@/assets/js/common.js"
import skeleton from '@/views/project/projectList/component/skeleton'
import "@/assets/styles/public.scss";
export default {
import jsk_data from '@/assets/json/jsk.json';
import aptitudeCode from '@/assets/json/aptitudeCode.json';
import jabph from '@/assets/json/jabph.json';
import options from '@/assets/json/options.json';
import api from '@/api/enterpriseData/enterpriseData.js';
import { encodeStr } from "@/assets/js/common.js";
import skeleton from '@/views/project/projectList/component/skeleton';
import "@/assets/styles/public.scss";
export default {
name: 'EnterpriseQuery',
components:{skeleton},
components: { skeleton },
directives: {
numberOnly: {
bind: function(el) {
el.handler = function() {
if(el.children[1].value){
el.children[1].value = el.children[1].value.replace(/\D+/g,'');
}
bind: function (el) {
el.handler = function () {
if (el.children[1].value) {
el.children[1].value = el.children[1].value.replace(/\D+/g, '');
}
el.addEventListener('input', el.handler)
};
el.addEventListener('input', el.handler);
},
unbind: function(el) {
el.removeEventListener('input', el.handler)
unbind: function (el) {
el.removeEventListener('input', el.handler);
}
}
},
......@@ -618,7 +584,7 @@
return {
encodeStr,
ename: '',
isSkeleton:true,
isSkeleton: true,
enameQueryTypeList: [{
key: 'and',
status: false,
......@@ -1326,8 +1292,8 @@
}
],
aptitudelist: [],
regionWeb:[],
regionWebList:[],
regionWeb: [],
regionWebList: [],
hasPhoneList: [{
value: '1',
label: '有联系电话'
......@@ -1416,16 +1382,20 @@
],
resultEname: '',
tableData:[],
total:0,
page:1,
limit:20
tableData: [],
total: 0,
page: 1,
limit: 20
}
};
},
created() {
api.aptitudeCode().then(res=>{
if (this.$route.query.keyword) {
this.ename = this.$route.query.keyword;
this.projectNamebtn('ename', this.ename, '关键字:');
}
api.aptitudeCode().then(res => {
if (res) {
this.optionss = res;
......@@ -1433,7 +1403,7 @@
this.optionss = aptitudeCode;
}
}).catch(error=>{
}).catch(error => {
this.optionss = aptitudeCode;
});
this.getRegionWebList();
......@@ -1442,13 +1412,8 @@
},
mounted() {
if (this.$route.query.keyword) {
this.ename = this.$route.query.keyword;
this.projectNamebtn('ename', this.ename, '关键字:');
}
if (this.$route.query.province_city) {
var addressType = []
var addressType = [];
for (let i = 0; i < this.addressList.length; i++) {
if (this.addressList[i].label.indexOf(this.$route.query.territory) != -1) {
for (let j in this.addressList[i].children) {
......@@ -1457,7 +1422,7 @@
for (let k in this.addressList[i].children[j].children) {
addressType.push([this.addressList[i].id, this.addressList[i].children[j].id, this
.addressList[i].children[j].children[k].id
])
]);
}
}
......@@ -1468,7 +1433,7 @@
this.addressType = addressType;
this.$nextTick(() => {
this.addressListbtn();
})
});
}
......@@ -1482,7 +1447,7 @@
value: text,
keyid: key,
title: teiti
}
};
if (text) {
var n = -1;
for (let x = 0; x < this.aptitudelist.length; x++) {
......@@ -1491,7 +1456,7 @@
}
}
if (n == -1) {
this.aptitudelist.push(data)
this.aptitudelist.push(data);
} else {
this.aptitudelist[n] = data;
}
......@@ -1503,20 +1468,20 @@
}
}
}
this.aptitudelist = JSON.parse(JSON.stringify(this.aptitudelist))
this.aptitudelist = JSON.parse(JSON.stringify(this.aptitudelist));
},
// 资质级联
optionsbtn(i) {
if (this.aptitudeDtoList.length > 1 && this.aptitudeDtoList[i].codeStr.length < 1) {
this.aptitudeDtoList.splice(i, 1);
i--
i--;
}
this.$refs[i] && this.$refs[i][0].toggleDropDownVisible(false);
var _this = this;
//延迟500毫秒执行
if (this.$refs[i]) {
setTimeout(function() {
setTimeout(function () {
_this.aptitudeDtoList[i].nameStr = _this.$refs[i][0].$refs.input.$options.propsData.value;
}, 100);
}
......@@ -1525,13 +1490,13 @@
optionsbtnOut(i) {
if (this.aptitudeDtoListOut.length > 1 && this.aptitudeDtoListOut[i].codeStr.length < 1) {
this.aptitudeDtoListOut.splice(i, 1);
i--
i--;
}
this.$refs[i + 'out'] && this.$refs[i + 'out'][0].toggleDropDownVisible(false);
var _this = this;
//延迟500毫秒执行
if (this.$refs[i + 'out']) {
setTimeout(function() {
setTimeout(function () {
_this.aptitudeDtoListOut[i].nameStr = _this.$refs[i + 'out'][0].$refs.input.$options
.propsData.value;
}, 100);
......@@ -1543,18 +1508,18 @@
var n = 0;
for (let i = 0; i < this.aptitudeDtoList.length; i++) {
if (!this.aptitudeDtoList[i].nameStr) {
n++
n++;
}
}
if (n > 0) {
this.$message.warning("请选择资质条件后,增加资质!")
this.$message.warning("请选择资质条件后,增加资质!");
} else {
this.aptitudeDtoList.push({
nameStr: '',
codeStr: [],
queryTypelist: this.aptitudeDtoList[this.aptitudeDtoList.length - 1].queryTypelist,
queryType: this.aptitudeDtoList[this.aptitudeDtoList.length - 1].queryType,
})
});
}
},
......@@ -1563,18 +1528,18 @@
var n = 0;
for (let i = 0; i < this.aptitudeDtoListOut.length; i++) {
if (!this.aptitudeDtoListOut[i].nameStr) {
n++
n++;
}
}
if (n > 0) {
this.$message.warning("请选择资质条件后,增加资质!")
this.$message.warning("请选择资质条件后,增加资质!");
} else {
this.aptitudeDtoListOut.push({
nameStr: '',
codeStr: [],
queryTypelist: this.aptitudeDtoListOut[this.aptitudeDtoListOut.length - 1].queryTypelist,
queryType: this.aptitudeDtoListOut[this.aptitudeDtoListOut.length - 1].queryType,
})
});
}
},
......@@ -1584,7 +1549,7 @@
for (let j = 0; j < this.aptitudeDtoList[i].queryTypelist.length; j++) {
this.aptitudeDtoList[i].queryTypelist[j].status = false;
}
this.aptitudeDtoList[i].queryType = this.aptitudeDtoList[i].queryTypelist[kindex].key
this.aptitudeDtoList[i].queryType = this.aptitudeDtoList[i].queryTypelist[kindex].key;
this.aptitudeDtoList[i].queryTypelist[kindex].status = true;
}
},
......@@ -1594,7 +1559,7 @@
for (let j = 0; j < this.aptitudeDtoListOut[i].queryTypelist.length; j++) {
this.aptitudeDtoListOut[i].queryTypelist[j].status = false;
}
this.aptitudeDtoListOut[i].queryType = this.aptitudeDtoListOut[i].queryTypelist[kindex].key
this.aptitudeDtoListOut[i].queryType = this.aptitudeDtoListOut[i].queryTypelist[kindex].key;
this.aptitudeDtoListOut[i].queryTypelist[kindex].status = true;
}
......@@ -1619,7 +1584,7 @@
keyid: '',
key: '',
title: '进省备案:'
}
};
// console.log(this.filePlaceCodeList);
for (let i = 0; i < this.filePlaceCodeList.length; i++) {
if (this.filePlaceCodeList[i].id == this.filePlaceCode) {
......@@ -1628,7 +1593,7 @@
keyid: 'filePlaceCode',
key: this.filePlaceCode,
title: '进省备案:'
}
};
}
}
this.aptitudelist.push(data);
......@@ -1653,7 +1618,7 @@
keyid: '',
key: '',
title: '本省与进省企业:'
}
};
for (let i = 0; i < this.filePlaceTypeList.length; i++) {
if (this.filePlaceTypeList[i].value == this.filePlaceType) {
data = {
......@@ -1661,19 +1626,19 @@
keyid: 'filePlaceType',
key: this.filePlaceType,
title: '本省与进省企业:'
}
};
}
}
this.aptitudelist.push(data);
}
},
//备案网站
getRegionWebList(){
api.searchDic().then(res=>{
getRegionWebList() {
api.searchDic().then(res => {
if (res) {
this.regionWebList = res.regionWeb;
}
}).catch(error=>{
}).catch(error => {
});
......@@ -1690,7 +1655,7 @@
"short": jsk_data[i].short,
"value": jsk_data[i].parentId,
"children": jsk_data[i].id == 900000 ? undefined : []
})
});
} else if (jsk_data[i].regionLevel == (x + 1) && (x + 1) == 2 && str) {
for (let j = 0; j < str.length; j++) {
if (str[j].id == jsk_data[i].parentId) {
......@@ -1700,7 +1665,7 @@
"short": jsk_data[i].short,
"value": jsk_data[i].parentId,
"children": []
})
});
}
}
} else if (jsk_data[i].regionLevel == (x + 1) && (x + 1) == 3) {
......@@ -1715,7 +1680,7 @@
"short": jsk_data[i].short,
"value": jsk_data[i].parentId,
// "children":[]
})
});
}
......@@ -1754,7 +1719,7 @@
!arr[i].hasChildren && countyCode.push(arr[i].value);
}
} else {
provinceCode.push(arr[i].value)
provinceCode.push(arr[i].value);
}
}
......@@ -1765,7 +1730,7 @@
if (provinceCode[i] == jsk_data[j].id) {
province.push(
jsk_data[j].regionName
)
);
}
}
......@@ -1776,7 +1741,7 @@
if (cityCode[i] == jsk_data[j].id) {
city.push(
jsk_data[j].regionName
)
);
}
}
......@@ -1787,7 +1752,7 @@
county.push(
jsk_data[j].regionName
)
);
}
}
......@@ -1806,7 +1771,7 @@
countyCode: countyCode,
key: '',
title: '工商注册地:'
})
});
this.addresslength = provinceCode.length + cityCode.length + countyCode.length;
} else {
this.addresslength = 0;
......@@ -1827,7 +1792,7 @@
keyid: '',
key: '',
title: '有无资质:'
}
};
for (let i = 0; i < this.qualifiedType.length; i++) {
if (this.qualifiedType[i].key == this.radioQuali) {
data = {
......@@ -1835,7 +1800,7 @@
keyid: 'hasAptitude',
key: this.radioQuali,
title: '有无资质:'
}
};
}
}
this.aptitudelist.push(data);
......@@ -1857,7 +1822,7 @@
keyid: '',
key: '',
title: '有无联系电话:'
}
};
for (let i = 0; i < this.hasPhoneType.length; i++) {
if (this.hasPhoneType[i].key == this.hasPhone) {
data = {
......@@ -1865,7 +1830,7 @@
keyid: 'hasPhone',
key: this.hasPhone,
title: '有无联系电话:'
}
};
}
}
this.aptitudelist.push(data);
......@@ -1887,7 +1852,7 @@
value: '',
keyid: '',
key: ''
}
};
for (let i = 0; i < this.hasLiceCertList.length; i++) {
if (this.hasLiceCertList[i].key == this.hasLiceCert) {
data = {
......@@ -1895,7 +1860,7 @@
keyid: 'hasLiceCert',
key: this.hasLiceCert,
title: '有无安许证:'
}
};
}
}
this.aptitudelist.push(data);
......@@ -1911,12 +1876,12 @@
}
if (this.systemValue.length > 0) {
var systemlabel = []
var systemlabel = [];
for (let i = 0; i < this.systemValue.length; i++) {
for (let j = 0; j < this.systemCertification.length; j++) {
if (this.systemValue[i] == this.systemCertification[j].key) {
systemlabel.push(this.systemCertification[j].value)
systemlabel.push(this.systemCertification[j].value);
}
}
......@@ -1929,7 +1894,7 @@
key: '',
title: '管理体系认证:'
}
};
this.aptitudelist.push(data);
}
......@@ -1945,12 +1910,12 @@
}
if (this.regionWeb.length > 0) {
var systemlabel = []
var systemlabel = [];
for (let i = 0; i < this.regionWeb.length; i++) {
for (let j = 0; j < this.regionWebList.length; j++) {
if (this.regionWeb[i] == this.regionWebList[j]) {
systemlabel.push(this.regionWebList[j])
systemlabel.push(this.regionWebList[j]);
}
}
......@@ -1963,7 +1928,7 @@
key: '',
title: '备案网站:'
}
};
this.aptitudelist.push(data);
}
......@@ -1982,7 +1947,7 @@
keyid: 'isHighTech',
key: this.isHighTechtext,
title: '高新企业:'
}
};
this.aptitudelist.push(data);
}
......@@ -2015,12 +1980,12 @@
if (n != -1) {
this.aTaxYeartext = ['不限'];
return
return;
}
var arr = [];
for (let i = 0; i < this.aTaxYeartext.length; i++) {
arr.push(this.aTaxYeartext[i] + 'A级纳税人')
arr.push(this.aTaxYeartext[i] + 'A级纳税人');
}
var data = {
......@@ -2029,7 +1994,7 @@
key: this.aTaxYeartext,
title: '纳税信用等级:'
}
};
this.aptitudelist.push(data);
......@@ -2061,14 +2026,14 @@
if (n != -1) {
this.companyTypeText = ['不限'];
return
return;
}
var arr = [];
for (let i = 0; i < this.companyTypeText.length; i++) {
for (let j = 0; j < this.companyTypeList.length; j++) {
if (this.companyTypeText[i] == this.companyTypeList[j].label) {
arr.push(this.companyTypeList[j].value)
arr.push(this.companyTypeList[j].value);
}
}
}
......@@ -2077,7 +2042,7 @@
keyid: 'companyType',
key: this.companyTypeText,
title: '企业类型:'
}
};
this.aptitudelist.push(data);
},
......@@ -2108,14 +2073,14 @@
if (n != -1) {
this.businessStatusText = ['不限'];
return
return;
}
var arr = [];
for (let i = 0; i < this.businessStatusText.length; i++) {
for (let j = 0; j < this.businessStatusList.length; j++) {
if (this.businessStatusText[i] == this.businessStatusList[j].label) {
arr.push(this.businessStatusList[j].value)
arr.push(this.businessStatusList[j].value);
}
}
}
......@@ -2124,7 +2089,7 @@
keyid: 'businessStatus',
key: this.businessStatusText,
title: '登记状态:'
}
};
this.aptitudelist.push(data);
},
......@@ -2199,23 +2164,23 @@
var start = startTime.split('-');
startTime = start.map((item) => {
if (item.length == 1) {
return '0' + item
return '0' + item;
} else {
return item
return item;
}
})
startTime = startTime.join('-')
});
startTime = startTime.join('-');
}
if (endTime) {
var end = endTime.split('-');
endTime = end.map((item) => {
if (item.length == 1) {
return '0' + item
return '0' + item;
} else {
return item
return item;
}
})
endTime = endTime.join('-')
});
endTime = endTime.join('-');
}
var data = {
value: this.establishText,
......@@ -2224,7 +2189,7 @@
startTime: startTime,
endTime: endTime,
title: '成立年限:'
}
};
this.aptitudelist.push(data);
},
getinputDate() {
......@@ -2238,12 +2203,12 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'establish') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
if (this.startTimetext.length > 0) {
this.establishText = '自定义'
this.establishText = '自定义';
}
......@@ -2254,7 +2219,7 @@
startTime: this.startTimetext[0],
endTime: this.startTimetext[1],
title: '成立年限:'
}
};
this.aptitudelist.push(data);
},
// 注册资本 实缴资本 社保人数
......@@ -2265,7 +2230,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'RegisteredCapital') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
var valuestr = command.value.split("-");
......@@ -2276,7 +2241,7 @@
start: command.label[0],
end: command.label[1] ? command.label[1] : '',
title: '注册资本:'
}
};
if (command.label.length == 1) {
data.end = '';
}
......@@ -2288,7 +2253,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'actualCapi') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
var valuestr = command.value.split("-");
......@@ -2299,7 +2264,7 @@
start: command.label[0],
end: command.label[1] ? command.label[1] : '',
title: '实缴资本:'
}
};
if (command.label.length == 1) {
data.end = '';
}
......@@ -2311,7 +2276,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'InsuredNum') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
var valuestr = command.label.split("-");
......@@ -2322,7 +2287,7 @@
start: valuestr[0],
end: valuestr[1] ? valuestr[1] : '',
title: '社保人数:'
}
};
if (valuestr.length == 1) {
data.end = '';
}
......@@ -2336,7 +2301,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'RegisteredCapital') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
}
......@@ -2344,7 +2309,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'InsuredNum') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
}
......@@ -2352,7 +2317,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'actualCapi') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
}
......@@ -2361,11 +2326,11 @@
// 注册资本 实缴资本 社保人数 自定义输入确定
popperConfirm(type) {
if (type == '注册资本') {
this.showHandleNumber = false
this.showHandleNumber = false;
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'RegisteredCapital') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
var data = {
......@@ -2375,7 +2340,7 @@
start: this.startNumMoney,
end: this.endNumMoney,
title: '注册资本:'
}
};
if (this.startNumMoney && !this.endNumMoney) {
data.value = data.value + this.startNumMoney + '万以上';
} else if (!this.startNumMoney && this.endNumMoney) {
......@@ -2385,13 +2350,13 @@
}
this.aptitudelist.push(data);
this.registeredAssetsText = '自定义';
this.$refs.popperMoney.hide()
this.$refs.popperMoney.hide();
} else if (type == '实缴资本') {
this.showHandleNumber = false
this.showHandleNumber = false;
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'actualCapi') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
var data = {
......@@ -2401,7 +2366,7 @@
start: this.leftActualCapi,
end: this.rightActualCapi,
title: '实缴资本:'
}
};
if (this.leftActualCapi && !this.rightActualCapi) {
data.value = data.value + this.leftActualCapi + '万以上';
} else if (!this.leftActualCapi && this.rightActualCapi) {
......@@ -2414,11 +2379,11 @@
this.actualCapi = '自定义';
this.$refs.popperActualCapi.hide();
} else if (type == '社保人数') {
this.showHandleNumber = false
this.showHandleNumber = false;
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'InsuredNum') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
var data = {
......@@ -2428,7 +2393,7 @@
start: this.startInsuredNum,
end: this.endInsuredNum,
title: '社保人数:'
}
};
if (this.startInsuredNum && !this.endInsuredNum) {
data.value = data.value + this.startInsuredNum + '人';
} else if (!this.startInsuredNum && this.endInsuredNum) {
......@@ -2451,36 +2416,36 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'RegisteredCapital') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
this.registeredAssetsText = '不限';
this.showHandleNumber = false;
this.$refs.popperMoney.hide()
this.$refs.popperMoney.hide();
} else if (type == '实缴资本') {
this.leftActualCapi = '';
this.rightActualCapi = '';
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'actualCapi') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
this.actualCapi = '不限';
this.showHandleNumber = false;
this.$refs.popperActualCapi.hide()
this.$refs.popperActualCapi.hide();
} else if (type == '社保人数') {
this.startInsuredNum = '';
this.endInsuredNum = '';
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'InsuredNum') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
this.startInsuredNum = '';
this.showHandleNumber = false;
this.$refs.popperActualCapi.hide()
this.$refs.popperActualCapi.hide();
}
},
......@@ -2496,7 +2461,7 @@
for (let x = 0; x < this.aptitudelist.length; x++) {
if (this.aptitudelist[x].keyid == 'filePlaceType') {
this.aptitudelist.splice(x, 1);
x--
x--;
}
}
this.filePlaceType = '1';
......@@ -2585,7 +2550,7 @@
}
],
queryType: 'and'
}]
}];
},
......@@ -2606,15 +2571,15 @@
},
],
queryType: 'and'
}]
}];
},
reset() {
Object.assign(this.$data, this.$options.data()) //重置data
api.aptitudeCode().then(res=>{
Object.assign(this.$data, this.$options.data()); //重置data
api.aptitudeCode().then(res => {
if (res) {
this.optionss = res;
......@@ -2622,7 +2587,7 @@
this.optionss = aptitudeCode;
}
}).catch(error=>{
}).catch(error => {
this.optionss = aptitudeCode;
});
......@@ -2655,16 +2620,16 @@
// 空白点击
outClick(e) {
if (this) {
let dropRef = this.$refs.dropRef.$el
let dropRef = this.$refs.dropRef.$el;
// console.log('dropRef',dropRef)
if (!dropRef.contains(e.target) && this.visible) {
this.visible = false
this.visible = false;
}
}
},
search(page, limit,exportFlag){
search(page, limit, exportFlag) {
// return false;
if (!page) {
this.page = 1;
......@@ -2688,10 +2653,10 @@
"field": this.field,
"order": this.orderText
},
}
};
this.showList = true
this.showList = true;
if (this.resultEname) {
data.aptitudeQueryDto['resultEname'] = this.resultEname;
}
......@@ -2704,14 +2669,14 @@
var dataList = {
codeStr: [],
queryType: '',
aptitudeType:''
aptitudeType: ''
};
var aptitudeType = '';
if(this.qualificationsTab == '按资质项'){
aptitudeType = 'qualification'
}else if(this.qualificationsTab == '按等级'){
aptitudeType = 'level'
if (this.qualificationsTab == '按资质项') {
aptitudeType = 'qualification';
} else if (this.qualificationsTab == '按等级') {
aptitudeType = 'level';
}
......@@ -2721,8 +2686,8 @@
dataList.codeStr.push(this.aptitudeDtoList[i].codeStr[this.aptitudeDtoList[i].codeStr.length -
1]);
}
dataList.queryType = this.aptitudeDtoList[this.aptitudeDtoList.length-1].queryType;
dataList.aptitudeType=aptitudeType;
dataList.queryType = this.aptitudeDtoList[this.aptitudeDtoList.length - 1].queryType;
dataList.aptitudeType = aptitudeType;
}
dataList.codeStr = dataList.codeStr.join(',');
aptitudeDtoList.push(dataList);
......@@ -2746,17 +2711,17 @@
} else if (this.aptitudelist[i].keyid == "businessStatus") {
data.aptitudeQueryDto['businessStatus'] = this.aptitudelist[i].key.join(',');
} else if (this.aptitudelist[i].keyid == "establish") {
data.aptitudeQueryDto['startRegisteredDate'] = this.aptitudelist[i].startTime
data.aptitudeQueryDto['endRegisteredDate'] = this.aptitudelist[i].endTime
data.aptitudeQueryDto['startRegisteredDate'] = this.aptitudelist[i].startTime;
data.aptitudeQueryDto['endRegisteredDate'] = this.aptitudelist[i].endTime;
} else if (this.aptitudelist[i].keyid == "RegisteredCapital") {
data.aptitudeQueryDto['leftRegisteredCapital'] = this.aptitudelist[i].start
data.aptitudeQueryDto['rightRegisteredCapital'] = this.aptitudelist[i].end
data.aptitudeQueryDto['leftRegisteredCapital'] = this.aptitudelist[i].start;
data.aptitudeQueryDto['rightRegisteredCapital'] = this.aptitudelist[i].end;
} else if (this.aptitudelist[i].keyid == "actualCapi") {
data.aptitudeQueryDto['leftActualCapi'] = this.aptitudelist[i].start
data.aptitudeQueryDto['rightActualCapi'] = this.aptitudelist[i].end
data.aptitudeQueryDto['leftActualCapi'] = this.aptitudelist[i].start;
data.aptitudeQueryDto['rightActualCapi'] = this.aptitudelist[i].end;
} else if (this.aptitudelist[i].keyid == "InsuredNum") {
data.aptitudeQueryDto['startInsuredNum'] = this.aptitudelist[i].start
data.aptitudeQueryDto['endInsuredNum'] = this.aptitudelist[i].end
data.aptitudeQueryDto['startInsuredNum'] = this.aptitudelist[i].start;
data.aptitudeQueryDto['endInsuredNum'] = this.aptitudelist[i].end;
} else {
data.aptitudeQueryDto[this.aptitudelist[i].keyid] = this.aptitudelist[i].key;
}
......@@ -2771,51 +2736,51 @@
data.aptitudeQueryDto['aptitudeSource'] = 'new';
}
this.isSkeleton = true;
api.enterprisePage(data).then(res=>{
this.isSkeleton = false
if (res.code==200) {
this.tableData=res.data.list;
this.total=res.data.total;
api.enterprisePage(data).then(res => {
this.isSkeleton = false;
if (res.code == 200) {
this.tableData = res.data.list;
this.total = res.data.total;
}
}).catch(error=>{
}).catch(error => {
});
},
toEnterprise(id, html,type) {
return '/company/' + encodeStr(id) + '/'+(html?'?html='+html:'')+(type?'&flag=true&type='+type:'');
toEnterprise(id, html, type) {
return '/company/' + encodeStr(id) + '/' + (html ? '?html=' + html : '') + (type ? '&flag=true&type=' + type : '');
},
toEnterpriseDetail(id) {
return '/company/' + encodeStr(id) + '/?index=true';
},
labelsWidth(e,t=0){
setTimeout(()=>{
if(this.$refs[e]){
labelsWidth(e, t = 0) {
setTimeout(() => {
if (this.$refs[e]) {
let k = 0;
for (var j=0;j<this.$refs[e][0].children.length;j++){
k = k+ (this.$refs[e][0].children[j].offsetWidth+14)
for (var j = 0; j < this.$refs[e][0].children.length; j++) {
k = k + (this.$refs[e][0].children[j].offsetWidth + 14);
}
if(k>1074){
if(t==1){
return true
if (k > 1074) {
if (t == 1) {
return true;
}
return '982px'
}else {
if(t==1){
return false
return '982px';
} else {
if (t == 1) {
return false;
}
return '100%'
return '100%';
}
}
},1000)
}, 1000);
},
labelsClick(e,i,s){
this.$refs[e][0].style.height = 'auto'
this.$refs[s][0].style.width = '100%'
this.$refs[i][0].style.display = 'none'
labelsClick(e, i, s) {
this.$refs[e][0].style.height = 'auto';
this.$refs[s][0].style.width = '100%';
this.$refs[i][0].style.display = 'none';
},
chkPrice(obj) {
obj = obj.replace(/[^\d.]/g, "");
......@@ -2831,69 +2796,65 @@
message: '请输入大于0的数字',
type: 'warning'
});
return ""
return "";
}
return obj;
},
}
}
}
</script>
<style lang="scss" scoped>
.content{
.content {
padding: 0px 16px;
padding-top: 16px;
border-radius: 4px 4px 4px 4px;
background: #FFFFFF;
.content_item{
background: #ffffff;
.content_item {
padding-top: 20px;
display: flex;
align-items: center;
.label{
.label {
width: 84px;
font-size: 14px;
font-weight: 400;
color: rgba(35,35,35,0.8);
color: rgba(35, 35, 35, 0.8);
}
.content_right{
.ename_input{
.content_right {
.ename_input {
width: 640px;
margin-right: 20px;
}
.el-input-group{
.el-input-group {
display: flex;
align-items: center;
}
::v-deep .el-input-group__append{
padding:0px;
::v-deep .el-input-group__append {
padding: 0px;
line-height: 34px;
font-weight: 400;
color: #0081FF;
color: #0081ff;
height: 34px;
width: 80px;
background: #F5F5F5;
background: #f5f5f5;
border-radius: 0px 0px 0px 0px;
text-align: center;
cursor: pointer;
}
}
.item_ckquery_list {
display: flex;
align-items: center;
.qualifications-tab{
.qualifications-tab {
margin-right: 4px;
border: 1px solid #e0e0e0;
padding: 2px 3px;
border-radius: 2px;
height: 34px;
margin-top: 1px;
span{
span {
background: #fff;
display: inline-block;
cursor: pointer;
......@@ -2902,7 +2863,7 @@
padding: 3px 8px;
margin-top: 0.5px;
}
.action{
.action {
color: #ffffff;
background: #0081ff;
}
......@@ -2911,10 +2872,9 @@
.content_item_list {
width: 280px;
}
.ckquery_list_right{
.ckquery_list_right {
width: 670px;
}
}
.item_ckquery_list .el-input__icon {
......@@ -2924,21 +2884,20 @@
.ckquery_list_right {
width: 640px;
}
.register_count_ipt{
.register_count_ipt {
margin-left: 0px;
}
.register_count_ipt .el-input__inner{
.register_count_ipt .el-input__inner {
width: 174px;
}
::v-deep .el-input-group__prepend{
::v-deep .el-input-group__prepend {
padding: 0 8px;
}
.content-projecttype{
.content-projecttype {
display: flex;
align-items: center;
justify-content: center;
.projecttype{
.projecttype {
font-weight: 400;
color: #232323;
padding: 1px 5px;
......@@ -2947,113 +2906,104 @@
border-radius: 3px 3px 3px 3px;
font-size: 14px;
}
.projecttype:first-child{
.projecttype:first-child {
padding-left: 0px;
}
.projecttype:hover{
background: #F3F4F5;
.projecttype:hover {
background: #f3f4f5;
padding: 1px 5px;
}
.activetype{
background: #F3F4F5;
.activetype {
background: #f3f4f5;
padding: 1px 5px !important;
}
}
}
.content_item_padding0{
.content_item_padding0 {
padding: 0;
}
.content_item1{
.content_item1 {
align-items: flex-start;
.content_right{
.content_right {
width: 1400px;
.select-popper{
.select-popper {
margin-bottom: 20px;
}
}
}
}
.bottomlist{
}
.bottomlist {
width: 100%;
background-color: #FFFFFF;
background-color: #ffffff;
border-radius: 4px 4px 4px 4px;
.bottomlist-title{
.bottomlist-title {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0px 16px;
margin-top: 12px;
padding: 16px 0px ;
border-bottom: 1px solid #EFEFEF;
.title-left{
height:16px;
padding: 16px 0px;
border-bottom: 1px solid #efefef;
.title-left {
height: 16px;
line-height: 16px;
font-size: 12px;
font-weight: 400;
color: #3D3D3D;
color: #3d3d3d;
}
.title-right{
.title-right {
display: flex;
align-items: center;
p:last-child{
p:last-child {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
color: rgba(35,35,35,0.8);
color: rgba(35, 35, 35, 0.8);
}
img{
img {
width: 18px;
height: 18px;
}
.excel{
.excel {
cursor: pointer;
}
}
}
.bottomlist-content{
.bottomlist-content {
padding-bottom: 0px;
}
.pagination{
padding: 14px ;
.el-pagination{
.pagination {
padding: 14px;
.el-pagination {
float: right;
}
}
.card-right-title1{
.card-right-title1 {
display: block !important;
overflow: hidden;
}
.positive1{
.positive1 {
padding: 0 8px !important;
margin-right: 7px !important;
}
.positive-gdbq{
.positive-gdbq {
font-size: 12px;
font-weight: 400;
color: #0081FF;
cursor:pointer;
}
}
.content_item_ckquery{
.item_ckquery{
margin-bottom:0px;
color: #0081ff;
cursor: pointer;
}
}
.content_item_ckquery {
.item_ckquery {
margin-bottom: 0px;
}
}
.aptitude_choice_wrap {
.aptitude_choice_wrap {
position: relative;
display: inline-block;
width: 1060px;
......@@ -3071,6 +3021,5 @@
right: -16px;
bottom: 0;
}
}
}
</style>
\ No newline at end of file
......@@ -100,11 +100,15 @@
</div>
</div>
<div class="table-item-jf table-item-jf1" v-if="tableData.length==0&& !isSkeleton">
<div class="table-item-jf table-item-jf1 empty-table" v-if="!tableData.length&& !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">抱歉,没找到相关数据!</div>
<div class="item-jf-text">建议调整关键词或筛选条件,重新搜索!</div>
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
<div class="depth-search-box" v-if="onlySearchEname">
<div class="depth-search" @click="$router.push({path : `/enterpriseData/SearchEnterprise?keyword=${keys}`})">深度搜索企业</div>
</div>
</div>
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0" @mouseleave="showClaim = false">
......@@ -126,13 +130,9 @@
<!-- 优质甲方tag标签 -->
<div class="high-quality-enterprise" v-if="scope.row.other">{{scope.row.other}}</div>
<div class="renling-btn" @click="claimbtn(scope.row)">
<p v-if="scope.row.claimStatus==1" class="renling-img-true">
</p>
<p v-else class="renling-img-false">
</p>
<span v-if="scope.row.claimStatus==1" @click.stop="cancelClaim(scope.row.name,scope.$index)" class="renling-hui">
<p v-if="scope.row.claimStatus==0" class="renling-img-true"></p>
<p v-else class="renling-img-false"></p>
<span v-if="scope.row.claimStatus==0" @click.stop="cancelClaim(scope.row.name,scope.$index)" class="renling-hui">
已认领
</span>
<span v-else class="renling-hei">
......@@ -299,7 +299,7 @@ export default {
// 业主标签
ownerLabels: [],
// 当前选中的业主标签
currentOwnerLabels: ["5.1.1."],
currentOwnerLabels: [],
// 业主全选状态
checkOwnerLabel: false,
// 选中两个及两个以上业主标签 添加选中条件 or任意均可 and同时具备
......@@ -355,7 +355,32 @@ export default {
};
},
computed: {
// 仅搜索企业名
onlySearchEname() {
let that = this;
const keys = {
ename: that.keys,
tagCode: that.currentOwnerLabels,
...that.jskBidQueryDto
};
const temp = [];
for (const key in keys) {
const type = Object.prototype.toString.call(keys[key]);
if (keys[key]) {
switch (type) {
case "[object String]":
temp.push(key);
break;
case "[object Array]":
keys[key].length > 0 ? temp.push(key) : null;
break;
default:
break;
}
}
}
return temp.length == 1 && temp.includes("ename") ? true : false;
}
},
created() {
this.init();
......@@ -520,7 +545,7 @@ export default {
this.checkOwnerLabel = false;
} else if (val.length == 0) {
this.checkOwnerLabel = true;
this.currentOwnerLabels = [this.ownerLabels[0].dictValue];
this.currentOwnerLabels = [];
}
if (val.length >= 2) {
this.tagCodeQueryType = "or";
......@@ -607,7 +632,7 @@ export default {
api.cancelClaim(this.companyName).then(res => {
if (res.code == 200) {
this.dialogVisible1 = false;
this.tableData[this.cancelIndex].claimStatus = 0;
this.tableData[this.cancelIndex].claimStatus = 1;
} else {
this.$message.error(res.msg);
}
......@@ -653,7 +678,7 @@ export default {
// 搜索关键词处理
if (this.keys) {
params.aptitudeQueryDto['ename'] = this.keys.split(' ');
params.aptitudeQueryDto['ename'] = this.keys;
}
// 处理地区选择
......@@ -668,7 +693,7 @@ export default {
}
// 业主标签选中处理
if (this.ownerLabels.length > 0) {
if (this.currentOwnerLabels.length > 0) {
params.aptitudeQueryDto["tagCode"] = this.currentOwnerLabels.join(",");
}
......@@ -1014,6 +1039,40 @@ export default {
}
::v-deep .table-item-jf {
&.empty-table {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 48px 0px;
.item-jf-text {
padding: 0px;
}
.item-jf-img {
margin: 0;
width: 108px;
height: 109px;
margin-bottom: 24px;
}
.depth-search-box {
display: flex;
align-items: center;
justify-content: center;
margin-top: 24px;
}
.depth-search {
width: 116px;
height: 36px;
line-height: 36px;
text-align: center;
cursor: pointer;
color: #fff;
background: #0081ff;
border-radius: 4px;
font-size: 14px;
}
}
.el-table {
th,
td {
......@@ -1094,6 +1153,10 @@ export default {
font-size: 13px;
font-weight: 400;
color: #3d3d3d;
&:hover {
color: #0081ff;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment