Commit 183efc03 authored by caixingbing's avatar caixingbing
parents a33ad0be 45f8d47e
...@@ -194,11 +194,11 @@ xss: ...@@ -194,11 +194,11 @@ xss:
dsk: dsk:
open: open:
# endPoint: sandbox.openapi.jiansheku.com # endPoint: 120.27.13.145:8865
# accessKeyId: aec7b3ff2e8b48e79a7e2c463ce21912 # accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912
# accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b # accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
# protocol: https # protocol: http
endPoint: 120.27.13.145:8865 endPoint: openapi.jiansheku.com
accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912 accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912
accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
protocol: http protocol: https
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<template v-if="isInfo"> <template v-if="isInfo">
<!-- 企业信息 --> <!-- 企业信息 -->
<div class="view-content"> <div class="view-content">
<Info :companyInfo="iscompanyInfo" /> <Info :companyInfo="companyInfo" />
</div> </div>
<!-- 基本信息 --> <!-- 基本信息 -->
<div class="view-content"> <div class="view-content">
...@@ -99,6 +99,13 @@ export default { ...@@ -99,6 +99,13 @@ export default {
iscompanyInfo:{} iscompanyInfo:{}
} }
}, },
watch: {
"customerIds"(newVal, oldVal) {
if(newVal){
this.customerInfos()
}
}
},
created() { created() {
this.infos = this.customerInfo this.infos = this.customerInfo
this.iscompanyInfo = this.companyInfo ? this.companyInfo : {} this.iscompanyInfo = this.companyInfo ? this.companyInfo : {}
...@@ -132,10 +139,13 @@ export default { ...@@ -132,10 +139,13 @@ export default {
}, },
customerInfos(){ customerInfos(){
this.isInfo = false
customerInfo(this.customerIds).then(res=>{ customerInfo(this.customerIds).then(res=>{
this.$nextTick(()=>{
this.infos = res.data this.infos = res.data
this.handleQuery() this.handleQuery()
}) })
})
}, },
focusNowedits(e){ focusNowedits(e){
this.nowedit = e this.nowedit = e
......
...@@ -167,11 +167,11 @@ export default { ...@@ -167,11 +167,11 @@ export default {
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm => { next(vm => {
if(from.name == 'CustomList'){ if (to.query.customerId){
if (to.query.path){ let customerId = to.query.customerId
vm.association(customerId)
vm.currentPath.pathName = to.query.path vm.currentPath.pathName = to.query.path
} }
}
}) })
}, },
created() { created() {
...@@ -230,9 +230,9 @@ export default { ...@@ -230,9 +230,9 @@ export default {
customerInfo(id).then(res => { customerInfo(id).then(res => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.userId == this.$store.state.user.userId) { if (res.data.userId == this.$store.state.user.userId) {
this.$nextTick(() => {
this.customerInfo = res.data this.customerInfo = res.data
this.customerId = res.data.customerId this.customerId = res.data.customerId
this.$nextTick(() => {
this.isCustomer = true this.isCustomer = true
this.isCompanyId = true this.isCompanyId = true
}) })
......
...@@ -780,6 +780,9 @@ export default { ...@@ -780,6 +780,9 @@ export default {
}); });
}, },
claimbtn(item){ claimbtn(item){
if(item.claimStatus){
return ;
}
this.companyId=item.companyId; this.companyId=item.companyId;
var info={}; var info={};
api.infoHeader({companyId:this.companyId}).then(res=>{ api.infoHeader({companyId:this.companyId}).then(res=>{
...@@ -791,11 +794,11 @@ export default { ...@@ -791,11 +794,11 @@ export default {
companyName:item.companyName.replace(/<font color='red'>/g,'').replace(/<\/font>/g,''), companyName:item.companyName.replace(/<font color='red'>/g,'').replace(/<\/font>/g,''),
creditLevel:info.bratingSubjectLevel, creditLevel:info.bratingSubjectLevel,
legalPerson:info.corporatePerson, legalPerson:info.corporatePerson,
registerCapital:info.regCapital, registerCapital:info.registeredCapital,
provinceId:info.provinceId, provinceId:info.provinceId,
cityId:info.cityId, cityId:info.cityId,
districtId:info.districtCode, districtId:info.districtCode,
registerAddress:info.provinceName+info.cityName+info.districtName, registerAddress:info.provinceName+'-'+info.cityName+'-'+info.districtName,
creditCode:info.creditCode, creditCode:info.creditCode,
} }
api.claim(params).then(res1=>{ api.claim(params).then(res1=>{
......
...@@ -615,7 +615,7 @@ export default { ...@@ -615,7 +615,7 @@ export default {
companyId:item.companyId, companyId:item.companyId,
creditLevel:item.bratingSubjectLevel, creditLevel:item.bratingSubjectLevel,
legalPerson:res.data.corporatePerson, legalPerson:res.data.corporatePerson,
registerCapital:res.data.regCapital, registerCapital:res.data.registeredCapital,
provinceId:res.data.provinceId || '', provinceId:res.data.provinceId || '',
cityId:res.data.cityId || '', cityId:res.data.cityId || '',
districtId:res.data.districtCode || '', districtId:res.data.districtCode || '',
......
...@@ -210,6 +210,8 @@ ...@@ -210,6 +210,8 @@
methods:{ methods:{
//添加跟进动态 //添加跟进动态
addFollow(){ addFollow(){
if(this.addParam.content == '')
return false
if(this.types == 'projectgjdt'){ if(this.types == 'projectgjdt'){
if(this.projectId == "" || this.projectId == null){ if(this.projectId == "" || this.projectId == null){
this.$message.error('请选择关联项目!') this.$message.error('请选择关联项目!')
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-input v-model="queryParam.target" placeholder="拜访对象" style="width: 100px;"> <el-input v-model="queryParam.target" placeholder="拜访对象" style="width: 100px;">
</el-input> </el-input>
</div> </div>
<div class="btn btn_primary h32 wc" @click="add" :disabled="queryParam.task == ''" :class="{'btn_disabled':queryParam.task == ''}">完成</div> <div class="btn btn_primary h32 wc" @click="add" :class="{'btn_disabled':queryParam.task == ''}">完成</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -109,6 +109,8 @@ ...@@ -109,6 +109,8 @@
this.value = "" this.value = ""
}, },
add(){ add(){
if(this.queryParam.task == '')
return false
addGZDB(this.queryParam).then(result=>{ addGZDB(this.queryParam).then(result=>{
if(result.code == 200){ if(result.code == 200){
this.$message.success("添加成功!") this.$message.success("添加成功!")
......
...@@ -152,7 +152,16 @@ public class EnterpriseService { ...@@ -152,7 +152,16 @@ public class EnterpriseService {
public TableDataInfo dynamicPage(EnterpriseDynamicPageBody body) throws Exception { public TableDataInfo dynamicPage(EnterpriseDynamicPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0); if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/api/jsk/enterprise/dynamic", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/api/jsk/enterprise/dynamic", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); //底层接口写死了pageSize为10,这里前端只要5条
// return dskOpenApiUtil.responsePage(map);
Integer code = MapUtils.getInteger(map, "code", 300);
Map data = MapUtils.getMap(map, "data", null);
if (200 != code) throw new RuntimeException();
Integer count = MapUtils.getInteger(data, "totalCount", 0);
List<Object> list = CommonUtils.assertAsArray(MapUtils.getObject(data, "list", ""));
return new TableDataInfo(body.getPageSize() <= list.size() ? list.subList(0, body.getPageSize()) : list, count);
} }
public R icInfo(EnterpriseIcInfoBody body) throws Exception { public R icInfo(EnterpriseIcInfoBody body) throws Exception {
......
...@@ -81,6 +81,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -81,6 +81,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
*/ */
@Override @Override
public List<BusinessListVo> selectBusinessInfoList(BusinessListDto dto) { public List<BusinessListVo> selectBusinessInfoList(BusinessListDto dto) {
if(StringUtils.isEmpty(dto.getMinAmount()))dto.setMinAmount("0");
List<BusinessListVo> othersList = new ArrayList<>(); List<BusinessListVo> othersList = new ArrayList<>();
//userId不传值,就查询全部他人可见项目+自己的 //userId不传值,就查询全部他人可见项目+自己的
if (dto.getUserId() == null) { if (dto.getUserId() == null) {
......
...@@ -111,15 +111,15 @@ ...@@ -111,15 +111,15 @@
</foreach> </foreach>
</if> </if>
<if test="minAmount != null and minAmount != '' and minAmount != 0 and maxAmount != minAmount"> <if test="minAmount != null and minAmount != '' and minAmount != 0 and maxAmount != minAmount">
and i.investment_amount &gt;= #{minAmount} and i.investment_amount &gt; #{minAmount}
</if> </if>
<if test="minAmount == 0 and maxAmount != minAmount"> <if test="minAmount == 0 and maxAmount != minAmount">
and ((i.investment_amount &gt;= #{minAmount} and ((i.investment_amount &gt; #{minAmount}
and i.investment_amount &lt; #{maxAmount}) and i.investment_amount &lt;= #{maxAmount})
or i.investment_amount is null) or i.investment_amount is null)
</if> </if>
<if test="maxAmount != null and maxAmount != '' and maxAmount != minAmount and minAmount != 0"> <if test="maxAmount != null and maxAmount != '' and maxAmount != minAmount and minAmount != 0">
and i.investment_amount &lt; #{maxAmount} and i.investment_amount &lt;= #{maxAmount}
</if> </if>
<if test="minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount"> <if test="minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount">
and i.investment_amount = #{minAmount} and i.investment_amount = #{minAmount}
......
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