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
Expand all
Hide 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
>
@import
'../../assets/css/Record.css'
;
@import
'../../assets/css/Record.css'
;
</
style
>
<
template
>
<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-time"
>
{{
item
.
UpdateDate
}}
</div>
<!--
<div
class=
"ha-name"
>
admin
</div>
-->
...
...
@@ -18,52 +18,52 @@
</div>
</div>
</
template
>
</template>
<
script
>
export
default
{
props
:
[
'CustomerId'
],
data
()
{
return
{
logList
:
[],
msg
:
{
Type
:
4
,
pageIndex
:
1
,
pageSize
:
10
,
SourceId
:
0
}
};
},
watch
:{
},
mounted
()
{
let
$this
=
this
document
.
getElementById
(
"Record"
)
.
addEventListener
(
"scroll"
,
function
()
{
//全部动态
if
(
this
.
scrollHeight
-
this
.
scrollTop
===
this
.
clientHeight
)
{
$this
.
logMsg
.
pageIndex
=
$this
.
logMsg
.
pageIndex
+
1
$this
.
GetOperationLogPageList
(
1
)
export
default
{
props
:
[
'CustomerId'
],
data
()
{
return
{
logList
:
[],
msg
:
{
Type
:
4
,
pageIndex
:
1
,
pageSize
:
10
,
SourceId
:
0
}
});
this
.
msg
.
SourceId
=
this
.
CustomerId
this
.
GetOperationLogPageList
()
},
methods
:
{
GetOperationLogPageList
(
t
){
this
.
apipost
(
'/api/Customer/GetOperationLogPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
if
(
t
)
{
this
.
logList
=
this
.
logList
.
concat
(
data
.
pageData
)
}
else
{
this
.
logList
=
data
.
pageData
};
},
watch
:
{
},
mounted
()
{
let
$this
=
this
document
.
getElementById
(
"Record"
)
.
addEventListener
(
"scroll"
,
function
()
{
//全部动态
if
(
this
.
scrollHeight
-
this
.
scrollTop
===
this
.
clientHeight
)
{
$this
.
logMsg
.
pageIndex
=
$this
.
logMsg
.
pageIndex
+
1
$this
.
GetOperationLogPageList
(
1
)
}
}
})
});
this
.
msg
.
SourceId
=
this
.
CustomerId
this
.
GetOperationLogPageList
()
},
methods
:
{
GetOperationLogPageList
(
t
)
{
this
.
apipost
(
'/api/Customer/GetOperationLogPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
if
(
t
)
{
this
.
logList
=
this
.
logList
.
concat
(
data
.
pageData
)
}
else
{
this
.
logList
=
data
.
pageData
}
}
})
}
}
}
}
</
script
>
\ No newline at end of file
src/components/clueManagement/clueManagement.vue
View file @
9ac19078
...
...
@@ -194,13 +194,15 @@
@
size-change=
"handleSizeChange"
:total=
"total"
>
</el-pagination>
</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"
@
editCustS=
"editCust"
/>
@
editCustS=
"editCust"
@
getList=
"getList"
/>
</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"
@
editCustS=
"editCust"
/>
@
editCustS=
"editCust"
@
getList=
"getList"
/>
</el-drawer>
<div
v-if=
"dialogTableVisible"
>
<customerDialogBox
@
getList=
"getList"
:name=
"dialogTableVisibleName"
:CustomerId=
"CustomerId"
/>
...
...
@@ -256,7 +258,7 @@
return
{
ruleList
:
[],
guestDialogBoxShow
:
false
,
isShowGuestInfo
:
false
,
//是否显示直客弹窗
isShowGuestInfo
:
false
,
//是否显示直客弹窗
activeMenu
:
1
,
queryType2
:
[{
label
:
'线索名称'
,
...
...
@@ -336,7 +338,7 @@
CustomerIdStr
:
''
,
transferVisible
:
false
,
mySelectCtrl
:
false
,
isShowCustomerInfo
:
false
,
//是否显示客户弹窗
isShowCustomerInfo
:
false
,
//是否显示客户弹窗
loading
:
true
,
dialogTableVisible
:
false
,
dialogTableVisibleName
:
'新建线索'
,
...
...
@@ -527,10 +529,6 @@
//导出
export
()
{
},
// 更改状态
changeState
()
{
},
//转换为客户
waters
(
type
)
{
...
...
src/components/clueManagement/customerInfoBox.vue
View file @
9ac19078
This diff is collapsed.
Click to expand it.
src/components/clueManagement/guestInfoBox.vue
View file @
9ac19078
...
...
@@ -82,7 +82,7 @@
<p>
{{
detailsData
.
GusetName
}}
</p>
</div>
<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-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<i
class=
"iconfont icongengduo"
></i>
...
...
@@ -119,7 +119,8 @@
<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"
:detailsData=
"detailsData"
/>
<Activity
v-if=
"activeName === '1'"
:CustomerId=
"CustomerId"
:showType=
"2"
:detailsData=
"detailsData"
/>
</el-tab-pane>
<el-tab-pane
label=
"详细资料"
name=
"2"
>
<Details
v-if=
"activeName === '2'"
:detailsData=
"detailsData"
/>
...
...
@@ -132,7 +133,7 @@
</el-tab-pane>
</el-tabs>
</div>
<invalidDialogBox
v-if=
"isShowInvalidBox"
:guestInfo=
"detailsData
"
/>
<invalidDialogBox
v-if=
"isShowInvalidBox"
:guestInfo=
"detailsData"
@
success=
"refreshParentPage
"
/>
</div>
</div>
</
template
>
...
...
@@ -180,8 +181,15 @@
this
.
MsgBus
.
$on
(
'RefreshInfoBox'
,
function
()
{
$this
.
init
()
})
this
.
MsgBus
.
$on
(
'closeInvalidDialogBox'
,
function
()
{
$this
.
isShowInvalidBox
=
false
;
})
},
methods
:
{
//刷新父页面
refreshParentPage
()
{
this
.
$emit
(
'getList'
)
},
init
()
{
this
.
apipost
(
'/api/Customer/GetAllGuesstCustomerModel'
,
{
ID
:
this
.
CustomerId
...
...
@@ -228,19 +236,13 @@
}
//无效线索弹窗
else
if
(
command
===
'w'
)
{
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
// }
// })
this
.
isShowInvalidBox
=
true
;
}
},
handleClick
(
tab
,
event
)
{},
editCust
()
{
this
.
$emit
(
'editCustS'
,
2
)
//编辑直客信息
editGuestInfo
()
{
this
.
$emit
(
'editCustS'
,
2
)
},
handleClose
(
done
)
{
done
();
...
...
src/components/clueManagement/invalidDialogBox.vue
View file @
9ac19078
...
...
@@ -153,14 +153,15 @@
}
</
style
>
<
template
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
@
closed=
"closedDialog"
class=
"add-box add-box1 invalidDialogBox"
width=
"450px"
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
@
closed=
"closedDialog"
class=
"add-box add-box1 invalidDialogBox"
width=
"450px"
append-to-body
>
<div
class=
"add-tit"
slot=
"title"
>
<p><span></span>
无效线索
弹窗
</p>
<p><span></span>
无效线索
标记
</p>
<span
icon=
"el-icon-close"
></span>
</div>
<div
class=
"form-box"
>
<el-form
ref=
"form"
class=
"MyEditForm"
>
<p
class=
"form-box-tit"
><span
class=
"radius"
></span>
你正在把线索【
{{
guestInfo
.
ClueName
}}
】,标记为无效
</p>
<el-row>
<el-col
:span=
"24"
>
<div
class=
"MyEditForm-item label-pad-left"
>
...
...
@@ -186,6 +187,10 @@
type
:
Object
,
default
:
null
,
},
customerInfo
:
{
type
:
Object
,
default
:
null
,
},
},
data
()
{
return
{
...
...
@@ -193,13 +198,16 @@
saveMsg
:
{
CustomerId
:
0
,
GueustId
:
0
,
Remark
:
""
Remark
:
""
,
ClueState
:
2
,
ClueName
:
""
,
//线索名称
}
};
},
mounted
()
{
console
.
log
(
"this.guestInfo"
,
this
.
guestInfo
);
watch
:
{
},
mounted
()
{
let
$this
=
this
;
setTimeout
(()
=>
{
$this
.
dialogTableVisible
=
true
;
...
...
@@ -207,11 +215,28 @@
},
methods
:
{
closedDialog
()
{
this
.
MsgBus
.
$emit
(
"close
Customer
DialogBox"
);
this
.
MsgBus
.
$emit
(
"close
Invalid
DialogBox"
);
},
//保存无效线索
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