Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
0c1d9d7f
Commit
0c1d9d7f
authored
Jul 27, 2023
by
yht15023815643
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev20230707' of
http://192.168.60.201/root/dsk-operate-sys
into dev20230707
parents
90ae5091
d1eae0fb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
313 additions
and
290 deletions
+313
-290
CheckUtils.java
...common/src/main/java/com/dsk/common/utils/CheckUtils.java
+5
-2
project.scss
dsk-operate-ui/src/assets/styles/project.scss
+1
-1
index.vue
...rate-ui/src/views/detail/party-a/decisionMaking/index.vue
+247
-253
addProject.vue
...ui/src/views/project/projectList/component/addProject.vue
+4
-4
xgqy.vue
...erate-ui/src/views/project/projectList/component/xgqy.vue
+2
-2
BusinessInfoServiceImpl.java
.../com/dsk/system/service/impl/BusinessInfoServiceImpl.java
+8
-1
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+46
-27
No files found.
dsk-common/src/main/java/com/dsk/common/utils/CheckUtils.java
View file @
0c1d9d7f
package
com
.
dsk
.
common
.
utils
;
package
com
.
dsk
.
common
.
utils
;
import
java.math.BigDecimal
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
...
@@ -51,7 +52,8 @@ public class CheckUtils {
...
@@ -51,7 +52,8 @@ public class CheckUtils {
* @return
* @return
*/
*/
public
static
int
checkIntegerPlaces
(
Double
number
)
{
public
static
int
checkIntegerPlaces
(
Double
number
)
{
String
strNumber
=
Double
.
toString
(
Math
.
abs
(
number
));
BigDecimal
bigDecimal
=
new
BigDecimal
(
number
);
String
strNumber
=
bigDecimal
.
toString
();
int
integerPlaces
=
strNumber
.
indexOf
(
'.'
);
int
integerPlaces
=
strNumber
.
indexOf
(
'.'
);
if
(
integerPlaces
==
-
1
)
{
if
(
integerPlaces
==
-
1
)
{
return
strNumber
.
length
();
return
strNumber
.
length
();
...
@@ -66,7 +68,8 @@ public class CheckUtils {
...
@@ -66,7 +68,8 @@ public class CheckUtils {
* @return
* @return
*/
*/
public
static
int
checkDecimalPlaces
(
Double
number
)
{
public
static
int
checkDecimalPlaces
(
Double
number
)
{
String
strNumber
=
Double
.
toString
(
Math
.
abs
(
number
));
BigDecimal
bigDecimal
=
new
BigDecimal
(
number
);
String
strNumber
=
bigDecimal
.
toString
();
int
decimalPlaces
=
0
;
int
decimalPlaces
=
0
;
int
index
=
strNumber
.
indexOf
(
'.'
);
int
index
=
strNumber
.
indexOf
(
'.'
);
if
(
index
!=
-
1
)
{
if
(
index
!=
-
1
)
{
...
...
dsk-operate-ui/src/assets/styles/project.scss
View file @
0c1d9d7f
...
@@ -1008,7 +1008,7 @@
...
@@ -1008,7 +1008,7 @@
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
z-index
:
3
;
z-index
:
10
;
.upload
{
.upload
{
width
:
528px
;
width
:
528px
;
height
:
430px
;
height
:
430px
;
...
...
dsk-operate-ui/src/views/detail/party-a/decisionMaking/index.vue
View file @
0c1d9d7f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"flex-box query-box"
>
<div
class=
"flex-box query-box"
>
<div
class=
"flex-box query-params"
></div>
<div
class=
"flex-box query-params"
></div>
<div
class=
"flex-box query-add"
>
<div
class=
"flex-box query-add"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"opennew"
>
新增
决策链条
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"opennew"
>
新增
联系人
</el-button>
</div>
</div>
</div>
</div>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<!-- 弹窗添加联系人 -->
<!-- 弹窗添加联系人 -->
<el-dialog
<el-dialog
class=
"popups"
class=
"popups
1
"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
:before-close=
"cancel"
:before-close=
"cancel"
width=
"464px"
>
width=
"464px"
>
...
@@ -41,28 +41,25 @@
...
@@ -41,28 +41,25 @@
<img
src=
"@/assets/images/economies/icon.png"
>
<img
src=
"@/assets/images/economies/icon.png"
>
<span>
{{ companyInfo
&&
companyInfo.companyName || customerInfo.companyName }}
</span>
<span>
{{ companyInfo
&&
companyInfo.companyName || customerInfo.companyName }}
</span>
</div>
</div>
<el-form
:model=
"addRorm"
:rules=
"addRules"
ref=
"addRorm"
class=
"popform"
label-width=
"
137
px"
>
<el-form
:model=
"addRorm"
:rules=
"addRules"
ref=
"addRorm"
class=
"popform"
label-width=
"
90
px"
>
<el-form-item
label=
"
联系人姓名:"
prop=
"name"
class=
"row
"
>
<el-form-item
label=
"
姓名:"
prop=
"name
"
>
<el-input
v-model=
"addRorm.name"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"addRorm.name"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系人性别:"
class=
"row"
>
<el-form-item
label=
"角色:"
prop=
"role"
>
<el-radio-group
v-model=
"addRorm.sex"
>
<el-radio
label=
1
>
男
</el-radio>
<el-radio
label=
0
>
女
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"联系人角色:"
prop=
"role"
class=
"row"
>
<el-input
v-model=
"addRorm.role"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"addRorm.role"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
关联企业:"
class=
"row
"
>
<el-form-item
label=
"
职位:"
prop=
"workUnit
"
>
<el-input
type=
"text"
v-model=
"addRorm.office
"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"addRorm.workUnit
"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
联系人职位:"
prop=
"workUnit"
class=
"row
"
>
<el-form-item
label=
"
公司/机关:"
prop=
"position
"
>
<el-input
v-model=
"addRorm.position"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"addRorm.position"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系方式:"
prop=
"contactInformation"
class=
"row"
>
<el-form-item
label=
"联系方式:"
prop=
"contactInformation"
>
<el-input
v-model=
"addRorm.contactInformation"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"addRorm.contactInformation"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
prop=
"remark"
>
<el-input
v-model=
"addRorm.remark"
placeholder=
"请输入"
></el-input>
</el-form-item>
<div
class=
"popbot"
>
<div
class=
"popbot"
>
<div
class=
"btn btn_cancel h32"
@
click=
"cancel"
>
返回
</div>
<div
class=
"btn btn_cancel h32"
@
click=
"cancel"
>
返回
</div>
<div
class=
"btn btn_primary h32"
@
click=
"add"
>
保存
</div>
<div
class=
"btn btn_primary h32"
@
click=
"add"
>
保存
</div>
...
@@ -74,259 +71,256 @@
...
@@ -74,259 +71,256 @@
</template>
</template>
<
script
>
<
script
>
import
Tables
from
"../component/Tables"
import
Tables
from
"../component/Tables"
import
{
import
{
getList
,
getList
,
addChain
addChain
}
from
'@/api/detail/party-a/decisionMaking'
}
from
'@/api/detail/party-a/decisionMaking'
export
default
{
export
default
{
name
:
'DecisionMaking'
,
name
:
'DecisionMaking'
,
components
:
{
components
:
{
Tables
Tables
},
props
:
[
'customerIds'
,
'companyInfo'
,
'customerInfo'
],
data
()
{
return
{
ifEmpty
:
false
,
queryParams
:{
customerId
:
this
.
customerIds
,
pageNum
:
1
,
pageSize
:
20
,
},
forData
:
[
{
label
:
'姓名'
,
prop
:
'name'
,
width
:
'124'
},
{
label
:
'角色'
,
prop
:
'role'
,
width
:
'110'
},
// {label: '公司/机关', prop: 'position', width: '268'},
{
label
:
'职位'
,
prop
:
'position'
,
width
:
'110'
},
{
label
:
'联系方式'
,
prop
:
'contactInformation'
,
width
:
'105'
},
{
label
:
'内部维护人'
,
prop
:
'updateBy'
,
width
:
'100'
},
{
label
:
'来源'
,
prop
:
'remark'
},
],
addRorm
:
{
customerId
:
this
.
customerIds
,
name
:
''
,
role
:
''
,
sex
:
"1"
,
position
:
''
,
// position:'',
contactInformation
:
''
,
// remark:'',
},
addRules
:{
name
:
[
{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
'blur'
},
],
},
stageOptions
:[],
statusOptions
:[],
//列表
tableLoading
:
false
,
tableData
:[],
tableDataTotal
:
0
,
//弹窗
dialogVisible
:
false
,
}
},
created
()
{
this
.
list
();
},
computed
:
{
},
methods
:
{
list
(){
this
.
tableLoading
=
true
getList
(
this
.
queryParams
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
rows
.
length
>
0
){
this
.
tableData
=
res
.
rows
this
.
tableDataTotal
=
res
.
total
this
.
ifEmpty
=
true
}
this
.
tableLoading
=
false
}
})
},
},
//分页
props
:
[
'customerIds'
,
'companyInfo'
,
'customerInfo'
],
handleCurrentChange
(
e
){
data
()
{
this
.
queryParams
.
pageNum
=
e
return
{
this
.
list
()
ifEmpty
:
false
,
},
queryParams
:{
add
(){
customerId
:
this
.
customerIds
,
this
.
$refs
.
addRorm
.
validate
((
valid
)
=>
{
pageNum
:
1
,
if
(
valid
)
{
pageSize
:
20
,
let
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addRorm
))
},
param
.
sex
=
parseInt
(
param
.
sex
)
forData
:
[
addChain
(
param
).
then
((
res
)
=>
{
{
label
:
'姓名'
,
prop
:
'name'
,
width
:
'124'
},
if
(
res
.
data
){
{
label
:
'角色'
,
prop
:
'role'
,
width
:
'110'
},
this
.
$message
({
{
label
:
'公司/机关'
,
prop
:
'position'
,
width
:
'268'
},
message
:
'新增成功'
,
{
label
:
'职位'
,
prop
:
'workUnit'
,
width
:
'110'
},
type
:
'success'
{
label
:
'联系方式'
,
prop
:
'contactInformation'
,
width
:
'105'
},
});
{
label
:
'内部维护人'
,
prop
:
'updateBy'
,
width
:
'100'
},
this
.
cancel
()
{
label
:
'备注'
,
prop
:
'remark'
},
this
.
list
()
],
}
else
{
addRorm
:
{
this
.
$message
({
customerId
:
this
.
customerIds
,
message
:
res
.
msg
,
name
:
''
,
type
:
'error'
role
:
''
,
});
workUnit
:
''
,
}
position
:
''
,
})
contactInformation
:
''
,
}
remark
:
''
,
});
},
addRules
:{
name
:
[
{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
'blur'
},
],
},
stageOptions
:[],
statusOptions
:[],
//列表
tableLoading
:
false
,
tableData
:[],
tableDataTotal
:
0
,
//弹窗
dialogVisible
:
false
,
}
},
},
cancel
(){
created
()
{
this
.
$refs
.
addRorm
.
resetFields
();
this
.
list
();
this
.
dialogVisible
=
false
},
},
//打开新建窗口
computed
:
{
opennew
(){
this
.
dialogVisible
=
true
},
},
methods
:
{
list
(){
this
.
tableLoading
=
true
getList
(
this
.
queryParams
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
rows
.
length
>
0
){
this
.
tableData
=
res
.
rows
this
.
tableDataTotal
=
res
.
total
this
.
ifEmpty
=
true
}
this
.
tableLoading
=
false
}
})
},
//分页
handleCurrentChange
(
e
){
this
.
queryParams
.
pageNum
=
e
this
.
list
()
},
add
(){
this
.
$refs
.
addRorm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
addChain
(
this
.
addRorm
).
then
((
res
)
=>
{
if
(
res
.
data
){
this
.
$message
({
message
:
'新增成功'
,
type
:
'success'
});
this
.
cancel
()
this
.
list
()
}
else
{
this
.
$message
({
message
:
res
.
msg
,
type
:
'error'
});
}
})
}
});
},
cancel
(){
this
.
$refs
.
addRorm
.
resetFields
();
this
.
dialogVisible
=
false
},
//打开新建窗口
opennew
(){
this
.
dialogVisible
=
true
},
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.decisionMaking
{
.decisionMaking
{
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
4px
;
border-radius
:
4px
;
padding
:
16px
;
padding
:
16px
;
input
{
input
{
border
:
1px
solid
#EFEFEF
;
border
:
1px
solid
#EFEFEF
;
}
::v-deep
.el-form-item
{
margin-bottom
:
16px
;
}
::v-deep
.el-input__inner
{
border-radius
:
2px
0
2px
0
;
height
:
32px
;
line-height
:
32px
;
}
.cooperate-name
{
::v-deep
.el-form-item__content
{
display
:
flex
;
span
{
width
:
60px
;
height
:
32px
;
background
:
#F5F5F5
;
text-align
:
center
;
color
:
#0081FF
;
border
:
1px
solid
#EFEFEF
;
border-left
:
0
;
cursor
:
pointer
;
}
}
}
::v-deep
.el-form-item
{
}
margin-bottom
:
16px
;
.query-add
{
}
button
{
::v-deep
.el-input__inner
{
width
:
124px
;
border-radius
:
2px
0
2px
0
;
line-height
:
32px
;
height
:
32px
;
height
:
32px
;
background
:
#0081FF
;
line-height
:
32px
;
border-radius
:
2px
2px
2px
2px
;
}
padding
:
0
;
.cooperate-name
{
color
:
#ffffff
;
::v-deep
.el-form-item__content
{
span
{
display
:
flex
;
color
:
#ffff
;
span
{
margin-left
:
4px
;
width
:
60px
;
height
:
32px
;
background
:
#F5F5F5
;
text-align
:
center
;
color
:
#0081FF
;
border
:
1px
solid
#EFEFEF
;
border-left
:
0
;
cursor
:
pointer
;
}
}
}
}
}
}
.query-add
{
.cooperate_empty
{
button
{
text-align
:
center
;
width
:
124px
;
height
:
calc
(
100vh
-
170px
);
line-height
:
32px
;
display
:
flex
;
height
:
32px
;
align-items
:
center
;
background
:
#0081FF
;
justify-content
:
center
;
border-radius
:
2px
2px
2px
2px
;
flex-direction
:
column
;
padding
:
0
;
img
{
color
:
#ffffff
;
width
:
108px
;
span
{
height
:
108px
;
color
:
#ffff
;
border-radius
:
50%
;
margin-left
:
4px
;
margin-bottom
:
24px
;
}
}
}
}
.empty-t
{
.cooperate_empty
{
font-size
:
16px
;
text-align
:
center
;
color
:
#333333
;
height
:
calc
(
100vh
-
170px
);
margin-bottom
:
8px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
img
{
width
:
108px
;
height
:
108px
;
border-radius
:
50%
;
margin-bottom
:
24px
;
}
.empty-t
{
font-size
:
16px
;
color
:
#333333
;
margin-bottom
:
8px
;
}
.empty-d
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#999999
;
margin-bottom
:
24px
;
}
.empty-b
{
width
:
116px
;
height
:
36px
;
background
:
#0081FF
;
border-radius
:
4px
;
padding
:
0
;
}
}
}
.empty-d
{
.table-item
{
font-size
:
14px
;
margin-top
:
10px
;
font-weight
:
400
;
color
:
#999999
;
margin-bottom
:
24px
;
}
}
.empty-b
{
// 弹窗
width
:
116px
;
.popups1
{
height
:
36px
;
.poptitle
{
background
:
#0081FF
;
line-height
:
48px
;
border-radius
:
4px
;
border-bottom
:
1px
solid
#E1E1E1
;
padding
:
0
;
height
:
48px
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
img
{
width
:
17px
;
margin
:
16px
;
float
:
left
;
}
span
{
font-weight
:
bold
;
font-size
:
16px
;
color
:
#232323
;
font-family
:
Microsoft
YaHei-Bold
,
Microsoft
YaHei
;
width
:
385px
;
display
:
block
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
}
::v-deep
.el-dialog__body
{
padding
:
24px
24px
18px
;
}
.popform
{
padding-top
:
14px
;
::v-deep
.el-form-item__label
{
padding
:
0
;
}
.row
{
padding-bottom
:
16px
;
.left
{
width
:
137px
;
display
:
inline-block
;
text-align
:
right
;
opacity
:
0
.8
;
}
::v-deep
.el-input
{
display
:
inline-block
;
width
:
240px
;
}
}
.popbot
{
text-align
:
right
;
padding-top
:
8px
;
}
}
}
}
}
}
.table-item
{
::v-deep
.el-table__fixed
::before
,
::v-deep
.el-table__fixed-right
::before
{
margin-top
:
10px
;
background-color
:unset
;
}
::v-deep
.el-dialog__headerbtn
{
z-index
:
9
;
}
}
// 弹窗
/*.popups1{*/
/*.poptitle {*/
/*line-height: 48px;*/
/*border-bottom: 1px solid #E1E1E1;*/
/*height: 48px;*/
/*position: absolute;*/
/*top: 0;*/
/*left: 0;*/
/*width: 100%;*/
/*img {*/
/*width: 17px;*/
/*margin: 16px;*/
/*float: left;*/
/*}*/
/*span {*/
/*font-weight: bold;*/
/*font-size: 16px;*/
/*color: #232323;*/
/*font-family: Microsoft YaHei-Bold, Microsoft YaHei;*/
/*width: 385px;*/
/*display: block;*/
/*overflow: hidden;*/
/*white-space: nowrap;*/
/*text-overflow: ellipsis;*/
/*}*/
/*}*/
/*::v-deep .el-dialog__body{*/
/*padding: 24px 24px 18px;*/
/*}*/
/*.popform {*/
/*padding-top: 14px;*/
/*::v-deep .el-form-item__label{*/
/*padding:0;*/
/*}*/
/*.row {*/
/*padding-bottom: 16px;*/
/*.left {*/
/*width: 137px;*/
/*display: inline-block;*/
/*text-align: right;*/
/*opacity: 0.8;*/
/*}*/
/*::v-deep .el-input {*/
/*display: inline-block;*/
/*width: 240px;*/
/*}*/
/*}*/
/*.popbot {*/
/*text-align: right;*/
/*padding-top: 8px;*/
/*}*/
/*}*/
/*}*/
}
::v-deep
.el-table__fixed
::before
,
::v-deep
.el-table__fixed-right
::before
{
background-color
:unset
;
}
::v-deep
.el-dialog__headerbtn
{
z-index
:
9
;
}
</
style
>
</
style
>
dsk-operate-ui/src/views/project/projectList/component/addProject.vue
View file @
0c1d9d7f
...
@@ -12,12 +12,12 @@
...
@@ -12,12 +12,12 @@
</div>
</div>
<el-form
class=
"popform j"
:model=
"queryParam"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"130px"
>
<el-form
class=
"popform j"
:model=
"queryParam"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"130px"
>
<el-form-item
label=
"项目名称:"
class=
"row"
prop=
"projectName"
>
<el-form-item
label=
"项目名称:"
class=
"row"
prop=
"projectName"
>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"queryParam.projectName"
@
input=
"getProject"
></el-input>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"queryParam.projectName"
@
input=
"getProject"
:
ο
nkeyup=
"queryParam.projectName=queryParam.projectName.replace(/^\s+|\s+$/g,'')"
></el-input>
<div
class=
"resultlist"
v-if=
"proList.length>0"
id=
"box1"
>
<div
class=
"resultlist"
v-if=
"proList.length>0"
id=
"box1"
>
<div
v-for=
"(item,index) in proList"
@
click=
"selProject(item)"
><span
v-html=
"item.projectName"
></span></div>
<div
v-for=
"(item,index) in proList"
@
click=
"selProject(item)"
><span
v-html=
"item.projectName"
></span></div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
业主
单位:"
class=
"row"
prop=
"ownerCompany"
>
<el-form-item
label=
"
招采
单位:"
class=
"row"
prop=
"ownerCompany"
>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"queryParam.ownerCompany"
@
input=
"getCompany"
:
ο
nkeyup=
"queryParam.ownerCompany=queryParam.ownerCompany.replace(/^\s+|\s+$/g,'')"
></el-input>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"queryParam.ownerCompany"
@
input=
"getCompany"
:
ο
nkeyup=
"queryParam.ownerCompany=queryParam.ownerCompany.replace(/^\s+|\s+$/g,'')"
></el-input>
<div
class=
"resultlist"
v-if=
"showlist"
id=
"box"
>
<div
class=
"resultlist"
v-if=
"showlist"
id=
"box"
>
<div
v-for=
"(item,index) in companData"
@
click=
"selCompany(item)"
><span
v-html=
"item.name"
></span></div>
<div
v-for=
"(item,index) in companData"
@
click=
"selCompany(item)"
><span
v-html=
"item.name"
></span></div>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
userId
:
''
,
//用户id
userId
:
''
,
//用户id
projectName
:
''
,
// 项目名称
projectName
:
''
,
// 项目名称
companyId
:
''
,
//企业id
companyId
:
''
,
//企业id
ownerCompany
:
''
,
//
业主
单位
ownerCompany
:
''
,
//
招采
单位
projectStage
:
null
,
//项目阶段
projectStage
:
null
,
//项目阶段
projectType
:
null
,
//项目类型
projectType
:
null
,
//项目类型
projectCategory
:
null
,
//项目类别
projectCategory
:
null
,
//项目类别
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
this
.
queryParam
=
{
this
.
queryParam
=
{
projectName
:
''
,
// 项目名称
projectName
:
''
,
// 项目名称
companyId
:
''
,
//企业id
companyId
:
''
,
//企业id
ownerCompany
:
''
,
//
业主
单位
ownerCompany
:
''
,
//
招采
单位
projectStage
:
null
,
//项目阶段
projectStage
:
null
,
//项目阶段
projectType
:
null
,
//项目类型
projectType
:
null
,
//项目类型
projectCategory
:
null
,
//项目类别
projectCategory
:
null
,
//项目类别
...
...
dsk-operate-ui/src/views/project/projectList/component/xgqy.vue
View file @
0c1d9d7f
...
@@ -61,11 +61,11 @@
...
@@ -61,11 +61,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
responsiblePerson
"
prop=
"
phone
"
label=
"负责人联系方式"
label=
"负责人联系方式"
width=
""
>
width=
""
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
responsiblePerson
||
'--'
}}
{{
scope
.
row
.
phone
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessInfoServiceImpl.java
View file @
0c1d9d7f
...
@@ -35,6 +35,7 @@ import com.dsk.system.mapper.BusinessUserMapper;
...
@@ -35,6 +35,7 @@ import com.dsk.system.mapper.BusinessUserMapper;
import
com.dsk.system.service.IBusinessInfoService
;
import
com.dsk.system.service.IBusinessInfoService
;
import
com.dsk.system.service.ICustomerService
;
import
com.dsk.system.service.ICustomerService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.MapUtils
;
import
org.apache.commons.collections4.MapUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -141,7 +142,13 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -141,7 +142,13 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Override
@Override
public
List
<
BusinessLikeProjectNameListVo
>
selectProjectName
(
BusinessListDto
dto
)
{
public
List
<
BusinessLikeProjectNameListVo
>
selectProjectName
(
BusinessListDto
dto
)
{
return
businessInfoMapper
.
selectProjectName
(
dto
);
List
<
BusinessLikeProjectNameListVo
>
vos
=
businessInfoMapper
.
selectProjectName
(
dto
);
if
(!
CollectionUtils
.
isEmpty
(
vos
))
{
for
(
BusinessLikeProjectNameListVo
vo
:
vos
)
{
vo
.
setProjectName
(
vo
.
getProjectName
().
replace
(
dto
.
getProjectName
(),
"<font color='#FF204E'>"
+
dto
.
getProjectName
()
+
"</font>"
));
}
}
return
vos
;
}
}
@Override
@Override
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
0c1d9d7f
...
@@ -3,10 +3,12 @@ package com.dsk.system.service.impl;
...
@@ -3,10 +3,12 @@ package com.dsk.system.service.impl;
import
cn.hutool.core.bean.BeanException
;
import
cn.hutool.core.bean.BeanException
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.dsk.common.core.domain.R
;
import
com.dsk.common.core.domain.R
;
import
com.dsk.common.exception.ServiceException
;
import
com.dsk.common.exception.ServiceException
;
import
com.dsk.common.utils.SecurityUtils
;
import
com.dsk.common.utils.SecurityUtils
;
import
com.dsk.common.utils.StringUtils
;
import
com.dsk.system.domain.customer.Customer
;
import
com.dsk.system.domain.customer.Customer
;
import
com.dsk.system.domain.customer.CustomerUser
;
import
com.dsk.system.domain.customer.CustomerUser
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
...
@@ -179,36 +181,53 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -179,36 +181,53 @@ public class CustomerServiceImpl implements ICustomerService {
private
void
dealWithcustomerData
(
Customer
customer
)
{
private
void
dealWithcustomerData
(
Customer
customer
)
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyName
()))
throw
new
BeanException
(
"企业名称不能为空"
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyName
()))
throw
new
BeanException
(
"企业名称不能为空"
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyId
()))
{
try
{
try
{
Map
<
String
,
Object
>
map
=
opportunityRadarService
.
enterpriseByName
(
customer
.
getCompanyName
());
Map
<
String
,
Object
>
map
=
opportunityRadarService
.
enterpriseByName
(
customer
.
getCompanyName
());
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"data"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"data"
)))
{
Map
<
String
,
Object
>
data
=
BeanUtil
.
beanToMap
(
map
.
get
(
"data"
));
customer
.
setCompanyId
(
MapUtil
.
getInt
(
BeanUtil
.
beanToMap
(
map
.
get
(
"data"
)),
"jskEid"
));
Integer
companyId
=
MapUtil
.
getInt
(
data
,
"jskEid"
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getLegalPerson
()))
{
if
(
ObjectUtil
.
isNotEmpty
(
customer
.
getCompanyId
())
&&
!
customer
.
getCompanyId
().
equals
(
companyId
))
{
customer
.
setLegalPerson
(
MapUtil
.
getStr
(
map
,
"legalPerson"
));
return
;
}
}
if
(
ObjectUtils
.
isEmpty
(
customer
.
getRegisterCapital
()))
{
customer
.
setCompanyId
(
companyId
);
customer
.
setRegisterCapital
(
MapUtil
.
getStr
(
map
,
"registeredCapitalStr"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getLegalPerson
()))
{
}
customer
.
setLegalPerson
(
MapUtil
.
getStr
(
data
,
"legalPerson"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getProvinceId
()))
{
}
customer
.
setProvinceId
(
MapUtil
.
getInt
(
map
,
"provinceId"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getRegisterCapital
()))
{
}
customer
.
setRegisterCapital
(
MapUtil
.
getStr
(
data
,
"registeredCapitalStr"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCityId
()))
{
}
customer
.
setCityId
(
MapUtil
.
getInt
(
map
,
"cityId"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getProvinceId
()))
{
}
customer
.
setProvinceId
(
MapUtil
.
getInt
(
data
,
"provinceId"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getDistrictId
()))
{
}
customer
.
setDistrictId
(
MapUtil
.
getInt
(
map
,
"countyId"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCityId
()))
{
}
customer
.
setCityId
(
MapUtil
.
getInt
(
data
,
"cityId"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getRegisterAddress
()))
{
}
customer
.
setRegisterAddress
(
MapUtil
.
getStr
(
map
,
"domicile"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getDistrictId
()))
{
}
customer
.
setDistrictId
(
MapUtil
.
getInt
(
data
,
"countyId"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCreditCode
()))
{
}
customer
.
setCreditCode
(
MapUtil
.
getStr
(
map
,
"creditCode"
));
if
(
ObjectUtils
.
isEmpty
(
customer
.
getRegisterAddress
()))
{
if
(
ObjectUtil
.
isNotEmpty
(
MapUtil
.
getStr
(
data
,
"domicile"
))){
customer
.
setRegisterAddress
(
MapUtil
.
getStr
(
data
,
"domicile"
));
}
else
{
String
address
=
null
;
if
(
ObjectUtils
.
isEmpty
(
MapUtil
.
getStr
(
data
,
"province"
)))
{
address
=
MapUtil
.
getStr
(
data
,
"province"
);
if
(
ObjectUtils
.
isEmpty
(
MapUtil
.
getStr
(
data
,
"city"
)))
{
address
=
address
.
concat
(
"-"
).
concat
(
MapUtil
.
getStr
(
data
,
"city"
));
if
(
ObjectUtils
.
isEmpty
(
MapUtil
.
getStr
(
data
,
"county"
)))
{
address
=
address
.
concat
(
"-"
).
concat
(
MapUtil
.
getStr
(
data
,
"county"
));
}
}
}
customer
.
setRegisterAddress
(
address
);
}
}
}
}
}
catch
(
Exception
e
)
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCreditCode
()))
{
log
.
debug
(
"获取企业id错误!error:{}"
,
e
.
getMessage
());
customer
.
setCreditCode
(
MapUtil
.
getStr
(
data
,
"creditCode"
));
}
}
}
}
catch
(
Exception
e
)
{
log
.
debug
(
"获取企业id错误!error:{}"
,
e
.
getMessage
());
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment