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
c5dd3d2d
Commit
c5dd3d2d
authored
Mar 03, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
07023e19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
9 deletions
+102
-9
user.js
src/api/users/user.js
+12
-0
peerRight.vue
src/components/sale/peerInfo/peerRight.vue
+90
-9
No files found.
src/api/users/user.js
View file @
c5dd3d2d
...
...
@@ -368,4 +368,16 @@ export function GetCatetoryTypeList(data) {
method
:
'post'
,
data
})
}
/**
* 保存合并
* @param {查询参数} data
*/
export
function
ReplaceCategory
(
data
)
{
return
request
({
url
:
'/B2BCustomer/ReplaceCategory'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/sale/peerInfo/peerRight.vue
View file @
c5dd3d2d
<
template
>
<q-dialog
v-model=
"persistent"
maximized
full-height
seamless
position=
"right"
@
hide=
"closeAuditCustomerForm"
>
<div
class=
"info-content-component"
>
<div
class=
"info-head flex items-center"
>
<div
class=
"flex items-center"
>
<div>
<div
class=
"text-h7"
>
{{
detailData
.
CategoryName
}}
</div>
</div>
<div
class=
"info-head flex items-center"
style=
"justify-content:space-between;"
>
<div
class=
"text-h7"
>
{{
detailData
.
CategoryName
}}
</div>
<div>
<q-btn
color=
"accent"
size=
"sm"
label=
"合并"
icon=
"compare_arrows"
@
click=
"isShowTrans = true"
>
<q-popup-proxy
:offset=
"[10, 10]"
>
<q-banner
v-if=
"isShowTrans"
>
<q-select
style=
"margin-top:20px;"
filled
v-model=
"mergeMsg.NewCategoryId"
@
filter=
"filterFn"
use-input
dense
:options=
"customList"
option-label=
"CategoryName"
option-value=
"CategoryId"
emit-value
map-options
:rules=
"[val => !!val || '请选合并人']"
ref=
"transfer"
/>
<q-btn
label=
"保存"
style=
"float:right;margin-top:15px"
color=
"accent q-mb-lg"
size=
"sm"
@
click=
"saveMerge"
/>
</q-banner>
</q-popup-proxy>
</q-btn>
</div>
<q-space
/>
</div>
<div
class=
"info-content"
>
<div
class=
"detail-info"
>
...
...
@@ -35,8 +66,11 @@
}
from
"../../../api/sale/peemanagement"
;
import
{
queryCustomerCategory
,
saveCustomerCategory
saveCustomerCategory
,
queryCustomerCategoryList
,
ReplaceCategory
}
from
"../../../api/users/user"
import
baseInfo
from
"./baseInfo.vue"
;
import
right
from
"./conRight.vue"
;
export
default
{
...
...
@@ -69,15 +103,45 @@
TransferMsg
:
{
CustomerIds
:
""
,
EmpId
:
""
},
customList
:[],
AllcustomList
:[],
mergeMsg
:{
CategoryId
:
0
,
NewCategoryId
:
''
}
};
},
mounted
()
{
this
.
initObj
();
this
.
getCustomList
(
1
);
this
.
employeeList
=
this
.
empList
;
this
.
myEmployeeList
=
this
.
empList
;
},
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
);
}
})
},
getCustomList
(
Type
){
let
msg
=
{
CategoryName
:
""
,
CatetoryType
:
Type
}
queryCustomerCategoryList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customList
=
res
.
Data
;
this
.
AllcustomList
=
res
.
Data
;
}
})
},
//关闭弹窗
closeAuditCustomerForm
()
{
this
.
$emit
(
"close"
);
...
...
@@ -161,6 +225,23 @@
});
});
},
//保存合并
saveMerge
(){
this
.
mergeMsg
.
CategoryId
=
this
.
CategoryId
;
ReplaceCategory
(
this
.
mergeMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"数据保存成功!"
,
position
:
"top"
});
this
.
isShowTrans
=
false
;
this
.
$emit
(
"success"
);
}
});
}
}
};
</
script
>
...
...
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