Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
c4c95c6d
Commit
c4c95c6d
authored
Feb 10, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
855394f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
61 deletions
+32
-61
categoryEdit-form.vue
src/components/sale/categoryEdit-form.vue
+4
-2
customcategorylist.vue
src/components/sale/customcategorylist.vue
+0
-6
baseInfo.vue
src/components/sale/peerInfo/baseInfo.vue
+16
-26
peerRight.vue
src/components/sale/peerInfo/peerRight.vue
+12
-27
No files found.
src/components/sale/categoryEdit-form.vue
View file @
c4c95c6d
...
...
@@ -91,7 +91,7 @@
<div
class=
"row wrap"
>
<div
class=
"col-12"
>
<q-select
stack-label
color=
"primary"
filled
label=
"类型"
option-value=
"Id"
option-label=
"Name"
:options=
"typeList"
class=
"q-pb-lg"
v-model=
"objOption.CatetoryType
"
emit-value
map-options
/>
ref=
"CatetoryType"
:options=
"typeList"
class=
"q-pb-lg"
v-model=
"objOption.CatetoryType"
:rules=
"[val => !!val || '请选择类型']
"
emit-value
map-options
/>
</div>
</div>
<template
v-if=
"isShowTel"
>
...
...
@@ -184,7 +184,9 @@
//保存
saveCourse
()
{
this
.
$refs
.
CategoryName
.
validate
();
if
(
!
this
.
$refs
.
CategoryName
.
hasError
)
{
this
.
$refs
.
CatetoryType
.
validate
();
if
(
!
this
.
$refs
.
CategoryName
.
hasError
&&!
this
.
$refs
.
CatetoryType
.
hasError
)
{
this
.
saveCustomLoading
=
true
;
saveCustomerCategory
(
this
.
objOption
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
src/components/sale/customcategorylist.vue
View file @
c4c95c6d
...
...
@@ -39,12 +39,6 @@
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-CustomerType=
"props"
>
<q-td>
<div
v-if=
"props.row.CustomerType === 1"
>
企业
</div>
<div
v-if=
"props.row.CustomerType === 2"
>
学校
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
@
click=
"EditCustom(props.row)"
style=
"font-weight:400"
label=
"修改"
/>
...
...
src/components/sale/peerInfo/baseInfo.vue
View file @
c4c95c6d
...
...
@@ -10,7 +10,7 @@
<q-btn
size=
"sm"
color=
"primary"
label=
"确定"
class=
"q-ml-sm"
@
click=
"save('CustomerType',Data.CustomerType)"
></q-btn>
</div>
</div>
<q-select
outlined
dense
stack-label
label=
"类型"
@
input=
"getCustomList(Data.CustomerType)"
option-value=
"Id"
option-label=
"Name"
<q-select
outlined
dense
stack-label
label=
"类型"
option-value=
"Id"
option-label=
"Name"
:rules=
"[val => !!val || '请选择类型']"
:options=
"options"
v-model=
"Data.CustomerType"
emit-value
map-options
/>
</div>
<div
class=
"flex justify-between items-center q-my-lg"
v-else
@
click=
"showEdit('CustomerType')"
>
...
...
@@ -20,6 +20,21 @@
<span
v-if=
"Data.CustomerType==3"
>
个人
</span>
<span
v-if=
"Data.CustomerType==4"
>
其他
</span>
</div>
<!-- 名称 -->
<div
class=
"q-my-sm"
v-if=
"editField=='CategoryName'"
>
<div
class=
"flex justify-between items-center q-mb-sm"
>
<span>
名称
</span>
<div>
<q-btn
size=
"sm"
text-color=
"primary"
label=
"取消"
@
click=
"showEdit('')"
></q-btn>
<q-btn
size=
"sm"
color=
"primary"
label=
"确定"
class=
"q-ml-sm"
@
click=
"save('CategoryName',Data.CategoryName)"
></q-btn>
</div>
</div>
<q-input
outlined
dense
v-model=
"Data.CategoryName"
:rules=
"[val => !!val || '请输入名称']"
></q-input>
</div>
<div
class=
"flex justify-between items-center q-my-lg"
v-else
@
click=
"showEdit('CategoryName')"
>
<span>
名称
</span>
<span>
{{
Data
.
CategoryName
}}
</span>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -51,9 +66,6 @@
}
},
mounted
(){
if
(
this
.
Data
.
CustomerType
){
this
.
getCustomList
(
this
.
Data
.
CustomerType
);
}
this
.
getTypeList
();
},
methods
:
{
...
...
@@ -78,28 +90,6 @@
this
.
options
=
res
.
Data
;
}
})
},
getCustomList
(
Type
){
let
msg
=
{
CategoryName
:
""
,
CatetoryType
:
Type
}
this
.
Data
.
CategoryId
=
''
;
this
.
Data
.
EnterpriseName
=
''
;
queryCustomerCategoryList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customList
=
res
.
Data
;
}
})
},
getName
(
Id
){
let
Name
=
''
this
.
customList
.
forEach
(
x
=>
{
if
(
x
.
CategoryId
==
Id
){
Name
=
x
.
CategoryName
}
})
return
Name
;
}
}
}
...
...
src/components/sale/peerInfo/peerRight.vue
View file @
c4c95c6d
...
...
@@ -39,7 +39,8 @@
<
script
>
import
{
GetCustomer
,
SetCustomer
,
RemoveCustomer
,
setCustomerCareOf
}
from
"../../../api/sale/peemanagement"
;
import
{
queryCustomerCategory
queryCustomerCategory
,
saveCustomerCategory
}
from
"../../../api/users/user"
import
baseInfo
from
"./baseInfo.vue"
;
import
right
from
"./conRight.vue"
;
...
...
@@ -101,7 +102,16 @@ export default {
},
saveBaseInfo
(
obj
)
{
this
.
detailData
[
obj
.
field
]
=
obj
.
val
;
SetCustomer
(
this
.
detailData
).
then
(
res
=>
{
console
.
log
(
this
.
detailData
,
'this.detailData'
);
let
msg
=
{
CategoryName
:
this
.
detailData
.
CategoryName
,
CatetoryType
:
this
.
detailData
.
CatetoryType
,
CategoryId
:
this
.
detailData
.
CategoryId
,
linkMan
:
''
,
linkTel
:
''
}
saveCustomerCategory
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
...
...
@@ -114,31 +124,6 @@ export default {
}
});
},
//同业转交
saveTransForm
()
{
this
.
$refs
.
transfer
.
validate
();
if
(
this
.
$refs
.
transfer
.
hasError
)
return
;
this
.
TransferMsg
.
CustomerIds
=
this
.
rowId
;
setCustomerCareOf
(
this
.
TransferMsg
).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"转交成功"
,
position
:
"top"
});
this
.
isShowTrans
=
false
;
this
.
$emit
(
"success"
);
});
},
//筛选员工
filterEmployee
(
val
,
update
,
abort
)
{
update
(()
=>
{
this
.
myEmployeeList
=
this
.
employeeList
.
filter
(
v
=>
v
.
EmployeeName
.
indexOf
(
val
)
>
-
1
);
});
},
//删除客户
RemoveCustomer
(
obj
)
{
let
that
=
this
;
...
...
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