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
c9096f9d
Commit
c9096f9d
authored
Nov 15, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
063be834
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
customerModule.ts
src/module/customer/customerModule.ts
+9
-1
customer.vue
src/pages/customerManage/customer.vue
+14
-21
No files found.
src/module/customer/customerModule.ts
View file @
c9096f9d
...
...
@@ -231,8 +231,16 @@ const CustomerModule = () => {
console
.
log
(
'getChild'
,
deptArray
)
//数据处理 获取夏利是 1-2 前面代表部门还是人员 后面是原生ID
}
const
getCkedFriend
=
(
e
)
=>
{
const
Ids
=
e
.
map
(
x
=>
{
return
x
.
Id
}).
toString
();
msg
.
Q_Friends
=
Ids
;
getCustomerList
(
msg
)
}
return
{
getCustomerList
,
getWayList
,
getEmployeeData
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
,
getChild
}
return
{
getCustomerList
,
getWayList
,
getEmployeeData
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
,
getChild
,
getCkedFriend
}
}
export
default
CustomerModule
src/pages/customerManage/customer.vue
View file @
c9096f9d
...
...
@@ -21,7 +21,7 @@
</
template
>
</q-input>
</div>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-select
filled
option-value=
"Id"
...
...
@@ -33,7 +33,7 @@
/>
</div>
<
template
v-if=
"TimeObj.timeWay == 1"
>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-input
filled
v-model=
"msg.CreateSTime"
mask=
"date"
@
update:model-value=
"getCustomerList(msg)"
placeholder=
"创建时间"
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
...
@@ -53,7 +53,7 @@
</
template
>
</q-input>
</div>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-input
filled
v-model=
"msg.CreateETime"
mask=
"date"
@
range-end=
"getCustomerList(msg)"
placeholder=
"创建时间"
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
...
@@ -75,7 +75,7 @@
</div>
</template>
<
template
v-if=
"TimeObj.timeWay == 2"
>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-input
filled
v-model=
"msg.FriendSTime"
mask=
"date"
placeholder=
"添加时间"
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
...
@@ -95,7 +95,7 @@
</
template
>
</q-input>
</div>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-input
filled
v-model=
"msg.FriendETime"
mask=
"date"
placeholder=
"添加时间"
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
...
@@ -116,7 +116,7 @@
</q-input>
</div>
</template>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-select
filled
option-value=
"Id"
...
...
@@ -127,11 +127,12 @@
map-options
/>
</div>
<div
class=
"col-
2
"
v-if=
"customSetObj.customWay == 1"
>
<div
class=
"col-
3
"
v-if=
"customSetObj.customWay == 1"
>
<q-select
filled
label=
"请选择"
use-chips
@
update:model-value=
"getCkedFriend"
option-value=
"Id"
option-label=
"Name"
:options=
"friendOptions"
...
...
@@ -139,7 +140,7 @@
multiple
/>
</div>
<div
class=
"col-
2
"
v-if=
"customSetObj.customWay == 2"
>
<div
class=
"col-
3
"
v-if=
"customSetObj.customWay == 2"
>
<q-select
filled
label=
"请选择"
...
...
@@ -155,16 +156,6 @@
<q-input
filled
v-model=
"msg.Q_NotFollowUpDay"
label=
"几天未跟进"
></q-input>
</div>
<div
class=
"col-3"
>
<!-- <q-tree class="col-12 col-sm-6"
tick-strategy="leaf"
:nodes="data.EmployeeList"
v-model:ticked="ticked"
v-model:expanded="expanded"
node-key="DeptId"
label-key="DeptName"
children-key="ChildList"
default-expand-all
/>-->
<selectTree
:treeData=
"data.EmployeeList"
:defaultArray=
"data.defaultArray"
...
...
@@ -176,7 +167,7 @@
@
getChild=
"getChild"
></selectTree>
</div>
<div
class=
"col-
2
"
>
<div
class=
"col-
3
"
>
<q-btn
color=
"primary"
size=
"sm"
label=
"导入"
/>
<q-btn
color=
"primary"
size=
"sm"
style=
"margin-left:20px;"
label=
"导出"
/>
</div>
...
...
@@ -246,7 +237,8 @@ export default defineComponent({
friendObj
,
friendOptions
,
getEmployeeData
,
getChild
getChild
,
getCkedFriend
}
=
CustomerModule
()
let
ticked
=
ref
([])
let
expanded
=
ref
([])
...
...
@@ -275,7 +267,8 @@ export default defineComponent({
getEmployeeData
,
ticked
,
expanded
,
getChild
getChild
,
getCkedFriend
}
}
})
...
...
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