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
9ac19078
Commit
9ac19078
authored
Apr 28, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b4ec03f7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
292 additions
and
232 deletions
+292
-232
Record.vue
src/components/clueManagement/Record.vue
+46
-46
clueManagement.vue
src/components/clueManagement/clueManagement.vue
+8
-10
customerInfoBox.vue
src/components/clueManagement/customerInfoBox.vue
+191
-156
guestInfoBox.vue
src/components/clueManagement/guestInfoBox.vue
+15
-13
invalidDialogBox.vue
src/components/clueManagement/invalidDialogBox.vue
+32
-7
No files found.
src/components/clueManagement/Record.vue
View file @
9ac19078
<
style
>
<
style
>
@import
'../../assets/css/Record.css'
;
@import
'../../assets/css/Record.css'
;
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"Record"
id=
"Record"
>
<div
class=
"Record"
id=
"Record"
>
<div
class=
"ha-cont"
style=
"justify-content: flex-start; align-items: stretch;"
v-for=
"(item, index) in logList"
:key=
"index"
>
<div
class=
"ha-cont"
style=
"justify-content: flex-start; align-items: stretch;"
v-for=
"(item, index) in logList"
:key=
"index"
>
<div
class=
"ha-circle"
></div>
<div
class=
"ha-circle"
></div>
<div
class=
"ha-time"
>
{{
item
.
UpdateDate
}}
</div>
<div
class=
"ha-time"
>
{{
item
.
UpdateDate
}}
</div>
<!--
<div
class=
"ha-name"
>
admin
</div>
-->
<!--
<div
class=
"ha-name"
>
admin
</div>
-->
...
@@ -18,9 +18,8 @@
...
@@ -18,9 +18,8 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
[
'CustomerId'
],
props
:
[
'CustomerId'
],
data
()
{
data
()
{
return
{
return
{
...
@@ -32,14 +31,15 @@ export default {
...
@@ -32,14 +31,15 @@ export default {
SourceId
:
0
SourceId
:
0
}
}
};
};
},
watch
:{
},
watch
:
{
},
},
mounted
()
{
mounted
()
{
let
$this
=
this
let
$this
=
this
document
document
.
getElementById
(
"Record"
)
.
getElementById
(
"Record"
)
.
addEventListener
(
"scroll"
,
function
()
{
.
addEventListener
(
"scroll"
,
function
()
{
//全部动态
//全部动态
if
(
this
.
scrollHeight
-
this
.
scrollTop
===
this
.
clientHeight
)
{
if
(
this
.
scrollHeight
-
this
.
scrollTop
===
this
.
clientHeight
)
{
$this
.
logMsg
.
pageIndex
=
$this
.
logMsg
.
pageIndex
+
1
$this
.
logMsg
.
pageIndex
=
$this
.
logMsg
.
pageIndex
+
1
...
@@ -50,8 +50,8 @@ export default {
...
@@ -50,8 +50,8 @@ export default {
this
.
GetOperationLogPageList
()
this
.
GetOperationLogPageList
()
},
},
methods
:
{
methods
:
{
GetOperationLogPageList
(
t
)
{
GetOperationLogPageList
(
t
)
{
this
.
apipost
(
'/api/Customer/GetOperationLogPageList'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'/api/Customer/GetOperationLogPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
let
data
=
res
.
data
.
data
if
(
t
)
{
if
(
t
)
{
...
@@ -65,5 +65,5 @@ export default {
...
@@ -65,5 +65,5 @@ export default {
})
})
}
}
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
src/components/clueManagement/clueManagement.vue
View file @
9ac19078
...
@@ -194,13 +194,15 @@
...
@@ -194,13 +194,15 @@
@
size-change=
"handleSizeChange"
:total=
"total"
>
@
size-change=
"handleSizeChange"
:total=
"total"
>
</el-pagination>
</el-pagination>
</div>
</div>
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"isShowCustomerInfo"
direction=
"rtl"
:before-close=
"handleClose"
>
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"isShowCustomerInfo"
direction=
"rtl"
:before-close=
"handleClose"
>
<customerInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
deleteClue=
"deleteClue"
@
watersS=
"waters"
<customerInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
deleteClue=
"deleteClue"
@
watersS=
"waters"
@
editCustS=
"editCust"
/>
@
editCustS=
"editCust"
@
getList=
"getList"
/>
</el-drawer>
</el-drawer>
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"isShowGuestInfo"
direction=
"rtl"
:before-close=
"handleClose"
>
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"isShowGuestInfo"
direction=
"rtl"
:before-close=
"handleClose"
>
<guestInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
deleteClue=
"deleteClue"
@
watersS=
"waters"
<guestInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
deleteClue=
"deleteClue"
@
watersS=
"waters"
@
editCustS=
"editCust"
/>
@
editCustS=
"editCust"
@
getList=
"getList"
/>
</el-drawer>
</el-drawer>
<div
v-if=
"dialogTableVisible"
>
<div
v-if=
"dialogTableVisible"
>
<customerDialogBox
@
getList=
"getList"
:name=
"dialogTableVisibleName"
:CustomerId=
"CustomerId"
/>
<customerDialogBox
@
getList=
"getList"
:name=
"dialogTableVisibleName"
:CustomerId=
"CustomerId"
/>
...
@@ -256,7 +258,7 @@
...
@@ -256,7 +258,7 @@
return
{
return
{
ruleList
:
[],
ruleList
:
[],
guestDialogBoxShow
:
false
,
guestDialogBoxShow
:
false
,
isShowGuestInfo
:
false
,
//是否显示直客弹窗
isShowGuestInfo
:
false
,
//是否显示直客弹窗
activeMenu
:
1
,
activeMenu
:
1
,
queryType2
:
[{
queryType2
:
[{
label
:
'线索名称'
,
label
:
'线索名称'
,
...
@@ -336,7 +338,7 @@
...
@@ -336,7 +338,7 @@
CustomerIdStr
:
''
,
CustomerIdStr
:
''
,
transferVisible
:
false
,
transferVisible
:
false
,
mySelectCtrl
:
false
,
mySelectCtrl
:
false
,
isShowCustomerInfo
:
false
,
//是否显示客户弹窗
isShowCustomerInfo
:
false
,
//是否显示客户弹窗
loading
:
true
,
loading
:
true
,
dialogTableVisible
:
false
,
dialogTableVisible
:
false
,
dialogTableVisibleName
:
'新建线索'
,
dialogTableVisibleName
:
'新建线索'
,
...
@@ -527,10 +529,6 @@
...
@@ -527,10 +529,6 @@
//导出
//导出
export
()
{
export
()
{
},
// 更改状态
changeState
()
{
},
},
//转换为客户
//转换为客户
waters
(
type
)
{
waters
(
type
)
{
...
...
src/components/clueManagement/customerInfoBox.vue
View file @
9ac19078
<
style
>
<
style
>
.drawer-box
{
.drawer-box
{
height
:
100%
;
height
:
100%
;
}
}
.drawer-header
{
.drawer-header
{
height
:
83px
;
height
:
83px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
0
30px
;
padding
:
0
30px
;
}
}
.drawer-header
.left
{
.drawer-header
.left
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.drawer-header
.left
img
{
.drawer-header
.left
img
{
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.drawer-body
{
height
:
calc
(
100%
-
83px
);
.drawer-body
{
}
height
:
calc
(
100%
-
83px
);
.drawer-body
.top-info
{
}
.drawer-body
.top-info
{
height
:
115px
;
height
:
115px
;
padding
:
30px
;
padding
:
30px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-size
:
12px
;
font-size
:
12px
;
background-color
:
#F6F4FC
;
background-color
:
#F6F4FC
;
}
}
.drawer-body
.top-info
.info-lable
{
.drawer-body
.top-info
.info-lable
{
display
:
inline-block
;
display
:
inline-block
;
width
:
80px
;
width
:
80px
;
color
:
#999999
;
color
:
#999999
;
}
}
.margin-bottom-25
{
.margin-bottom-25
{
margin-bottom
:
25px
;
margin-bottom
:
25px
;
}
}
.drawer-box
.el-tabs__nav-wrap
::after
{
.drawer-box
.el-tabs__nav-wrap
::after
{
height
:
0
;
height
:
0
;
}
}
.drawer-body
.el-tabs__header
{
.drawer-body
.el-tabs__header
{
padding
:
0
25px
;
padding
:
0
25px
;
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.drawer-body
>
.content
{
.drawer-body
>
.content
{
height
:
calc
(
100%
-
115px
);
height
:
calc
(
100%
-
115px
);
}
}
.drawer-body
.el-tabs
{
.drawer-body
.el-tabs
{
height
:
100%
;
height
:
100%
;
}
}
.drawer-body
.el-tabs__content
{
.drawer-body
.el-tabs__content
{
background-color
:
#F6F4FC
;
background-color
:
#F6F4FC
;
height
:
calc
(
100%
-
40px
);
height
:
calc
(
100%
-
40px
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.drawer-body
.el-tabs__content
.el-tab-pane
{
.drawer-body
.el-tabs__content
.el-tab-pane
{
height
:
100%
;
height
:
100%
;
position
:
absolute
;
position
:
absolute
;
width
:
calc
(
100%
);
width
:
calc
(
100%
);
padding
:
17px
20px
;
padding
:
17px
20px
;
box-sizing
:
border-box
box-sizing
:
border-box
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"drawer-box"
v-if=
"loading"
>
<div
class=
"drawer-box"
v-if=
"loading"
>
...
@@ -69,15 +82,17 @@
...
@@ -69,15 +82,17 @@
<p>
{{
detailsData
.
CustomerName
}}
</p>
<p>
{{
detailsData
.
CustomerName
}}
</p>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-button
class=
"crm-btn query-btn"
@
click=
"editCust"
>
编辑
</el-button>
<el-button
class=
"crm-btn query-btn"
@
click=
"editCust
omerInfo
"
>
编辑
</el-button>
<el-dropdown
@
command=
"handleCommand"
style=
"top: 1px;"
>
<el-dropdown
@
command=
"handleCommand"
style=
"top: 1px;"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<i
class=
"iconfont icongengduo"
></i>
<i
class=
"iconfont icongengduo"
></i>
</el-button>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"z"
><i
class=
"iconfont iconplus-transfer"
></i>
转移
</el-dropdown-item>
<el-dropdown-item
command=
"z"
><i
class=
"iconfont iconplus-transfer"
></i>
转移
</el-dropdown-item>
<el-dropdown-item
command=
"g"
><i
class=
"iconfont icongonghaiguanli"
></i>
转化为客户
</el-dropdown-item>
<el-dropdown-item
command=
"g"
><i
class=
"iconfont icongonghaiguanli"
></i>
转化为客户
</el-dropdown-item>
<el-dropdown-item
command=
"d"
><i
class=
"iconfont icondelete"
></i>
删除
</el-dropdown-item>
<el-dropdown-item
command=
"d"
><i
class=
"iconfont icondelete"
></i>
删除
</el-dropdown-item>
<el-dropdown-item
command=
"w"
><i
class=
"iconfont icondelete"
></i>
无效线索
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</div>
</div>
...
@@ -89,7 +104,7 @@
...
@@ -89,7 +104,7 @@
<span
class=
"info-lable"
>
客户级别:
</span><span>
{{
detailsData
.
CustomerIdLevelStr
}}
</span>
<span
class=
"info-lable"
>
客户级别:
</span><span>
{{
detailsData
.
CustomerIdLevelStr
}}
</span>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<span
class=
"info-lable"
>
成交状态:
</span><span
>
已成交
</span>
<span
class=
"info-lable"
>
成交状态:
</span><span>
已成交
</span>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
...
@@ -107,32 +122,35 @@
...
@@ -107,32 +122,35 @@
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
/>
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"详细资料"
name=
"2"
>
<el-tab-pane
label=
"详细资料"
name=
"2"
>
<Details
v-if=
"activeName === '2'"
:detailsData=
"detailsData"
/>
<Details
v-if=
"activeName === '2'"
:detailsData=
"detailsData"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"附件"
name=
"8"
>
<el-tab-pane
label=
"附件"
name=
"8"
>
<Enclosure
v-if=
"activeName === '8'"
:ID=
'CustomerId'
:type=
'1'
/>
<Enclosure
v-if=
"activeName === '8'"
:ID=
'CustomerId'
:type=
'1'
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"操作记录"
name=
"9"
>
<el-tab-pane
label=
"操作记录"
name=
"9"
>
<Record
v-if=
"activeName === '9'"
:CustomerId=
"CustomerId"
/>
<Record
v-if=
"activeName === '9'"
:CustomerId=
"CustomerId"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
</div>
</div>
<invalidDialogBox
v-if=
"isShowInvalidBox"
:customerInfo=
"detailsData"
@
success=
"refreshParentPage"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Activity
from
"./Activity"
;
import
Activity
from
"./Activity"
;
import
Details
from
"./Details"
;
import
Details
from
"./Details"
;
import
Enclosure
from
"./Enclosure"
;
import
Enclosure
from
"./Enclosure"
;
import
Record
from
"./Record"
;
import
Record
from
"./Record"
;
export
default
{
import
invalidDialogBox
from
"./invalidDialogBox"
;
export
default
{
components
:
{
components
:
{
Activity
,
Activity
,
Details
,
Details
,
Enclosure
,
Enclosure
,
Record
Record
,
invalidDialogBox
},
},
props
:
{
props
:
{
CustomerId
:
{
CustomerId
:
{
type
:
Number
,
type
:
Number
,
default
:
0
default
:
0
...
@@ -143,14 +161,16 @@ export default {
...
@@ -143,14 +161,16 @@ export default {
activeName
:
'1'
,
activeName
:
'1'
,
detailsData
:
{},
detailsData
:
{},
loading
:
false
,
loading
:
false
,
isShowInvalidBox
:
false
,
};
};
},
watch
:{
},
watch
:
{
CustomerId
:
{
CustomerId
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
this
.
init
()
this
.
init
()
this
.
activeName
=
'1'
this
.
activeName
=
'1'
},
},
deep
:
true
deep
:
true
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -160,37 +180,47 @@ export default {
...
@@ -160,37 +180,47 @@ export default {
this
.
MsgBus
.
$on
(
'RefreshInfoBox'
,
function
()
{
this
.
MsgBus
.
$on
(
'RefreshInfoBox'
,
function
()
{
$this
.
init
()
$this
.
init
()
})
})
//关闭无效线索弹窗
this
.
MsgBus
.
$on
(
'closeInvalidDialogBox'
,
function
()
{
$this
.
isShowInvalidBox
=
false
;
})
},
},
methods
:
{
methods
:
{
init
(){
//刷新父页面
this
.
apipost
(
'/api/Customer/GetAllCustmersModel'
,
{
CustomerId
:
this
.
CustomerId
},
res
=>
{
refreshParentPage
()
{
this
.
$emit
(
'getList'
)
},
init
()
{
this
.
apipost
(
'/api/Customer/GetAllCustmersModel'
,
{
CustomerId
:
this
.
CustomerId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
let
data
=
res
.
data
.
data
if
(
!
data
.
HousePhotos
)
{
if
(
!
data
.
HousePhotos
)
{
data
.
HousePhotos
=
[]
data
.
HousePhotos
=
[]
}
}
if
(
!
data
.
BusinessCardPhotos
)
{
if
(
!
data
.
BusinessCardPhotos
)
{
data
.
BusinessCardPhotos
=
[]
data
.
BusinessCardPhotos
=
[]
}
}
if
(
!
data
.
Images
)
{
if
(
!
data
.
Images
)
{
data
.
Images
=
[]
data
.
Images
=
[]
}
}
if
(
!
data
.
CustomerSourceType
)
{
if
(
!
data
.
CustomerSourceType
)
{
data
.
CustomerSourceType
=
''
data
.
CustomerSourceType
=
''
}
}
if
(
!
data
.
CustomerSource
)
{
if
(
!
data
.
CustomerSource
)
{
data
.
CustomerSource
=
''
data
.
CustomerSource
=
''
}
}
if
(
!
data
.
Province
)
{
if
(
!
data
.
Province
)
{
data
.
Province
=
''
data
.
Province
=
''
}
}
if
(
!
data
.
Country
)
{
if
(
!
data
.
Country
)
{
data
.
Country
=
''
data
.
Country
=
''
}
}
if
(
!
data
.
City
)
{
if
(
!
data
.
City
)
{
data
.
City
=
''
data
.
City
=
''
}
}
if
(
!
data
.
District
)
{
if
(
!
data
.
District
)
{
data
.
District
=
''
data
.
District
=
''
}
}
this
.
detailsData
=
data
this
.
detailsData
=
data
...
@@ -198,7 +228,7 @@ export default {
...
@@ -198,7 +228,7 @@ export default {
}
}
})
})
},
},
handleCommand
(
command
)
{
handleCommand
(
command
)
{
if
(
command
===
'z'
)
{
if
(
command
===
'z'
)
{
this
.
$emit
(
'transferS'
,
3
);
this
.
$emit
(
'transferS'
,
3
);
}
else
if
(
command
===
'g'
)
{
}
else
if
(
command
===
'g'
)
{
...
@@ -206,14 +236,19 @@ export default {
...
@@ -206,14 +236,19 @@ export default {
}
else
if
(
command
===
'd'
)
{
}
else
if
(
command
===
'd'
)
{
this
.
$emit
(
'deleteClue'
,
1
)
this
.
$emit
(
'deleteClue'
,
1
)
}
}
//无效线索弹窗
else
if
(
command
===
'w'
)
{
this
.
isShowInvalidBox
=
true
;
}
},
},
handleClick
(
tab
,
event
)
{},
handleClick
(
tab
,
event
)
{},
editCust
(){
//编辑客户信息
editCustomerInfo
()
{
this
.
$emit
(
'editCustS'
,
1
)
this
.
$emit
(
'editCustS'
,
1
)
},
},
handleClose
(
done
)
{
handleClose
(
done
)
{
done
();
done
();
}
}
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
src/components/clueManagement/guestInfoBox.vue
View file @
9ac19078
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<p>
{{
detailsData
.
GusetName
}}
</p>
<p>
{{
detailsData
.
GusetName
}}
</p>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-button
class=
"crm-btn query-btn"
@
click=
"edit
Cust
"
>
编辑
</el-button>
<el-button
class=
"crm-btn query-btn"
@
click=
"edit
GuestInfo
"
>
编辑
</el-button>
<el-dropdown
@
command=
"handleCommand"
style=
"top: 1px;"
>
<el-dropdown
@
command=
"handleCommand"
style=
"top: 1px;"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<i
class=
"iconfont icongengduo"
></i>
<i
class=
"iconfont icongengduo"
></i>
...
@@ -119,7 +119,8 @@
...
@@ -119,7 +119,8 @@
<div
class=
"content"
>
<div
class=
"content"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"活动"
name=
"1"
>
<el-tab-pane
label=
"活动"
name=
"1"
>
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
:showType=
"2"
:detailsData=
"detailsData"
/>
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
:showType=
"2"
:detailsData=
"detailsData"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"详细资料"
name=
"2"
>
<el-tab-pane
label=
"详细资料"
name=
"2"
>
<Details
v-if=
"activeName === '2'"
:detailsData=
"detailsData"
/>
<Details
v-if=
"activeName === '2'"
:detailsData=
"detailsData"
/>
...
@@ -132,7 +133,7 @@
...
@@ -132,7 +133,7 @@
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<invalidDialogBox
v-if=
"isShowInvalidBox"
:guestInfo=
"detailsData
"
/>
<invalidDialogBox
v-if=
"isShowInvalidBox"
:guestInfo=
"detailsData"
@
success=
"refreshParentPage
"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -180,8 +181,15 @@
...
@@ -180,8 +181,15 @@
this
.
MsgBus
.
$on
(
'RefreshInfoBox'
,
function
()
{
this
.
MsgBus
.
$on
(
'RefreshInfoBox'
,
function
()
{
$this
.
init
()
$this
.
init
()
})
})
this
.
MsgBus
.
$on
(
'closeInvalidDialogBox'
,
function
()
{
$this
.
isShowInvalidBox
=
false
;
})
},
},
methods
:
{
methods
:
{
//刷新父页面
refreshParentPage
()
{
this
.
$emit
(
'getList'
)
},
init
()
{
init
()
{
this
.
apipost
(
'/api/Customer/GetAllGuesstCustomerModel'
,
{
this
.
apipost
(
'/api/Customer/GetAllGuesstCustomerModel'
,
{
ID
:
this
.
CustomerId
ID
:
this
.
CustomerId
...
@@ -228,18 +236,12 @@
...
@@ -228,18 +236,12 @@
}
}
//无效线索弹窗
//无效线索弹窗
else
if
(
command
===
'w'
)
{
else
if
(
command
===
'w'
)
{
this
.
isShowInvalidBox
=
true
;
this
.
isShowInvalidBox
=
true
;
var
pmsg
=
{};
console
.
log
(
"this.detailsData"
,
this
.
detailsData
);
// this.apipost('/api/Customer/UpdateClueState', pmsg, res => {
// if (res.data.resultCode == 1) {
// this.SceneEmployeeList = res.data.data
// }
// })
}
}
},
},
handleClick
(
tab
,
event
)
{},
handleClick
(
tab
,
event
)
{},
editCust
()
{
//编辑直客信息
editGuestInfo
()
{
this
.
$emit
(
'editCustS'
,
2
)
this
.
$emit
(
'editCustS'
,
2
)
},
},
handleClose
(
done
)
{
handleClose
(
done
)
{
...
...
src/components/clueManagement/invalidDialogBox.vue
View file @
9ac19078
...
@@ -153,14 +153,15 @@
...
@@ -153,14 +153,15 @@
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
@
closed=
"closedDialog"
<el-dialog
:visible
.
sync=
"dialogTableVisible"
@
closed=
"closedDialog"
class=
"add-box add-box1 invalidDialogBox"
class=
"add-box add-box1 invalidDialogBox"
width=
"450px"
>
width=
"450px"
append-to-body
>
<div
class=
"add-tit"
slot=
"title"
>
<div
class=
"add-tit"
slot=
"title"
>
<p><span></span>
无效线索
弹窗
</p>
<p><span></span>
无效线索
标记
</p>
<span
icon=
"el-icon-close"
></span>
<span
icon=
"el-icon-close"
></span>
</div>
</div>
<div
class=
"form-box"
>
<div
class=
"form-box"
>
<el-form
ref=
"form"
class=
"MyEditForm"
>
<el-form
ref=
"form"
class=
"MyEditForm"
>
<p
class=
"form-box-tit"
><span
class=
"radius"
></span>
你正在把线索【
{{
guestInfo
.
ClueName
}}
】,标记为无效
</p>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<div
class=
"MyEditForm-item label-pad-left"
>
<div
class=
"MyEditForm-item label-pad-left"
>
...
@@ -186,6 +187,10 @@
...
@@ -186,6 +187,10 @@
type
:
Object
,
type
:
Object
,
default
:
null
,
default
:
null
,
},
},
customerInfo
:
{
type
:
Object
,
default
:
null
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -193,13 +198,16 @@
...
@@ -193,13 +198,16 @@
saveMsg
:
{
saveMsg
:
{
CustomerId
:
0
,
CustomerId
:
0
,
GueustId
:
0
,
GueustId
:
0
,
Remark
:
""
Remark
:
""
,
ClueState
:
2
,
ClueName
:
""
,
//线索名称
}
}
};
};
},
},
mounted
()
{
watch
:
{
console
.
log
(
"this.guestInfo"
,
this
.
guestInfo
);
},
mounted
()
{
let
$this
=
this
;
let
$this
=
this
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
$this
.
dialogTableVisible
=
true
;
$this
.
dialogTableVisible
=
true
;
...
@@ -207,11 +215,28 @@
...
@@ -207,11 +215,28 @@
},
},
methods
:
{
methods
:
{
closedDialog
()
{
closedDialog
()
{
this
.
MsgBus
.
$emit
(
"close
Customer
DialogBox"
);
this
.
MsgBus
.
$emit
(
"close
Invalid
DialogBox"
);
},
},
//保存无效线索
//保存无效线索
SaveInvalid
()
{
SaveInvalid
()
{
if
(
this
.
guestInfo
)
{
this
.
saveMsg
.
GueustId
=
this
.
guestInfo
.
Id
;
this
.
saveMsg
.
ClueName
=
this
.
guestInfo
.
ClueName
;
}
if
(
this
.
customerInfo
)
{
this
.
saveMsg
.
CustomerId
=
this
.
customerInfo
.
CustomerId
;
this
.
saveMsg
.
ClueName
=
this
.
customerInfo
.
CustomerName
;
}
this
.
apipost
(
'/api/Customer/UpdateClueState'
,
this
.
saveMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$emit
(
"success"
);
this
.
dialogTableVisible
=
false
;
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
},
},
},
};
};
...
...
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