Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
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
向伟
horse
Commits
cffd8b77
Commit
cffd8b77
authored
Nov 17, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c5222b54
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
598 additions
and
8 deletions
+598
-8
customer2.ts
src/api/customer2.ts
+24
-0
customRight.vue
src/components/common/customRight.vue
+551
-0
customer.vue
src/pages/customerManage/customer.vue
+23
-8
No files found.
src/api/customer2.ts
View file @
cffd8b77
...
@@ -65,6 +65,30 @@ class CustomerService {
...
@@ -65,6 +65,30 @@ class CustomerService {
data
data
})
})
}
}
//获取员工详情数据
static
async
getCustomInfo
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerInfo'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
//获取客户阶段下拉数据
static
async
getCustomStageList
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerStageList'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
//保存客户资料
static
async
saveCustomInfo
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/SetCustomerInfo'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
}
export
{
CutomerParams
}
export
{
CutomerParams
}
...
...
src/components/common/customRight.vue
0 → 100644
View file @
cffd8b77
This diff is collapsed.
Click to expand it.
src/pages/customerManage/customer.vue
View file @
cffd8b77
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
<img
:src=
"props.row.WeChatPhoto"
style=
"width:100%;height:100%"
/>
<img
:src=
"props.row.WeChatPhoto"
style=
"width:100%;height:100%"
/>
</div>
</div>
<div>
<div>
<div
class=
"cutomer_Free"
>
{{
props
.
row
.
CustomerName
}}
</div>
<div
class=
"cutomer_Free"
@
click=
"getCustomInfo(props)"
>
{{
props
.
row
.
CustomerName
}}
</div>
<div
class=
"customer_Wechat"
>
{{
props
.
row
.
WeChatName
}}
</div>
<div
class=
"customer_Wechat"
>
{{
props
.
row
.
WeChatName
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
</
template
>
</
template
>
<
template
v-slot:body-cell-LableList=
"props"
>
<
template
v-slot:body-cell-LableList=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-chip
v-for=
"(item,index) in props.row.LableList"
>
{{
item
}}
</q-chip>
<q-chip
v-for=
"(item,index) in props.row.LableList"
:key=
"index"
>
{{
item
}}
</q-chip>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -211,6 +211,7 @@
...
@@ -211,6 +211,7 @@
/>
/>
</
template
>
</
template
>
</q-table>
</q-table>
<customRight
v-if=
"isShowCustom"
:CustomerId=
"CustomerId"
@
close=
"closeCustomer"
></customRight>
</div>
</div>
</q-page>
</q-page>
</div>
</div>
...
@@ -219,9 +220,11 @@
...
@@ -219,9 +220,11 @@
import
{
ref
,
defineComponent
,
onMounted
}
from
'vue'
import
{
ref
,
defineComponent
,
onMounted
}
from
'vue'
import
CustomerModule
from
'@/module/customer/customerModule'
import
CustomerModule
from
'@/module/customer/customerModule'
import
selectTree
from
'@/components/common/selectTree.vue'
import
selectTree
from
'@/components/common/selectTree.vue'
import
customRight
from
'@/components/common/customRight.vue'
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
components
:
{
selectTree
selectTree
,
customRight
},
},
setup
()
{
setup
()
{
let
{
let
{
...
@@ -245,8 +248,17 @@ export default defineComponent({
...
@@ -245,8 +248,17 @@ export default defineComponent({
getChild
,
getChild
,
getCkedFriend
getCkedFriend
}
=
CustomerModule
()
}
=
CustomerModule
()
let
ticked
=
ref
([])
let
isShowCustom
=
ref
(
false
)
let
expanded
=
ref
([])
const
closeCustomer
=
()
=>
{
isShowCustom
.
value
=
false
;
}
let
CustomerId
=
ref
(
0
);
const
getCustomInfo
=
(
item
)
=>
{
CustomerId
.
value
=
item
.
row
.
Id
;
isShowCustom
.
value
=
true
;
}
onMounted
(()
=>
{
onMounted
(()
=>
{
getCustomerList
(
msg
)
getCustomerList
(
msg
)
getWayList
({})
getWayList
({})
...
@@ -270,10 +282,12 @@ export default defineComponent({
...
@@ -270,10 +282,12 @@ export default defineComponent({
friendObj
,
friendObj
,
friendOptions
,
friendOptions
,
getEmployeeData
,
getEmployeeData
,
ticked
,
expanded
,
getChild
,
getChild
,
getCkedFriend
getCkedFriend
,
isShowCustom
,
closeCustomer
,
CustomerId
,
getCustomInfo
}
}
}
}
})
})
...
@@ -300,6 +314,7 @@ export default defineComponent({
...
@@ -300,6 +314,7 @@ export default defineComponent({
.cutomer_Free
{
.cutomer_Free
{
color
:
#3470ff
;
color
:
#3470ff
;
font-size
:
14px
;
font-size
:
14px
;
cursor
:
pointer
;
}
}
.customer_Wechat
{
.customer_Wechat
{
...
...
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