Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
haoban-3
Commits
ee911eb3
Commit
ee911eb3
authored
Jun 23, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改设置门店
parent
f49be081
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
19 deletions
+16
-19
index.html
dist/index.html
+2
-2
app.d43cf57750ffc6fa50e792350bec8230.css
dist/static/css/app.d43cf57750ffc6fa50e792350bec8230.css
+0
-0
11.85ef9abb670d4472d7e4.js
dist/static/js/11.85ef9abb670d4472d7e4.js
+0
-2
11.931f12c564ff8f7e5f81.js
dist/static/js/11.931f12c564ff8f7e5f81.js
+2
-2
12.bd4b4eb96215d3ff63eb.js
dist/static/js/12.bd4b4eb96215d3ff63eb.js
+2
-2
13.b528a7bfbf239c6b01df.js
dist/static/js/13.b528a7bfbf239c6b01df.js
+2
-0
app.10eee57ae06eedfb5ece.js
dist/static/js/app.10eee57ae06eedfb5ece.js
+2
-2
manifest.169d5de3034cbd1147c1.js
dist/static/js/manifest.169d5de3034cbd1147c1.js
+2
-2
set-visiable.vue
src/components/app/customer/set-visiable.vue
+4
-7
No files found.
dist/index.html
View file @
ee911eb3
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.74c1347734e69125d09f5c9d9fc6aace.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><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
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.82c8c9e81fb2d1c08c21.js
></script><script
type=
text/javascript
src=
./static/js/vendor.04714449d6ef1a8af053.js
></script><script
type=
text/javascript
src=
./static/js/app.3f2db82121e593a38d48.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
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.d43cf57750ffc6fa50e792350bec8230.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><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
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.169d5de3034cbd1147c1.js
></script><script
type=
text/javascript
src=
./static/js/vendor.04714449d6ef1a8af053.js
></script><script
type=
text/javascript
src=
./static/js/app.10eee57ae06eedfb5ece.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
74c1347734e69125d09f5c9d9fc6aace
.css
→
dist/static/css/app.
d43cf57750ffc6fa50e792350bec8230
.css
View file @
ee911eb3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/11.85ef9abb670d4472d7e4.js
deleted
100644 → 0
View file @
f49be081
webpackJsonp
([
11
],{
HoLU
:
function
(
e
,
t
){},
KXM4
:
function
(
e
,
t
){},
mOmb
:
function
(
e
,
t
,
s
){
"use strict"
;
var
a
=
s
(
"mvHQ"
),
r
=
s
.
n
(
a
),
o
=
s
(
"P9l9"
),
n
=
s
(
"Ch4/"
),
i
=
s
(
"PI0u"
),
l
=
{
name
:
"gic-select-store"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
searchSelect
:
""
,
storeVisible
:
!
1
,
stores
:[],
storesCopy
:[],
dailyRuleForm
:{
stores
:[]},
pageNum
:
1
,
pageSize
:
200
}},
methods
:{
handleCheckAllChange
:
function
(
e
){
this
.
dailyRuleForm
.
stores
=
e
?
this
.
stores
.
map
(
function
(
e
){
return
e
.
storeId
}):[],
this
.
isIndeterminate
=!
1
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
handleStoresChange
:
function
(
e
){
var
t
=
e
.
length
;
this
.
checkAll
=
t
===
this
.
stores
.
length
,
this
.
isIndeterminate
=
t
>
0
&&
t
<
this
.
stores
.
length
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
toInput
:
Object
(
i
.
a
)(
function
(
e
,
t
){
""
!=
this
.
searchSelect
&&
(
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
())},
500
),
changeVisible
:
function
(){},
checkStore
:
function
(
e
){
var
t
=
this
;
if
(
e
.
select
){
e
.
select
=!
1
;
var
s
=
t
.
dailyRuleForm
.
stores
.
indexOf
(
e
.
storeId
);
t
.
dailyRuleForm
.
stores
.
splice
(
s
,
1
)}
else
e
.
select
=!
0
,
t
.
dailyRuleForm
.
stores
.
push
(
e
.
storeId
);
t
.
storesCopy
.
forEach
(
function
(
e
){
t
.
dailyRuleForm
.
stores
.
includes
(
e
.
storeId
)
&&
(
e
.
select
=!
0
)})},
clearSearch
:
function
(){
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
()},
getStoreData
:
function
(){
var
e
=
this
,
t
=
{
searchName
:
e
.
searchSelect
,
gicEnterpriseId
:
e
.
brandId
,
pageNum
:
e
.
pageNum
,
pageSize
:
e
.
pageSize
};
Object
(
o
.
a
)(
"/haoban-app-customer-web/cardCoupon/get-store-list"
,
t
).
then
(
function
(
t
){
var
s
=
t
.
data
;
if
(
1
==
s
.
errorCode
)
return
s
.
result
.
result
&&
s
.
result
.
result
.
forEach
(
function
(
t
){
t
.
select
=!
1
,
e
.
selectData
.
includes
(
t
.
storeId
)
&&
(
t
.
select
=!
0
)}),
1
==
e
.
pageNum
?(
e
.
stores
=
JSON
.
parse
(
r
()(
s
.
result
.
result
))
||
[],
e
.
storesCopy
=
JSON
.
parse
(
r
()(
s
.
result
.
result
))
||
[]):
s
.
result
.
result
.
forEach
(
function
(
t
){
e
.
stores
.
push
(
t
),
e
.
storesCopy
.
push
(
t
)}),
void
(
e
.
pageNum
*
e
.
pageSize
<
s
.
result
.
totalCount
&&
(
e
.
pageNum
++
,
e
.
$nextTick
(
function
(){
e
.
getStoreData
()})));
n
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
checkAll
=!
1
,
this
.
isIndeterminate
=!
1
,
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
searchSelect
=
""
,
this
.
getStoreData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
e
)):
this
.
dailyRuleForm
.
stores
=
[]}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
getStoreData
()),
this
.
selectData
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
this
.
selectData
)):
this
.
dailyRuleForm
.
stores
=
[]}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
s
(
"div"
,{
staticClass
:
"daily-store-select"
},[
s
(
"div"
,{
staticClass
:
"select-search"
},[
s
(
"el-input"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请输入门店名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
s
=
t
,
e
.
toInput
(
s
,
e
.
searchSelect
);
var
s
}},
model
:{
value
:
e
.
searchSelect
,
callback
:
function
(
t
){
e
.
searchSelect
=
t
},
expression
:
"searchSelect"
}},[
s
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"checkbox border-box"
,
staticStyle
:{
padding
:
"15px 20px"
}},[
s
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
s
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
s
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
stores
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"stores"
,
t
)},
expression
:
"dailyRuleForm.stores"
}},[
s
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
stores
,
function
(
t
){
return
s
(
"li"
,{
key
:
t
.
storeId
,
class
:[
"el-select-dropdown__item"
,
t
.
select
?
"selected hover"
:
""
]},[
s
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
storeId
}},[
e
.
_v
(
e
.
_s
(
t
.
storeName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
stores
.
length
?
e
.
_e
():
s
(
"li"
,{
staticClass
:
"text-center"
},[
s
(
"span"
,[
e
.
_v
(
"暂无数据"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
s
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
s
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"show-select-num cursor-pointer w-350"
,
attrs
:{
slot
:
"reference"
},
on
:{
click
:
e
.
changeVisible
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 已经选择"
+
e
.
_s
(
e
.
dailyRuleForm
.
stores
.
length
)
+
"家门店
\
n "
),
s
(
"span"
,{
staticClass
:
"el-input__suffix"
},[
s
(
"span"
,{
staticClass
:
"el-input__suffix-inner"
},[
s
(
"i"
,{
class
:[
"el-select__caret el-input__icon el-icon-arrow-up"
,
e
.
storeVisible
?
"is-reverse"
:
""
]})])])])])},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
s
(
"HoLU"
)},
"data-v-67522a34"
,
null
);
t
.
a
=
u
.
exports
},
z3jf
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
s
(
"fZjL"
),
r
=
s
.
n
(
a
),
o
=
s
(
"mvHQ"
),
n
=
s
.
n
(
o
),
i
=
s
(
"mOmb"
),
l
=
s
(
"Ggl+"
),
c
=
s
(
"PI0u"
),
u
=
s
(
"P9l9"
),
d
=
s
(
"3E4D"
),
h
=
s
(
"Ch4/"
),
p
=
{
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
gicSelectGroup
:
l
.
a
,
gicSelectStore
:
i
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userInfos"
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
wxEnterpriseRelatedId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
loading
:
!
1
,
dialogVisible
:
!
0
,
formData
:{
sendRange
:
"0"
,
selectList
:[]},
loadingBtn
:
!
1
}},
methods
:{
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
returnStores
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
checkGroupIds
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
toCancel
:
function
(){
this
.
$emit
(
"closeStore"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
e
){
this
.
$emit
(
"closeStore"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
c
.
a
)(
function
(
e
){
if
((
"1"
==
this
.
formData
.
sendRange
||
"2"
==
this
.
formData
.
sendRange
)
&&!
this
.
formData
.
selectList
.
length
)
return
!
1
;
this
.
loadingBtn
=!
0
,
this
.
postSave
()},
300
),
postSave
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
brandId
,
templateId
:
e
.
$route
.
query
.
templateId
,
selectType
:
e
.
ruleForm
.
sendRange
,
groupIds
:
1
==
e
.
ruleForm
.
sendRange
?
e
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeGroupId
}).
join
(
","
):
""
,
storeIds
:
2
==
e
.
ruleForm
.
sendRange
?
e
.
formData
.
selectList
.
join
(
","
):
""
};
Object
(
u
.
d
)(
"/haoban-app-customer-web/memberGroup/save-template-store"
,
t
).
then
(
function
(
t
){
var
s
=
t
.
data
;
e
.
loadingBtn
=!
1
,
1
==
s
.
errorCode
?(
d
.
a
.
showmsg
(
"操作成功"
,
"success"
),
e
.
$refs
.
ruleForm
.
resetFields
(),
e
.
$emit
(
"submitStore"
)):
h
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
t
){
e
.
loadingBtn
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTableList
:
function
(
e
){
var
t
=
this
;
t
.
loading
=!
0
;
var
s
=
[],
a
=
[],
r
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
r
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
s
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
a
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
search
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
u
.
d
)(
"/haoban-app-customer-web/memberGroup/search-store"
,
o
).
then
(
function
(
e
){
var
s
=
e
.
data
;
if
(
t
.
loading
=!
1
,
1
==
s
.
errorCode
)
return
t
.
tableData
=
s
.
result
.
list
||
[],
t
.
total
=
s
.
result
.
pageInfo
.
total
,
!
1
;
h
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
e
){
r
()(
e
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
n
()(
e
)))}},
mounted
:
function
(){
r
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
n
()(
this
.
editRow
)))}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"el-dialog"
,{
attrs
:{
title
:(
e
.
editRow
.
templateId
,
"可见范围"
),
visible
:
e
.
dialogVisible
,
width
:
"873px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
s
(
"div"
,{},[
s
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
s
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"100px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 选择范围
\
n "
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"100px"
}},[
s
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"所有门店"
)]),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分分组"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
s
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
s
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
e
.
brandId
,
width
:
213
,
selectData
:
e
.
formData
.
selectList
},
on
:{
checkGroupIds
:
e
.
checkGroupIds
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
s
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分门店"
)]),
e
.
_v
(
" "
),
2
==
e
.
formData
.
sendRange
?
s
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
s
(
"gic-select-store"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnStores
:
e
.
returnStores
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
e
.
formData
.
sendRange
||
e
.
formData
.
selectList
.
length
?
e
.
_e
():
s
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择发送范围"
)])],
1
)])]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
s
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
s
(
"VU/8"
)(
p
,
m
,
!
1
,
function
(
e
){
s
(
"zxy4"
)},
"data-v-719f28c6"
,
null
).
exports
,
g
=
{
name
:
"app-detail"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
tabType
:{
type
:
String
,
default
:
function
(){
return
"1"
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
wxEnterpriseRelatedId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
editPerson
:
localStorage
.
getItem
(
"userInfos"
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
searchInput
:
""
,
tableData
:[],
activeId
:
"1"
,
loading
:
!
1
,
multipleSelection
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
setStoreShow
:
!
1
}},
methods
:{
toSetStore
:
function
(){
this
.
setStoreShow
=!
0
},
closeStore
:
function
(){
this
.
setStoreShow
=!
1
},
submitStore
:
function
(){
this
.
setStoreShow
=!
1
,
this
.
currentPage
=
1
,
this
.
getTableList
()},
toInput
:
Object
(
c
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
delRow
:
function
(
e
,
t
){
var
s
=
this
;
s
.
$confirm
(
"确认要删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
s
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
s
=
this
,
a
=
{
taskId
:
t
.
taskId
,
enterpriseId
:
s
.
activeBrand
};
Object
(
u
.
d
)(
"/haoban-app-tel-task-three-web/task/del-one"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
)
return
d
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
s
.
getTableList
();
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
s
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
postMultDel
()},
postMultDel
:
function
(){
var
e
=
this
,
t
=
{
search
:
e
.
conditionObj
.
searchInput
||
""
,
storeIds
:
e
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
storeId
}).
join
(
","
)
||
""
};
Object
(
u
.
d
)(
"/haoban-app-tel-task-three-web/task/batch-del-store-task-list"
,
t
).
then
(
function
(
t
){
var
s
=
t
.
data
;
if
(
1
==
s
.
errorCode
)
return
d
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getTableList
();
h
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
},
getCustomerSet
:
function
(
e
){
var
t
=
this
,
s
=
{
enterpriseId
:
t
.
brandId
,
wxEnterpriseRelatedId
:
t
.
wxEnterpriseRelatedId
};
Object
(
u
.
d
)(
"/haoban-app-customer-web/customer/find-customer-setting"
,
s
).
then
(
function
(
e
){
var
s
=
e
.
data
;
1
!=
s
.
errorCode
?
h
.
a
.
errorMsg
(
s
):
s
.
result
&&
(
t
.
myCustomData
.
searchFlag
=!!
s
.
result
.
searchFlag
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
this
.
getCustomerSet
(
this
.
brandId
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"12"
),
this
.
getCustomerSet
(
this
.
brandId
)},
components
:{
setVisiable
:
f
}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
s
(
"div"
,{
staticClass
:
"app-detail-pane border-box p-20"
},[
s
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
s
(
"div"
,[
s
(
"el-input"
,{
staticClass
:
"w-369"
,
attrs
:{
placeholder
:
"搜索门店名称或代码"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
s
=
t
,
e
.
toInput
(
s
,
e
.
searchInput
);
var
s
}},
model
:{
value
:
e
.
searchInput
,
callback
:
function
(
t
){
e
.
searchInput
=
t
},
expression
:
"searchInput"
}})],
1
),
e
.
_v
(
" "
),
s
(
"div"
,[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toSetStore
}},[
e
.
_v
(
"新增门店"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量移除"
)])],
1
)]),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"m-t-20"
},[
s
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
ref
:
"multipleTable"
,
staticClass
:
"no-empty-icon-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
s
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"code"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeCode
||
"--"
))]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"门店分组"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
storeGroupName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
s
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
s
){
e
.
delRow
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"移除"
)])]}}])}),
e
.
_v
(
" "
),
s
(
"template"
,{
slot
:
"empty"
},[
s
(
"div"
,[
s
(
"span"
,[
e
.
_v
(
"暂无门店分组,"
)]),
s
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
toSetStore
()}}},[
e
.
_v
(
"去设置"
)])],
1
)])],
2
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
s
(
"div"
,{
staticClass
:
"block common-wrap__page text-right"
},[
s
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
0
==
e
.
tableData
.
length
?
s
(
"div"
,{
staticClass
:
"text-center table-set-line"
},[
s
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"暂无门店分组,"
)]),
s
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
toSetStore
()}}},[
e
.
_v
(
"去设置"
)])],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
e
.
setStoreShow
?
s
(
"set-visiable"
,{
attrs
:{
brandId
:
e
.
brandId
},
on
:{
closeStore
:
e
.
closeStore
,
submitStore
:
e
.
submitStore
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
v
=
s
(
"VU/8"
)(
g
,
b
,
!
1
,
function
(
e
){
s
(
"KXM4"
)},
"data-v-96221038"
,
null
);
t
.
default
=
v
.
exports
},
zxy4
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/1
2.03148f95863f7a200db2
.js
→
dist/static/js/1
1.931f12c564ff8f7e5f81
.js
View file @
ee911eb3
webpackJsonp
([
12
],{
"7/Zw"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"mOmb"
),
n
=
a
(
"Ggl+"
),
i
=
a
(
"Ch4/"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"PI0u"
),
d
=
{
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
coupCardId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
selectCoupCardId
:
this
.
coupCardId
||
""
,
tableData
:[],
currentPage
:
1
,
pageSize
:
6
,
total
:
0
}},
methods
:{
handleClose
:
function
(
e
){
this
.
$emit
(
"closeCard"
)},
toConfirm
:
function
(){
var
e
=
this
,
t
=
{};
e
.
tableData
.
forEach
(
function
(
a
){
a
.
coupCardId
==
e
.
selectCoupCardId
&&
(
t
=
a
)}),
e
.
$emit
(
"returnId"
,
e
.
selectCoupCardId
,
t
)},
toCancel
:
function
(){
this
.
$emit
(
"closeCard"
)},
toInput
:
Object
(
c
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
cardName
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-select-card-page"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
getTableList
()},
coupCardId
:
function
(
e
,
t
){
e
&&
(
this
.
selectCoupCardId
=
e
)}},
mounted
:
function
(){
this
.
selectCoupCardId
=
this
.
coupCardId
,
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"卡券选择"
,
visible
:
e
.
dialogVisible
,
width
:
"994px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"search-div"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入卡券名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchInput
,
callback
:
function
(
t
){
e
.
searchInput
=
t
},
expression
:
"searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
a
(
"span"
,{
staticClass
:
"search-tip p-l-20 font-14 color-909399"
},[
e
.
_v
(
"仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"
+
e
.
_s
(
e
.
total
)
+
"张"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content boder-box m-t-20"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"hide-ellipsis"
,
label
:
""
,
width
:
"50"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-radio"
,{
attrs
:{
disabled
:
1
==
t
.
row
.
selected
,
label
:
t
.
row
.
coupCardId
},
model
:{
value
:
e
.
selectCoupCardId
,
callback
:
function
(
t
){
e
.
selectCoupCardId
=
t
},
expression
:
"selectCoupCardId"
}},[
e
.
_v
(
e
.
_s
(
""
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardName"
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"effectDateString"
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardLimit"
,
label
:
"领取限制"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeMode"
,
label
:
"适用门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
t
.
row
.
storeMode
?
"所有门店"
:
1
==
t
.
row
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"couponStock"
,
label
:
"库存"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"getedQuantity"
,
label
:
"领取次数"
,
"show-overflow-tooltip"
:
""
}})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
" prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer m-b-20"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toConfirm
}},[
e
.
_v
(
"确认"
)])],
1
)])},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"BCMu"
)},
"data-v-79ce0ae1"
,
null
).
exports
,
m
=
a
(
"3E4D"
),
f
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
selectCard
:
p
,
gicSelectGroup
:
n
.
a
,
gicSelectStore
:
o
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
e
.
formData
.
selectList
.
length
?
void
s
():
s
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
e
.
formData
.
totalSendTimes
?
void
s
():
s
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
eachSendTimes
:[{
required
:
!
0
,
message
:
"请输入券发放张数"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
,
addTag
:
!
0
,
loadingBtn
:
!
1
}},
methods
:{
returnStores
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
checkGroupIds
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
coupCardId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
c
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
return
!!
(
"1"
!=
a
.
formData
.
sendRange
&&
"2"
!=
a
.
formData
.
sendRange
||
a
.
formData
.
selectList
.
length
)
&&
(
!
(
"1"
==
a
.
formData
.
sendType
&&!
a
.
formData
.
totalSendTimes
)
&&
(
!
(
"1"
==
a
.
formData
.
receiveType
&&!
a
.
formData
.
totalReceiveTimes
)
&&
(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
}))))},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
formData
.
id
,
coupCardId
:
t
.
formData
.
coupCardId
,
sendRange
:
t
.
formData
.
sendRange
,
selectList
:
1
==
t
.
formData
.
sendRange
?
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeGroupId
}).
join
(
","
):
2
==
t
.
formData
.
sendRange
?
t
.
formData
.
selectList
.
join
(
","
):
""
,
eachSendTimes
:
t
.
formData
.
eachSendTimes
,
sendType
:
t
.
formData
.
sendType
,
totalSendTimes
:
t
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
t
.
brandId
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)(
t
.
$route
.
query
.
coupCardId
&&!
t
.
addTag
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
a
).
then
(
function
(
a
){
var
s
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
s
.
errorCode
&&
(
m
.
a
.
showmsg
(
t
.
$route
.
query
.
coupCardId
?
"编辑卡券成功"
:
"新建卡券成功"
,
"success"
),
e
?(
t
.
addTag
=!
0
,
t
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardList"
)),
i
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toReturn
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
push
(
"/onlineChatSet?activeTab="
+
e
.
$route
.
query
.
activeTab
+
"&appIcon="
+
e
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
coupCardId
:
e
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
detail
?(
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
,
e
.
departmentId
=
e
.
id
,
e
.
storeGroupId
=
e
.
id
,
e
.
storeGroupName
=
e
.
name
,
e
.
departmentName
=
e
.
name
,
2
==
a
.
result
.
detail
.
sendRange
&&
(
e
.
storeId
=
e
.
id
)}),
e
.
selectCoupCard
=
a
.
result
.
gicDetail
,
e
.
formData
=
{
id
:
a
.
result
.
detail
.
id
,
coupCardId
:
a
.
result
.
detail
.
coupCardId
,
sendRange
:
String
(
a
.
result
.
detail
.
sendRange
),
selectList
:
0
!=
a
.
result
.
detail
.
sendRange
?
2
==
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
.
map
(
function
(
e
){
return
e
.
id
}):
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
!
1
):(
e
.
addTag
=!
1
,
m
.
a
.
showmsg
(
"请先保存上一个商户的设置内容"
,
"warning"
),
!
1
);
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
if
(
e
&&
this
.
$route
.
query
.
coupCardId
&&!
this
.
addTag
)
return
this
.
activeBrand
=
e
,
this
.
getCardData
(),
!
1
;
e
&&
(
this
.
addTag
=!
0
,
this
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
this
.
selectCoupCard
=
{})},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
$route
.
query
.
coupCardId
&&
this
.
brandId
&&
(
this
.
addTag
=!
1
,
this
.
getCardData
())}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"选择卡券"
,
prop
:
"coupCardId"
}},[
e
.
formData
.
coupCardId
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCard
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-12 color-909399"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"添加卡券"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
coupCardId
?
a
(
"div"
,{
staticClass
:
"selected-card-body flex"
},[
a
(
"div"
,{
staticClass
:
"selected-card font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selectCoupCard
.
cardName
)
+
" | "
+
e
.
_s
(
e
.
selectCoupCard
.
effectDateString
)
+
" | 限制"
+
e
.
_s
(
e
.
selectCoupCard
.
cardLimit
)
+
"张/人 | 适用门店:"
+
e
.
_s
(
0
==
e
.
selectCoupCard
.
storeMode
?
"所有门店"
:
1
==
e
.
selectCoupCard
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
" | 库存:"
+
e
.
_s
(
e
.
selectCoupCard
.
couponStock
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
showCard
}},[
e
.
_v
(
"重新选择"
)])],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"所有门店"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分分组"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
e
.
brandId
,
width
:
213
,
selectData
:
e
.
formData
.
selectList
},
on
:{
checkGroupIds
:
e
.
checkGroupIds
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分门店"
)]),
e
.
_v
(
" "
),
2
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-store"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnStores
:
e
.
returnStores
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
e
.
formData
.
sendRange
||
e
.
formData
.
selectList
.
length
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择发送范围"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券限制每个会员最大发放次数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放张数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-90"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
0
,
max
:
20
},
model
:{
value
:
e
.
formData
.
eachSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"eachSendTimes"
,
t
)},
expression
:
"formData.eachSendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-20"
},[
e
.
_v
(
"最多20张每人"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券发放总数,不得超过券库存数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放总数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"无限制"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"限制总数"
)]),
1
==
e
.
formData
.
sendType
?
a
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
999999999
},
model
:{
value
:
e
.
formData
.
totalSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"totalSendTimes"
,
t
)},
expression
:
"formData.totalSendTimes"
}}):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
coupCardId
&&!
e
.
addTag
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
coupCardId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
e
.
cardSelectShow
?
a
(
"select-card"
,{
attrs
:{
coupCardId
:
e
.
formData
.
coupCardId
,
brandId
:
e
.
brandId
},
on
:{
closeCard
:
e
.
closeCard
,
returnId
:
e
.
returnId
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
f
,
h
,
!
1
,
function
(
e
){
a
(
"oMAv"
)},
"data-v-6f7f781d"
,
null
);
t
.
default
=
g
.
exports
},
BCMu
:
function
(
e
,
t
){},
HoLU
:
function
(
e
,
t
){},
mOmb
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"P9l9"
),
n
=
a
(
"Ch4/"
),
i
=
a
(
"PI0u"
),
l
=
{
name
:
"gic-select-store"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
searchSelect
:
""
,
storeVisible
:
!
1
,
stores
:[],
storesCopy
:[],
dailyRuleForm
:{
stores
:[]},
pageNum
:
1
,
pageSize
:
200
}},
methods
:{
handleCheckAllChange
:
function
(
e
){
this
.
dailyRuleForm
.
stores
=
e
?
this
.
stores
.
map
(
function
(
e
){
return
e
.
storeId
}):[],
this
.
isIndeterminate
=!
1
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
handleStoresChange
:
function
(
e
){
var
t
=
e
.
length
;
this
.
checkAll
=
t
===
this
.
stores
.
length
,
this
.
isIndeterminate
=
t
>
0
&&
t
<
this
.
stores
.
length
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
toInput
:
Object
(
i
.
a
)(
function
(
e
,
t
){
""
!=
this
.
searchSelect
&&
(
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
())},
500
),
changeVisible
:
function
(){},
checkStore
:
function
(
e
){
var
t
=
this
;
if
(
e
.
select
){
e
.
select
=!
1
;
var
a
=
t
.
dailyRuleForm
.
stores
.
indexOf
(
e
.
storeId
);
t
.
dailyRuleForm
.
stores
.
splice
(
a
,
1
)}
else
e
.
select
=!
0
,
t
.
dailyRuleForm
.
stores
.
push
(
e
.
storeId
);
t
.
storesCopy
.
forEach
(
function
(
e
){
t
.
dailyRuleForm
.
stores
.
includes
(
e
.
storeId
)
&&
(
e
.
select
=!
0
)})},
clearSearch
:
function
(){
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
()},
getStoreData
:
function
(){
var
e
=
this
,
t
=
{
searchName
:
e
.
searchSelect
,
gicEnterpriseId
:
e
.
brandId
,
pageNum
:
e
.
pageNum
,
pageSize
:
e
.
pageSize
};
Object
(
o
.
a
)(
"/haoban-app-customer-web/cardCoupon/get-store-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
select
=!
1
,
e
.
selectData
.
includes
(
t
.
storeId
)
&&
(
t
.
select
=!
0
)}),
1
==
e
.
pageNum
?(
e
.
stores
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[],
e
.
storesCopy
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[]):
a
.
result
.
result
.
forEach
(
function
(
t
){
e
.
stores
.
push
(
t
),
e
.
storesCopy
.
push
(
t
)}),
void
(
e
.
pageNum
*
e
.
pageSize
<
a
.
result
.
totalCount
&&
(
e
.
pageNum
++
,
e
.
$nextTick
(
function
(){
e
.
getStoreData
()})));
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
checkAll
=!
1
,
this
.
isIndeterminate
=!
1
,
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
searchSelect
=
""
,
this
.
getStoreData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
e
)):
this
.
dailyRuleForm
.
stores
=
[]}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
getStoreData
()),
this
.
selectData
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
this
.
selectData
)):
this
.
dailyRuleForm
.
stores
=
[]}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"select-search"
},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请输入门店名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchSelect
);
var
a
}},
model
:{
value
:
e
.
searchSelect
,
callback
:
function
(
t
){
e
.
searchSelect
=
t
},
expression
:
"searchSelect"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"checkbox border-box"
,
staticStyle
:{
padding
:
"15px 20px"
}},[
a
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
stores
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"stores"
,
t
)},
expression
:
"dailyRuleForm.stores"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
stores
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
storeId
,
class
:[
"el-select-dropdown__item"
,
t
.
select
?
"selected hover"
:
""
]},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
storeId
}},[
e
.
_v
(
e
.
_s
(
t
.
storeName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
stores
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center"
},[
a
(
"span"
,[
e
.
_v
(
"暂无数据"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"show-select-num cursor-pointer w-350"
,
attrs
:{
slot
:
"reference"
},
on
:{
click
:
e
.
changeVisible
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 已经选择"
+
e
.
_s
(
e
.
dailyRuleForm
.
stores
.
length
)
+
"家门店
\
n "
),
a
(
"span"
,{
staticClass
:
"el-input__suffix"
},[
a
(
"span"
,{
staticClass
:
"el-input__suffix-inner"
},[
a
(
"i"
,{
class
:[
"el-select__caret el-input__icon el-icon-arrow-up"
,
e
.
storeVisible
?
"is-reverse"
:
""
]})])])])])},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"HoLU"
)},
"data-v-67522a34"
,
null
);
t
.
a
=
d
.
exports
},
oMAv
:
function
(
e
,
t
){}});
\ No newline at end of file
webpackJsonp
([
11
],{
"7/Zw"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"mOmb"
),
n
=
a
(
"Ggl+"
),
i
=
a
(
"Ch4/"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"PI0u"
),
d
=
{
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
coupCardId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
dialogVisible
:
!
0
,
selectCoupCardId
:
this
.
coupCardId
||
""
,
tableData
:[],
currentPage
:
1
,
pageSize
:
6
,
total
:
0
}},
methods
:{
handleClose
:
function
(
e
){
this
.
$emit
(
"closeCard"
)},
toConfirm
:
function
(){
var
e
=
this
,
t
=
{};
e
.
tableData
.
forEach
(
function
(
a
){
a
.
coupCardId
==
e
.
selectCoupCardId
&&
(
t
=
a
)}),
e
.
$emit
(
"returnId"
,
e
.
selectCoupCardId
,
t
)},
toCancel
:
function
(){
this
.
$emit
(
"closeCard"
)},
toInput
:
Object
(
c
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
200
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
cardName
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-select-card-page"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
getTableList
()},
coupCardId
:
function
(
e
,
t
){
e
&&
(
this
.
selectCoupCardId
=
e
)}},
mounted
:
function
(){
this
.
selectCoupCardId
=
this
.
coupCardId
,
this
.
brandId
&&
this
.
getTableList
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"卡券选择"
,
visible
:
e
.
dialogVisible
,
width
:
"994px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"search-div"
},[
a
(
"el-input"
,{
staticClass
:
"w-264"
,
staticStyle
:{
width
:
"264px"
},
attrs
:{
placeholder
:
"请输入卡券名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchInput
,
callback
:
function
(
t
){
e
.
searchInput
=
t
},
expression
:
"searchInput"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})]),
a
(
"span"
,{
staticClass
:
"search-tip p-l-20 font-14 color-909399"
},[
e
.
_v
(
"仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"
+
e
.
_s
(
e
.
total
)
+
"张"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chat-log-content boder-box m-t-20"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},[
a
(
"el-table-column"
,{
attrs
:{
"class-name"
:
"hide-ellipsis"
,
label
:
""
,
width
:
"50"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-radio"
,{
attrs
:{
disabled
:
1
==
t
.
row
.
selected
,
label
:
t
.
row
.
coupCardId
},
model
:{
value
:
e
.
selectCoupCardId
,
callback
:
function
(
t
){
e
.
selectCoupCardId
=
t
},
expression
:
"selectCoupCardId"
}},[
e
.
_v
(
e
.
_s
(
""
))])]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardName"
,
label
:
"卡券名称"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"备注名"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
subName
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"effectDateString"
,
label
:
"有效期"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"cardLimit"
,
label
:
"领取限制"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"storeMode"
,
label
:
"适用门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
0
==
t
.
row
.
storeMode
?
"所有门店"
:
1
==
t
.
row
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"couponStock"
,
label
:
"库存"
,
"show-overflow-tooltip"
:
""
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"getedQuantity"
,
label
:
"领取次数"
,
"show-overflow-tooltip"
:
""
}})],
1
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
" prev, pager, next"
,
total
:
e
.
total
},
on
:{
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer m-b-20"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toConfirm
}},[
e
.
_v
(
"确认"
)])],
1
)])},
staticRenderFns
:[]};
var
p
=
a
(
"VU/8"
)(
d
,
u
,
!
1
,
function
(
e
){
a
(
"BCMu"
)},
"data-v-79ce0ae1"
,
null
).
exports
,
m
=
a
(
"3E4D"
),
f
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
selectCard
:
p
,
gicSelectGroup
:
n
.
a
,
gicSelectStore
:
o
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
formData
:{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
rules
:{
coupCardId
:[{
required
:
!
0
,
message
:
"请选择卡券"
,
trigger
:
"change"
}],
sendRange
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择发送范围"
)):
"1"
!=
a
&&
"2"
!=
a
||
e
.
formData
.
selectList
.
length
?
void
s
():
s
(
new
Error
(
"请选择发送范围"
))},
trigger
:
"change"
}],
sendType
:[{
validator
:
function
(
t
,
a
,
s
){
return
""
==
a
?
s
(
new
Error
(
"请选择券发放总数"
)):
"1"
!=
a
||
e
.
formData
.
totalSendTimes
?
void
s
():
s
(
new
Error
(
"请选择券发放总数"
))},
trigger
:
"change"
}],
eachSendTimes
:[{
required
:
!
0
,
message
:
"请输入券发放张数"
,
trigger
:
"blur"
}]},
cardSelectShow
:
!
1
,
addTag
:
!
0
,
loadingBtn
:
!
1
}},
methods
:{
returnStores
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
checkGroupIds
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
r
()(
e
))},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
coupCardId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
c
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
return
!!
(
"1"
!=
a
.
formData
.
sendRange
&&
"2"
!=
a
.
formData
.
sendRange
||
a
.
formData
.
selectList
.
length
)
&&
(
!
(
"1"
==
a
.
formData
.
sendType
&&!
a
.
formData
.
totalSendTimes
)
&&
(
!
(
"1"
==
a
.
formData
.
receiveType
&&!
a
.
formData
.
totalReceiveTimes
)
&&
(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
}))))},
300
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
id
:
t
.
formData
.
id
,
coupCardId
:
t
.
formData
.
coupCardId
,
sendRange
:
t
.
formData
.
sendRange
,
selectList
:
1
==
t
.
formData
.
sendRange
?
t
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeGroupId
}).
join
(
","
):
2
==
t
.
formData
.
sendRange
?
t
.
formData
.
selectList
.
join
(
","
):
""
,
eachSendTimes
:
t
.
formData
.
eachSendTimes
,
sendType
:
t
.
formData
.
sendType
,
totalSendTimes
:
t
.
formData
.
totalSendTimes
,
gicEnterpriseId
:
t
.
brandId
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)(
t
.
$route
.
query
.
coupCardId
&&!
t
.
addTag
?
"/haoban-app-customer-web/cardCoupon/edit-card-coup"
:
"/haoban-app-customer-web/cardCoupon/add-card-coup"
,
a
).
then
(
function
(
a
){
var
s
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
s
.
errorCode
&&
(
m
.
a
.
showmsg
(
t
.
$route
.
query
.
coupCardId
?
"编辑卡券成功"
:
"新建卡券成功"
,
"success"
),
e
?(
t
.
addTag
=!
0
,
t
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardList"
)),
i
.
a
.
errorMsg
(
s
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toReturn
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
push
(
"/onlineChatSet?activeTab="
+
e
.
$route
.
query
.
activeTab
+
"&appIcon="
+
e
.
$route
.
query
.
appIcon
)}).
catch
(
function
(){})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
coupCardId
:
e
.
$route
.
query
.
coupCardId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/cardCoupon/find-card-coup-detail"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
detail
?(
a
.
result
.
list
&&
a
.
result
.
list
.
forEach
(
function
(
e
){
e
.
label
=
e
.
name
,
e
.
departmentId
=
e
.
id
,
e
.
storeGroupId
=
e
.
id
,
e
.
storeGroupName
=
e
.
name
,
e
.
departmentName
=
e
.
name
,
2
==
a
.
result
.
detail
.
sendRange
&&
(
e
.
storeId
=
e
.
id
)}),
e
.
selectCoupCard
=
a
.
result
.
gicDetail
,
e
.
formData
=
{
id
:
a
.
result
.
detail
.
id
,
coupCardId
:
a
.
result
.
detail
.
coupCardId
,
sendRange
:
String
(
a
.
result
.
detail
.
sendRange
),
selectList
:
0
!=
a
.
result
.
detail
.
sendRange
?
2
==
a
.
result
.
detail
.
sendRange
?
a
.
result
.
list
.
map
(
function
(
e
){
return
e
.
id
}):
a
.
result
.
list
:[],
eachSendTimes
:
a
.
result
.
detail
.
eachSendTimes
,
sendType
:
String
(
a
.
result
.
detail
.
sendType
),
totalSendTimes
:
a
.
result
.
detail
.
totalSendTimes
},
!
1
):(
e
.
addTag
=!
1
,
m
.
a
.
showmsg
(
"请先保存上一个商户的设置内容"
,
"warning"
),
!
1
);
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
if
(
e
&&
this
.
$route
.
query
.
coupCardId
&&!
this
.
addTag
)
return
this
.
activeBrand
=
e
,
this
.
getCardData
(),
!
1
;
e
&&
(
this
.
addTag
=!
0
,
this
.
formData
=
{
id
:
""
,
coupCardId
:
""
,
sendRange
:
"0"
,
selectList
:[],
eachSendTimes
:
3
,
sendType
:
"0"
,
totalSendTimes
:
0
},
this
.
selectCoupCard
=
{})},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"1"
),
this
.
activeBrand
=
this
.
brandId
,
this
.
$route
.
query
.
coupCardId
&&
this
.
brandId
&&
(
this
.
addTag
=!
1
,
this
.
getCardData
())}},
h
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"选择卡券"
,
prop
:
"coupCardId"
}},[
e
.
formData
.
coupCardId
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCard
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-12 color-909399"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
e
.
_v
(
"添加卡券"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
coupCardId
?
a
(
"div"
,{
staticClass
:
"selected-card-body flex"
},[
a
(
"div"
,{
staticClass
:
"selected-card font-14 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selectCoupCard
.
cardName
)
+
" | "
+
e
.
_s
(
e
.
selectCoupCard
.
effectDateString
)
+
" | 限制"
+
e
.
_s
(
e
.
selectCoupCard
.
cardLimit
)
+
"张/人 | 适用门店:"
+
e
.
_s
(
0
==
e
.
selectCoupCard
.
storeMode
?
"所有门店"
:
1
==
e
.
selectCoupCard
.
storeMode
?
"部分分组"
:
"部分门店"
)
+
" | 库存:"
+
e
.
_s
(
e
.
selectCoupCard
.
couponStock
))]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
staticClass
:
"m-l-10"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
showCard
}},[
e
.
_v
(
"重新选择"
)])],
1
):
e
.
_e
()]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"所有门店"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分分组"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
e
.
brandId
,
width
:
213
,
selectData
:
e
.
formData
.
selectList
},
on
:{
checkGroupIds
:
e
.
checkGroupIds
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分门店"
)]),
e
.
_v
(
" "
),
2
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-store"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnStores
:
e
.
returnStores
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
e
.
formData
.
sendRange
||
e
.
formData
.
selectList
.
length
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择发送范围"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券限制每个会员最大发放次数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放张数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-input-number"
,{
staticClass
:
"w-90"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
0
,
max
:
20
},
model
:{
value
:
e
.
formData
.
eachSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"eachSendTimes"
,
t
)},
expression
:
"formData.eachSendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-20"
},[
e
.
_v
(
"最多20张每人"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券发放总数,不得超过券库存数"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"券发放总数"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"无限制"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendType"
,
t
)},
expression
:
"formData.sendType"
}},[
e
.
_v
(
"限制总数"
)]),
1
==
e
.
formData
.
sendType
?
a
(
"el-input-number"
,{
staticClass
:
"m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
999999999
},
model
:{
value
:
e
.
formData
.
totalSendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"totalSendTimes"
,
t
)},
expression
:
"formData.totalSendTimes"
}}):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
coupCardId
&&!
e
.
addTag
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
coupCardId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
e
.
cardSelectShow
?
a
(
"select-card"
,{
attrs
:{
coupCardId
:
e
.
formData
.
coupCardId
,
brandId
:
e
.
brandId
},
on
:{
closeCard
:
e
.
closeCard
,
returnId
:
e
.
returnId
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
f
,
h
,
!
1
,
function
(
e
){
a
(
"oMAv"
)},
"data-v-6f7f781d"
,
null
);
t
.
default
=
g
.
exports
},
BCMu
:
function
(
e
,
t
){},
HoLU
:
function
(
e
,
t
){},
mOmb
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"P9l9"
),
n
=
a
(
"Ch4/"
),
i
=
a
(
"PI0u"
),
l
=
{
name
:
"gic-select-store"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
searchSelect
:
""
,
storeVisible
:
!
1
,
stores
:[],
storesCopy
:[],
dailyRuleForm
:{
stores
:[]},
pageNum
:
1
,
pageSize
:
200
}},
methods
:{
handleCheckAllChange
:
function
(
e
){
this
.
dailyRuleForm
.
stores
=
e
?
this
.
stores
.
map
(
function
(
e
){
return
e
.
storeId
}):[],
this
.
isIndeterminate
=!
1
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
handleStoresChange
:
function
(
e
){
var
t
=
e
.
length
;
this
.
checkAll
=
t
===
this
.
stores
.
length
,
this
.
isIndeterminate
=
t
>
0
&&
t
<
this
.
stores
.
length
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
toInput
:
Object
(
i
.
a
)(
function
(
e
,
t
){
""
!=
this
.
searchSelect
&&
(
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
())},
500
),
changeVisible
:
function
(){},
checkStore
:
function
(
e
){
var
t
=
this
;
if
(
e
.
select
){
e
.
select
=!
1
;
var
a
=
t
.
dailyRuleForm
.
stores
.
indexOf
(
e
.
storeId
);
t
.
dailyRuleForm
.
stores
.
splice
(
a
,
1
)}
else
e
.
select
=!
0
,
t
.
dailyRuleForm
.
stores
.
push
(
e
.
storeId
);
t
.
storesCopy
.
forEach
(
function
(
e
){
t
.
dailyRuleForm
.
stores
.
includes
(
e
.
storeId
)
&&
(
e
.
select
=!
0
)})},
clearSearch
:
function
(){
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
()},
getStoreData
:
function
(){
var
e
=
this
,
t
=
{
searchName
:
e
.
searchSelect
,
gicEnterpriseId
:
e
.
brandId
,
pageNum
:
e
.
pageNum
,
pageSize
:
e
.
pageSize
};
Object
(
o
.
a
)(
"/haoban-app-customer-web/cardCoupon/get-store-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
select
=!
1
,
e
.
selectData
.
includes
(
t
.
storeId
)
&&
(
t
.
select
=!
0
)}),
1
==
e
.
pageNum
?(
e
.
stores
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[],
e
.
storesCopy
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[]):
a
.
result
.
result
.
forEach
(
function
(
t
){
e
.
stores
.
push
(
t
),
e
.
storesCopy
.
push
(
t
)}),
void
(
e
.
pageNum
*
e
.
pageSize
<
a
.
result
.
totalCount
&&
(
e
.
pageNum
++
,
e
.
$nextTick
(
function
(){
e
.
getStoreData
()})));
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
checkAll
=!
1
,
this
.
isIndeterminate
=!
1
,
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
searchSelect
=
""
,
this
.
getStoreData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
e
)):
this
.
dailyRuleForm
.
stores
=
[]}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
getStoreData
()),
this
.
selectData
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
this
.
selectData
)):
this
.
dailyRuleForm
.
stores
=
[]}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"select-search"
},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请输入门店名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchSelect
);
var
a
}},
model
:{
value
:
e
.
searchSelect
,
callback
:
function
(
t
){
e
.
searchSelect
=
t
},
expression
:
"searchSelect"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"checkbox border-box"
,
staticStyle
:{
padding
:
"15px 20px"
}},[
a
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
stores
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"stores"
,
t
)},
expression
:
"dailyRuleForm.stores"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
stores
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
storeId
,
class
:[
"el-select-dropdown__item"
,
t
.
select
?
"selected hover"
:
""
]},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
storeId
}},[
e
.
_v
(
e
.
_s
(
t
.
storeName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
stores
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center"
},[
a
(
"span"
,[
e
.
_v
(
"暂无数据"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"show-select-num cursor-pointer w-350"
,
attrs
:{
slot
:
"reference"
},
on
:{
click
:
e
.
changeVisible
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 已经选择"
+
e
.
_s
(
e
.
dailyRuleForm
.
stores
.
length
)
+
"家门店
\
n "
),
a
(
"span"
,{
staticClass
:
"el-input__suffix"
},[
a
(
"span"
,{
staticClass
:
"el-input__suffix-inner"
},[
a
(
"i"
,{
class
:[
"el-select__caret el-input__icon el-icon-arrow-up"
,
e
.
storeVisible
?
"is-reverse"
:
""
]})])])])])},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"HoLU"
)},
"data-v-67522a34"
,
null
);
t
.
a
=
d
.
exports
},
oMAv
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/1
3.8676feea9b0f73967926
.js
→
dist/static/js/1
2.bd4b4eb96215d3ff63eb
.js
View file @
ee911eb3
webpackJsonp
([
13
],{
JkCr
:
function
(
t
,
e
){},
OTW0
:
function
(
t
,
e
){},
VRIg
:
function
(
t
,
e
){},
feRM
:
function
(
t
,
e
,
a
){
"use strict"
;
var
s
=
a
(
"//Fk"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Ch4/"
),
n
=
{
name
:
"single-upload"
,
props
:{
videoSrc
:{
type
:
String
,
default
:
""
},
imgSrc
:{
type
:
String
,
default
:
""
},
field
:{
type
:
String
,
default
:
""
},
uploadLimit
:{
type
:[
Number
,
String
],
default
:
2
},
uploadType
:{
type
:[
Number
,
String
],
default
:
1
}},
data
:
function
(){
return
{
projectName
:
""
,
imgShowFlag
:
!
1
,
imgUrl
:
""
,
videoFlag
:
!
1
,
fileType
:
1
==
this
.
uploadType
||
2
==
this
.
uploadType
?
"jpg"
:
"mp4"
}},
beforeMount
:
function
(){
var
t
=
window
.
location
.
origin
;
-
1
!=
t
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
t
},
methods
:{
uploadUrl
:
function
(){
var
t
=
window
.
location
.
origin
,
e
=
void
0
;
return
e
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
t
,
this
.
upUrl
=
e
+
"/haoban-manage3-web/upload-file?fileType="
+
this
.
fileType
,
this
.
upUrl
},
handleAvatarSuccess
:
function
(
t
,
e
,
a
){
1
==
t
.
errorCode
?(
this
.
videoFlag
=!
1
,
3
==
this
.
uploadType
?
this
.
$emit
(
"update:videoSrc"
,
t
.
result
.
url
):
this
.
$emit
(
"update:imgSrc"
,
t
.
result
.
url
)):
o
.
a
.
errorMsg
(
t
)},
beforeAvatarUpload
:
function
(
t
){
console
.
log
(
t
),
this
.
fileType
=
"image/jpeg"
===
t
.
type
?
"jpeg"
:
"image/jpg"
===
t
.
type
?
"jpg"
:
"image/png"
===
t
.
type
?
"png"
:
"video/mp4"
==
t
.
type
?
"mp4"
:
""
;
var
e
=
"image/jpeg"
===
t
.
type
||
"image/jpg"
===
t
.
type
||
"image/png"
===
t
.
type
,
a
=
"video/mp4"
==
t
.
type
,
s
=
t
.
size
/
1024
/
1024
<
this
.
uploadLimit
;
return
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
e
||
this
.
$message
.
error
(
"上传图片支持png、jpg、jpeg格式!"
),
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传图片大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
!=
this
.
uploadType
||
a
||
this
.
$message
.
error
(
"上传视频支持MP4格式!"
),
3
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传视频大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
==
this
.
uploadType
?
a
&&
s
:
e
&&
s
&&
new
r
.
a
(
function
(
e
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
t
){
var
a
=
new
Image
;
a
.
onload
=
function
(){
this
.
width
,
this
.
height
;
e
()},
a
.
src
=
t
.
target
.
result
},
s
.
readAsDataURL
(
t
)})},
showImage
:
function
(
t
){
if
(
!
t
||
""
==
t
)
return
!
1
;
this
.
imgShowFlag
=!
0
,
this
.
imgUrl
=
t
},
hideImage
:
function
(
t
){
this
.
imgShowFlag
=
t
}}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"single-upload-wrap"
},[
a
(
"el-upload"
,{
staticClass
:
"avatar-uploader"
,
attrs
:{
action
:
t
.
uploadUrl
(),
"show-file-list"
:
!
1
,
"on-success"
:
t
.
handleAvatarSuccess
,
"before-upload"
:
t
.
beforeAvatarUpload
}},[
t
.
imgSrc
?
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
imgSrc
},
on
:{
mouseover
:
function
(
e
){
t
.
showImage
(
t
.
imgSrc
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
""
!=
t
.
videoSrc
&&
0
==
t
.
videoFlag
?
a
(
"video"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
videoSrc
}},[
t
.
_v
(
"您的浏览器不支持视频播放"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
imgSrc
||
t
.
videoSrc
?
t
.
_e
():
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-plus avatar-uploader-icon"
}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-606266"
},[
t
.
_v
(
t
.
_s
(
1
==
t
.
uploadType
||
2
==
t
.
uploadType
?
"上传图片"
:
"上传视频"
))])])]),
t
.
_v
(
" "
),
1
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效
\
n "
)]):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
t
){
a
(
"VRIg"
)},
"data-v-310c069a"
,
null
);
e
.
a
=
c
.
exports
},
x5Fx
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"c9no"
),
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"fZjL"
),
i
=
a
.
n
(
n
),
c
=
a
(
"feRM"
),
l
=
a
(
"l46T"
),
p
=
a
(
"Kkt8"
),
d
=
a
(
"PI0u"
),
u
=
a
(
"P9l9"
),
m
=
a
(
"3E4D"
),
f
=
a
(
"Ch4/"
),
h
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
l
.
a
,
limitTextarea
:
p
.
a
,
singleUpload
:
c
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
secretName
:
""
,
secretVal
:
""
,
enterpriseId
:
""
,
secretId
:
""
},
rules
:{
secretName
:[{
required
:
!
0
,
message
:
"请输入小程序名称"
,
trigger
:
"blur"
}],
secretVal
:[{
required
:
!
0
,
message
:
"请输入secret"
,
trigger
:
"blur"
}],
enterpriseId
:[{
required
:
!
0
,
message
:
"请选择关联商户"
,
trigger
:
"change"
}]},
brandOptions
:[]}},
methods
:{
getBrandData
:
function
(){
var
t
=
this
;
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
t
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toCancel
:
function
(){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
t
){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
secretId
:
t
.
ruleForm
.
secretId
,
secretName
:
t
.
ruleForm
.
secretName
,
enterpriseId
:
t
.
ruleForm
.
enterpriseId
,
memberSecret
:
t
.
ruleForm
.
secretVal
};
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-member-secret-set"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitText"
)):
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
t
){
i
()(
t
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
o
()(
t
)))}},
mounted
:
function
(){
this
.
getBrandData
(),
i
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
o
()(
this
.
editRow
)))}},
b
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
t
.
editRow
.
materialId
?
"编辑"
:
"新建"
,
visible
:
t
.
dialogVisible
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
ruleForm
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"小程序名称"
,
prop
:
"secretName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretName
,
holder
:
"请输入小程序名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"secret"
,
prop
:
"secretVal"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretVal
,
holder
:
"请输入secret"
,
getByType
:
"word"
,
maxLength
:
80
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretVal"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"关联商户"
,
prop
:
"enterpriseId"
}},[
a
(
"el-select"
,{
staticClass
:
"w-402"
,
attrs
:{
placeholder
:
"全部品牌"
},
on
:{
change
:
t
.
getTableList
},
model
:{
value
:
t
.
ruleForm
.
enterpriseId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"enterpriseId"
,
e
)},
expression
:
"ruleForm.enterpriseId"
}},
t
.
_l
(
t
.
brandOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
enterpriseId
,
attrs
:{
label
:
t
.
enterpriseName
,
value
:
t
.
enterpriseId
}})}))],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
h
,
b
,
!
1
,
function
(
t
){
a
(
"JkCr"
)},
"data-v-b2c98ae8"
,
null
).
exports
,
v
=
{
props
:{},
data
:
function
(){
return
{
checkShow
:
!
0
,
tipText
:
"请在企业密钥维护中输入对应的secret"
,
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
companyObj
:{
smallVersion
:
""
,
corpName
:
""
,
corpid
:
""
,
contactFlag
:
!
1
,
verifiedEndTime
:
""
,
corpIndustry
:
""
,
corpSubIndustry
:
""
,
corpUserMax
:
""
,
location
:
""
},
wxObj
:{
secretType
:
1
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
contactObj
:{
secretType
:
2
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
haobanObj
:{
secretType
:
3
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
showWxError
:
!
1
,
showContactError
:
!
1
,
showHaobanError
:
!
1
,
tableData
:[],
addShow
:
!
1
,
editRow
:{}}},
computed
:{},
methods
:{
addSecret
:
function
(){
this
.
addShow
=!
0
,
this
.
editRow
=
{}},
toEdit
:
function
(
t
,
e
){
this
.
addShow
=!
0
,
this
.
editRow
=
e
},
closeText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{}},
submitText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{},
this
.
getSecretData
()},
toDel
:
function
(
t
,
e
){
var
a
=
this
;
a
.
$confirm
(
"确定删除当前小程序信息?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
t
,
e
)}).
catch
(
function
(){})},
postDel
:
function
(
t
,
e
){
var
a
=
this
,
s
=
{
secretId
:
e
.
secretId
};
Object
(
u
.
d
)(
"/haoban-manage3-web/member-secret-del"
,
s
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getSecretData
();
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
saveSecret
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
{};
return
1
==
t
&&
(
e
.
wxSecretKey
=
String
(
this
.
wxObj
.
secretVal
).
trim
(),
this
.
showWxError
=!
this
.
wxObj
.
secretVal
),
2
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
contactObj
.
secretVal
).
trim
()),(
2
!=
t
||
""
!=
e
.
contactSecret
)
&&
(
3
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
haobanObj
.
secretVal
).
trim
(),
this
.
showHaobanError
=!
this
.
haobanObj
.
secretVal
),(
1
!=
t
||!
this
.
showWxError
)
&&
((
3
!=
t
||!
this
.
showHaobanError
)
&&
void
this
.
postSaveSecret
(
t
,
e
)))},
300
),
postSaveSecret
:
function
(
t
,
e
){
var
a
=
this
,
s
=
1
==
t
?
"/wx-enterprise-wx-secret-set"
:
2
==
t
?
"wx-enterprise-contact-secret-set"
:
"wx-enterprise-haoban-secret-set"
;
Object
(
u
.
d
)(
"/haoban-manage3-web/"
+
s
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
a
.
getSecretData
(),
!
1
;
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
refeshData
:
function
(){
this
.
refreshData
()},
refreshData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
m
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getSecretData
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/secret-list"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
[],
a
.
result
&&
a
.
result
.
length
&&
a
.
result
.
forEach
(
function
(
e
){
1
==
e
.
secretType
&&
(
t
.
wxObj
=
e
),
2
==
e
.
secretType
&&
(
t
.
contactObj
=
e
),
3
==
e
.
secretType
&&
(
t
.
haobanObj
=
e
),
4
==
e
.
secretType
&&
t
.
tableData
.
push
(
e
)}),
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-detail"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTipData
:
function
(){
var
t
=
this
;
Object
(
u
.
a
)(
"/haoban-manage3-web/is-wx-enterprise-secret-set"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
t
.
checkShow
=
a
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
(),
this
.
getSecretData
(),
this
.
getTipData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
setTip
:
s
.
a
,
secretSet
:
g
}},
_
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
a
(
"div"
,{
staticClass
:
"company-set-content border-box"
},[
a
(
"div"
,{
staticClass
:
"company-title m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"line-h-32"
},[
a
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
t
.
_v
(
"企业微信基本信息"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
refeshData
}},[
t
.
_v
(
"同步刷新 "
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
checkShow
?
t
.
_e
():
a
(
"set-tip"
,{
attrs
:{
tipText
:
t
.
tipText
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"105px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业名称"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-r-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpName
))]),
t
.
_v
(
" "
),
a
(
"el-tag"
,[
t
.
_v
(
" "
+
t
.
_s
(
1
==
t
.
companyObj
.
contactFlag
?
"已认证"
:
"未认证"
))]),
1
==
t
.
companyObj
.
contactFlag
?
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
t
.
_v
(
"认证到期 "
+
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
t
.
companyObj
.
verifiedEndTime
)))]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业ID"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpid
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"行业类型"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpIndustry
)
+
" / "
+
t
.
_s
(
t
.
companyObj
.
corpSubIndustry
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人员规模"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpScale
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"地址"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
location
))])])],
1
)],
1
),
t
.
_v
(
" "
),
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body secret-body"
},[
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"客户联系secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
t
.
wxObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
wxObj
,
"secretVal"
,
e
)},
expression
:
"wxObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"1"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
wxObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
wxObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
wxObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
wxObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showWxError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写客户联系 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
placement
:
"top-start"
}},[
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
t
.
_v
(
"企业微信中通讯录同步若更新secret,请复制后更新至此处。"
),
a
(
"br"
),
t
.
_v
(
"因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"
),
a
(
"br"
),
t
.
_v
(
"若发生相关变更,与企业微信无关,特此告知!"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"通讯录secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"非必填"
},
model
:{
value
:
t
.
contactObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
contactObj
,
"secretVal"
,
e
)},
expression
:
"contactObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"2"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
contactObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
contactObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
contactObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
contactObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"用于获取登录小程序用户的手机号/姓名/部门信息"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"好办助手secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
placeholder
:
"必填"
},
model
:{
value
:
t
.
haobanObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
haobanObj
,
"secretVal"
,
e
)},
expression
:
"haobanObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"3"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
haobanObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
haobanObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
haobanObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
haobanObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showHaobanError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写好办助手 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"secret-cell "
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"会员小程序secret:"
)])]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"p-l-5 font-14 color-303133 font-w-500"
},[
t
.
_v
(
"会员小程序信息"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-cell m-t-10 p-l-137"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"no-empty-icon-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"小程序名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"secret"
,
width
:
"506"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretVal
||
"-- "
)
+
" "
)]),
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
row
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"关联商户"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
enterpriseName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"最近编辑时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
updateTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
updateTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toEdit
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toDel
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
tableData
.
length
<
10
?
a
(
"div"
,{
staticClass
:
"text-center add-cell cursor-pointer"
,
on
:{
click
:
t
.
addSecret
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-14 color-2f54eb add-cell-txt"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-2f54eb p-l-5 add-cell-txt"
},[
t
.
_v
(
"新建"
)]),
a
(
"span"
,{
staticClass
:
"font-12 color-c0c4cc p-l-20"
},[
t
.
_v
(
"最多添加10个"
)])]):
t
.
_e
()],
1
)],
1
)])]),
t
.
_v
(
" "
),
t
.
addShow
?
a
(
"secret-set"
,{
attrs
:{
editRow
:
t
.
editRow
},
on
:{
closeText
:
t
.
closeText
,
submitText
:
t
.
submitText
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"company-title m-b-20 m-t-30"
},[
e
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
this
.
_v
(
"客户密钥维护"
)])])}]};
var
w
=
a
(
"VU/8"
)(
v
,
_
,
!
1
,
function
(
t
){
a
(
"OTW0"
)},
"data-v-c5a7619e"
,
null
);
e
.
default
=
w
.
exports
}});
\ No newline at end of file
webpackJsonp
([
12
],{
JkCr
:
function
(
t
,
e
){},
OTW0
:
function
(
t
,
e
){},
VRIg
:
function
(
t
,
e
){},
feRM
:
function
(
t
,
e
,
a
){
"use strict"
;
var
s
=
a
(
"//Fk"
),
r
=
a
.
n
(
s
),
o
=
a
(
"Ch4/"
),
n
=
{
name
:
"single-upload"
,
props
:{
videoSrc
:{
type
:
String
,
default
:
""
},
imgSrc
:{
type
:
String
,
default
:
""
},
field
:{
type
:
String
,
default
:
""
},
uploadLimit
:{
type
:[
Number
,
String
],
default
:
2
},
uploadType
:{
type
:[
Number
,
String
],
default
:
1
}},
data
:
function
(){
return
{
projectName
:
""
,
imgShowFlag
:
!
1
,
imgUrl
:
""
,
videoFlag
:
!
1
,
fileType
:
1
==
this
.
uploadType
||
2
==
this
.
uploadType
?
"jpg"
:
"mp4"
}},
beforeMount
:
function
(){
var
t
=
window
.
location
.
origin
;
-
1
!=
t
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
t
},
methods
:{
uploadUrl
:
function
(){
var
t
=
window
.
location
.
origin
,
e
=
void
0
;
return
e
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
t
,
this
.
upUrl
=
e
+
"/haoban-manage3-web/upload-file?fileType="
+
this
.
fileType
,
this
.
upUrl
},
handleAvatarSuccess
:
function
(
t
,
e
,
a
){
1
==
t
.
errorCode
?(
this
.
videoFlag
=!
1
,
3
==
this
.
uploadType
?
this
.
$emit
(
"update:videoSrc"
,
t
.
result
.
url
):
this
.
$emit
(
"update:imgSrc"
,
t
.
result
.
url
)):
o
.
a
.
errorMsg
(
t
)},
beforeAvatarUpload
:
function
(
t
){
console
.
log
(
t
),
this
.
fileType
=
"image/jpeg"
===
t
.
type
?
"jpeg"
:
"image/jpg"
===
t
.
type
?
"jpg"
:
"image/png"
===
t
.
type
?
"png"
:
"video/mp4"
==
t
.
type
?
"mp4"
:
""
;
var
e
=
"image/jpeg"
===
t
.
type
||
"image/jpg"
===
t
.
type
||
"image/png"
===
t
.
type
,
a
=
"video/mp4"
==
t
.
type
,
s
=
t
.
size
/
1024
/
1024
<
this
.
uploadLimit
;
return
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
e
||
this
.
$message
.
error
(
"上传图片支持png、jpg、jpeg格式!"
),
1
!=
this
.
uploadType
&&
2
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传图片大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
!=
this
.
uploadType
||
a
||
this
.
$message
.
error
(
"上传视频支持MP4格式!"
),
3
!=
this
.
uploadType
||
s
||
this
.
$message
.
error
(
"上传视频大小不能超过 "
+
this
.
uploadLimit
+
"MB!"
),
3
==
this
.
uploadType
?
a
&&
s
:
e
&&
s
&&
new
r
.
a
(
function
(
e
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
t
){
var
a
=
new
Image
;
a
.
onload
=
function
(){
this
.
width
,
this
.
height
;
e
()},
a
.
src
=
t
.
target
.
result
},
s
.
readAsDataURL
(
t
)})},
showImage
:
function
(
t
){
if
(
!
t
||
""
==
t
)
return
!
1
;
this
.
imgShowFlag
=!
0
,
this
.
imgUrl
=
t
},
hideImage
:
function
(
t
){
this
.
imgShowFlag
=
t
}}},
i
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"single-upload-wrap"
},[
a
(
"el-upload"
,{
staticClass
:
"avatar-uploader"
,
attrs
:{
action
:
t
.
uploadUrl
(),
"show-file-list"
:
!
1
,
"on-success"
:
t
.
handleAvatarSuccess
,
"before-upload"
:
t
.
beforeAvatarUpload
}},[
t
.
imgSrc
?
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
imgSrc
},
on
:{
mouseover
:
function
(
e
){
t
.
showImage
(
t
.
imgSrc
)}}}):
t
.
_e
(),
t
.
_v
(
" "
),
""
!=
t
.
videoSrc
&&
0
==
t
.
videoFlag
?
a
(
"video"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
videoSrc
}},[
t
.
_v
(
"您的浏览器不支持视频播放"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
imgSrc
||
t
.
videoSrc
?
t
.
_e
():
a
(
"div"
,[
a
(
"i"
,{
staticClass
:
"el-icon-plus avatar-uploader-icon"
}),
t
.
_v
(
" "
),
a
(
"p"
,{
staticClass
:
"font-12 color-606266"
},[
t
.
_v
(
t
.
_s
(
1
==
t
.
uploadType
||
2
==
t
.
uploadType
?
"上传图片"
:
"上传视频"
))])])]),
t
.
_v
(
" "
),
1
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
2
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB
\
n "
)]):
t
.
_e
(),
t
.
_v
(
" "
),
3
==
t
.
uploadType
?
a
(
"p"
,{
staticClass
:
"upload-tip color-909399 font-12"
},[
t
.
_v
(
"
\
n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效
\
n "
)]):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
n
,
i
,
!
1
,
function
(
t
){
a
(
"VRIg"
)},
"data-v-310c069a"
,
null
);
e
.
a
=
c
.
exports
},
x5Fx
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"c9no"
),
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"fZjL"
),
i
=
a
.
n
(
n
),
c
=
a
(
"feRM"
),
l
=
a
(
"l46T"
),
p
=
a
(
"Kkt8"
),
d
=
a
(
"PI0u"
),
u
=
a
(
"P9l9"
),
m
=
a
(
"3E4D"
),
f
=
a
(
"Ch4/"
),
h
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
l
.
a
,
limitTextarea
:
p
.
a
,
singleUpload
:
c
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
secretName
:
""
,
secretVal
:
""
,
enterpriseId
:
""
,
secretId
:
""
},
rules
:{
secretName
:[{
required
:
!
0
,
message
:
"请输入小程序名称"
,
trigger
:
"blur"
}],
secretVal
:[{
required
:
!
0
,
message
:
"请输入secret"
,
trigger
:
"blur"
}],
enterpriseId
:[{
required
:
!
0
,
message
:
"请选择关联商户"
,
trigger
:
"change"
}]},
brandOptions
:[]}},
methods
:{
getBrandData
:
function
(){
var
t
=
this
;
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
a
.
result
&&
a
.
result
.
length
&&
(
t
.
brandOptions
=
a
.
result
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
toCancel
:
function
(){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
t
){
this
.
$emit
(
"closeText"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
secretId
:
t
.
ruleForm
.
secretId
,
secretName
:
t
.
ruleForm
.
secretName
,
enterpriseId
:
t
.
ruleForm
.
enterpriseId
,
memberSecret
:
t
.
ruleForm
.
secretVal
};
Object
(
u
.
d
)(
"/haoban-manage3-web/wx-enterprise-member-secret-set"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
==
a
.
errorCode
?(
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitText"
)):
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
t
){
i
()(
t
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
o
()(
t
)))}},
mounted
:
function
(){
this
.
getBrandData
(),
i
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
o
()(
this
.
editRow
)))}},
b
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
t
.
editRow
.
materialId
?
"编辑"
:
"新建"
,
visible
:
t
.
dialogVisible
,
width
:
"600px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
a
(
"div"
,{},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
ruleForm
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"小程序名称"
,
prop
:
"secretName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretName
,
holder
:
"请输入小程序名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretName"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"secret"
,
prop
:
"secretVal"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
402
,
inputValue
:
t
.
ruleForm
.
secretVal
,
holder
:
"请输入secret"
,
getByType
:
"word"
,
maxLength
:
80
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"secretVal"
,
e
)}}})],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"关联商户"
,
prop
:
"enterpriseId"
}},[
a
(
"el-select"
,{
staticClass
:
"w-402"
,
attrs
:{
placeholder
:
"全部品牌"
},
on
:{
change
:
t
.
getTableList
},
model
:{
value
:
t
.
ruleForm
.
enterpriseId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"enterpriseId"
,
e
)},
expression
:
"ruleForm.enterpriseId"
}},
t
.
_l
(
t
.
brandOptions
,
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
enterpriseId
,
attrs
:{
label
:
t
.
enterpriseName
,
value
:
t
.
enterpriseId
}})}))],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
g
=
a
(
"VU/8"
)(
h
,
b
,
!
1
,
function
(
t
){
a
(
"JkCr"
)},
"data-v-b2c98ae8"
,
null
).
exports
,
v
=
{
props
:{},
data
:
function
(){
return
{
checkShow
:
!
0
,
tipText
:
"请在企业密钥维护中输入对应的secret"
,
tableH
:
window
.
screen
.
availHeight
-
464
-
126
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
companyObj
:{
smallVersion
:
""
,
corpName
:
""
,
corpid
:
""
,
contactFlag
:
!
1
,
verifiedEndTime
:
""
,
corpIndustry
:
""
,
corpSubIndustry
:
""
,
corpUserMax
:
""
,
location
:
""
},
wxObj
:{
secretType
:
1
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
contactObj
:{
secretType
:
2
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
haobanObj
:{
secretType
:
3
,
secretVal
:
""
,
checkFlag
:
0
,
updateTime
:
null
},
showWxError
:
!
1
,
showContactError
:
!
1
,
showHaobanError
:
!
1
,
tableData
:[],
addShow
:
!
1
,
editRow
:{}}},
computed
:{},
methods
:{
addSecret
:
function
(){
this
.
addShow
=!
0
,
this
.
editRow
=
{}},
toEdit
:
function
(
t
,
e
){
this
.
addShow
=!
0
,
this
.
editRow
=
e
},
closeText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{}},
submitText
:
function
(){
this
.
addShow
=!
1
,
this
.
editRow
=
{},
this
.
getSecretData
()},
toDel
:
function
(
t
,
e
){
var
a
=
this
;
a
.
$confirm
(
"确定删除当前小程序信息?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
t
,
e
)}).
catch
(
function
(){})},
postDel
:
function
(
t
,
e
){
var
a
=
this
,
s
=
{
secretId
:
e
.
secretId
};
Object
(
u
.
d
)(
"/haoban-manage3-web/member-secret-del"
,
s
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getSecretData
();
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
saveSecret
:
Object
(
d
.
a
)(
function
(
t
){
var
e
=
{};
return
1
==
t
&&
(
e
.
wxSecretKey
=
String
(
this
.
wxObj
.
secretVal
).
trim
(),
this
.
showWxError
=!
this
.
wxObj
.
secretVal
),
2
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
contactObj
.
secretVal
).
trim
()),(
2
!=
t
||
""
!=
e
.
contactSecret
)
&&
(
3
==
t
&&
(
e
.
contactSecret
=
String
(
this
.
haobanObj
.
secretVal
).
trim
(),
this
.
showHaobanError
=!
this
.
haobanObj
.
secretVal
),(
1
!=
t
||!
this
.
showWxError
)
&&
((
3
!=
t
||!
this
.
showHaobanError
)
&&
void
this
.
postSaveSecret
(
t
,
e
)))},
300
),
postSaveSecret
:
function
(
t
,
e
){
var
a
=
this
,
s
=
1
==
t
?
"/wx-enterprise-wx-secret-set"
:
2
==
t
?
"wx-enterprise-contact-secret-set"
:
"wx-enterprise-haoban-secret-set"
;
Object
(
u
.
d
)(
"/haoban-manage3-web/"
+
s
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
m
.
a
.
showmsg
(
"操作成功"
,
"success"
),
a
.
getSecretData
(),
!
1
;
f
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
refeshData
:
function
(){
this
.
refreshData
()},
refreshData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-refresh"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
m
.
a
.
showmsg
(
"刷新成功"
,
"success"
),
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getSecretData
:
function
(){
var
t
=
this
,
e
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/secret-list"
,
e
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
[],
a
.
result
&&
a
.
result
.
length
&&
a
.
result
.
forEach
(
function
(
e
){
1
==
e
.
secretType
&&
(
t
.
wxObj
=
e
),
2
==
e
.
secretType
&&
(
t
.
contactObj
=
e
),
3
==
e
.
secretType
&&
(
t
.
haobanObj
=
e
),
4
==
e
.
secretType
&&
t
.
tableData
.
push
(
e
)}),
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getData
:
function
(
t
){
var
e
=
this
,
a
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
u
.
a
)(
"/haoban-manage3-web/wxEnterprise-detail"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
companyObj
=
a
.
result
,
!
1
;
f
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTipData
:
function
(){
var
t
=
this
;
Object
(
u
.
a
)(
"/haoban-manage3-web/is-wx-enterprise-secret-set"
,{}).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
f
.
a
.
errorMsg
(
a
):
t
.
checkShow
=
a
.
result
}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
1
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
(),
this
.
getSecretData
(),
this
.
getTipData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
setTip
:
s
.
a
,
secretSet
:
g
}},
_
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
a
(
"div"
,{
staticClass
:
"company-set-content border-box"
},[
a
(
"div"
,{
staticClass
:
"company-title m-b-20 flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"line-h-32"
},[
a
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
t
.
_v
(
"企业微信基本信息"
)]),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
refeshData
}},[
t
.
_v
(
"同步刷新 "
)])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,[
t
.
checkShow
?
t
.
_e
():
a
(
"set-tip"
,{
attrs
:{
tipText
:
t
.
tipText
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body"
},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"105px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业名称"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-r-10"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpName
))]),
t
.
_v
(
" "
),
a
(
"el-tag"
,[
t
.
_v
(
" "
+
t
.
_s
(
1
==
t
.
companyObj
.
contactFlag
?
"已认证"
:
"未认证"
))]),
1
==
t
.
companyObj
.
contactFlag
?
a
(
"span"
,{
staticClass
:
"p-l-10 font-12 color-909399"
},[
t
.
_v
(
"认证到期 "
+
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
t
.
companyObj
.
verifiedEndTime
)))]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"企业ID"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpid
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"行业类型"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpIndustry
)
+
" / "
+
t
.
_s
(
t
.
companyObj
.
corpSubIndustry
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"人员规模"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
corpScale
))])]),
t
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"地址"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
t
.
companyObj
.
location
))])])],
1
)],
1
),
t
.
_v
(
" "
),
t
.
_m
(
0
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"company-info-body secret-body"
},[
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"客户联系secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"必填"
},
model
:{
value
:
t
.
wxObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
wxObj
,
"secretVal"
,
e
)},
expression
:
"wxObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"1"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
wxObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
wxObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
wxObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
wxObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showWxError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写客户联系 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
placement
:
"top-start"
}},[
a
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
t
.
_v
(
"企业微信中通讯录同步若更新secret,请复制后更新至此处。"
),
a
(
"br"
),
t
.
_v
(
"因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"
),
a
(
"br"
),
t
.
_v
(
"若发生相关变更,与企业微信无关,特此告知!"
)]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"通讯录secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
maxlength
:
"200"
,
placeholder
:
"非必填"
},
model
:{
value
:
t
.
contactObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
contactObj
,
"secretVal"
,
e
)},
expression
:
"contactObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"2"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
contactObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
contactObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
contactObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
contactObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])])],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-b-20 secret-cell"
},[
a
(
"span"
,{
staticClass
:
"inline-block w-127"
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"用于获取登录小程序用户的手机号/姓名/部门信息"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"好办助手secret:"
)])])],
1
),
a
(
"el-input"
,{
staticClass
:
"m-l-10 w-399"
,
attrs
:{
placeholder
:
"必填"
},
model
:{
value
:
t
.
haobanObj
.
secretVal
,
callback
:
function
(
e
){
t
.
$set
(
t
.
haobanObj
,
"secretVal"
,
e
)},
expression
:
"haobanObj.secretVal"
}}),
a
(
"el-button"
,{
staticClass
:
"m-l-20"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
saveSecret
(
"3"
)}}},[
t
.
_v
(
"保存"
)]),
t
.
haobanObj
.
updateTime
?
a
(
"span"
,{
staticClass
:
"m-l-20 font-12 color-909399"
},[
t
.
_v
(
"最后一次保存:"
+
t
.
_s
(
t
.
_f
(
"formatTimeStamp"
)(
t
.
haobanObj
.
updateTime
)))]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"m-l-37 font-14 color-303133"
},[
a
(
"span"
,{
class
:[
"iconfont"
,
t
.
haobanObj
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
t
.
haobanObj
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]),
t
.
_v
(
" "
),
t
.
showHaobanError
?
a
(
"div"
,{
staticClass
:
"el-form-item__error m-l-137"
},[
t
.
_v
(
"请填写好办助手 secret"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"secret-cell "
},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
t
.
_v
(
"会员小程序secret:"
)])]),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"p-l-5 font-14 color-303133 font-w-500"
},[
t
.
_v
(
"会员小程序信息"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-cell m-t-10 p-l-137"
},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"no-empty-icon-table"
,
style
:{
width
:
"100%"
,
minHeight
:
t
.
tableH
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"小程序名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"secret"
,
width
:
"506"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
secretVal
||
"-- "
)
+
" "
)]),
a
(
"span"
,{
class
:[
"iconfont"
,
e
.
row
.
checkFlag
?
"color-49c958 iconchenggong"
:
"color-f83431 iconshibai"
]}),
a
(
"span"
,{
staticClass
:
"p-l-10"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
checkFlag
?
"校验成功"
:
"校验失败"
))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"关联商户"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
enterpriseName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"最近编辑时间"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
updateTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
updateTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toEdit
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
t
.
toDel
(
e
.
$index
,
e
.
row
)}}},[
t
.
_v
(
"删除"
)])]}}])})],
1
),
t
.
_v
(
" "
),
t
.
tableData
.
length
<
10
?
a
(
"div"
,{
staticClass
:
"text-center add-cell cursor-pointer"
,
on
:{
click
:
t
.
addSecret
}},[
a
(
"span"
,{
staticClass
:
"el-icon-plus font-14 color-2f54eb add-cell-txt"
}),
a
(
"span"
,{
staticClass
:
"font-14 color-2f54eb p-l-5 add-cell-txt"
},[
t
.
_v
(
"新建"
)]),
a
(
"span"
,{
staticClass
:
"font-12 color-c0c4cc p-l-20"
},[
t
.
_v
(
"最多添加10个"
)])]):
t
.
_e
()],
1
)],
1
)])]),
t
.
_v
(
" "
),
t
.
addShow
?
a
(
"secret-set"
,{
attrs
:{
editRow
:
t
.
editRow
},
on
:{
closeText
:
t
.
closeText
,
submitText
:
t
.
submitText
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"company-title m-b-20 m-t-30"
},[
e
(
"span"
,{
staticClass
:
"color-303133 font-14 font-w-600"
},[
this
.
_v
(
"客户密钥维护"
)])])}]};
var
w
=
a
(
"VU/8"
)(
v
,
_
,
!
1
,
function
(
t
){
a
(
"OTW0"
)},
"data-v-c5a7619e"
,
null
);
e
.
default
=
w
.
exports
}});
\ No newline at end of file
dist/static/js/13.b528a7bfbf239c6b01df.js
0 → 100644
View file @
ee911eb3
webpackJsonp
([
13
],{
HoLU
:
function
(
e
,
t
){},
KXM4
:
function
(
e
,
t
){},
O8i3
:
function
(
e
,
t
){},
mOmb
:
function
(
e
,
t
,
a
){
"use strict"
;
var
s
=
a
(
"mvHQ"
),
r
=
a
.
n
(
s
),
o
=
a
(
"P9l9"
),
n
=
a
(
"Ch4/"
),
i
=
a
(
"PI0u"
),
l
=
{
name
:
"gic-select-store"
,
props
:{
width
:{
type
:
String
,
default
:
function
(){
return
"357px"
}},
selectData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
enterpriseId
:
this
.
brandId
,
checkAll
:
!
1
,
isIndeterminate
:
!
1
,
searchSelect
:
""
,
storeVisible
:
!
1
,
stores
:[],
storesCopy
:[],
dailyRuleForm
:{
stores
:[]},
pageNum
:
1
,
pageSize
:
200
}},
methods
:{
handleCheckAllChange
:
function
(
e
){
this
.
dailyRuleForm
.
stores
=
e
?
this
.
stores
.
map
(
function
(
e
){
return
e
.
storeId
}):[],
this
.
isIndeterminate
=!
1
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
handleStoresChange
:
function
(
e
){
var
t
=
e
.
length
;
this
.
checkAll
=
t
===
this
.
stores
.
length
,
this
.
isIndeterminate
=
t
>
0
&&
t
<
this
.
stores
.
length
,
this
.
$emit
(
"returnStores"
,
this
.
dailyRuleForm
.
stores
)},
toInput
:
Object
(
i
.
a
)(
function
(
e
,
t
){
""
!=
this
.
searchSelect
&&
(
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
())},
500
),
changeVisible
:
function
(){},
checkStore
:
function
(
e
){
var
t
=
this
;
if
(
e
.
select
){
e
.
select
=!
1
;
var
a
=
t
.
dailyRuleForm
.
stores
.
indexOf
(
e
.
storeId
);
t
.
dailyRuleForm
.
stores
.
splice
(
a
,
1
)}
else
e
.
select
=!
0
,
t
.
dailyRuleForm
.
stores
.
push
(
e
.
storeId
);
t
.
storesCopy
.
forEach
(
function
(
e
){
t
.
dailyRuleForm
.
stores
.
includes
(
e
.
storeId
)
&&
(
e
.
select
=!
0
)})},
clearSearch
:
function
(){
this
.
stores
=
[],
this
.
pageNum
=
1
,
this
.
getStoreData
()},
getStoreData
:
function
(){
var
e
=
this
,
t
=
{
searchName
:
e
.
searchSelect
,
gicEnterpriseId
:
e
.
brandId
,
pageNum
:
e
.
pageNum
,
pageSize
:
e
.
pageSize
};
Object
(
o
.
a
)(
"/haoban-app-customer-web/cardCoupon/get-store-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
select
=!
1
,
e
.
selectData
.
includes
(
t
.
storeId
)
&&
(
t
.
select
=!
0
)}),
1
==
e
.
pageNum
?(
e
.
stores
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[],
e
.
storesCopy
=
JSON
.
parse
(
r
()(
a
.
result
.
result
))
||
[]):
a
.
result
.
result
.
forEach
(
function
(
t
){
e
.
stores
.
push
(
t
),
e
.
storesCopy
.
push
(
t
)}),
void
(
e
.
pageNum
*
e
.
pageSize
<
a
.
result
.
totalCount
&&
(
e
.
pageNum
++
,
e
.
$nextTick
(
function
(){
e
.
getStoreData
()})));
n
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
){
e
&&
(
this
.
checkAll
=!
1
,
this
.
isIndeterminate
=!
1
,
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
searchSelect
=
""
,
this
.
getStoreData
())},
selectData
:
function
(
e
,
t
){
e
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
e
)):
this
.
dailyRuleForm
.
stores
=
[]}},
mounted
:
function
(){
this
.
brandId
&&
(
this
.
stores
=
[],
this
.
storesCopy
=
[],
this
.
getStoreData
()),
this
.
selectData
.
length
?
this
.
dailyRuleForm
.
stores
=
JSON
.
parse
(
r
()(
this
.
selectData
)):
this
.
dailyRuleForm
.
stores
=
[]}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
title
:
""
,
width
:
"350"
,
trigger
:
"click"
},
model
:{
value
:
e
.
storeVisible
,
callback
:
function
(
t
){
e
.
storeVisible
=
t
},
expression
:
"storeVisible"
}},[
a
(
"div"
,{
staticClass
:
"daily-store-select"
},[
a
(
"div"
,{
staticClass
:
"select-search"
},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请输入门店名称"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchSelect
);
var
a
}},
model
:{
value
:
e
.
searchSelect
,
callback
:
function
(
t
){
e
.
searchSelect
=
t
},
expression
:
"searchSelect"
}},[
a
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"checkbox border-box"
,
staticStyle
:{
padding
:
"15px 20px"
}},[
a
(
"el-checkbox"
,{
attrs
:{
indeterminate
:
e
.
isIndeterminate
},
on
:{
change
:
e
.
handleCheckAllChange
},
model
:{
value
:
e
.
checkAll
,
callback
:
function
(
t
){
e
.
checkAll
=
t
},
expression
:
"checkAll"
}},[
e
.
_v
(
"全选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar define-search-select"
},[
a
(
"div"
,{
staticClass
:
"el-select-dropdown__wrap el-scrollbar__wrap"
,
staticStyle
:{
"margin-bottom"
:
"-5px"
,
"margin-right"
:
"-5px"
}},[
a
(
"el-checkbox-group"
,{
on
:{
change
:
e
.
handleStoresChange
},
model
:{
value
:
e
.
dailyRuleForm
.
stores
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dailyRuleForm
,
"stores"
,
t
)},
expression
:
"dailyRuleForm.stores"
}},[
a
(
"ul"
,{
staticClass
:
"el-scrollbar__view el-select-dropdown__list"
},[
e
.
_l
(
e
.
stores
,
function
(
t
){
return
a
(
"li"
,{
key
:
t
.
storeId
,
class
:[
"el-select-dropdown__item"
,
t
.
select
?
"selected hover"
:
""
]},[
a
(
"el-checkbox"
,{
attrs
:{
label
:
t
.
storeId
}},[
e
.
_v
(
e
.
_s
(
t
.
storeName
))])],
1
)}),
e
.
_v
(
" "
),
e
.
stores
.
length
?
e
.
_e
():
a
(
"li"
,{
staticClass
:
"text-center"
},[
a
(
"span"
,[
e
.
_v
(
"暂无数据"
)])])],
2
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-horizontal"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateX(0%)"
}})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-scrollbar__bar is-vertical"
},[
a
(
"div"
,{
staticClass
:
"el-scrollbar__thumb"
,
staticStyle
:{
transform
:
"translateY(0%)"
}})])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"show-select-num cursor-pointer w-350"
,
attrs
:{
slot
:
"reference"
},
on
:{
click
:
e
.
changeVisible
},
slot
:
"reference"
},[
e
.
_v
(
"
\
n 已经选择"
+
e
.
_s
(
e
.
dailyRuleForm
.
stores
.
length
)
+
"家门店
\
n "
),
a
(
"span"
,{
staticClass
:
"el-input__suffix"
},[
a
(
"span"
,{
staticClass
:
"el-input__suffix-inner"
},[
a
(
"i"
,{
class
:[
"el-select__caret el-input__icon el-icon-arrow-up"
,
e
.
storeVisible
?
"is-reverse"
:
""
]})])])])])},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
a
(
"HoLU"
)},
"data-v-67522a34"
,
null
);
t
.
a
=
u
.
exports
},
z3jf
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
s
=
a
(
"fZjL"
),
r
=
a
.
n
(
s
),
o
=
a
(
"mvHQ"
),
n
=
a
.
n
(
o
),
i
=
a
(
"mOmb"
),
l
=
a
(
"Ggl+"
),
c
=
a
(
"PI0u"
),
u
=
a
(
"P9l9"
),
d
=
a
(
"3E4D"
),
h
=
a
(
"Ch4/"
),
p
=
{
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
gicSelectGroup
:
l
.
a
,
gicSelectStore
:
i
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userInfos"
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
wxEnterpriseRelatedId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
loading
:
!
1
,
dialogVisible
:
!
0
,
formData
:{
sendRange
:
"0"
,
selectList
:[]},
loadingBtn
:
!
1
}},
methods
:{
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
returnStores
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
checkGroupIds
:
function
(
e
){
this
.
formData
.
selectList
=
JSON
.
parse
(
n
()(
e
))},
toCancel
:
function
(){
this
.
$emit
(
"closeStore"
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"closeStore"
)},
submitForm
:
Object
(
c
.
a
)(
function
(
e
){
if
((
"1"
==
this
.
formData
.
sendRange
||
"2"
==
this
.
formData
.
sendRange
)
&&!
this
.
formData
.
selectList
.
length
)
return
!
1
;
this
.
loadingBtn
=!
0
,
this
.
postSave
()},
300
),
postSave
:
function
(){
var
e
=
this
,
t
=
{
enterpriseId
:
e
.
brandId
,
templateId
:
e
.
$route
.
query
.
templateId
,
selectType
:
e
.
formData
.
sendRange
,
groupIds
:
1
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
map
(
function
(
e
){
return
e
.
storeGroupId
}).
join
(
","
):
""
,
storeIds
:
2
==
e
.
formData
.
sendRange
?
e
.
formData
.
selectList
.
join
(
","
):
""
};
Object
(
u
.
d
)(
"/haoban-app-customer-web/memberGroup/save-template-store"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
e
.
loadingBtn
=!
1
,
1
==
a
.
errorCode
?(
d
.
a
.
showmsg
(
"操作成功"
,
"success"
),
e
.
$emit
(
"submitStore"
)):
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
loadingBtn
=!
1
,
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTableList
:
function
(
e
){
var
t
=
this
;
t
.
loading
=!
0
;
var
a
=
[],
s
=
[],
r
=
[];
t
.
conditionObj
.
storeGroup
.
forEach
(
function
(
e
){
1
==
e
.
type
&&
r
.
push
(
e
.
employeeClerkId
),
2
==
e
.
type
&&
a
.
push
(
e
.
groupId
),
3
==
e
.
type
&&
s
.
push
(
e
.
storeId
)}),
t
.
conditionObj
.
dateRange
||
(
t
.
conditionObj
.
dateRange
=
[]);
var
o
=
{
search
:
t
.
searchInput
||
""
,
pageNum
:
t
.
currentPage
,
pageSize
:
t
.
pageSize
,
gicEnterpriseId
:
t
.
brandId
};
Object
(
u
.
d
)(
"/haoban-app-customer-web/memberGroup/search-store"
,
o
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
t
.
loading
=!
1
,
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
.
list
||
[],
t
.
total
=
a
.
result
.
pageInfo
.
total
,
!
1
;
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
loading
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
e
){
r
()(
e
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
n
()(
e
)))}},
mounted
:
function
(){
r
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
n
()(
this
.
editRow
)))}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:(
e
.
editRow
.
templateId
,
"可见范围"
),
visible
:
e
.
dialogVisible
,
width
:
"873px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"div"
,{},[
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"100px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 选择范围
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"100px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"所有门店"
)]),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分分组"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-group"
,{
staticClass
:
"m-l-10"
,
attrs
:{
brandId
:
e
.
brandId
,
width
:
213
,
selectData
:
e
.
formData
.
selectList
},
on
:{
checkGroupIds
:
e
.
checkGroupIds
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"el-radio"
,{
staticClass
:
"m-l-40 m-r-8"
,
attrs
:{
label
:
"2"
},
on
:{
change
:
e
.
changeRange
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"部分门店"
)]),
e
.
_v
(
" "
),
2
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"w-240 inline-block item-cell-select"
},[
a
(
"gic-select-store"
,{
attrs
:{
brandId
:
e
.
brandId
,
selectData
:
e
.
formData
.
selectList
},
on
:{
returnStores
:
e
.
returnStores
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
"1"
!=
e
.
formData
.
sendRange
&&
"2"
!=
e
.
formData
.
sendRange
||
e
.
formData
.
selectList
.
length
?
e
.
_e
():
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择发送范围"
)])],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
toCancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
p
,
f
,
!
1
,
function
(
e
){
a
(
"O8i3"
)},
"data-v-090ba447"
,
null
).
exports
,
g
=
{
name
:
"app-detail"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
tabType
:{
type
:
String
,
default
:
function
(){
return
"1"
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
data
:
function
(){
return
{
projectName
:
""
,
wxEnterpriseRelatedId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
editPerson
:
localStorage
.
getItem
(
"userInfos"
)
&&
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
staffDTO
.
staffName
:
""
,
searchInput
:
""
,
tableData
:[],
activeId
:
"1"
,
loading
:
!
1
,
multipleSelection
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
setStoreShow
:
!
1
}},
methods
:{
toSetStore
:
function
(){
this
.
setStoreShow
=!
0
},
closeStore
:
function
(){
this
.
setStoreShow
=!
1
},
submitStore
:
function
(){
this
.
setStoreShow
=!
1
,
this
.
currentPage
=
1
,
this
.
getTableList
()},
toInput
:
Object
(
c
.
a
)(
function
(
e
,
t
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearInput
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
delRow
:
function
(
e
,
t
){
var
a
=
this
;
a
.
$confirm
(
"确认要删除吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
a
.
postDel
(
e
,
t
)}).
catch
(
function
(){})},
postDel
:
function
(
e
,
t
){
var
a
=
this
,
s
=
{
taskId
:
t
.
taskId
,
enterpriseId
:
a
.
activeBrand
};
Object
(
u
.
d
)(
"/haoban-app-tel-task-three-web/task/del-one"
,
s
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
==
t
.
errorCode
)
return
d
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
a
.
getTableList
();
h
.
a
.
errorMsg
(
t
)}).
catch
(
function
(
e
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
multDel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择删除项"
}),
!
1
;
this
.
postMultDel
()},
postMultDel
:
function
(){
var
e
=
this
,
t
=
{
search
:
e
.
conditionObj
.
searchInput
||
""
,
storeIds
:
e
.
multipleSelection
.
map
(
function
(
e
){
return
e
.
storeId
}).
join
(
","
)
||
""
};
Object
(
u
.
d
)(
"/haoban-app-tel-task-three-web/task/batch-del-store-task-list"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
d
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getTableList
();
h
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
},
getCustomerSet
:
function
(
e
){
var
t
=
this
,
a
=
{
enterpriseId
:
t
.
brandId
,
wxEnterpriseRelatedId
:
t
.
wxEnterpriseRelatedId
};
Object
(
u
.
d
)(
"/haoban-app-customer-web/customer/find-customer-setting"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
1
!=
a
.
errorCode
?
h
.
a
.
errorMsg
(
a
):
a
.
result
&&
(
t
.
myCustomData
.
searchFlag
=!!
a
.
result
.
searchFlag
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
this
.
getCustomerSet
(
this
.
brandId
)}},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
"12"
),
this
.
getCustomerSet
(
this
.
brandId
)},
components
:{
setVisiable
:
m
}},
b
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-detail-wrap"
},[
a
(
"div"
,{
staticClass
:
"app-detail-pane border-box p-20"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"div"
,[
a
(
"el-input"
,{
staticClass
:
"w-369"
,
attrs
:{
placeholder
:
"搜索门店名称或代码"
,
"prefix-icon"
:
"el-icon-search"
,
clearable
:
""
},
on
:{
clear
:
e
.
clearInput
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
,
e
.
searchInput
);
var
a
}},
model
:{
value
:
e
.
searchInput
,
callback
:
function
(
t
){
e
.
searchInput
=
t
},
expression
:
"searchInput"
}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
toSetStore
}},[
e
.
_v
(
"新增门店"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"danger"
},
on
:{
click
:
e
.
multDel
}},[
e
.
_v
(
"批量移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
ref
:
"multipleTable"
,
staticClass
:
"no-empty-icon-table"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"门店名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeName
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"code"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
storeCode
||
"--"
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"门店分组"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
storeGroupName
||
"--"
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
delRow
(
t
.
$index
,
t
.
row
)}}},[
e
.
_v
(
"移除"
)])]}}])}),
e
.
_v
(
" "
),
a
(
"template"
,{
slot
:
"empty"
},[
a
(
"div"
,[
a
(
"span"
,[
e
.
_v
(
"暂无门店分组,"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
toSetStore
()}}},[
e
.
_v
(
"去设置"
)])],
1
)])],
2
),
e
.
_v
(
" "
),
0
!=
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
e
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
e
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
e
.
total
},
on
:{
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
0
==
e
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"text-center table-set-line"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"暂无门店分组,"
)]),
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
toSetStore
()}}},[
e
.
_v
(
"去设置"
)])],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
e
.
setStoreShow
?
a
(
"set-visiable"
,{
attrs
:{
brandId
:
e
.
brandId
},
on
:{
closeStore
:
e
.
closeStore
,
submitStore
:
e
.
submitStore
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
v
=
a
(
"VU/8"
)(
g
,
b
,
!
1
,
function
(
e
){
a
(
"KXM4"
)},
"data-v-96221038"
,
null
);
t
.
default
=
v
.
exports
}});
\ No newline at end of file
dist/static/js/app.
3f2db82121e593a38d48
.js
→
dist/static/js/app.
10eee57ae06eedfb5ece
.js
View file @
ee911eb3
webpackJsonp
([
81
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
s
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
s
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
m
=
a
(
"pRNm"
),
d
=
a
.
n
(
m
),
l
=
a
(
"5tgt"
),
h
=
a
.
n
(
l
);
u
.
a
.
use
(
d
.
a
);
var
v
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
h
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
h
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
h
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
h
()(
"business"
,
"contacts"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
h
()(
"business"
,
"syncLog"
)},{
path
:
"/authMerchant"
,
name
:
"授权商户"
,
component
:
h
()(
"business"
,
"authMerchant"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
h
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"adminList"
)},{
path
:
"/material"
,
name
:
"素材库"
,
component
:
h
()(
"enterprise"
,
"material"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
h
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
h
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
h
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
h
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberSearchSet"
)},{
path
:
"/myCustomerList"
,
name
:
"我的顾客列表"
,
component
:
h
()(
"apps/customerApp"
,
"myCustomerList"
)},{
path
:
"/addGroupTemplate"
,
name
:
"添加模板"
,
component
:
h
()(
"apps/customerApp"
,
"addGroupTemplate"
)},{
path
:
"/storeRangeSet"
,
name
:
"门店范围设置"
,
component
:
h
()(
"apps/customerApp"
,
"storeRangeSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
h
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
h
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
h
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)},{
path
:
"/taskList"
,
name
:
"会话任务列表"
,
component
:
h
()(
"apps/trafficTask"
,
"taskList"
)},{
path
:
"/newSession"
,
name
:
"新建会话任务"
,
component
:
h
()(
"apps/trafficTask"
,
"newSession"
)},{
path
:
"/taskSessionSet"
,
name
:
"会话任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"taskSessionSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
h
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
h
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
h
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
h
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
h
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
h
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
h
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
h
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
h
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
h
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
h
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
h
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
h
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
h
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
h
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
h
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
h
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
h
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardGetRecord"
)}]},{
path
:
"/shoppingCenter"
,
name
:
"商品中心"
,
redirect
:
"/goodsShowSet"
,
component
:
h
()(
"apps/shoppingCenter"
,
"index"
),
children
:[{
path
:
"/goodsShowSet"
,
name
:
"商品展示设置"
,
component
:
h
()(
"apps/shoppingCenter"
,
"goodsShowSet"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
h
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
h
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
h
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
h
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
h
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
S
=
new
d
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
w
=
a
(
"zL8q"
),
D
=
a
.
n
(
w
),
k
=
a
(
"Rf8U"
),
y
=
a
.
n
(
k
),
x
=
a
(
"mtWM"
),
T
=
a
.
n
(
x
),
C
=
a
(
"bOdI"
),
b
=
a
.
n
(
C
),
R
=
a
(
"SJI6"
),
A
=
a
.
n
(
R
);
u
.
a
.
use
(
A
.
a
);
var
L
=
new
A
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
M
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
a
<
0
)
return
""
;
var
n
=
a
%
864
e5
,
o
=
n
%
36
e5
;
return
Math
.
floor
(
a
/
864
e5
)
+
"天"
+
Math
.
floor
(
n
/
36
e5
)
+
"小时"
+
Math
.
floor
(
o
/
6
e4
)
+
"分"
}}}),
E
=
a
(
"TUaa"
),
P
=
a
.
n
(
E
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
I
=
a
(
"pRVe"
),
H
=
a
.
n
(
I
),
G
=
a
(
"XsK6"
),
j
=
a
.
n
(
G
),
Y
=
a
(
"QRL9"
),
F
=
a
.
n
(
Y
),
N
=
a
(
"2Pnh"
),
O
=
a
.
n
(
N
),
J
=
a
(
"l9mu"
),
X
=
a
.
n
(
J
),
U
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
O
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
s
=
592.28
/
a
*
n
,
i
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
X
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
i
,
"JPEG"
,
0
,
0
,
595.28
,
s
);
else
for
(;
r
>
0
;)
c
.
addImage
(
i
,
"JPEG"
,
0
,
p
,
595.28
,
s
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
U
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
F
.
a
),
Vue
.
use
(
H
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
P
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
D
.
a
,{
size
:
"large"
}),
Vue
.
use
(
y
.
a
,
T
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
M
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
M
[
e
])}),
S
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
S
,
store
:
L
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
71
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
72
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
73
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
28
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
45
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
17
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
36
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
12
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
37
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
3
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
15
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
24
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
78
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
30
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
6
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
35
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
53
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
54
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
67
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
77
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
63
],
"./apps/customerApp/addGroupTemplate.vue"
:[
"vIlm"
,
0
,
23
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
58
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
56
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
70
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
66
],
"./apps/customerApp/myCustomerList.vue"
:[
"9CCr"
,
0
,
7
],
"./apps/customerApp/storeRangeSet.vue"
:[
"z3jf"
,
0
,
11
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
61
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
39
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
40
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
31
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
29
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
44
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
50
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
9
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
8
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
34
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
74
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
65
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
46
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
43
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
42
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
69
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
68
],
"./apps/shoppingCenter/goodsShowSet.vue"
:[
"XrL3"
,
0
,
59
],
"./apps/shoppingCenter/index.vue"
:[
"FIFf"
,
0
,
51
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
32
],
"./apps/trafficTask/newSession.vue"
:[
"upTI"
,
0
,
75
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
14
],
"./apps/trafficTask/taskList.vue"
:[
"FMQe"
,
0
,
41
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
57
],
"./apps/trafficTask/taskSessionSet.vue"
:[
"lPa5"
,
0
,
47
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
21
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
79
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
48
],
"./business/authMerchant.vue"
:[
"mjMK"
,
0
,
16
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
5
],
"./business/index.vue"
:[
"jPcV"
,
0
,
76
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
4
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
55
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
25
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
60
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
13
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
49
],
"./enterprise/material.vue"
:[
"q+Sm"
,
0
,
2
],
"./errorPage/403.vue"
:[
"6XGN"
,
22
],
"./errorPage/404.vue"
:[
"AejC"
,
26
],
"./errorPage/500.vue"
:[
"FskK"
,
20
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
27
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
62
],
"./login/index.vue"
:[
"T+/8"
,
0
,
19
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
64
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
52
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
33
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
38
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
18
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
10
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
webpackJsonp
([
81
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
s
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
s
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
m
=
a
(
"pRNm"
),
d
=
a
.
n
(
m
),
l
=
a
(
"5tgt"
),
h
=
a
.
n
(
l
);
u
.
a
.
use
(
d
.
a
);
var
v
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
h
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
h
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
h
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
h
()(
"business"
,
"contacts"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
h
()(
"business"
,
"syncLog"
)},{
path
:
"/authMerchant"
,
name
:
"授权商户"
,
component
:
h
()(
"business"
,
"authMerchant"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
h
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"adminList"
)},{
path
:
"/material"
,
name
:
"素材库"
,
component
:
h
()(
"enterprise"
,
"material"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
h
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
h
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
h
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
h
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberSearchSet"
)},{
path
:
"/myCustomerList"
,
name
:
"我的顾客列表"
,
component
:
h
()(
"apps/customerApp"
,
"myCustomerList"
)},{
path
:
"/addGroupTemplate"
,
name
:
"添加模板"
,
component
:
h
()(
"apps/customerApp"
,
"addGroupTemplate"
)},{
path
:
"/storeRangeSet"
,
name
:
"门店范围设置"
,
component
:
h
()(
"apps/customerApp"
,
"storeRangeSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
h
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
h
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
h
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)},{
path
:
"/taskList"
,
name
:
"会话任务列表"
,
component
:
h
()(
"apps/trafficTask"
,
"taskList"
)},{
path
:
"/newSession"
,
name
:
"新建会话任务"
,
component
:
h
()(
"apps/trafficTask"
,
"newSession"
)},{
path
:
"/taskSessionSet"
,
name
:
"会话任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"taskSessionSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
h
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
h
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
h
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
h
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
h
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
h
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
h
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
h
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
h
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
h
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
h
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
h
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
h
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
h
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
h
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
h
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
h
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
h
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardGetRecord"
)}]},{
path
:
"/shoppingCenter"
,
name
:
"商品中心"
,
redirect
:
"/goodsShowSet"
,
component
:
h
()(
"apps/shoppingCenter"
,
"index"
),
children
:[{
path
:
"/goodsShowSet"
,
name
:
"商品展示设置"
,
component
:
h
()(
"apps/shoppingCenter"
,
"goodsShowSet"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
h
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
h
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
h
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
h
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
h
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
S
=
new
d
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
w
=
a
(
"zL8q"
),
D
=
a
.
n
(
w
),
k
=
a
(
"Rf8U"
),
y
=
a
.
n
(
k
),
x
=
a
(
"mtWM"
),
T
=
a
.
n
(
x
),
C
=
a
(
"bOdI"
),
b
=
a
.
n
(
C
),
R
=
a
(
"SJI6"
),
A
=
a
.
n
(
R
);
u
.
a
.
use
(
A
.
a
);
var
L
=
new
A
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
M
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
a
<
0
)
return
""
;
var
n
=
a
%
864
e5
,
o
=
n
%
36
e5
;
return
Math
.
floor
(
a
/
864
e5
)
+
"天"
+
Math
.
floor
(
n
/
36
e5
)
+
"小时"
+
Math
.
floor
(
o
/
6
e4
)
+
"分"
}}}),
E
=
a
(
"TUaa"
),
P
=
a
.
n
(
E
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
I
=
a
(
"pRVe"
),
H
=
a
.
n
(
I
),
G
=
a
(
"XsK6"
),
j
=
a
.
n
(
G
),
Y
=
a
(
"QRL9"
),
F
=
a
.
n
(
Y
),
N
=
a
(
"2Pnh"
),
O
=
a
.
n
(
N
),
J
=
a
(
"l9mu"
),
X
=
a
.
n
(
J
),
U
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
O
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
s
=
592.28
/
a
*
n
,
i
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
X
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
i
,
"JPEG"
,
0
,
0
,
595.28
,
s
);
else
for
(;
r
>
0
;)
c
.
addImage
(
i
,
"JPEG"
,
0
,
p
,
595.28
,
s
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
U
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
F
.
a
),
Vue
.
use
(
H
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
P
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
D
.
a
,{
size
:
"large"
}),
Vue
.
use
(
y
.
a
,
T
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
M
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
M
[
e
])}),
S
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
S
,
store
:
L
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
71
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
72
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
73
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
28
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
45
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
17
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
36
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
11
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
37
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
3
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
15
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
24
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
78
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
30
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
6
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
35
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
53
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
54
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
67
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
77
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
63
],
"./apps/customerApp/addGroupTemplate.vue"
:[
"vIlm"
,
0
,
23
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
58
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
56
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
70
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
66
],
"./apps/customerApp/myCustomerList.vue"
:[
"9CCr"
,
0
,
7
],
"./apps/customerApp/storeRangeSet.vue"
:[
"z3jf"
,
0
,
13
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
61
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
39
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
40
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
31
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
29
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
44
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
50
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
9
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
8
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
34
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
74
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
65
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
46
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
43
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
42
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
69
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
68
],
"./apps/shoppingCenter/goodsShowSet.vue"
:[
"XrL3"
,
0
,
59
],
"./apps/shoppingCenter/index.vue"
:[
"FIFf"
,
0
,
51
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
32
],
"./apps/trafficTask/newSession.vue"
:[
"upTI"
,
0
,
75
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
14
],
"./apps/trafficTask/taskList.vue"
:[
"FMQe"
,
0
,
41
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
57
],
"./apps/trafficTask/taskSessionSet.vue"
:[
"lPa5"
,
0
,
47
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
21
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
79
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
48
],
"./business/authMerchant.vue"
:[
"mjMK"
,
0
,
16
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
5
],
"./business/index.vue"
:[
"jPcV"
,
0
,
76
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
4
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
55
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
25
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
60
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
12
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
49
],
"./enterprise/material.vue"
:[
"q+Sm"
,
0
,
2
],
"./errorPage/403.vue"
:[
"6XGN"
,
22
],
"./errorPage/404.vue"
:[
"AejC"
,
26
],
"./errorPage/500.vue"
:[
"FskK"
,
20
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
27
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
62
],
"./login/index.vue"
:[
"T+/8"
,
0
,
19
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
64
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
52
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
33
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
38
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
18
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
10
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
dist/static/js/manifest.
82c8c9e81fb2d1c08c2
1.js
→
dist/static/js/manifest.
169d5de3034cbd1147c
1.js
View file @
ee911eb3
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
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
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
f
(
f
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
d
=
{
82
:
0
};
function
f
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
d
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
d
.
exports
,
d
,
d
.
exports
,
f
),
d
.
l
=!
0
,
d
.
exports
}
f
.
e
=
function
(
e
){
var
a
=
d
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
f
){
a
=
d
[
e
]
=
[
c
,
f
]});
a
[
2
]
=
c
;
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
:
"cbedb09f8527f7df9eb0"
,
1
:
"954a8a70c5f1171933ac"
,
2
:
"a280cacc2b4b43a244e1"
,
3
:
"f9c76a8db247eb2b6e7b"
,
4
:
"7fb54b0d6edc84c910b5"
,
5
:
"3c335bf1dd72ca957262"
,
6
:
"987ab930d70320e9de11"
,
7
:
"32c3458a147e64da242e"
,
8
:
"990e6fcff10d77217764"
,
9
:
"4c87b59db1c88ddd3ced"
,
10
:
"72fccf60a68381f76d55"
,
11
:
"85ef9abb670d4472d7e4"
,
12
:
"03148f95863f7a200db2"
,
13
:
"8676feea9b0f73967926"
,
14
:
"c5f34c3cc028e72159a2"
,
15
:
"e465654e5ec23ef8208d"
,
16
:
"a4996da602831cc95d74"
,
17
:
"770b18ce8b116b017976"
,
18
:
"96baa73f6f02ed43eb8e"
,
19
:
"f36008a4491a333b3887"
,
20
:
"3739332a7b56b9610431"
,
21
:
"a714e29f8172a30b5fb1"
,
22
:
"bb593e90b41132f15c1d"
,
23
:
"6c79f1e6f54d06b1cfa3"
,
24
:
"58659b3ecef2e163ec96"
,
25
:
"5d18f3d119eeaecce6da"
,
26
:
"131de4aa19cded3e450a"
,
27
:
"fb8fb618015fae7bcfa6"
,
28
:
"87049d73048403debd2d"
,
29
:
"29d767b9b57b7b477a1e"
,
30
:
"c1de2f4576abf4469703"
,
31
:
"be3308967cc19afa234d"
,
32
:
"55c47cf4b7b63a259239"
,
33
:
"d3515af25c3e7e22153f"
,
34
:
"e6b92a5d2c80f98d7f09"
,
35
:
"1594506f9a5d8a12f869"
,
36
:
"558f20a54b5442057c74"
,
37
:
"8dda4c2e6d9a0f061d19"
,
38
:
"17cd5103ccb491bb50b2"
,
39
:
"eef79a8afbae4e412ce4"
,
40
:
"d360b14dfd3f3946dec0"
,
41
:
"397b3059a8af197f873d"
,
42
:
"51081609a7ce868fb33e"
,
43
:
"e4abd328a99781fe1adc"
,
44
:
"31a8824acd03d880b0ca"
,
45
:
"ee571dc1c71d580bc8ab"
,
46
:
"35421b4dafdb5f97e9b4"
,
47
:
"e64057254b53ae3fa692"
,
48
:
"33b1806eb6afb10ad02c"
,
49
:
"cd77eead6429acd42da4"
,
50
:
"1f3b56ecb41905e1f0b6"
,
51
:
"cef48bb077d7adfd0393"
,
52
:
"e201923c185c46bbad64"
,
53
:
"10ff6c8961898574121c"
,
54
:
"057590a3480a333bd474"
,
55
:
"3295563b7fbab7d7c92f"
,
56
:
"09f9c68b01253cd5d172"
,
57
:
"0a9f114e88b70a810b63"
,
58
:
"45087beef711461085b1"
,
59
:
"43f34dd17404d4c78bf9"
,
60
:
"dabbe70ccc550275ee5f"
,
61
:
"8a316c7474e8dd3c779a"
,
62
:
"147e7d084fcc3dede961"
,
63
:
"414cb58c569b2851a656"
,
64
:
"f9e19db362f51e52e082"
,
65
:
"f41ec010313cda71a2b2"
,
66
:
"0f44141898f38be839c0"
,
67
:
"fdb513da79afaf558d2d"
,
68
:
"cf90be34cdad38317e87"
,
69
:
"bc2522dec6524b3cf96a"
,
70
:
"fdbd771eead6adb3643e"
,
71
:
"e2beb82951019a68bfe4"
,
72
:
"b8f92cf89077d32971ce"
,
73
:
"a89d7704c4c88aeb343c"
,
74
:
"3e1e20dd4fe7206a8d7d"
,
75
:
"c95f32bc2f43541a42ae"
,
76
:
"434af8f43c5a663d5141"
,
77
:
"954793399def019b24e6"
,
78
:
"b66e62775b49e6eb25a0"
,
79
:
"660991248ae9ea032194"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
d
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
d
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
f
.
m
=
e
,
f
.
c
=
c
,
f
.
d
=
function
(
e
,
a
,
c
){
f
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
f
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
f
.
d
(
a
,
"a"
,
a
),
a
},
f
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
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
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
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
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
82
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
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
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"cbedb09f8527f7df9eb0"
,
1
:
"954a8a70c5f1171933ac"
,
2
:
"a280cacc2b4b43a244e1"
,
3
:
"f9c76a8db247eb2b6e7b"
,
4
:
"7fb54b0d6edc84c910b5"
,
5
:
"3c335bf1dd72ca957262"
,
6
:
"987ab930d70320e9de11"
,
7
:
"32c3458a147e64da242e"
,
8
:
"990e6fcff10d77217764"
,
9
:
"4c87b59db1c88ddd3ced"
,
10
:
"72fccf60a68381f76d55"
,
11
:
"931f12c564ff8f7e5f81"
,
12
:
"bd4b4eb96215d3ff63eb"
,
13
:
"b528a7bfbf239c6b01df"
,
14
:
"c5f34c3cc028e72159a2"
,
15
:
"e465654e5ec23ef8208d"
,
16
:
"a4996da602831cc95d74"
,
17
:
"770b18ce8b116b017976"
,
18
:
"96baa73f6f02ed43eb8e"
,
19
:
"f36008a4491a333b3887"
,
20
:
"3739332a7b56b9610431"
,
21
:
"a714e29f8172a30b5fb1"
,
22
:
"bb593e90b41132f15c1d"
,
23
:
"6c79f1e6f54d06b1cfa3"
,
24
:
"58659b3ecef2e163ec96"
,
25
:
"5d18f3d119eeaecce6da"
,
26
:
"131de4aa19cded3e450a"
,
27
:
"fb8fb618015fae7bcfa6"
,
28
:
"87049d73048403debd2d"
,
29
:
"29d767b9b57b7b477a1e"
,
30
:
"c1de2f4576abf4469703"
,
31
:
"be3308967cc19afa234d"
,
32
:
"55c47cf4b7b63a259239"
,
33
:
"d3515af25c3e7e22153f"
,
34
:
"e6b92a5d2c80f98d7f09"
,
35
:
"1594506f9a5d8a12f869"
,
36
:
"558f20a54b5442057c74"
,
37
:
"8dda4c2e6d9a0f061d19"
,
38
:
"17cd5103ccb491bb50b2"
,
39
:
"eef79a8afbae4e412ce4"
,
40
:
"d360b14dfd3f3946dec0"
,
41
:
"397b3059a8af197f873d"
,
42
:
"51081609a7ce868fb33e"
,
43
:
"e4abd328a99781fe1adc"
,
44
:
"31a8824acd03d880b0ca"
,
45
:
"ee571dc1c71d580bc8ab"
,
46
:
"35421b4dafdb5f97e9b4"
,
47
:
"e64057254b53ae3fa692"
,
48
:
"33b1806eb6afb10ad02c"
,
49
:
"cd77eead6429acd42da4"
,
50
:
"1f3b56ecb41905e1f0b6"
,
51
:
"cef48bb077d7adfd0393"
,
52
:
"e201923c185c46bbad64"
,
53
:
"10ff6c8961898574121c"
,
54
:
"057590a3480a333bd474"
,
55
:
"3295563b7fbab7d7c92f"
,
56
:
"09f9c68b01253cd5d172"
,
57
:
"0a9f114e88b70a810b63"
,
58
:
"45087beef711461085b1"
,
59
:
"43f34dd17404d4c78bf9"
,
60
:
"dabbe70ccc550275ee5f"
,
61
:
"8a316c7474e8dd3c779a"
,
62
:
"147e7d084fcc3dede961"
,
63
:
"414cb58c569b2851a656"
,
64
:
"f9e19db362f51e52e082"
,
65
:
"f41ec010313cda71a2b2"
,
66
:
"0f44141898f38be839c0"
,
67
:
"fdb513da79afaf558d2d"
,
68
:
"cf90be34cdad38317e87"
,
69
:
"bc2522dec6524b3cf96a"
,
70
:
"fdbd771eead6adb3643e"
,
71
:
"e2beb82951019a68bfe4"
,
72
:
"b8f92cf89077d32971ce"
,
73
:
"a89d7704c4c88aeb343c"
,
74
:
"3e1e20dd4fe7206a8d7d"
,
75
:
"c95f32bc2f43541a42ae"
,
76
:
"434af8f43c5a663d5141"
,
77
:
"954793399def019b24e6"
,
78
:
"b66e62775b49e6eb25a0"
,
79
:
"660991248ae9ea032194"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/app/customer/set-visiable.vue
View file @
ee911eb3
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditTime: 2020-06-23 17:0
5:17
* @LastEditTime: 2020-06-23 17:0
7:33
-->
<!--
<set-visiable :brandId="brandId" @closeStore="closeStore" @submitStore="submitStore"></set-visiable>
...
...
@@ -107,12 +107,10 @@ export default {
toCancel
()
{
const
that
=
this
;
that
.
$emit
(
'closeStore'
);
that
.
$refs
[
'ruleForm'
].
resetFields
();
},
handleClose
(
done
)
{
const
that
=
this
;
that
.
$emit
(
'closeStore'
);
that
.
$refs
[
'ruleForm'
].
resetFields
();
},
submitForm
:
_debounce
(
function
(
formName
)
{
const
that
=
this
;
...
...
@@ -127,9 +125,9 @@ export default {
const
data
=
{
enterpriseId
:
that
.
brandId
,
templateId
:
that
.
$route
.
query
.
templateId
,
selectType
:
that
.
ruleForm
.
sendRange
,
groupIds
:
that
.
ruleForm
.
sendRange
==
1
?
that
.
formData
.
selectList
.
map
(
ele
=>
ele
.
storeGroupId
).
join
(
','
)
:
''
,
storeIds
:
that
.
ruleForm
.
sendRange
==
2
?
that
.
formData
.
selectList
.
join
(
','
)
:
''
selectType
:
that
.
formData
.
sendRange
,
groupIds
:
that
.
formData
.
sendRange
==
1
?
that
.
formData
.
selectList
.
map
(
ele
=>
ele
.
storeGroupId
).
join
(
','
)
:
''
,
storeIds
:
that
.
formData
.
sendRange
==
2
?
that
.
formData
.
selectList
.
join
(
','
)
:
''
};
postRequest
(
'/haoban-app-customer-web/memberGroup/save-template-store'
,
data
)
.
then
(
res
=>
{
...
...
@@ -137,7 +135,6 @@ export default {
that
.
loadingBtn
=
false
;
if
(
resData
.
errorCode
==
1
)
{
showMsg
.
showmsg
(
'操作成功'
,
'success'
);
that
.
$refs
[
'ruleForm'
].
resetFields
();
that
.
$emit
(
'submitStore'
);
}
else
{
errMsg
.
errorMsg
(
resData
);
...
...
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