Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
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
office
office-web
Commits
506c90a5
Commit
506c90a5
authored
Apr 19, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改门店回收站搜索
parent
8a3b6a74
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
9 deletions
+24
-9
index.html
dist/index.html
+2
-2
0.6239673a305a6a39bf60.js
dist/static/js/0.6239673a305a6a39bf60.js
+0
-0
29.227fa1ee6d396a57ee1c.js
dist/static/js/29.227fa1ee6d396a57ee1c.js
+0
-2
29.4bcbadee126f7cf02d25.js
dist/static/js/29.4bcbadee126f7cf02d25.js
+2
-0
manifest.ab7a843cc8b61f9482f9.js
dist/static/js/manifest.ab7a843cc8b61f9482f9.js
+2
-2
vueSelectStore.vue
src/components/common/vueSelectStore.vue
+5
-1
recycle.vue
src/views/contacts/recycle.vue
+13
-2
No files found.
dist/index.html
View file @
506c90a5
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.23b3014f1ef41f3b09fada917ecf0618.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.6d759f131b74e0201ae0.js
></script><script
type=
text/javascript
src=
./static/js/vendor.34b23182008ddcb7a22f.js
></script><script
type=
text/javascript
src=
./static/js/app.61d47e0d0a0723543bf2.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.23b3014f1ef41f3b09fada917ecf0618.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.ab7a843cc8b61f9482f9.js
></script><script
type=
text/javascript
src=
./static/js/vendor.34b23182008ddcb7a22f.js
></script><script
type=
text/javascript
src=
./static/js/app.61d47e0d0a0723543bf2.js
></script></body></html>
\ No newline at end of file
dist/static/js/0.
4efedbef4d2b0d8e1196
.js
→
dist/static/js/0.
6239673a305a6a39bf60
.js
View file @
506c90a5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/29.227fa1ee6d396a57ee1c.js
deleted
100644 → 0
View file @
8a3b6a74
webpackJsonp
([
29
],{
HkK0
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"P9l9"
),
r
=
{
name
:
"clerkTbale"
,
components
:{
vueSelectStore
:
s
(
"Ie7z"
).
a
},
props
:{
store
:{
type
:
Object
,
required
:
!
0
}},
data
:
function
(){
return
{
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
openNextBool
:
!
0
},
selectType
:
"store"
,
transArr
:[],
selectedList
:[]}},
methods
:{
goBack
:
function
(){
window
.
location
.
reload
()},
transClerk
:
function
(
e
,
t
){
this
.
transArr
=
"single"
==
e
?[
t
]:
"all"
==
e
?
this
.
store
.
clerks
:
this
.
selectedList
,
this
.
treeSet
.
dialogVisible
=!
0
},
delClerk
:
function
(
e
){
this
.
$emit
(
"delClerk"
,
e
)},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
handleSelectedList
:
function
(
e
){
var
t
=
this
,
s
=
[];
t
.
transArr
.
forEach
(
function
(
e
){
s
.
push
(
e
.
employeeClerkId
)});
var
r
=
{
ids
:
s
.
join
(
","
),
storeId
:
e
[
0
].
id
};
Object
(
a
.
a
)(
"/haoban-manage-web/emp/batchTransfer"
,
r
).
then
(
function
(
e
){
if
(
1
==
e
.
data
.
errorCode
){
t
.
$message
.
success
({
message
:
"操作成功"
});
for
(
var
a
=
0
;
a
<
t
.
store
.
clerks
.
length
;
a
++
)
s
.
includes
(
t
.
store
.
clerks
[
a
].
employeeClerkId
)
&&
t
.
store
.
clerks
.
splice
(
a
,
1
),
--
a
}
else
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})}}},
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"recycle-bin"
},[
s
(
"p"
,{
staticClass
:
"r-b-top-header"
},[
s
(
"a"
,{
staticClass
:
"a-href title"
,
on
:{
click
:
e
.
goBack
}},[
e
.
_v
(
"返回"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
disabled
:
0
==
e
.
selectedList
.
length
},
on
:{
click
:
function
(
t
){
e
.
transClerk
(
"group"
)}}},[
e
.
_v
(
"批量转移"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
transClerk
(
"all"
)}}},[
e
.
_v
(
"全部转移"
)])],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
ref
:
"clerkTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
store
.
clerks
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
s
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"phoneNumber"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"80"
,
prop
:
"clerkCount"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
s
){
e
.
transClerk
(
"single"
,
t
.
row
)}}},[
s
(
"i"
,{
staticClass
:
"el-icon-sort"
})]),
e
.
_v
(
" "
),
s
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
s
){
e
.
delClerk
(
t
.
row
)}}},[
s
(
"i"
,{
staticClass
:
"el-icon-delete"
})])]}}])})],
1
),
e
.
_v
(
" "
),
s
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
l
=
s
(
"VU/8"
)(
r
,
n
,
!
1
,
function
(
e
){
s
(
"rXs4"
)},
null
,
null
).
exports
,
o
=
{
name
:
"recycle-bin"
,
components
:{
navCrumb
:
s
(
"3Xzz"
).
a
,
clerkTable
:
l
},
data
:
function
(){
return
{
searchKey
:
""
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
pageSize
:
20
,
pageNumber
:
1
,
recycleList
:[],
total
:
0
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame?showRecycle=0"
},{
name
:
"门店回收站"
,
path
:
""
}],
clerks
:[],
showClerks
:
!
1
,
currentStore
:{}}},
methods
:{
getRecycleList
:
function
(){
var
e
=
this
,
t
=
e
.
$route
.
query
,
s
=
{
storeGroupId
:
t
.
dept
,
showChild
:
1
*
t
.
showChild
,
showType
:
2
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
4
,
storeType
:
t
.
type
};
Object
(
a
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
s
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
total
=
t
.
data
.
result
.
total
,
e
.
recycleList
=
t
.
data
.
result
.
list
||
[]):(
e
.
recycleList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
restore
:
function
(
e
){
var
t
=
this
;
t
.
$confirm
(
"确定要恢复到门店列表吗?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
s
=
{
status
:
1
,
storeId
:
e
.
storeId
};
Object
(
a
.
a
)(
"/haoban-manage-web/store/changeStatus"
,
s
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
searchKey
=
""
,
t
.
getRecycleList
()):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})}).
catch
(
function
(
e
){})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getRecycleList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getRecycleList
()},
showClerksFn
:
function
(
e
){
this
.
currentStore
=
e
,
this
.
clerks
=
null
==
e
.
clerks
?[]:
e
.
clerks
,
this
.
showClerks
=!
0
},
delClerk
:
function
(
e
){
var
t
=
this
.
currentStore
,
s
=
this
;
s
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
Object
(
a
.
a
)(
"/haoban-manage-web/emp/del"
,
r
).
then
(
function
(
a
){
1
==
a
.
data
.
errorCode
?
t
.
clerks
.
forEach
(
function
(
s
){
s
.
employeeClerkId
==
e
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
s
),
1
)}):
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
data
.
message
})}).
catch
(
function
(
e
){
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})}},
beforeMount
:
function
(){
this
.
getRecycleList
()}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"common-set-wrap recycle-wrap"
},[
s
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"right-content"
},[
s
(
"div"
,{
staticClass
:
"right-box"
},[
e
.
showClerks
?
s
(
"clerk-table"
,{
attrs
:{
store
:
e
.
currentStore
},
on
:{
delClerk
:
e
.
delClerk
}}):
s
(
"div"
,{
staticClass
:
"recycle-bin"
},[
s
(
"div"
,{
staticClass
:
"r-b-top-header"
},[
s
(
"div"
,{
staticClass
:
"title"
},[
e
.
_v
(
e
.
_s
(
e
.
recycleList
.
length
)
+
" 家门店"
)]),
e
.
_v
(
" "
),
s
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入门店名"
,
"prefix-icon"
:
"el-icon-search"
},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
recycleList
.
filter
(
function
(
t
){
return
!
e
.
searchKey
||
t
.
storeName
.
toLowerCase
().
includes
(
e
.
searchKey
.
toLowerCase
())})}},[
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"地址"
,
prop
:
"postAddress"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"待处理店员"
,
prop
:
"clerkCount"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
s
){
e
.
showClerksFn
(
t
.
row
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerks
.
length
)
+
"
\
n "
)])]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
prop
:
"clerkCount"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
s
){
e
.
restore
(
t
.
row
)}}},[
e
.
_v
(
"恢复到门店列表"
)])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
total
?
s
(
"div"
,{
staticClass
:
"pagination"
},[
s
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)],
1
)]),
e
.
_v
(
" "
),
s
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
i
=
s
(
"VU/8"
)(
o
,
c
,
!
1
,
function
(
e
){
s
(
"TcTl"
)},
null
,
null
);
t
.
default
=
i
.
exports
},
TcTl
:
function
(
e
,
t
){},
rXs4
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/29.4bcbadee126f7cf02d25.js
0 → 100644
View file @
506c90a5
webpackJsonp
([
29
],{
HkK0
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"P9l9"
),
r
=
{
name
:
"clerkTbale"
,
components
:{
vueSelectStore
:
a
(
"Ie7z"
).
a
},
props
:{
store
:{
type
:
Object
,
required
:
!
0
}},
data
:
function
(){
return
{
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
0
,
openNextBool
:
!
0
},
selectType
:
"store"
,
transArr
:[],
selectedList
:[]}},
methods
:{
goBack
:
function
(){
window
.
location
.
reload
()},
transClerk
:
function
(
e
,
t
){
this
.
transArr
=
"single"
==
e
?[
t
]:
"all"
==
e
?
this
.
store
.
clerks
:
this
.
selectedList
,
this
.
treeSet
.
dialogVisible
=!
0
},
delClerk
:
function
(
e
){
this
.
$emit
(
"delClerk"
,
e
)},
selectMember
:
function
(
e
){
this
.
selectedList
=
e
},
handleSelectedList
:
function
(
e
){
var
t
=
this
,
a
=
[];
t
.
transArr
.
forEach
(
function
(
e
){
a
.
push
(
e
.
employeeClerkId
)});
var
r
=
{
ids
:
a
.
join
(
","
),
storeId
:
e
[
0
].
id
};
Object
(
s
.
a
)(
"/haoban-manage-web/emp/batchTransfer"
,
r
).
then
(
function
(
e
){
if
(
1
==
e
.
data
.
errorCode
){
t
.
$message
.
success
({
message
:
"操作成功"
});
for
(
var
s
=
0
;
s
<
t
.
store
.
clerks
.
length
;
s
++
)
a
.
includes
(
t
.
store
.
clerks
[
s
].
employeeClerkId
)
&&
t
.
store
.
clerks
.
splice
(
s
,
1
),
--
s
}
else
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})}}},
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"recycle-bin"
},[
a
(
"p"
,{
staticClass
:
"r-b-top-header"
},[
a
(
"a"
,{
staticClass
:
"a-href title"
,
on
:{
click
:
e
.
goBack
}},[
e
.
_v
(
"返回"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
0
==
e
.
selectedList
.
length
},
on
:{
click
:
function
(
t
){
e
.
transClerk
(
"group"
)}}},[
e
.
_v
(
"批量转移"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
transClerk
(
"all"
)}}},[
e
.
_v
(
"全部转移"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
ref
:
"clerkTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
store
.
clerks
},
on
:{
"selection-change"
:
e
.
selectMember
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"42"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"姓名"
,
prop
:
"name"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"手机号码"
,
prop
:
"phoneNumber"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"80"
,
prop
:
"clerkCount"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
transClerk
(
"single"
,
t
.
row
)}}},[
a
(
"i"
,{
staticClass
:
"el-icon-sort"
})]),
e
.
_v
(
" "
),
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
delClerk
(
t
.
row
)}}},[
a
(
"i"
,{
staticClass
:
"el-icon-delete"
})])]}}])})],
1
),
e
.
_v
(
" "
),
a
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
treeSet
,
selectType
:
e
.
selectType
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}})],
1
)},
staticRenderFns
:[]};
var
l
=
a
(
"VU/8"
)(
r
,
n
,
!
1
,
function
(
e
){
a
(
"rXs4"
)},
null
,
null
).
exports
,
o
=
a
(
"3Xzz"
),
c
=
a
(
"PI0u"
),
i
=
{
name
:
"recycle-bin"
,
components
:{
navCrumb
:
o
.
a
,
clerkTable
:
l
},
data
:
function
(){
return
{
searchKey
:
""
,
typeArr
:[
"全部类型"
,
"自营"
,
"联营"
,
"代理(加盟)"
,
"代销"
,
"托管"
],
pageSize
:
20
,
pageNumber
:
1
,
recycleList
:[],
total
:
0
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"企业通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"门店架构"
,
path
:
"/storeFrame?showRecycle=0"
},{
name
:
"门店回收站"
,
path
:
""
}],
clerks
:[],
showClerks
:
!
1
,
currentStore
:{}}},
methods
:{
toInput
:
Object
(
c
.
a
)(
function
(
e
){
this
.
pageNumber
=
1
,
this
.
getRecycleList
()},
500
),
getRecycleList
:
function
(){
var
e
=
this
,
t
=
e
.
$route
.
query
,
a
=
{
storeName
:
e
.
searchKey
||
""
,
storeGroupId
:
t
.
dept
,
showChild
:
1
*
t
.
showChild
,
showType
:
2
,
pageSize
:
e
.
pageSize
,
pageNum
:
e
.
pageNumber
,
status
:
4
,
storeType
:
t
.
type
};
Object
(
s
.
a
)(
"/haoban-manage-web/store/findSimplePage"
,
a
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?(
e
.
total
=
t
.
data
.
result
.
total
,
e
.
recycleList
=
t
.
data
.
result
.
list
||
[]):(
e
.
recycleList
=
[],
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
data
.
message
}))}).
catch
(
function
(
t
){
e
.
loading
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
restore
:
function
(
e
){
var
t
=
this
;
t
.
$confirm
(
"确定要恢复到门店列表吗?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
a
=
{
status
:
1
,
storeId
:
e
.
storeId
};
Object
(
s
.
a
)(
"/haoban-manage-web/store/changeStatus"
,
a
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
searchKey
=
""
,
t
.
pageNumber
=
1
,
t
.
getRecycleList
()):
t
.
$message
.
error
({
message
:
e
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})}).
catch
(
function
(
e
){})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getRecycleList
()},
handleCurrentChange
:
function
(
e
){
this
.
pageNumber
=
e
,
this
.
getRecycleList
()},
showClerksFn
:
function
(
e
){
this
.
currentStore
=
e
,
this
.
clerks
=
null
==
e
.
clerks
?[]:
e
.
clerks
,
this
.
showClerks
=!
0
},
delClerk
:
function
(
e
){
var
t
=
this
.
currentStore
,
a
=
this
;
a
.
$confirm
(
"是否要删除该员工?"
,
"提示"
,{
type
:
"warning"
}).
then
(
function
(){
var
r
=
{
ids
:
e
.
employeeClerkId
};
Object
(
s
.
a
)(
"/haoban-manage-web/emp/del"
,
r
).
then
(
function
(
s
){
1
==
s
.
data
.
errorCode
?
t
.
clerks
.
forEach
(
function
(
a
){
a
.
employeeClerkId
==
e
.
employeeClerkId
&&
t
.
clerks
.
splice
(
t
.
clerks
.
indexOf
(
a
),
1
)}):
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
s
.
data
.
message
})}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})})}},
beforeMount
:
function
(){
this
.
getRecycleList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"common-set-wrap recycle-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
},[
e
.
showClerks
?
a
(
"clerk-table"
,{
attrs
:{
store
:
e
.
currentStore
},
on
:{
delClerk
:
e
.
delClerk
}}):
a
(
"div"
,{
staticClass
:
"recycle-bin"
},[
a
(
"div"
,{
staticClass
:
"r-b-top-header"
},[
a
(
"div"
,{
staticClass
:
"title"
},[
e
.
_v
(
e
.
_s
(
e
.
recycleList
.
length
)
+
" 家门店"
)]),
e
.
_v
(
" "
),
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入门店名"
,
"prefix-icon"
:
"el-icon-search"
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
model
:{
value
:
e
.
searchKey
,
callback
:
function
(
t
){
e
.
searchKey
=
t
},
expression
:
"searchKey"
}},[
e
.
_v
(
">"
)])],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
recycleList
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
prop
:
"storeName"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"代码"
,
prop
:
"storeCode"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"类型"
,
prop
:
"storeType"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
typeArr
[
1
*
t
.
row
.
storeType
+
1
])
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"地址"
,
prop
:
"postAddress"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"待处理店员"
,
prop
:
"clerkCount"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
showClerksFn
(
t
.
row
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
clerks
.
length
)
+
"
\
n "
)])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
prop
:
"clerkCount"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
a
){
e
.
restore
(
t
.
row
)}}},[
e
.
_v
(
"恢复到门店列表"
)])]}}])})],
1
),
e
.
_v
(
" "
),
e
.
total
?
a
(
"div"
,{
staticClass
:
"pagination"
},[
a
(
"el-pagination"
,{
attrs
:{
background
:
""
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
"current-page"
:
e
.
pageNumber
,
layout
:
"total, sizes, prev, pager, next"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
i
,
u
,
!
1
,
function
(
e
){
a
(
"ZPrA"
)},
null
,
null
);
t
.
default
=
d
.
exports
},
ZPrA
:
function
(
e
,
t
){},
rXs4
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
6d759f131b74e0201ae0
.js
→
dist/static/js/manifest.
ab7a843cc8b61f9482f9
.js
View file @
506c90a5
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
d
=
{
77
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
d
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
d
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
d
[
e
]
=
[
a
,
f
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"4efedbef4d2b0d8e1196"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"95e65373870423c59dc7"
,
3
:
"c2fd89730cdd6d5b8904"
,
4
:
"c23ab1c011f8ddc3428b"
,
5
:
"d41ea5dba7a329f04b96"
,
6
:
"af5f6241c09b00cd7e44"
,
7
:
"7e0164566e8e00575481"
,
8
:
"bb8853a5a6239a7e1349"
,
9
:
"7dc467d5cfcb4cfb033f"
,
10
:
"a1950d7e913b529d9809"
,
11
:
"0a7059ea2e15c5acf938"
,
12
:
"bdee76fd84034bc2d498"
,
13
:
"99eba27757bf881d6c39"
,
14
:
"70a11e50ec358505e2b6"
,
15
:
"982c7f877d4d88d1d93b"
,
16
:
"8f8e20ce84faa7e6b5e6"
,
17
:
"2c76434ec01b2b5ee02f"
,
18
:
"899eb9ec9050797cc2b4"
,
19
:
"27c00c26337d1b0a5f29"
,
20
:
"516a97da045de8173b75"
,
21
:
"1218f07273b4fca490fc"
,
22
:
"d249aa89b62990eb828d"
,
23
:
"413b19e4c879b068a62c"
,
24
:
"9d547e5255fc6330d24b"
,
25
:
"c613f7ea850a38ab5967"
,
26
:
"24fa9334a68a4c15b211"
,
27
:
"2ea724b0442e927bfdf5"
,
28
:
"140ad99228544036c969"
,
29
:
"227fa1ee6d396a57ee1c"
,
30
:
"3c6ecc51205b6dc310ea"
,
31
:
"fc0f10b93c27d5828815"
,
32
:
"41a1620b882cbd77f621"
,
33
:
"98c9f8f46aabb33952e1"
,
34
:
"a870a2a95752c259fbcb"
,
35
:
"32cae9a3f9ba6b187945"
,
36
:
"706cf2b1fed575cc2e7b"
,
37
:
"8016d3ac07df8acaf73d"
,
38
:
"419c9b68a385c260821b"
,
39
:
"5a144b590087731c3653"
,
40
:
"27851a220bdc8cf9de25"
,
41
:
"67fc41319ca25ea2ba89"
,
42
:
"0daee346d67f816b99c3"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"8b267f44a7d0855db1b1"
,
45
:
"0c086d4c604bfae8f1e2"
,
46
:
"8627c20ac6fb5b6dd47c"
,
47
:
"cee4bd255fc6984e203a"
,
48
:
"6d564387f233c08c800d"
,
49
:
"16d7cb7cd95756ebf1a0"
,
50
:
"1c8da7c7e73224e1079e"
,
51
:
"b171588c2b70fec4c029"
,
52
:
"10599ff77c8e1dc5cb61"
,
53
:
"8802335b18fef4b4450b"
,
54
:
"d1b44ac8d91eb92bf746"
,
55
:
"a733127e23169fda7551"
,
56
:
"91eb07cc8e7e8a4439b9"
,
57
:
"b7e06a6ee4048a51a73d"
,
58
:
"31750092465add0acd92"
,
59
:
"133b37877d1a48ad1fd1"
,
60
:
"6ff0cd2c4afde9bd8afc"
,
61
:
"5b6712c4261c8c8331b1"
,
62
:
"7c94a16a9482fc4a5f52"
,
63
:
"81c8a522301e88b8c3f2"
,
64
:
"d03865cf6990d2be8d2d"
,
65
:
"d4d5eb36aca1fcd683b6"
,
66
:
"6b5fc386ec869d82a1dc"
,
67
:
"2d8e5c7eef8491a3cdba"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"e65d327b559f8fae7f73"
,
70
:
"f19cdcc96fb03261fca5"
,
71
:
"87a6af69154348344f0b"
,
72
:
"14bd495ccecac00655be"
,
73
:
"b89ad92812ac506a22b8"
,
76
:
"fd376da7cdbac115205f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
d
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
f
.
m
=
e
,
f
.
c
=
a
,
f
.
d
=
function
(
e
,
c
,
a
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
d
[
t
]
&&
u
.
push
(
d
[
t
][
0
]),
d
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
d
=
{
77
:
0
};
function
f
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
d
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
d
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
f
){
c
=
d
[
e
]
=
[
a
,
f
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
f
.
nc
&&
n
.
setAttribute
(
"nonce"
,
f
.
nc
),
n
.
src
=
f
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"6239673a305a6a39bf60"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"95e65373870423c59dc7"
,
3
:
"c2fd89730cdd6d5b8904"
,
4
:
"c23ab1c011f8ddc3428b"
,
5
:
"d41ea5dba7a329f04b96"
,
6
:
"af5f6241c09b00cd7e44"
,
7
:
"7e0164566e8e00575481"
,
8
:
"bb8853a5a6239a7e1349"
,
9
:
"7dc467d5cfcb4cfb033f"
,
10
:
"a1950d7e913b529d9809"
,
11
:
"0a7059ea2e15c5acf938"
,
12
:
"bdee76fd84034bc2d498"
,
13
:
"99eba27757bf881d6c39"
,
14
:
"70a11e50ec358505e2b6"
,
15
:
"982c7f877d4d88d1d93b"
,
16
:
"8f8e20ce84faa7e6b5e6"
,
17
:
"2c76434ec01b2b5ee02f"
,
18
:
"899eb9ec9050797cc2b4"
,
19
:
"27c00c26337d1b0a5f29"
,
20
:
"516a97da045de8173b75"
,
21
:
"1218f07273b4fca490fc"
,
22
:
"d249aa89b62990eb828d"
,
23
:
"413b19e4c879b068a62c"
,
24
:
"9d547e5255fc6330d24b"
,
25
:
"c613f7ea850a38ab5967"
,
26
:
"24fa9334a68a4c15b211"
,
27
:
"2ea724b0442e927bfdf5"
,
28
:
"140ad99228544036c969"
,
29
:
"4bcbadee126f7cf02d25"
,
30
:
"3c6ecc51205b6dc310ea"
,
31
:
"fc0f10b93c27d5828815"
,
32
:
"41a1620b882cbd77f621"
,
33
:
"98c9f8f46aabb33952e1"
,
34
:
"a870a2a95752c259fbcb"
,
35
:
"32cae9a3f9ba6b187945"
,
36
:
"706cf2b1fed575cc2e7b"
,
37
:
"8016d3ac07df8acaf73d"
,
38
:
"419c9b68a385c260821b"
,
39
:
"5a144b590087731c3653"
,
40
:
"27851a220bdc8cf9de25"
,
41
:
"67fc41319ca25ea2ba89"
,
42
:
"0daee346d67f816b99c3"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"8b267f44a7d0855db1b1"
,
45
:
"0c086d4c604bfae8f1e2"
,
46
:
"8627c20ac6fb5b6dd47c"
,
47
:
"cee4bd255fc6984e203a"
,
48
:
"6d564387f233c08c800d"
,
49
:
"16d7cb7cd95756ebf1a0"
,
50
:
"1c8da7c7e73224e1079e"
,
51
:
"b171588c2b70fec4c029"
,
52
:
"10599ff77c8e1dc5cb61"
,
53
:
"8802335b18fef4b4450b"
,
54
:
"d1b44ac8d91eb92bf746"
,
55
:
"a733127e23169fda7551"
,
56
:
"91eb07cc8e7e8a4439b9"
,
57
:
"b7e06a6ee4048a51a73d"
,
58
:
"31750092465add0acd92"
,
59
:
"133b37877d1a48ad1fd1"
,
60
:
"6ff0cd2c4afde9bd8afc"
,
61
:
"5b6712c4261c8c8331b1"
,
62
:
"7c94a16a9482fc4a5f52"
,
63
:
"81c8a522301e88b8c3f2"
,
64
:
"d03865cf6990d2be8d2d"
,
65
:
"d4d5eb36aca1fcd683b6"
,
66
:
"6b5fc386ec869d82a1dc"
,
67
:
"2d8e5c7eef8491a3cdba"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"e65d327b559f8fae7f73"
,
70
:
"f19cdcc96fb03261fca5"
,
71
:
"87a6af69154348344f0b"
,
72
:
"14bd495ccecac00655be"
,
73
:
"b89ad92812ac506a22b8"
,
76
:
"fd376da7cdbac115205f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
d
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
f
.
m
=
e
,
f
.
c
=
a
,
f
.
d
=
function
(
e
,
c
,
a
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
"./"
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/common/vueSelectStore.vue
View file @
506c90a5
...
...
@@ -176,6 +176,7 @@ export default {
if
(
group
.
level
==
0
)
{
// 禁用分组
group
.
disabled
=
(
group
.
childrens
&&
group
.
childrens
.
length
>
0
)
||
(
group
.
hasPression
!=
1
||
selType
==
'person'
||
selType
==
'store'
||
isForbiden
);
// console.log(group.disabled, group.childrens && group.childrens.length > 0, group.hasPression != 1 || selType == 'person' || selType == 'store' || isForbiden);
group
.
hasLoad
=
true
;
that
.
brands
.
push
(
group
);
if
(
group
.
childrens
)
{
...
...
@@ -195,6 +196,7 @@ export default {
// && that.treeSet.storeType != 'addClerk'
this
.
getStoreList
(
that
.
menuData
[
0
]);
}
console
.
log
(
that
.
menuData
);
},
/**
* 树形菜单选择
...
...
@@ -260,7 +262,9 @@ export default {
.
then
(
res
=>
{
let
storeList
=
[];
if
(
res
.
data
.
errorCode
==
1
)
{
parent
.
disabled
=
!!
res
.
data
.
result
.
list
&&
!!
flag
?
true
:
false
;
if
(
parent
.
level
!=
0
)
{
parent
.
disabled
=
!!
res
.
data
.
result
.
list
&&
!!
flag
?
true
:
false
;
}
that
.
$forceUpdate
();
storeList
=
res
.
data
.
result
.
list
==
null
?
[]
:
res
.
data
.
result
.
list
;
that
.
storeList
=
res
.
data
.
result
.
list
==
null
?
[]
:
res
.
data
.
result
.
list
;
...
...
src/views/contacts/recycle.vue
View file @
506c90a5
...
...
@@ -7,9 +7,9 @@
<div
class=
"recycle-bin"
v-else
>
<div
class=
"r-b-top-header"
>
<div
class=
"title"
>
{{
recycleList
.
length
}}
家门店
</div>
<el-input
placeholder=
"请输入门店名"
prefix-icon=
"el-icon-search"
v-model=
"searchKey"
></el-input>
<el-input
placeholder=
"请输入门店名"
prefix-icon=
"el-icon-search"
v-model=
"searchKey"
@
keyup
.
native=
"value => toInput(value)"
>
>
</el-input>
</div>
<el-table
:data=
"recycleList
.filter(data => !searchKey || data.storeName.toLowerCase().includes(searchKey.toLowerCase()))
"
style=
"width: 100%"
>
<el-table
:data=
"recycleList"
style=
"width: 100%"
>
<el-table-column
label=
"门店名称"
prop=
"storeName"
>
</el-table-column>
<el-table-column
label=
"代码"
prop=
"storeCode"
>
</el-table-column>
<el-table-column
label=
"类型"
prop=
"storeType"
>
...
...
@@ -44,6 +44,7 @@
import
{
getRequest
}
from
'@/api/api'
;
import
clerkTable
from
'components/contacts/storeFrame/clerkTable'
;
import
navCrumb
from
'@/components/nav/nav.vue'
;
import
{
_debounce
}
from
'@/common/js/public'
;
export
default
{
name
:
'recycle-bin'
,
components
:
{
...
...
@@ -83,12 +84,21 @@ export default {
},
methods
:
{
/**
* 输入
*/
toInput
:
_debounce
(
function
(
e
)
{
let
that
=
this
;
that
.
pageNumber
=
1
;
that
.
getRecycleList
();
},
500
),
/**
* 获取回收站店铺列表
*/
getRecycleList
()
{
let
that
=
this
;
let
query
=
that
.
$route
.
query
;
let
params
=
{
storeName
:
that
.
searchKey
||
''
,
storeGroupId
:
query
.
dept
,
showChild
:
query
.
showChild
*
1
,
showType
:
2
,
...
...
@@ -134,6 +144,7 @@ export default {
.
then
(
res
=>
{
if
(
res
.
data
.
errorCode
==
1
)
{
that
.
searchKey
=
''
;
that
.
pageNumber
=
1
;
that
.
getRecycleList
();
}
else
{
that
.
$message
.
error
({
...
...
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