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
13af6f78
Commit
13af6f78
authored
Mar 03, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9e5ef0fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
baseInfo.vue
src/components/sale/b2bcustomerinfo/baseInfo.vue
+15
-2
customerEdit-form.vue
src/components/sale/customerEdit-form.vue
+15
-1
No files found.
src/components/sale/b2bcustomerinfo/baseInfo.vue
View file @
13af6f78
...
...
@@ -107,7 +107,7 @@
</div>
</div>
<q-select
outlined
dense
stack-label
label=
"客户"
option-value=
"CategoryId"
option-label=
"CategoryName"
:options=
"customList"
v-model=
"Data.CategoryId"
emit-value
map-options
/>
:options=
"customList"
use-input
@
filter=
"filterFn"
v-model=
"Data.CategoryId"
emit-value
map-options
/>
</div>
<div
class=
"flex justify-between items-center q-my-lg"
v-else
@
click=
"showEdit('CategoryId')"
>
<span>
客户
</span>
...
...
@@ -192,7 +192,8 @@
label
:
"女"
,
value
:
2
,
}],
customList
:[]
customList
:[],
AllcustomList
:[]
}
},
mounted
(){
...
...
@@ -202,6 +203,17 @@
this
.
getTypeList
();
},
methods
:
{
//筛选客户
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
customList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllcustomList
))
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
customList
=
this
.
AllcustomList
.
filter
(
v
=>
v
.
CategoryName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
})
},
showEdit
(
field
)
{
if
(
this
.
isCanEdit
){
this
.
editField
=
field
...
...
@@ -236,6 +248,7 @@
queryCustomerCategoryList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customList
=
res
.
Data
;
this
.
AllcustomList
=
res
.
Data
;
}
})
},
...
...
src/components/sale/customerEdit-form.vue
View file @
13af6f78
...
...
@@ -136,7 +136,7 @@
<q-input
filled
v-if=
"objOption.CustomerType==4"
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.EnterpriseName"
lazy-rules
ref=
"EnterpriseName"
class=
"col-6 q-pr-lg q-pb-lg"
/>
<q-select
stack-label
color=
"primary"
v-else
filled
label=
"请选择客户"
option-value=
"CategoryId"
option-label=
"CategoryName"
:options=
"customList"
class=
"col-6 q-pr-lg q-pb-lg"
v-model=
"objOption.CategoryId"
clearable
emit-value
map-options
/>
:options=
"customList"
class=
"col-6 q-pr-lg q-pb-lg"
v-model=
"objOption.CategoryId"
use-input
@
filter=
"filterFn"
clearable
emit-value
map-options
/>
<template
v-if=
"objOption.CustomerType!=4"
>
<div
class=
"col-6"
v-if=
"!isShowEdit"
>
<q-btn
label=
"立即添加同行"
@
click=
"isShowEdit=true"
size=
"sm"
color=
"primary"
/>
...
...
@@ -273,6 +273,7 @@
optionTitle
:
''
,
typeOptions
:
[],
customList
:[],
AllcustomList
:[],
isShowEdit
:
false
}
},
...
...
@@ -283,6 +284,18 @@
this
.
getCustomList
(
1
);
},
methods
:
{
//筛选客户
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
customList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllcustomList
))
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
customList
=
this
.
AllcustomList
.
filter
(
v
=>
v
.
CategoryName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
})
},
closeCageName
(){
this
.
isShowEdit
=
false
;
this
.
objOption
.
CategoryName
=
''
;
...
...
@@ -415,6 +428,7 @@
queryCustomerCategoryList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customList
=
res
.
Data
;
this
.
AllcustomList
=
res
.
Data
;
}
})
}
...
...
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