Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
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
华国豪
CRM
Commits
0cda5ae9
Commit
0cda5ae9
authored
Apr 27, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增权限控制
parent
8b006cf9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1243 additions
and
1311 deletions
+1243
-1311
sceneBox.vue
src/components/dialogModel/sceneBox.vue
+0
-2
Activity.vue
src/components/guestManagement/Activity.vue
+766
-740
Business.vue
src/components/guestManagement/Business.vue
+65
-71
customerInfoBox.vue
src/components/guestManagement/customerInfoBox.vue
+7
-10
guestManagement.vue
src/components/guestManagement/guestManagement.vue
+2
-0
guestTeam.vue
src/components/guestManagement/guestTeam.vue
+11
-10
nexttime.vue
src/components/sellevent/nexttime.vue
+392
-478
No files found.
src/components/dialogModel/sceneBox.vue
View file @
0cda5ae9
...
...
@@ -303,7 +303,6 @@ export default {
SceneName
:
''
,
IsDefault
:
0
,
}
console
.
log
(
val
)
},
deep
:
true
}
...
...
@@ -324,7 +323,6 @@ export default {
arr
.
push
(
item
[
i
])
}
arr
.
map
((
x
,
index
)
=>
{
console
.
log
(
x
)
this
.
sceneList
.
map
((
s
,
sIndex
)
=>
{
if
(
x
.
name
===
s
.
FieldName
)
{
let
msg
=
{
...
...
src/components/guestManagement/Activity.vue
View file @
0cda5ae9
This diff is collapsed.
Click to expand it.
src/components/guestManagement/Business.vue
View file @
0cda5ae9
...
...
@@ -2,84 +2,78 @@
</
style
>
<
template
>
<div
class=
"Business"
>
<div
class=
"add-Enclosure"
>
<el-button
icon=
"el-icon-plus"
class=
"crm-btn query-btn crm-btn-mini margin-right0"
@
click=
"addBusiness"
>
新建商机
</el-button>
</div>
<el-table
v-loading=
"loading"
stripe
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-class-name=
"font-size-12"
>
<el-table-column
prop=
"BusinessName"
label=
"商机名称"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<p
@
click=
"openDetails(scope)"
class=
"font-color-link cp"
>
{{
scope
.
row
.
BusinessName
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"BudgetPrice"
label=
"商机金额"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"CustomerName"
label=
"客户名称"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"BusinessStatusStr"
label=
"商机阶段"
show-overflow-tooltip
>
</el-table-column>
</el-table>
<div
class=
"Business"
>
<div
class=
"add-Enclosure"
v-if=
"detailsData.IsCreate==1||detailsData.IsRead==1"
>
<el-button
icon=
"el-icon-plus"
class=
"crm-btn query-btn crm-btn-mini margin-right0"
@
click=
"addBusiness"
>
新建商机
</el-button>
</div>
<el-table
v-loading=
"loading"
stripe
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-class-name=
"font-size-12"
>
<el-table-column
prop=
"BusinessName"
label=
"商机名称"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<p
@
click=
"openDetails(scope)"
class=
"font-color-link cp"
>
{{
scope
.
row
.
BusinessName
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"BudgetPrice"
label=
"商机金额"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"CustomerName"
label=
"客户名称"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"BusinessStatusStr"
label=
"商机阶段"
show-overflow-tooltip
>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
export
default
{
props
:
[
'ID'
,
'BusinessType'
],
data
()
{
return
{
dataList
:
[],
loading
:
false
};
},
watch
:{
},
mounted
()
{
this
.
GetBusinessList
()
},
methods
:
{
openDetails
(
scope
){
console
.
log
(
scope
.
row
.
ID
)
this
.
MsgBus
.
$emit
(
'busnessDrawerShow'
,
scope
.
row
.
ID
,
1
)
},
GetBusinessList
(){
this
.
apipost
(
'/api/Customer/GetBusinessList'
,
{
CustomerId
:
this
.
ID
,
CustomerType
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
.
data
.
data
)
this
.
dataList
=
res
.
data
.
data
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
})
export
default
{
props
:
{
//直客数据信息
detailsData
:
{
type
:
Object
,
default
:
null
,
},
ID
:
{
type
:
Number
,
default
:
0
,
},
},
addBusiness
(){
let
$this
=
this
this
.
MsgBus
.
$emit
(
'addBusinessBoxOpen'
,
$this
.
ID
,
0
,
true
)
data
()
{
return
{
dataList
:
[],
loading
:
false
};
},
guanlian
()
{
watch
:
{
},
jiechuguanlian
()
{
mounted
()
{
this
.
GetBusinessList
()
},
methods
:
{
openDetails
(
scope
)
{
this
.
MsgBus
.
$emit
(
'busnessDrawerShow'
,
scope
.
row
.
ID
,
1
)
},
GetBusinessList
()
{
this
.
apipost
(
'/api/Customer/GetBusinessList'
,
{
CustomerId
:
this
.
ID
,
CustomerType
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
})
},
addBusiness
()
{
let
$this
=
this
this
.
MsgBus
.
$emit
(
'addBusinessBoxOpen'
,
$this
.
ID
,
0
,
true
)
},
guanlian
()
{
},
jiechuguanlian
()
{
},
}
}
}
</
script
>
\ No newline at end of file
src/components/guestManagement/customerInfoBox.vue
View file @
0cda5ae9
...
...
@@ -82,8 +82,9 @@
<p>
{{
detailsData
.
SurName
+
detailsData
.
Name
}}
</p>
</div>
<div
class=
"right"
v-if=
"!hiddenMenu"
>
{{
detailsData
.
IsCreate
}}
<el-button
class=
"crm-btn query-btn"
@
click=
"editCust"
>
编辑
</el-button>
IsRead
{{
detailsData
.
IsRead
}}
;
IsCreate
{{
detailsData
.
IsCreate
}}
<el-button
class=
"crm-btn query-btn"
@
click=
"editCust"
v-if=
"detailsData.IsCreate==1||detailsData.IsRead==1"
>
编辑
</el-button>
<el-dropdown
@
command=
"handleCommand"
style=
"top: 1px;"
v-if=
"detailsData.IsCreate==1"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<i
class=
"iconfont icongengduo"
></i>
...
...
@@ -105,27 +106,23 @@
<span
class=
"info-lable"
>
创建时间:
</span><span>
{{
detailsData
.
CreateDate
?
detailsData
.
CreateDate
:
''
}}
</span>
</el-col>
</el-row>
</div>
<div
class=
"content"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"活动"
name=
"1"
>
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
:showType=
"2"
/>
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
:
detailsData=
"detailsData"
:
showType=
"2"
/>
</el-tab-pane>
<el-tab-pane
label=
"详细资料"
name=
"2"
>
<Details
v-if=
"activeName === '2'"
:detailsData=
"detailsData"
/>
</el-tab-pane>
<el-tab-pane
label=
"团队"
name=
"10"
>
<guestTeam
v-if=
"activeName === '10'"
:GuestId=
"CustomerId"
/>
<guestTeam
v-if=
"activeName === '10'"
:GuestId=
"CustomerId"
:detailsData=
"detailsData"
/>
</el-tab-pane>
<el-tab-pane
label=
"商机"
name=
"5"
>
<Business
v-if=
"activeName === '5'"
:ID=
"CustomerId"
/>
<Business
v-if=
"activeName === '5'"
:ID=
"CustomerId"
:detailsData=
"detailsData"
/>
</el-tab-pane>
<el-tab-pane
label=
"订单"
name=
"6"
>
<Agreement
v-if=
"activeName === '6'"
:ID=
"CustomerId"
/>
</el-tab-pane>
<el-tab-pane
label=
"回款"
name=
"7"
v-if=
"false"
>
<!--
<MoneyBack
/>
-->
<Agreement
v-if=
"activeName === '6'"
:ID=
"CustomerId"
:detailsData=
"detailsData"
/>
</el-tab-pane>
<el-tab-pane
label=
"附件"
name=
"8"
>
<Enclosure
:ID=
'CustomerId'
:type=
'1'
:isGuest=
"true"
v-if=
"activeName === '8'"
/>
...
...
src/components/guestManagement/guestManagement.vue
View file @
0cda5ae9
...
...
@@ -530,6 +530,7 @@
$this
.
dialogTableVisible
=
false
;
});
this
.
GetSceneEmployeeList
();
//保存场景
this
.
MsgBus
.
$on
(
"sceneSave"
,
function
(
msg
)
{
$this
.
sceneList
=
[...
msg
];
$this
.
GetSceneEmployeeList
();
...
...
@@ -540,6 +541,7 @@
$this
.
msg
.
Data
=
obj
;
$this
.
getList
();
});
//编辑场景
this
.
MsgBus
.
$on
(
"editScene"
,
function
()
{
$this
.
GetSceneEmployeeList
();
});
...
...
src/components/guestManagement/guestTeam.vue
View file @
0cda5ae9
...
...
@@ -6,12 +6,12 @@
</
style
>
<
template
>
<div
class=
"addTeamman"
>
<div
class=
"addTeamman-ctrl"
>
<el-button
icon=
"el-icon-plus"
class=
"crm-btn crm-btn-mini query-btn"
@
click=
"addTeammanShow=true"
v-if=
"IsRead === 0"
>
团队成员
</el-button>
<el-button
class=
"crm-btn query-btn crm-btn-mini easy-btn"
@
click=
"bianji"
v-if=
"IsRead === 0"
>
编辑
</el-button>
<el-button
class=
"crm-btn query-btn crm-btn-mini easy-btn"
@
click=
"yichu"
v-if=
"IsRead === 0"
>
移除
</el-button>
<el-button
class=
"crm-btn query-btn crm-btn-mini org-btn margin-right0"
@
click=
"tuichu"
>
退出团队
</el-button>
<div
class=
"addTeamman-ctrl"
v-if=
"detailsData.IsCreate==1||detailsData.IsRead==1"
>
<el-button
icon=
"el-icon-plus"
class=
"crm-btn crm-btn-mini query-btn"
@
click=
"addTeammanShow=true"
>
团队成员
</el-button>
<el-button
class=
"crm-btn query-btn crm-btn-mini easy-btn"
@
click=
"bianji"
>
编辑
</el-button>
<el-button
class=
"crm-btn query-btn crm-btn-mini easy-btn"
@
click=
"yichu"
>
移除
</el-button>
<el-button
class=
"crm-btn query-btn crm-btn-mini org-btn margin-right0"
>
退出团队
</el-button>
</div>
<el-table
v-loading=
"loading"
stripe
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
row-class-name=
"font-size-12"
>
...
...
@@ -48,14 +48,15 @@
editGuestTeamPower
},
props
:
{
//直客客户信息
detailsData
:
{
type
:
Object
,
default
:
null
},
GuestId
:
{
type
:
Number
,
default
:
0
},
IsRead
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
...
...
src/components/sellevent/nexttime.vue
View file @
0cda5ae9
This diff is collapsed.
Click to expand it.
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