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
5be6a8f2
Commit
5be6a8f2
authored
Jul 27, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
8389ae0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
246 additions
and
252 deletions
+246
-252
index.vue
...rate-ui/src/views/detail/party-a/decisionMaking/index.vue
+246
-252
No files found.
dsk-operate-ui/src/views/detail/party-a/decisionMaking/index.vue
View file @
5be6a8f2
...
...
@@ -33,7 +33,7 @@
<!-- 弹窗添加联系人 -->
<el-dialog
class=
"popups"
class=
"popups
1
"
:visible
.
sync=
"dialogVisible"
:before-close=
"cancel"
width=
"464px"
>
...
...
@@ -41,28 +41,25 @@
<img
src=
"@/assets/images/economies/icon.png"
>
<span>
{{ companyInfo
&&
companyInfo.companyName || customerInfo.companyName }}
</span>
</div>
<el-form
:model=
"addRorm"
:rules=
"addRules"
ref=
"addRorm"
class=
"popform"
label-width=
"
137
px"
>
<el-form-item
label=
"
联系人姓名:"
prop=
"name"
class=
"row
"
>
<el-form
:model=
"addRorm"
:rules=
"addRules"
ref=
"addRorm"
class=
"popform"
label-width=
"
90
px"
>
<el-form-item
label=
"
姓名:"
prop=
"name
"
>
<el-input
v-model=
"addRorm.name"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"联系人性别:"
class=
"row"
>
<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-form-item
label=
"角色:"
prop=
"role"
>
<el-input
v-model=
"addRorm.role"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"
关联企业:"
class=
"row
"
>
<el-input
type=
"text"
v-model=
"addRorm.office
"
placeholder=
"请输入"
></el-input>
<el-form-item
label=
"
职位:"
prop=
"workUnit
"
>
<el-input
v-model=
"addRorm.workUnit
"
placeholder=
"请输入"
></el-input>
</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-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-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=
"btn btn_cancel h32"
@
click=
"cancel"
>
返回
</div>
<div
class=
"btn btn_primary h32"
@
click=
"add"
>
保存
</div>
...
...
@@ -74,259 +71,256 @@
</template>
<
script
>
import
Tables
from
"../component/Tables"
import
{
getList
,
addChain
}
from
'@/api/detail/party-a/decisionMaking'
export
default
{
name
:
'DecisionMaking'
,
components
:
{
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
}
})
import
Tables
from
"../component/Tables"
import
{
getList
,
addChain
}
from
'@/api/detail/party-a/decisionMaking'
export
default
{
name
:
'DecisionMaking'
,
components
:
{
Tables
},
//分页
handleCurrentChange
(
e
){
this
.
queryParams
.
pageNum
=
e
this
.
list
()
},
add
(){
this
.
$refs
.
addRorm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
let
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addRorm
))
param
.
sex
=
parseInt
(
param
.
sex
)
addChain
(
param
).
then
((
res
)
=>
{
if
(
res
.
data
){
this
.
$message
({
message
:
'新增成功'
,
type
:
'success'
});
this
.
cancel
()
this
.
list
()
}
else
{
this
.
$message
({
message
:
res
.
msg
,
type
:
'error'
});
}
})
}
});
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
:
'workUnit'
,
width
:
'110'
},
{
label
:
'联系方式'
,
prop
:
'contactInformation'
,
width
:
'105'
},
{
label
:
'内部维护人'
,
prop
:
'updateBy'
,
width
:
'100'
},
{
label
:
'备注'
,
prop
:
'remark'
},
],
addRorm
:
{
customerId
:
this
.
customerIds
,
name
:
''
,
role
:
''
,
workUnit
:
''
,
position
:
''
,
contactInformation
:
''
,
remark
:
''
,
},
addRules
:{
name
:
[
{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
'blur'
},
],
},
stageOptions
:[],
statusOptions
:[],
//列表
tableLoading
:
false
,
tableData
:[],
tableDataTotal
:
0
,
//弹窗
dialogVisible
:
false
,
}
},
cancel
(){
this
.
$refs
.
addRorm
.
resetFields
();
this
.
dialogVisible
=
false
created
()
{
this
.
list
();
},
//打开新建窗口
opennew
(){
this
.
dialogVisible
=
true
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
}
})
},
//分页
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
>
<
style
lang=
"scss"
scoped
>
.decisionMaking
{
background
:
#ffffff
;
border-radius
:
4px
;
padding
:
16px
;
input
{
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
;
}
.decisionMaking
{
background
:
#ffffff
;
border-radius
:
4px
;
padding
:
16px
;
input
{
border
:
1px
solid
#EFEFEF
;
}
}
.query-add
{
button
{
width
:
124px
;
line-height
:
32px
;
::v-deep
.el-form-item
{
margin-bottom
:
16px
;
}
::v-deep
.el-input__inner
{
border-radius
:
2px
0
2px
0
;
height
:
32px
;
background
:
#0081FF
;
border-radius
:
2px
2px
2px
2px
;
padding
:
0
;
color
:
#ffffff
;
span
{
color
:
#ffff
;
margin-left
:
4px
;
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
;
}
}
}
}
.cooperate_empty
{
text-align
:
center
;
height
:
calc
(
100vh
-
170px
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
img
{
width
:
108px
;
height
:
108px
;
border-radius
:
50%
;
margin-bottom
:
24px
;
.query-add
{
button
{
width
:
124px
;
line-height
:
32px
;
height
:
32px
;
background
:
#0081FF
;
border-radius
:
2px
2px
2px
2px
;
padding
:
0
;
color
:
#ffffff
;
span
{
color
:
#ffff
;
margin-left
:
4px
;
}
}
}
.empty-t
{
font-size
:
16px
;
color
:
#333333
;
margin-bottom
:
8px
;
.cooperate_empty
{
text-align
:
center
;
height
:
calc
(
100vh
-
170px
);
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
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#999999
;
margin-bottom
:
24px
;
.table-item
{
margin-top
:
10px
;
}
.empty-b
{
width
:
116px
;
height
:
36px
;
background
:
#0081FF
;
border-radius
:
4px
;
padding
:
0
;
// 弹窗
.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
;
}
}
}
}
.table-item
{
margin-top
:
10px
;
::v-deep
.el-table__fixed
::before
,
::v-deep
.el-table__fixed-right
::before
{
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
>
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