Commit 7a95fb40 authored by yht15023815643's avatar yht15023815643

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

parents 1219fe0e c190b923
...@@ -14,6 +14,12 @@ import javax.validation.constraints.NotNull; ...@@ -14,6 +14,12 @@ import javax.validation.constraints.NotNull;
@Data @Data
public class OpRegionalEconomicDataRegionalListDto { public class OpRegionalEconomicDataRegionalListDto {
/**
* id
*/
@NotNull(message = "id 不能为空")
private Integer id;
/** /**
* 省Id * 省Id
*/ */
......
...@@ -28,9 +28,16 @@ ...@@ -28,9 +28,16 @@
<li v-if="!isLastView()" @click="closeRightTags"><i class="el-icon-right"></i> 关闭右侧</li> <li v-if="!isLastView()" @click="closeRightTags"><i class="el-icon-right"></i> 关闭右侧</li>
<li @click="closeAllTags(selectedTag)"><i class="el-icon-circle-close"></i> 全部关闭</li> <li @click="closeAllTags(selectedTag)"><i class="el-icon-circle-close"></i> 全部关闭</li>
</ul> </ul>
<div class="alltags" @click="closeall"> <div class="alltags" v-if="visitedViews.length > 0">
<div class=""><i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i></div> <div class="" @click="closeall"><i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i></div>
<div class="tagslist" v-if="showall"> <div class="tagslist" v-if="showall">
<!--<div v-for="(tag, index) in visitedViews"-->
<!--:key="tag.path"-->
<!--:class="isActive(tag)?'active':''"-->
<!--&gt;-->
<!--<i class="el-icon-check"></i>-->
<!--</div>-->
<router-link <router-link
v-for="(tag, index) in visitedViews" v-for="(tag, index) in visitedViews"
ref="tag" ref="tag"
...@@ -39,11 +46,12 @@ ...@@ -39,11 +46,12 @@
:to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
tag="span" tag="span"
class="tags-view-item" class="tags-view-item"
@click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
@contextmenu.prevent.native="openMenu(tag,$event)" @contextmenu.prevent.native="openMenu(tag,$event)"
> >
<div @click="changetags">
<i class="el-icon-check"></i> <i class="el-icon-check"></i>
<span :id="isActive(tag)?'tagTitle':''">{{ tag.title }}</span> <span :id="isActive(tag)?'tagTitle':''">{{ tag.title }}</span>
</div>
</router-link> </router-link>
<div class="clasall" @click="closeAllTag(selectedTag)">关闭全部标签</div> <div class="clasall" @click="closeAllTag(selectedTag)">关闭全部标签</div>
</div> </div>
...@@ -104,13 +112,17 @@ export default { ...@@ -104,13 +112,17 @@ export default {
} else { } else {
document.body.removeEventListener('click', this.closeMenu) document.body.removeEventListener('click', this.closeMenu)
} }
} },
}, },
mounted() { mounted() {
this.initTags() this.initTags()
this.addTags() this.addTags()
}, },
methods: { methods: {
changetags(){
console.log(88)
this.showall = false
},
closeall(){ closeall(){
if(this.showall == true){ if(this.showall == true){
this.showall = false this.showall = false
...@@ -231,9 +243,10 @@ export default { ...@@ -231,9 +243,10 @@ export default {
}) })
}, },
closeAllTag(view){ closeAllTag(view){
this.showall = false this.$nextTick(()=>{
this.showall = false
this.closeAllTags(view) this.closeAllTags(view)
})
}, },
closeAllTags(view) { closeAllTags(view) {
this.$tab.closeAllPage().then(({ visitedViews }) => { this.$tab.closeAllPage().then(({ visitedViews }) => {
...@@ -401,9 +414,11 @@ export default { ...@@ -401,9 +414,11 @@ export default {
text-align: left; text-align: left;
box-shadow: 0 2px 9px 2px rgba(0,0,0,.09), 0 1px 2px -2px rgba(0,0,0,.16); box-shadow: 0 2px 9px 2px rgba(0,0,0,.09), 0 1px 2px -2px rgba(0,0,0,.16);
.tags-view-item{ .tags-view-item{
padding: 8px 24px;
display: block; display: block;
position: relative; position: relative;
>div{
padding: 8px 24px;
}
&:hover{ &:hover{
color: #0081FF; color: #0081FF;
} }
...@@ -424,6 +439,9 @@ export default { ...@@ -424,6 +439,9 @@ export default {
border-top: 1px solid #EFEFEF; border-top: 1px solid #EFEFEF;
padding: 10px 24px 0; padding: 10px 24px 0;
margin-top: 10px; margin-top: 10px;
&:hover{
color: #0081FF;
}
} }
} }
} }
......
...@@ -349,24 +349,24 @@ export default { ...@@ -349,24 +349,24 @@ export default {
.app-container{ .app-container{
height: calc(100vh - 134px) height: calc(100vh - 134px)
} }
.box-card{ .box-card{
padding-top: 16px; padding-top: 16px;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.box{ .box{
position: relative; position: relative;
>span{ >span{
position: absolute; position: absolute;
right: 10px; right: 10px;
bottom: 0; bottom: 0;
color: #0081FF; color: #0081FF;
cursor: pointer; cursor: pointer;
&:hover{ &:hover{
color: #006AD1; color: #006AD1;
}
} }
} }
}
.dc{ .dc{
font-size: 12px; font-size: 12px;
color: #3D3D3D; color: #3D3D3D;
...@@ -397,8 +397,8 @@ export default { ...@@ -397,8 +397,8 @@ export default {
} }
.tables{ .tables{
position: relative; position: relative;
height: calc(100vh - 134px); min-height: calc(100vh - 134px);
overflow: auto; /*overflow: auto;*/
.empty{ .empty{
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -425,7 +425,7 @@ export default { ...@@ -425,7 +425,7 @@ export default {
>img{ >img{
float: right; float: right;
margin: 3px 0 0 4px; margin: 3px 0 0 4px;
width: 16px; width: 14px;
} }
.i{ .i{
display: inline-block; display: inline-block;
......
...@@ -204,26 +204,26 @@ export default { ...@@ -204,26 +204,26 @@ export default {
methods: { methods: {
//认领 //认领
async handleClaim(){ async handleClaim(){
if(this.companyInfo.uipId){ let res = await api.customerStatus(this.companyInfo.companyName)
this.claimLoading = true if(res.data === 1){
let param = { this.claimLoading = false
companyId:this.companyId, this.dialogVisible2=true;
uipId:this.companyInfo.uipId, }else{
companyName:this.companyInfo.companyName, if(this.companyInfo.uipId){
creditLevel:this.companyInfo.bratingSubjectLevel || '', this.claimLoading = true
legalPerson:this.companyInfo.corporatePerson || '', let param = {
registerCapital:this.companyInfo.registeredCapital || '', companyId:this.companyId,
provinceId:this.companyInfo.provinceId || '', uipId:this.companyInfo.uipId,
cityId:this.companyInfo.cityId || '', companyName:this.companyInfo.companyName,
districtId:this.companyInfo.districtCode || '', creditLevel:this.companyInfo.bratingSubjectLevel || '',
registerAddress:this.companyInfo.provinceName+(this.companyInfo.cityName?'-'+this.companyInfo.cityName:'')+(this.companyInfo.districtName?'-'+this.companyInfo.districtName:''), legalPerson:this.companyInfo.corporatePerson || '',
creditCode:this.companyInfo.creditCode registerCapital:this.companyInfo.registeredCapital || '',
} provinceId:this.companyInfo.provinceId || '',
let res = await api.customerStatus(this.companyInfo.companyName) cityId:this.companyInfo.cityId || '',
if(res.data === 1){ districtId:this.companyInfo.districtCode || '',
this.claimLoading = false registerAddress:this.companyInfo.provinceName+(this.companyInfo.cityName?'-'+this.companyInfo.cityName:'')+(this.companyInfo.districtName?'-'+this.companyInfo.districtName:''),
this.dialogVisible2=true; creditCode:this.companyInfo.creditCode
}else{ }
let res = await claim(param) let res = await claim(param)
this.claimLoading = false this.claimLoading = false
if(res.code==200){ if(res.code==200){
...@@ -231,9 +231,9 @@ export default { ...@@ -231,9 +231,9 @@ export default {
this.companyInfo.claimStatus = 1 this.companyInfo.claimStatus = 1
this.customerId = res.data.customerId this.customerId = res.data.customerId
} }
}else{
this.$message.warning('对不起,当前不能认领')
} }
}else{
this.$message.warning('对不起,当前不能认领')
} }
}, },
//取消认领 //取消认领
......
...@@ -919,6 +919,7 @@ export default { ...@@ -919,6 +919,7 @@ export default {
line-height: 32px; line-height: 32px;
font-size: 12px; font-size: 12px;
padding-left: 6px; padding-left: 6px;
border-right: 0;
} }
.el-input__suffix{ .el-input__suffix{
margin-top: -1px; margin-top: -1px;
......
...@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable { ...@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable {
* 城投id * 城投id
*/ */
private String uipId; private String uipId;
/**
* 企业名称
*/
private String companyName;
} }
...@@ -59,6 +59,7 @@ public class EnterpriseService { ...@@ -59,6 +59,7 @@ public class EnterpriseService {
companyData.put("uipId", null); companyData.put("uipId", null);
companyData.put("claimStatus", 0); companyData.put("claimStatus", 0);
companyData.put("bratingSubjectLevel", null); companyData.put("bratingSubjectLevel", null);
String companyName = MapUtils.getString(companyData, "companyName", "");
Map<String, Object> map = BeanUtil.beanToMap(body, false, false); Map<String, Object> map = BeanUtil.beanToMap(body, false, false);
map.put("cid", body.getCompanyId()); map.put("cid", body.getCompanyId());
...@@ -74,6 +75,11 @@ public class EnterpriseService { ...@@ -74,6 +75,11 @@ public class EnterpriseService {
ArrayList<String> uipIds = new ArrayList<>(); ArrayList<String> uipIds = new ArrayList<>();
uipIds.add(uipId); uipIds.add(uipId);
companyData.put("claimStatus", CollectionUtils.isEmpty(iCustomerService.selectStatusList(uipIds)) ? 0 : 1); companyData.put("claimStatus", CollectionUtils.isEmpty(iCustomerService.selectStatusList(uipIds)) ? 0 : 1);
} else {
Integer status = iCustomerService.status(companyName);
if (ObjectUtil.isNotEmpty(status)) {
companyData.put("claimStatus", status.equals(0) ? 1 : 0);
}
} }
Map<String, Object> bondCreditRatingMap = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRating", map); Map<String, Object> bondCreditRatingMap = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRating", map);
......
...@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> { ...@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> {
List<CustomerStatusListVo> selectStatusList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId); List<CustomerStatusListVo> selectStatusList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
List<CustomerStatusListVo> selectStatusListByCompanyName(@Param("companyNames") List<String> companyNames, @Param("userId") Long userId);
// List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId); // List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
} }
......
...@@ -29,6 +29,8 @@ public interface ICustomerService { ...@@ -29,6 +29,8 @@ public interface ICustomerService {
List<CustomerStatusListVo> selectStatusList(List<String> uipIds); List<CustomerStatusListVo> selectStatusList(List<String> uipIds);
List<CustomerStatusListVo> selectStatusListByCompanyName(List<String> companyNames);
// List<String> selectUipIdList(List<String> uipIds); // List<String> selectUipIdList(List<String> uipIds);
Integer status(String companyName); Integer status(String companyName);
......
...@@ -237,8 +237,16 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -237,8 +237,16 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Transactional @Transactional
public int deleteBusinessInfoByIds(Long[] ids) { public int deleteBusinessInfoByIds(Long[] ids) {
//删除项目详情,用户关联项目,项目工作代办,项目联系人,项目跟进记录,项目标签,项目相关企业 //删除项目详情,用户关联项目,项目工作代办,项目联系人,项目跟进记录,项目标签,项目相关企业
return businessInfoMapper.deleteBusinessInfoByIds(ids); int deleteBusiness = businessInfoMapper.deleteBusinessInfoByIds(ids);
//TODO 删除项目上传的文件 //删除项目上传的文件
for (Long id : ids) {
try {
FileUtils.delFolder(RuoYiConfig.getUploadPath() + id);
} catch (Exception e) {
e.printStackTrace();
}
}
return deleteBusiness;
} }
/** /**
......
...@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService {
return baseMapper.selectStatusList(uipIds, SecurityUtils.getUserId()); return baseMapper.selectStatusList(uipIds, SecurityUtils.getUserId());
} }
@Override
public List<CustomerStatusListVo> selectStatusListByCompanyName(List<String> companyNames) {
return baseMapper.selectStatusListByCompanyName(companyNames, SecurityUtils.getUserId());
}
// @Override // @Override
// public List<String> selectUipIdList(List<String> uipIds) { // public List<String> selectUipIdList(List<String> uipIds) {
......
...@@ -58,6 +58,17 @@ ...@@ -58,6 +58,17 @@
</foreach> </foreach>
</select> </select>
<select id="selectStatusListByCompanyName" resultType="com.dsk.system.domain.customer.vo.CustomerStatusListVo">
select
ct.customer_id, ct.company_name
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
where ctu.user_id = #{userId} and ctu.status = 0 and ct.company_name in
<foreach collection="companyNames" item="companyName" open="(" separator="," close=")">
#{companyName}
</foreach>
</select>
<!-- <select id="selectUipIdList" resultType="java.lang.String">--> <!-- <select id="selectUipIdList" resultType="java.lang.String">-->
<!-- select--> <!-- select-->
<!-- ct.uip_id--> <!-- ct.uip_id-->
......
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