Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
snow-guizhou-web-frontend
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
雪花
snow-guizhou-web-frontend
Commits
721a043c
提交
721a043c
authored
5月 13, 2022
作者:
郁骅焌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发布
上级
f224b13e
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
24 行增加
和
11 行删除
+24
-11
index.html
dist/index.html
+2
-2
app.6095cfcc.js
dist/static/js/app.6095cfcc.js
+0
-0
chunk-2d0bd7b3.a697cbad.js
dist/static/js/chunk-2d0bd7b3.a697cbad.js
+0
-2
chunk-5a8b7759.95a7c448.js
dist/static/js/chunk-5a8b7759.95a7c448.js
+2
-0
chunk-89639428.a788e3dc.js
dist/static/js/chunk-89639428.a788e3dc.js
+2
-2
chunk-df3ce45a.f657fdf9.js
dist/static/js/chunk-df3ce45a.f657fdf9.js
+2
-2
list.js
src/api/coupon/list.js
+9
-0
verificationList.vue
src/views/coupon/couponData/verificationList.vue
+7
-3
没有找到文件。
dist/index.html
浏览文件 @
721a043c
...
...
@@ -181,4 +181,4 @@
font-size
:
13px
;
color
:
#FFF
;
opacity
:
0.5
;
}
</style><link
href=
/static/css/chunk-libs.ea078ece.css
rel=
stylesheet
><link
href=
/static/css/app.95617449.css
rel=
stylesheet
></head><body><div
id=
app
><div
id=
loader-wrapper
><div
id=
loader
></div><div
class=
"loader-section section-left"
></div><div
class=
"loader-section section-right"
></div><div
class=
load_title
>
正在加载系统资源,请耐心等待
</div></div></div><script>
(
function
(
c
){
function
e
(
e
){
for
(
var
u
,
d
,
a
=
e
[
0
],
b
=
e
[
1
],
k
=
e
[
2
],
t
=
0
,
r
=
[];
t
<
a
.
length
;
t
++
)
d
=
a
[
t
],
Object
.
prototype
.
hasOwnProperty
.
call
(
h
,
d
)
&&
h
[
d
]
&&
r
.
push
(
h
[
d
][
0
]),
h
[
d
]
=
0
;
for
(
u
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
u
)
&&
(
c
[
u
]
=
b
[
u
]);
o
&&
o
(
e
);
while
(
r
.
length
)
r
.
shift
()();
return
f
.
push
.
apply
(
f
,
k
||
[]),
n
()}
function
n
(){
for
(
var
c
,
e
=
0
;
e
<
f
.
length
;
e
++
){
for
(
var
n
=
f
[
e
],
u
=!
0
,
d
=
1
;
d
<
n
.
length
;
d
++
){
var
a
=
n
[
d
];
0
!==
h
[
a
]
&&
(
u
=!
1
)}
u
&&
(
f
.
splice
(
e
--
,
1
),
c
=
b
(
b
.
s
=
n
[
0
]))}
return
c
}
var
u
=
{},
d
=
{
runtime
:
0
},
h
=
{
runtime
:
0
},
f
=
[];
function
a
(
c
){
return
b
.
p
+
"static/js/"
+
({}[
c
]
||
c
)
+
"."
+
{
"chunk-005cb0c7"
:
"3821be16"
,
"chunk-1b192f48"
:
"4aae7ee6"
,
"chunk-b8e2922c"
:
"1f5dc9c8"
,
"chunk-7d80f20e"
:
"c3fbc956"
,
"chunk-210ca3e9"
:
"babc95a7"
,
"chunk-210ce324"
:
"90996122"
,
"chunk-2349e5c6"
:
"28b08599"
,
"chunk-267b8b09"
:
"7b7689a8"
,
"chunk-2d0b1626"
:
"2c528c5c"
,
"chunk-2d0b2b28"
:
"9ffc10ea"
,
"chunk-171ca186"
:
"92f5d3b6"
,
"chunk-2d0b6974"
:
"75e34f14"
,
"chunk-2d0b72cb"
:
"97c4dfc1"
,
"chunk-2d0bce05"
:
"c44c4ec0"
,
"chunk-2d0bd7b3"
:
"a697cbad"
,
"chunk-2d0c8e18"
:
"5841f706"
,
"chunk-2d0d9f81"
:
"d1a0d6c4"
,
"chunk-2d0da2ea"
:
"e4b0725c"
,
"chunk-2d0e2366"
:
"68f2ed78"
,
"chunk-304993a2"
:
"fe4d7c98"
,
"chunk-c21bcb84"
:
"5b8737b9"
,
"chunk-2d0f012d"
:
"1bde8e38"
,
"chunk-2d20955d"
:
"08c7a0dc"
,
"chunk-2d2160a1"
:
"0fc75866"
,
"chunk-2d217a3b"
:
"25ff2647"
,
"chunk-2d217c9e"
:
"8ec1968a"
,
"chunk-2d21a3bb"
:
"8a51ac4c"
,
"chunk-2d221e1f"
:
"30e84d57"
,
"chunk-2d22252c"
:
"8e9951e5"
,
"chunk-2d230898"
:
"b9c723c9"
,
"chunk-2d230c18"
:
"9ec8837c"
,
"chunk-2d238605"
:
"41ebce09"
,
"chunk-2d238672"
:
"c996bfc0"
,
"chunk-345dd7f2"
:
"5c873af9"
,
"chunk-34b99330"
:
"bdcbd8fb"
,
"chunk-3711483e"
:
"4f9f057a"
,
"chunk-444dbb2e"
:
"f62ad9bd"
,
"chunk-55d183ec"
:
"0067b710"
,
"chunk-582b2a7a"
:
"437c5aea"
,
"chunk-5a2f9c7b"
:
"339374b6"
,
"chunk-1208fcbe"
:
"582d928f"
,
"chunk-2d0de3b1"
:
"751eb045"
,
"chunk-4aee0d85"
:
"abb79a31"
,
"chunk-54f34d38"
:
"8414301b"
,
"chunk-ea083b08"
:
"f47a8a98"
,
"chunk-5b83c289"
:
"93de7bfe"
,
"chunk-7fa21b9b"
:
"daa48c5c"
,
"chunk-68702101"
:
"2bb09ba8"
,
"chunk-6a51e97f"
:
"f7b6e337"
,
"chunk-6c1734a7"
:
"1e4264c6"
,
"chunk-6fbfb59c"
:
"c086a1a5"
,
"chunk-7d993ace"
:
"0a80454d"
,
"chunk-8579d4da"
:
"675a5bfb"
,
"chunk-89639428"
:
"bdaf4986"
,
"chunk-8ee3fc10"
:
"b6b35054"
,
"chunk-a662c34e"
:
"eeb8e9da"
,
"chunk-0d5b0085"
:
"56699b40"
,
"chunk-ba9781c0"
:
"b3422cd2"
,
"chunk-bc89d0ee"
:
"02074a5f"
,
"chunk-c28ad000"
:
"4682275b"
,
"chunk-cfe0f142"
:
"3c97cbc4"
,
"chunk-1348daec"
:
"8cab25bd"
,
"chunk-2bb7b688"
:
"2b31d7f9"
,
"chunk-2d0c94ba"
:
"3d888947"
,
"chunk-4b1e4dca"
:
"518589f4"
,
"chunk-50e312d8"
:
"2834115c"
,
"chunk-60d865aa"
:
"3e7a1e71"
,
"chunk-d19c1a98"
:
"e377c26f"
,
"chunk-df3ce45a"
:
"ec0f7fe5"
,
"chunk-e2ef1232"
:
"672f2b37"
}[
c
]
+
".js"
}
function
b
(
e
){
if
(
u
[
e
])
return
u
[
e
].
exports
;
var
n
=
u
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
c
[
e
].
call
(
n
.
exports
,
n
,
n
.
exports
,
b
),
n
.
l
=!
0
,
n
.
exports
}
b
.
e
=
function
(
c
){
var
e
=
[],
n
=
{
"chunk-b8e2922c"
:
1
,
"chunk-7d80f20e"
:
1
,
"chunk-171ca186"
:
1
,
"chunk-304993a2"
:
1
,
"chunk-c21bcb84"
:
1
,
"chunk-345dd7f2"
:
1
,
"chunk-34b99330"
:
1
,
"chunk-3711483e"
:
1
,
"chunk-444dbb2e"
:
1
,
"chunk-55d183ec"
:
1
,
"chunk-5a2f9c7b"
:
1
,
"chunk-1208fcbe"
:
1
,
"chunk-5b83c289"
:
1
,
"chunk-6a51e97f"
:
1
,
"chunk-6c1734a7"
:
1
,
"chunk-7d993ace"
:
1
,
"chunk-89639428"
:
1
,
"chunk-ba9781c0"
:
1
,
"chunk-bc89d0ee"
:
1
,
"chunk-c28ad000"
:
1
,
"chunk-60d865aa"
:
1
};
d
[
c
]?
e
.
push
(
d
[
c
]):
0
!==
d
[
c
]
&&
n
[
c
]
&&
e
.
push
(
d
[
c
]
=
new
Promise
((
function
(
e
,
n
){
for
(
var
u
=
"static/css/"
+
({}[
c
]
||
c
)
+
"."
+
{
"chunk-005cb0c7"
:
"31d6cfe0"
,
"chunk-1b192f48"
:
"31d6cfe0"
,
"chunk-b8e2922c"
:
"2fe730cc"
,
"chunk-7d80f20e"
:
"8e33e124"
,
"chunk-210ca3e9"
:
"31d6cfe0"
,
"chunk-210ce324"
:
"31d6cfe0"
,
"chunk-2349e5c6"
:
"31d6cfe0"
,
"chunk-267b8b09"
:
"31d6cfe0"
,
"chunk-2d0b1626"
:
"31d6cfe0"
,
"chunk-2d0b2b28"
:
"31d6cfe0"
,
"chunk-171ca186"
:
"f8404e7d"
,
"chunk-2d0b6974"
:
"31d6cfe0"
,
"chunk-2d0b72cb"
:
"31d6cfe0"
,
"chunk-2d0bce05"
:
"31d6cfe0"
,
"chunk-2d0bd7b3"
:
"31d6cfe0"
,
"chunk-2d0c8e18"
:
"31d6cfe0"
,
"chunk-2d0d9f81"
:
"31d6cfe0"
,
"chunk-2d0da2ea"
:
"31d6cfe0"
,
"chunk-2d0e2366"
:
"31d6cfe0"
,
"chunk-304993a2"
:
"2f30c43f"
,
"chunk-c21bcb84"
:
"2f30c43f"
,
"chunk-2d0f012d"
:
"31d6cfe0"
,
"chunk-2d20955d"
:
"31d6cfe0"
,
"chunk-2d2160a1"
:
"31d6cfe0"
,
"chunk-2d217a3b"
:
"31d6cfe0"
,
"chunk-2d217c9e"
:
"31d6cfe0"
,
"chunk-2d21a3bb"
:
"31d6cfe0"
,
"chunk-2d221e1f"
:
"31d6cfe0"
,
"chunk-2d22252c"
:
"31d6cfe0"
,
"chunk-2d230898"
:
"31d6cfe0"
,
"chunk-2d230c18"
:
"31d6cfe0"
,
"chunk-2d238605"
:
"31d6cfe0"
,
"chunk-2d238672"
:
"31d6cfe0"
,
"chunk-345dd7f2"
:
"265d9d9a"
,
"chunk-34b99330"
:
"0cfd7638"
,
"chunk-3711483e"
:
"9cd59ff7"
,
"chunk-444dbb2e"
:
"1154d03c"
,
"chunk-55d183ec"
:
"3ee0b3ca"
,
"chunk-582b2a7a"
:
"31d6cfe0"
,
"chunk-5a2f9c7b"
:
"84f98409"
,
"chunk-1208fcbe"
:
"0113c56b"
,
"chunk-2d0de3b1"
:
"31d6cfe0"
,
"chunk-4aee0d85"
:
"31d6cfe0"
,
"chunk-54f34d38"
:
"31d6cfe0"
,
"chunk-ea083b08"
:
"31d6cfe0"
,
"chunk-5b83c289"
:
"ce2a2394"
,
"chunk-7fa21b9b"
:
"31d6cfe0"
,
"chunk-68702101"
:
"31d6cfe0"
,
"chunk-6a51e97f"
:
"27e4d2df"
,
"chunk-6c1734a7"
:
"4f65fd35"
,
"chunk-6fbfb59c"
:
"31d6cfe0"
,
"chunk-7d993ace"
:
"33476d7b"
,
"chunk-8579d4da"
:
"31d6cfe0"
,
"chunk-89639428"
:
"01a2fe4a"
,
"chunk-8ee3fc10"
:
"31d6cfe0"
,
"chunk-a662c34e"
:
"31d6cfe0"
,
"chunk-0d5b0085"
:
"31d6cfe0"
,
"chunk-ba9781c0"
:
"12b7f2cb"
,
"chunk-bc89d0ee"
:
"a305ba7c"
,
"chunk-c28ad000"
:
"b5bdb2c6"
,
"chunk-cfe0f142"
:
"31d6cfe0"
,
"chunk-1348daec"
:
"31d6cfe0"
,
"chunk-2bb7b688"
:
"31d6cfe0"
,
"chunk-2d0c94ba"
:
"31d6cfe0"
,
"chunk-4b1e4dca"
:
"31d6cfe0"
,
"chunk-50e312d8"
:
"31d6cfe0"
,
"chunk-60d865aa"
:
"b94b48c5"
,
"chunk-d19c1a98"
:
"31d6cfe0"
,
"chunk-df3ce45a"
:
"31d6cfe0"
,
"chunk-e2ef1232"
:
"31d6cfe0"
}[
c
]
+
".css"
,
h
=
b
.
p
+
u
,
f
=
document
.
getElementsByTagName
(
"link"
),
a
=
0
;
a
<
f
.
length
;
a
++
){
var
k
=
f
[
a
],
t
=
k
.
getAttribute
(
"data-href"
)
||
k
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
k
.
rel
&&
(
t
===
u
||
t
===
h
))
return
e
()}
var
r
=
document
.
getElementsByTagName
(
"style"
);
for
(
a
=
0
;
a
<
r
.
length
;
a
++
){
k
=
r
[
a
],
t
=
k
.
getAttribute
(
"data-href"
);
if
(
t
===
u
||
t
===
h
)
return
e
()}
var
o
=
document
.
createElement
(
"link"
);
o
.
rel
=
"stylesheet"
,
o
.
type
=
"text/css"
,
o
.
onload
=
e
,
o
.
onerror
=
function
(
e
){
var
u
=
e
&&
e
.
target
&&
e
.
target
.
src
||
h
,
f
=
new
Error
(
"Loading CSS chunk "
+
c
+
" failed.
\
n("
+
u
+
")"
);
f
.
code
=
"CSS_CHUNK_LOAD_FAILED"
,
f
.
request
=
u
,
delete
d
[
c
],
o
.
parentNode
.
removeChild
(
o
),
n
(
f
)},
o
.
href
=
h
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
o
)})).
then
((
function
(){
d
[
c
]
=
0
})));
var
u
=
h
[
c
];
if
(
0
!==
u
)
if
(
u
)
e
.
push
(
u
[
2
]);
else
{
var
f
=
new
Promise
((
function
(
e
,
n
){
u
=
h
[
c
]
=
[
e
,
n
]}));
e
.
push
(
u
[
2
]
=
f
);
var
k
,
t
=
document
.
createElement
(
"script"
);
t
.
charset
=
"utf-8"
,
t
.
timeout
=
120
,
b
.
nc
&&
t
.
setAttribute
(
"nonce"
,
b
.
nc
),
t
.
src
=
a
(
c
);
var
r
=
new
Error
;
k
=
function
(
e
){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
o
);
var
n
=
h
[
c
];
if
(
0
!==
n
){
if
(
n
){
var
u
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
d
=
e
&&
e
.
target
&&
e
.
target
.
src
;
r
.
message
=
"Loading chunk "
+
c
+
" failed.
\
n("
+
u
+
": "
+
d
+
")"
,
r
.
name
=
"ChunkLoadError"
,
r
.
type
=
u
,
r
.
request
=
d
,
n
[
1
](
r
)}
h
[
c
]
=
void
0
}};
var
o
=
setTimeout
((
function
(){
k
({
type
:
"timeout"
,
target
:
t
})}),
12
e4
);
t
.
onerror
=
t
.
onload
=
k
,
document
.
head
.
appendChild
(
t
)}
return
Promise
.
all
(
e
)},
b
.
m
=
c
,
b
.
c
=
u
,
b
.
d
=
function
(
c
,
e
,
n
){
b
.
o
(
c
,
e
)
||
Object
.
defineProperty
(
c
,
e
,{
enumerable
:
!
0
,
get
:
n
})},
b
.
r
=
function
(
c
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
c
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
c
,
"__esModule"
,{
value
:
!
0
})},
b
.
t
=
function
(
c
,
e
){
if
(
1
&
e
&&
(
c
=
b
(
c
)),
8
&
e
)
return
c
;
if
(
4
&
e
&&
"object"
===
typeof
c
&&
c
&&
c
.
__esModule
)
return
c
;
var
n
=
Object
.
create
(
null
);
if
(
b
.
r
(
n
),
Object
.
defineProperty
(
n
,
"default"
,{
enumerable
:
!
0
,
value
:
c
}),
2
&
e
&&
"string"
!=
typeof
c
)
for
(
var
u
in
c
)
b
.
d
(
n
,
u
,
function
(
e
){
return
c
[
e
]}.
bind
(
null
,
u
));
return
n
},
b
.
n
=
function
(
c
){
var
e
=
c
&&
c
.
__esModule
?
function
(){
return
c
[
"default"
]}:
function
(){
return
c
};
return
b
.
d
(
e
,
"a"
,
e
),
e
},
b
.
o
=
function
(
c
,
e
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
e
)},
b
.
p
=
"/"
,
b
.
oe
=
function
(
c
){
throw
console
.
error
(
c
),
c
};
var
k
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
t
=
k
.
push
.
bind
(
k
);
k
.
push
=
e
,
k
=
k
.
slice
();
for
(
var
r
=
0
;
r
<
k
.
length
;
r
++
)
e
(
k
[
r
]);
var
o
=
t
;
n
()})([]);
</script><script
src=
/static/js/chunk-elementUI.61e0052a.js
></script><script
src=
/static/js/chunk-libs.2484bc94.js
></script><script
src=
/static/js/app.16c424eb.js
></script></body></html>
\ No newline at end of file
}
</style><link
href=
/static/css/chunk-libs.ea078ece.css
rel=
stylesheet
><link
href=
/static/css/app.95617449.css
rel=
stylesheet
></head><body><div
id=
app
><div
id=
loader-wrapper
><div
id=
loader
></div><div
class=
"loader-section section-left"
></div><div
class=
"loader-section section-right"
></div><div
class=
load_title
>
正在加载系统资源,请耐心等待
</div></div></div><script>
(
function
(
c
){
function
e
(
e
){
for
(
var
u
,
d
,
a
=
e
[
0
],
k
=
e
[
1
],
b
=
e
[
2
],
t
=
0
,
r
=
[];
t
<
a
.
length
;
t
++
)
d
=
a
[
t
],
Object
.
prototype
.
hasOwnProperty
.
call
(
h
,
d
)
&&
h
[
d
]
&&
r
.
push
(
h
[
d
][
0
]),
h
[
d
]
=
0
;
for
(
u
in
k
)
Object
.
prototype
.
hasOwnProperty
.
call
(
k
,
u
)
&&
(
c
[
u
]
=
k
[
u
]);
o
&&
o
(
e
);
while
(
r
.
length
)
r
.
shift
()();
return
f
.
push
.
apply
(
f
,
b
||
[]),
n
()}
function
n
(){
for
(
var
c
,
e
=
0
;
e
<
f
.
length
;
e
++
){
for
(
var
n
=
f
[
e
],
u
=!
0
,
d
=
1
;
d
<
n
.
length
;
d
++
){
var
a
=
n
[
d
];
0
!==
h
[
a
]
&&
(
u
=!
1
)}
u
&&
(
f
.
splice
(
e
--
,
1
),
c
=
k
(
k
.
s
=
n
[
0
]))}
return
c
}
var
u
=
{},
d
=
{
runtime
:
0
},
h
=
{
runtime
:
0
},
f
=
[];
function
a
(
c
){
return
k
.
p
+
"static/js/"
+
({}[
c
]
||
c
)
+
"."
+
{
"chunk-005cb0c7"
:
"3821be16"
,
"chunk-1b192f48"
:
"4aae7ee6"
,
"chunk-b8e2922c"
:
"1f5dc9c8"
,
"chunk-7d80f20e"
:
"c3fbc956"
,
"chunk-210ca3e9"
:
"babc95a7"
,
"chunk-210ce324"
:
"90996122"
,
"chunk-2349e5c6"
:
"28b08599"
,
"chunk-267b8b09"
:
"7b7689a8"
,
"chunk-2d0b1626"
:
"2c528c5c"
,
"chunk-2d0b2b28"
:
"9ffc10ea"
,
"chunk-171ca186"
:
"92f5d3b6"
,
"chunk-2d0b6974"
:
"75e34f14"
,
"chunk-2d0b72cb"
:
"97c4dfc1"
,
"chunk-2d0bce05"
:
"c44c4ec0"
,
"chunk-2d0c8e18"
:
"5841f706"
,
"chunk-2d0d9f81"
:
"d1a0d6c4"
,
"chunk-2d0da2ea"
:
"e4b0725c"
,
"chunk-2d0e2366"
:
"68f2ed78"
,
"chunk-304993a2"
:
"fe4d7c98"
,
"chunk-c21bcb84"
:
"5b8737b9"
,
"chunk-2d0f012d"
:
"1bde8e38"
,
"chunk-2d20955d"
:
"08c7a0dc"
,
"chunk-2d2160a1"
:
"0fc75866"
,
"chunk-2d217a3b"
:
"25ff2647"
,
"chunk-2d217c9e"
:
"8ec1968a"
,
"chunk-2d21a3bb"
:
"8a51ac4c"
,
"chunk-2d221e1f"
:
"30e84d57"
,
"chunk-2d22252c"
:
"8e9951e5"
,
"chunk-2d230898"
:
"b9c723c9"
,
"chunk-2d230c18"
:
"9ec8837c"
,
"chunk-2d238605"
:
"41ebce09"
,
"chunk-2d238672"
:
"c996bfc0"
,
"chunk-345dd7f2"
:
"5c873af9"
,
"chunk-34b99330"
:
"bdcbd8fb"
,
"chunk-3711483e"
:
"4f9f057a"
,
"chunk-444dbb2e"
:
"f62ad9bd"
,
"chunk-55d183ec"
:
"0067b710"
,
"chunk-582b2a7a"
:
"437c5aea"
,
"chunk-5a2f9c7b"
:
"339374b6"
,
"chunk-1208fcbe"
:
"582d928f"
,
"chunk-2d0de3b1"
:
"751eb045"
,
"chunk-4aee0d85"
:
"abb79a31"
,
"chunk-54f34d38"
:
"8414301b"
,
"chunk-ea083b08"
:
"f47a8a98"
,
"chunk-5a8b7759"
:
"95a7c448"
,
"chunk-5b83c289"
:
"93de7bfe"
,
"chunk-7fa21b9b"
:
"daa48c5c"
,
"chunk-68702101"
:
"2bb09ba8"
,
"chunk-6a51e97f"
:
"f7b6e337"
,
"chunk-6c1734a7"
:
"1e4264c6"
,
"chunk-6fbfb59c"
:
"c086a1a5"
,
"chunk-7d993ace"
:
"0a80454d"
,
"chunk-8579d4da"
:
"675a5bfb"
,
"chunk-89639428"
:
"a788e3dc"
,
"chunk-8ee3fc10"
:
"b6b35054"
,
"chunk-a662c34e"
:
"eeb8e9da"
,
"chunk-0d5b0085"
:
"56699b40"
,
"chunk-ba9781c0"
:
"b3422cd2"
,
"chunk-bc89d0ee"
:
"02074a5f"
,
"chunk-c28ad000"
:
"4682275b"
,
"chunk-cfe0f142"
:
"3c97cbc4"
,
"chunk-1348daec"
:
"8cab25bd"
,
"chunk-2bb7b688"
:
"2b31d7f9"
,
"chunk-2d0c94ba"
:
"3d888947"
,
"chunk-4b1e4dca"
:
"518589f4"
,
"chunk-50e312d8"
:
"2834115c"
,
"chunk-60d865aa"
:
"3e7a1e71"
,
"chunk-d19c1a98"
:
"e377c26f"
,
"chunk-df3ce45a"
:
"f657fdf9"
,
"chunk-e2ef1232"
:
"672f2b37"
}[
c
]
+
".js"
}
function
k
(
e
){
if
(
u
[
e
])
return
u
[
e
].
exports
;
var
n
=
u
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
c
[
e
].
call
(
n
.
exports
,
n
,
n
.
exports
,
k
),
n
.
l
=!
0
,
n
.
exports
}
k
.
e
=
function
(
c
){
var
e
=
[],
n
=
{
"chunk-b8e2922c"
:
1
,
"chunk-7d80f20e"
:
1
,
"chunk-171ca186"
:
1
,
"chunk-304993a2"
:
1
,
"chunk-c21bcb84"
:
1
,
"chunk-345dd7f2"
:
1
,
"chunk-34b99330"
:
1
,
"chunk-3711483e"
:
1
,
"chunk-444dbb2e"
:
1
,
"chunk-55d183ec"
:
1
,
"chunk-5a2f9c7b"
:
1
,
"chunk-1208fcbe"
:
1
,
"chunk-5b83c289"
:
1
,
"chunk-6a51e97f"
:
1
,
"chunk-6c1734a7"
:
1
,
"chunk-7d993ace"
:
1
,
"chunk-89639428"
:
1
,
"chunk-ba9781c0"
:
1
,
"chunk-bc89d0ee"
:
1
,
"chunk-c28ad000"
:
1
,
"chunk-60d865aa"
:
1
};
d
[
c
]?
e
.
push
(
d
[
c
]):
0
!==
d
[
c
]
&&
n
[
c
]
&&
e
.
push
(
d
[
c
]
=
new
Promise
((
function
(
e
,
n
){
for
(
var
u
=
"static/css/"
+
({}[
c
]
||
c
)
+
"."
+
{
"chunk-005cb0c7"
:
"31d6cfe0"
,
"chunk-1b192f48"
:
"31d6cfe0"
,
"chunk-b8e2922c"
:
"2fe730cc"
,
"chunk-7d80f20e"
:
"8e33e124"
,
"chunk-210ca3e9"
:
"31d6cfe0"
,
"chunk-210ce324"
:
"31d6cfe0"
,
"chunk-2349e5c6"
:
"31d6cfe0"
,
"chunk-267b8b09"
:
"31d6cfe0"
,
"chunk-2d0b1626"
:
"31d6cfe0"
,
"chunk-2d0b2b28"
:
"31d6cfe0"
,
"chunk-171ca186"
:
"f8404e7d"
,
"chunk-2d0b6974"
:
"31d6cfe0"
,
"chunk-2d0b72cb"
:
"31d6cfe0"
,
"chunk-2d0bce05"
:
"31d6cfe0"
,
"chunk-2d0c8e18"
:
"31d6cfe0"
,
"chunk-2d0d9f81"
:
"31d6cfe0"
,
"chunk-2d0da2ea"
:
"31d6cfe0"
,
"chunk-2d0e2366"
:
"31d6cfe0"
,
"chunk-304993a2"
:
"2f30c43f"
,
"chunk-c21bcb84"
:
"2f30c43f"
,
"chunk-2d0f012d"
:
"31d6cfe0"
,
"chunk-2d20955d"
:
"31d6cfe0"
,
"chunk-2d2160a1"
:
"31d6cfe0"
,
"chunk-2d217a3b"
:
"31d6cfe0"
,
"chunk-2d217c9e"
:
"31d6cfe0"
,
"chunk-2d21a3bb"
:
"31d6cfe0"
,
"chunk-2d221e1f"
:
"31d6cfe0"
,
"chunk-2d22252c"
:
"31d6cfe0"
,
"chunk-2d230898"
:
"31d6cfe0"
,
"chunk-2d230c18"
:
"31d6cfe0"
,
"chunk-2d238605"
:
"31d6cfe0"
,
"chunk-2d238672"
:
"31d6cfe0"
,
"chunk-345dd7f2"
:
"265d9d9a"
,
"chunk-34b99330"
:
"0cfd7638"
,
"chunk-3711483e"
:
"9cd59ff7"
,
"chunk-444dbb2e"
:
"1154d03c"
,
"chunk-55d183ec"
:
"3ee0b3ca"
,
"chunk-582b2a7a"
:
"31d6cfe0"
,
"chunk-5a2f9c7b"
:
"84f98409"
,
"chunk-1208fcbe"
:
"0113c56b"
,
"chunk-2d0de3b1"
:
"31d6cfe0"
,
"chunk-4aee0d85"
:
"31d6cfe0"
,
"chunk-54f34d38"
:
"31d6cfe0"
,
"chunk-ea083b08"
:
"31d6cfe0"
,
"chunk-5a8b7759"
:
"31d6cfe0"
,
"chunk-5b83c289"
:
"ce2a2394"
,
"chunk-7fa21b9b"
:
"31d6cfe0"
,
"chunk-68702101"
:
"31d6cfe0"
,
"chunk-6a51e97f"
:
"27e4d2df"
,
"chunk-6c1734a7"
:
"4f65fd35"
,
"chunk-6fbfb59c"
:
"31d6cfe0"
,
"chunk-7d993ace"
:
"33476d7b"
,
"chunk-8579d4da"
:
"31d6cfe0"
,
"chunk-89639428"
:
"01a2fe4a"
,
"chunk-8ee3fc10"
:
"31d6cfe0"
,
"chunk-a662c34e"
:
"31d6cfe0"
,
"chunk-0d5b0085"
:
"31d6cfe0"
,
"chunk-ba9781c0"
:
"12b7f2cb"
,
"chunk-bc89d0ee"
:
"a305ba7c"
,
"chunk-c28ad000"
:
"b5bdb2c6"
,
"chunk-cfe0f142"
:
"31d6cfe0"
,
"chunk-1348daec"
:
"31d6cfe0"
,
"chunk-2bb7b688"
:
"31d6cfe0"
,
"chunk-2d0c94ba"
:
"31d6cfe0"
,
"chunk-4b1e4dca"
:
"31d6cfe0"
,
"chunk-50e312d8"
:
"31d6cfe0"
,
"chunk-60d865aa"
:
"b94b48c5"
,
"chunk-d19c1a98"
:
"31d6cfe0"
,
"chunk-df3ce45a"
:
"31d6cfe0"
,
"chunk-e2ef1232"
:
"31d6cfe0"
}[
c
]
+
".css"
,
h
=
k
.
p
+
u
,
f
=
document
.
getElementsByTagName
(
"link"
),
a
=
0
;
a
<
f
.
length
;
a
++
){
var
b
=
f
[
a
],
t
=
b
.
getAttribute
(
"data-href"
)
||
b
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
b
.
rel
&&
(
t
===
u
||
t
===
h
))
return
e
()}
var
r
=
document
.
getElementsByTagName
(
"style"
);
for
(
a
=
0
;
a
<
r
.
length
;
a
++
){
b
=
r
[
a
],
t
=
b
.
getAttribute
(
"data-href"
);
if
(
t
===
u
||
t
===
h
)
return
e
()}
var
o
=
document
.
createElement
(
"link"
);
o
.
rel
=
"stylesheet"
,
o
.
type
=
"text/css"
,
o
.
onload
=
e
,
o
.
onerror
=
function
(
e
){
var
u
=
e
&&
e
.
target
&&
e
.
target
.
src
||
h
,
f
=
new
Error
(
"Loading CSS chunk "
+
c
+
" failed.
\
n("
+
u
+
")"
);
f
.
code
=
"CSS_CHUNK_LOAD_FAILED"
,
f
.
request
=
u
,
delete
d
[
c
],
o
.
parentNode
.
removeChild
(
o
),
n
(
f
)},
o
.
href
=
h
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
o
)})).
then
((
function
(){
d
[
c
]
=
0
})));
var
u
=
h
[
c
];
if
(
0
!==
u
)
if
(
u
)
e
.
push
(
u
[
2
]);
else
{
var
f
=
new
Promise
((
function
(
e
,
n
){
u
=
h
[
c
]
=
[
e
,
n
]}));
e
.
push
(
u
[
2
]
=
f
);
var
b
,
t
=
document
.
createElement
(
"script"
);
t
.
charset
=
"utf-8"
,
t
.
timeout
=
120
,
k
.
nc
&&
t
.
setAttribute
(
"nonce"
,
k
.
nc
),
t
.
src
=
a
(
c
);
var
r
=
new
Error
;
b
=
function
(
e
){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
o
);
var
n
=
h
[
c
];
if
(
0
!==
n
){
if
(
n
){
var
u
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
d
=
e
&&
e
.
target
&&
e
.
target
.
src
;
r
.
message
=
"Loading chunk "
+
c
+
" failed.
\
n("
+
u
+
": "
+
d
+
")"
,
r
.
name
=
"ChunkLoadError"
,
r
.
type
=
u
,
r
.
request
=
d
,
n
[
1
](
r
)}
h
[
c
]
=
void
0
}};
var
o
=
setTimeout
((
function
(){
b
({
type
:
"timeout"
,
target
:
t
})}),
12
e4
);
t
.
onerror
=
t
.
onload
=
b
,
document
.
head
.
appendChild
(
t
)}
return
Promise
.
all
(
e
)},
k
.
m
=
c
,
k
.
c
=
u
,
k
.
d
=
function
(
c
,
e
,
n
){
k
.
o
(
c
,
e
)
||
Object
.
defineProperty
(
c
,
e
,{
enumerable
:
!
0
,
get
:
n
})},
k
.
r
=
function
(
c
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
c
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
c
,
"__esModule"
,{
value
:
!
0
})},
k
.
t
=
function
(
c
,
e
){
if
(
1
&
e
&&
(
c
=
k
(
c
)),
8
&
e
)
return
c
;
if
(
4
&
e
&&
"object"
===
typeof
c
&&
c
&&
c
.
__esModule
)
return
c
;
var
n
=
Object
.
create
(
null
);
if
(
k
.
r
(
n
),
Object
.
defineProperty
(
n
,
"default"
,{
enumerable
:
!
0
,
value
:
c
}),
2
&
e
&&
"string"
!=
typeof
c
)
for
(
var
u
in
c
)
k
.
d
(
n
,
u
,
function
(
e
){
return
c
[
e
]}.
bind
(
null
,
u
));
return
n
},
k
.
n
=
function
(
c
){
var
e
=
c
&&
c
.
__esModule
?
function
(){
return
c
[
"default"
]}:
function
(){
return
c
};
return
k
.
d
(
e
,
"a"
,
e
),
e
},
k
.
o
=
function
(
c
,
e
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
e
)},
k
.
p
=
"/"
,
k
.
oe
=
function
(
c
){
throw
console
.
error
(
c
),
c
};
var
b
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
t
=
b
.
push
.
bind
(
b
);
b
.
push
=
e
,
b
=
b
.
slice
();
for
(
var
r
=
0
;
r
<
b
.
length
;
r
++
)
e
(
b
[
r
]);
var
o
=
t
;
n
()})([]);
</script><script
src=
/static/js/chunk-elementUI.61e0052a.js
></script><script
src=
/static/js/chunk-libs.2484bc94.js
></script><script
src=
/static/js/app.6095cfcc.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.
16c424eb
.js
→
dist/static/js/app.
6095cfcc
.js
浏览文件 @
721a043c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/chunk-2d0bd7b3.a697cbad.js
deleted
100644 → 0
浏览文件 @
f224b13e
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-2d0bd7b3"
],{
"2bd1"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-container"
},[
a
(
"el-form"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
showSearch
,
expression
:
"showSearch"
}],
ref
:
"queryForm"
,
attrs
:{
model
:
e
.
queryParams
,
inline
:
!
0
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"微信昵称"
,
prop
:
"receiveNickName"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入微信昵称"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
receiveNickName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"receiveNickName"
,
t
)},
expression
:
"queryParams.receiveNickName"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"领取人"
,
prop
:
"receiveUserAccount"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入领取人"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
receiveUserAccount
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"receiveUserAccount"
,
t
)},
expression
:
"queryParams.receiveUserAccount"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"状态"
,
prop
:
"state"
}},[
a
(
"el-select"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"状态"
,
clearable
:
""
,
size
:
"small"
},
model
:{
value
:
e
.
queryParams
.
state
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"state"
,
t
)},
expression
:
"queryParams.state"
}},[
e
.
_v
(
"I "
),
a
(
"el-option"
,{
key
:
""
,
attrs
:{
label
:
"全部"
,
value
:
""
}}),
a
(
"el-option"
,{
key
:
"INI"
,
attrs
:{
label
:
"已领取待核销"
,
value
:
"INI"
}}),
a
(
"el-option"
,{
key
:
"USED"
,
attrs
:{
label
:
"已核销"
,
value
:
"USED"
}}),
a
(
"el-option"
,{
key
:
"EXPIRYED"
,
attrs
:{
label
:
"已失效"
,
value
:
"EXPIRYED"
}}),
a
(
"el-option"
,{
key
:
"ERR"
,
attrs
:{
label
:
"发放失败"
,
value
:
"ERR"
}}),
a
(
"el-option"
,{
key
:
"X"
,
attrs
:{
label
:
"已删除"
,
value
:
"X"
}})],
1
)],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"发放渠道"
,
prop
:
"sendChannel"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入发放渠道"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
sendChannel
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"sendChannel"
,
t
)},
expression
:
"queryParams.sendChannel"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"核销时间"
}},[
a
(
"el-date-picker"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
size
:
"small"
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
"range-separator"
:
"-"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
dateRange
,
callback
:
function
(
t
){
e
.
dateRange
=
t
},
expression
:
"dateRange"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"核销人"
,
prop
:
"verificationChannelEmployeeName"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入核销人"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
verificationChannelEmployeeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"verificationChannelEmployeeName"
,
t
)},
expression
:
"queryParams.verificationChannelEmployeeName"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"核销门店"
,
prop
:
"verificationChannelName"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入核销门店"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
verificationChannelName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"verificationChannelName"
,
t
)},
expression
:
"queryParams.verificationChannelName"
}})],
1
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
,
size
:
"mini"
},
on
:{
click
:
e
.
handleQuery
}},[
e
.
_v
(
"搜索"
)]),
a
(
"el-button"
,{
attrs
:{
icon
:
"el-icon-refresh"
,
size
:
"mini"
},
on
:{
click
:
e
.
resetQuery
}},[
e
.
_v
(
"重置"
)])],
1
)],
1
),
a
(
"el-row"
,{
staticClass
:
"mb8"
,
attrs
:{
gutter
:
10
}},[
a
(
"el-col"
,{
attrs
:{
span
:
1.5
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
icon
:
"el-icon-download"
,
size
:
"mini"
},
on
:{
click
:
e
.
handleAdd
}},[
e
.
_v
(
"下载报表"
)])],
1
)],
1
),
a
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
data
:
e
.
roleList
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"id"
,
prop
:
"roleId"
,
width
:
"60"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
" "
+
e
.
_s
(
t
.
$index
+
1
)
+
" "
)]}}])}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"优惠券标题"
,
prop
:
"couponName"
,
width
:
"120"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"领取人"
,
prop
:
"receiveUserAccount"
,
"show-overflow-tooltip"
:
!
0
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"微信昵称"
,
prop
:
"receiveNickName"
,
"show-overflow-tooltip"
:
!
0
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"领取时间"
,
prop
:
"receiveTime"
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"券码"
,
prop
:
"couponCode"
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
align
:
"center"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"INI"
==
t
.
row
.
state
?
a
(
"span"
,[
e
.
_v
(
"已领取待核销"
)]):
e
.
_e
(),
"USED"
==
t
.
row
.
state
?
a
(
"span"
,[
e
.
_v
(
"已核销"
)]):
e
.
_e
(),
"EXPIRYED"
==
t
.
row
.
state
?
a
(
"span"
,[
e
.
_v
(
"已失效"
)]):
e
.
_e
(),
"ERR"
==
t
.
row
.
state
?
a
(
"span"
,[
e
.
_v
(
"发放失败"
)]):
e
.
_e
(),
"X"
==
t
.
row
.
state
?
a
(
"span"
,[
e
.
_v
(
"已删除"
)]):
e
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"核销时间"
,
align
:
"center"
,
prop
:
"verificationTime"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
parseTime
(
t
.
row
.
verificationTime
)))])]}}])}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"核销人"
,
align
:
"center"
,
prop
:
"verificationChannelEmployeeName"
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"核销门店"
,
align
:
"center"
,
prop
:
"verificationChannelName"
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"使用人"
,
align
:
"center"
,
prop
:
"receiveNickName"
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"会员体系ID"
,
align
:
"center"
,
prop
:
"memberSysId"
,
width
:
"150"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"发放渠道"
,
align
:
"center"
,
prop
:
"sendChannel"
,
width
:
"150"
}})],
1
),
a
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
queryParams
.
pageIndex
,
limit
:
e
.
queryParams
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
queryParams
,
"pageIndex"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
queryParams
,
"pageSize"
,
t
)},
pagination
:
e
.
getList
}})],
1
)},
l
=
[],
i
=
(
a
(
"d81d"
),
a
(
"159b"
),
a
(
"b0c0"
),
a
(
"b775"
));
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/xh/coupon/coupon/xhDatalist"
,
method
:
"post"
,
data
:
e
})}
var
o
=
{
name
:
"CouponVerificationList"
,
dicts
:[
"sys_normal_disable"
],
data
:
function
(){
return
{
loading
:
!
0
,
exportLoading
:
!
1
,
ids
:[],
single
:
!
0
,
multiple
:
!
0
,
showSearch
:
!
0
,
total
:
0
,
roleList
:[],
title
:
""
,
open
:
!
1
,
openDataScope
:
!
1
,
menuExpand
:
!
1
,
menuNodeAll
:
!
1
,
deptExpand
:
!
0
,
deptNodeAll
:
!
1
,
dateRange
:[],
menuOptions
:[],
deptOptions
:[],
queryParams
:{
pageIndex
:
1
,
pageSize
:
10
,
couponCode
:
""
,
couponInfoId
:
""
,
couponName
:
""
,
memberSysId
:
""
,
receiveNickName
:
""
,
receiveUserAccount
:
""
,
sendChannel
:
""
,
state
:
""
,
tableName
:
""
,
verificationChannelEmployeeName
:
""
,
verificationChannelName
:
""
,
verificationEndTime
:
""
,
verificationStartTime
:
""
},
form
:{},
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
created
:
function
(){
this
.
getList
()},
methods
:{
getList
:
function
(){
var
e
=
this
;
this
.
loading
=!
0
;
var
t
=
this
.
queryParams
;
0
!=
this
.
dateRange
.
length
&&
(
t
.
verificationStartTime
=
this
.
dateRange
[
0
],
t
.
verificationEndTime
=
this
.
dateRange
[
1
]),
t
.
couponInfoId
=
this
.
$route
.
query
.
id
,
r
(
t
).
then
((
function
(
t
){
e
.
roleList
=
t
.
rows
,
e
.
total
=
t
.
total
,
e
.
loading
=!
1
}))},
cancel
:
function
(){
this
.
open
=!
1
,
this
.
reset
()},
cancelDataScope
:
function
(){
this
.
openDataScope
=!
1
,
this
.
reset
()},
handleQuery
:
function
(){
this
.
queryParams
.
pageNum
=
1
,
this
.
getList
()},
resetQuery
:
function
(){
this
.
dateRange
=
[],
this
.
resetForm
(
"queryForm"
),
this
.
handleQuery
()},
handleSelectionChange
:
function
(
e
){
this
.
ids
=
e
.
map
((
function
(
e
){
return
e
.
roleId
})),
this
.
single
=
1
!=
e
.
length
,
this
.
multiple
=!
e
.
length
},
handleCommand
:
function
(
e
,
t
){
switch
(
e
){
case
"handleDataScope"
:
this
.
handleDataScope
(
t
);
break
;
case
"handleAuthUser"
:
this
.
handleAuthUser
(
t
);
break
;
default
:
break
}},
handleCheckedTreeExpand
:
function
(
e
,
t
){
if
(
"menu"
==
t
)
for
(
var
a
=
this
.
menuOptions
,
n
=
0
;
n
<
a
.
length
;
n
++
)
this
.
$refs
.
menu
.
store
.
nodesMap
[
a
[
n
].
id
].
expanded
=
e
;
else
if
(
"dept"
==
t
)
for
(
var
l
=
this
.
deptOptions
,
i
=
0
;
i
<
l
.
length
;
i
++
)
this
.
$refs
.
dept
.
store
.
nodesMap
[
l
[
i
].
id
].
expanded
=
e
},
handleCheckedTreeNodeAll
:
function
(
e
,
t
){
"menu"
==
t
?
this
.
$refs
.
menu
.
setCheckedNodes
(
e
?
this
.
menuOptions
:[]):
"dept"
==
t
&&
this
.
$refs
.
dept
.
setCheckedNodes
(
e
?
this
.
deptOptions
:[])},
handleCheckedTreeConnect
:
function
(
e
,
t
){
"menu"
==
t
?
this
.
form
.
menuCheckStrictly
=!!
e
:
"dept"
==
t
&&
(
this
.
form
.
deptCheckStrictly
=!!
e
)},
handleAdd
:
function
(){
this
.
reset
(),
this
.
getMenuTreeselect
(),
this
.
open
=!
0
,
this
.
title
=
"添加角色"
},
handleUpdate
:
function
(
e
){
var
t
=
this
;
this
.
reset
();
var
a
=
e
.
roleId
||
this
.
ids
,
n
=
this
.
getRoleMenuTreeselect
(
a
);
getRole
(
a
).
then
((
function
(
e
){
t
.
form
=
e
.
data
,
t
.
open
=!
0
,
t
.
$nextTick
((
function
(){
n
.
then
((
function
(
e
){
var
a
=
e
.
checkedKeys
;
a
.
forEach
((
function
(
e
){
t
.
$nextTick
((
function
(){
t
.
$refs
.
menu
.
setChecked
(
e
,
!
0
,
!
1
)}))}))}))})),
t
.
title
=
"修改角色"
}))},
dataScopeSelectChange
:
function
(
e
){
"2"
!==
e
&&
this
.
$refs
.
dept
.
setCheckedKeys
([])},
handleDataScope
:
function
(
e
){
var
t
=
this
;
this
.
reset
();
var
a
=
this
.
getRoleDeptTreeselect
(
e
.
roleId
);
getRole
(
e
.
roleId
).
then
((
function
(
e
){
t
.
form
=
e
.
data
,
t
.
openDataScope
=!
0
,
t
.
$nextTick
((
function
(){
a
.
then
((
function
(
e
){
t
.
$refs
.
dept
.
setCheckedKeys
(
e
.
checkedKeys
)}))})),
t
.
title
=
"分配数据权限"
}))},
handleAuthUser
:
function
(
e
){
var
t
=
e
.
roleId
;
this
.
$router
.
push
(
"/system/role-auth/user/"
+
t
)},
submitForm
:
function
(){
var
e
=
this
;
this
.
$refs
[
"form"
].
validate
((
function
(
t
){
t
&&
(
void
0
!=
e
.
form
.
roleId
?(
e
.
form
.
menuIds
=
e
.
getMenuAllCheckedKeys
(),
updateRole
(
e
.
form
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"修改成功"
),
e
.
open
=!
1
,
e
.
getList
()}))):(
e
.
form
.
menuIds
=
e
.
getMenuAllCheckedKeys
(),
addRole
(
e
.
form
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"新增成功"
),
e
.
open
=!
1
,
e
.
getList
()}))))}))},
submitDataScope
:
function
(){
var
e
=
this
;
void
0
!=
this
.
form
.
roleId
&&
(
this
.
form
.
deptIds
=
this
.
getDeptAllCheckedKeys
(),
dataScope
(
this
.
form
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"修改成功"
),
e
.
openDataScope
=!
1
,
e
.
getList
()})))},
handleDelete
:
function
(
e
){
var
t
=
this
,
a
=
e
.
roleId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除角色编号为"'
+
a
+
'"的数据项?'
).
then
((
function
(){
return
delRole
(
a
)})).
then
((
function
(){
t
.
getList
(),
t
.
$modal
.
msgSuccess
(
"删除成功"
)})).
catch
((
function
(){}))},
handleExport
:
function
(){
var
e
=
this
,
t
=
this
.
queryParams
;
this
.
$modal
.
confirm
(
"是否确认导出所有用户数据项?"
).
then
((
function
(){
return
e
.
exportLoading
=!
0
,
exportRole
(
t
)})).
then
((
function
(
t
){
e
.
$download
.
name
(
t
.
msg
),
e
.
exportLoading
=!
1
})).
catch
((
function
(){}))}}},
s
=
o
,
c
=
a
(
"2877"
),
u
=
Object
(
c
[
"a"
])(
s
,
n
,
l
,
!
1
,
null
,
null
,
null
);
t
[
"default"
]
=
u
.
exports
}}]);
\ No newline at end of file
dist/static/js/chunk-5a8b7759.95a7c448.js
0 → 100644
浏览文件 @
721a043c
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-5a8b7759"
],{
"2bd1"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"app-container"
},[
n
(
"el-form"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
showSearch
,
expression
:
"showSearch"
}],
ref
:
"queryForm"
,
attrs
:{
model
:
e
.
queryParams
,
inline
:
!
0
}},[
n
(
"el-form-item"
,{
attrs
:{
label
:
"微信昵称"
,
prop
:
"receiveNickName"
}},[
n
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入微信昵称"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
receiveNickName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"receiveNickName"
,
t
)},
expression
:
"queryParams.receiveNickName"
}})],
1
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"领取人"
,
prop
:
"receiveUserAccount"
}},[
n
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入领取人"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
receiveUserAccount
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"receiveUserAccount"
,
t
)},
expression
:
"queryParams.receiveUserAccount"
}})],
1
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"状态"
,
prop
:
"state"
}},[
n
(
"el-select"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"状态"
,
clearable
:
""
,
size
:
"small"
},
model
:{
value
:
e
.
queryParams
.
state
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"state"
,
t
)},
expression
:
"queryParams.state"
}},[
e
.
_v
(
"I "
),
n
(
"el-option"
,{
key
:
""
,
attrs
:{
label
:
"全部"
,
value
:
""
}}),
n
(
"el-option"
,{
key
:
"INI"
,
attrs
:{
label
:
"已领取待核销"
,
value
:
"INI"
}}),
n
(
"el-option"
,{
key
:
"USED"
,
attrs
:{
label
:
"已核销"
,
value
:
"USED"
}}),
n
(
"el-option"
,{
key
:
"EXPIRYED"
,
attrs
:{
label
:
"已失效"
,
value
:
"EXPIRYED"
}}),
n
(
"el-option"
,{
key
:
"ERR"
,
attrs
:{
label
:
"发放失败"
,
value
:
"ERR"
}}),
n
(
"el-option"
,{
key
:
"X"
,
attrs
:{
label
:
"已删除"
,
value
:
"X"
}})],
1
)],
1
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"发放渠道"
,
prop
:
"sendChannel"
}},[
n
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入发放渠道"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
sendChannel
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"sendChannel"
,
t
)},
expression
:
"queryParams.sendChannel"
}})],
1
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"核销时间"
}},[
n
(
"el-date-picker"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
size
:
"small"
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
"range-separator"
:
"-"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
dateRange
,
callback
:
function
(
t
){
e
.
dateRange
=
t
},
expression
:
"dateRange"
}})],
1
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"核销人"
,
prop
:
"verificationChannelEmployeeName"
}},[
n
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入核销人"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
verificationChannelEmployeeName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"verificationChannelEmployeeName"
,
t
)},
expression
:
"queryParams.verificationChannelEmployeeName"
}})],
1
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"核销门店"
,
prop
:
"verificationChannelName"
}},[
n
(
"el-input"
,{
staticStyle
:{
width
:
"240px"
},
attrs
:{
placeholder
:
"请输入核销门店"
,
clearable
:
""
,
size
:
"small"
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleQuery
(
t
)}},
model
:{
value
:
e
.
queryParams
.
verificationChannelName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
queryParams
,
"verificationChannelName"
,
t
)},
expression
:
"queryParams.verificationChannelName"
}})],
1
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
,
size
:
"mini"
},
on
:{
click
:
e
.
handleQuery
}},[
e
.
_v
(
"搜索"
)]),
n
(
"el-button"
,{
attrs
:{
icon
:
"el-icon-refresh"
,
size
:
"mini"
},
on
:{
click
:
e
.
resetQuery
}},[
e
.
_v
(
"重置"
)])],
1
)],
1
),
n
(
"el-row"
,{
staticClass
:
"mb8"
,
attrs
:{
gutter
:
10
}},[
n
(
"el-col"
,{
attrs
:{
span
:
1.5
}},[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
icon
:
"el-icon-download"
,
size
:
"mini"
},
on
:{
click
:
e
.
handleExport
}},[
e
.
_v
(
"下载报表"
)])],
1
)],
1
),
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}],
attrs
:{
data
:
e
.
roleList
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
label
:
"id"
,
prop
:
"roleId"
,
width
:
"60"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
" "
+
e
.
_s
(
t
.
$index
+
1
)
+
" "
)]}}])}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"优惠券标题"
,
prop
:
"couponName"
,
width
:
"120"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"领取人"
,
prop
:
"receiveUserAccount"
,
"show-overflow-tooltip"
:
!
0
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"微信昵称"
,
prop
:
"receiveNickName"
,
"show-overflow-tooltip"
:
!
0
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"领取时间"
,
prop
:
"receiveTime"
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"券码"
,
prop
:
"couponCode"
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
align
:
"center"
,
width
:
"120"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"INI"
==
t
.
row
.
state
?
n
(
"span"
,[
e
.
_v
(
"已领取待核销"
)]):
e
.
_e
(),
"USED"
==
t
.
row
.
state
?
n
(
"span"
,[
e
.
_v
(
"已核销"
)]):
e
.
_e
(),
"EXPIRYED"
==
t
.
row
.
state
?
n
(
"span"
,[
e
.
_v
(
"已失效"
)]):
e
.
_e
(),
"ERR"
==
t
.
row
.
state
?
n
(
"span"
,[
e
.
_v
(
"发放失败"
)]):
e
.
_e
(),
"X"
==
t
.
row
.
state
?
n
(
"span"
,[
e
.
_v
(
"已删除"
)]):
e
.
_e
()]}}])}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"核销时间"
,
align
:
"center"
,
prop
:
"verificationTime"
,
width
:
"150"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
parseTime
(
t
.
row
.
verificationTime
)))])]}}])}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"核销人"
,
align
:
"center"
,
prop
:
"verificationChannelEmployeeName"
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"核销门店"
,
align
:
"center"
,
prop
:
"verificationChannelName"
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"使用人"
,
align
:
"center"
,
prop
:
"receiveNickName"
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"会员体系ID"
,
align
:
"center"
,
prop
:
"memberSysId"
,
width
:
"150"
}}),
n
(
"el-table-column"
,{
attrs
:{
label
:
"发放渠道"
,
align
:
"center"
,
prop
:
"sendChannel"
,
width
:
"150"
}})],
1
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
queryParams
.
pageIndex
,
limit
:
e
.
queryParams
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
queryParams
,
"pageIndex"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
queryParams
,
"pageSize"
,
t
)},
pagination
:
e
.
getList
}})],
1
)},
o
=
[],
r
=
(
n
(
"d81d"
),
n
(
"159b"
),
n
(
"b0c0"
),
n
(
"b775"
));
function
i
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/xh/coupon/coupon/xhDatalist"
,
method
:
"post"
,
data
:
e
})}
var
l
=
n
(
"974c"
),
s
=
{
name
:
"CouponVerificationList"
,
dicts
:[
"sys_normal_disable"
],
data
:
function
(){
return
{
loading
:
!
0
,
exportLoading
:
!
1
,
ids
:[],
single
:
!
0
,
multiple
:
!
0
,
showSearch
:
!
0
,
total
:
0
,
roleList
:[],
title
:
""
,
open
:
!
1
,
openDataScope
:
!
1
,
menuExpand
:
!
1
,
menuNodeAll
:
!
1
,
deptExpand
:
!
0
,
deptNodeAll
:
!
1
,
dateRange
:[],
menuOptions
:[],
deptOptions
:[],
queryParams
:{
pageIndex
:
1
,
pageSize
:
10
,
couponCode
:
""
,
couponInfoId
:
""
,
couponName
:
""
,
memberSysId
:
""
,
receiveNickName
:
""
,
receiveUserAccount
:
""
,
sendChannel
:
""
,
state
:
""
,
tableName
:
""
,
verificationChannelEmployeeName
:
""
,
verificationChannelName
:
""
,
verificationEndTime
:
""
,
verificationStartTime
:
""
},
form
:{},
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
created
:
function
(){
this
.
getList
()},
methods
:{
getList
:
function
(){
var
e
=
this
;
this
.
loading
=!
0
;
var
t
=
this
.
queryParams
;
0
!=
this
.
dateRange
.
length
&&
(
t
.
verificationStartTime
=
this
.
dateRange
[
0
],
t
.
verificationEndTime
=
this
.
dateRange
[
1
]),
t
.
couponInfoId
=
this
.
$route
.
query
.
id
,
i
(
t
).
then
((
function
(
t
){
e
.
roleList
=
t
.
rows
,
e
.
total
=
t
.
total
,
e
.
loading
=!
1
}))},
cancel
:
function
(){
this
.
open
=!
1
,
this
.
reset
()},
cancelDataScope
:
function
(){
this
.
openDataScope
=!
1
,
this
.
reset
()},
handleQuery
:
function
(){
this
.
queryParams
.
pageNum
=
1
,
this
.
getList
()},
resetQuery
:
function
(){
this
.
dateRange
=
[],
this
.
resetForm
(
"queryForm"
),
this
.
handleQuery
()},
handleSelectionChange
:
function
(
e
){
this
.
ids
=
e
.
map
((
function
(
e
){
return
e
.
roleId
})),
this
.
single
=
1
!=
e
.
length
,
this
.
multiple
=!
e
.
length
},
handleCommand
:
function
(
e
,
t
){
switch
(
e
){
case
"handleDataScope"
:
this
.
handleDataScope
(
t
);
break
;
case
"handleAuthUser"
:
this
.
handleAuthUser
(
t
);
break
;
default
:
break
}},
handleCheckedTreeExpand
:
function
(
e
,
t
){
if
(
"menu"
==
t
)
for
(
var
n
=
this
.
menuOptions
,
a
=
0
;
a
<
n
.
length
;
a
++
)
this
.
$refs
.
menu
.
store
.
nodesMap
[
n
[
a
].
id
].
expanded
=
e
;
else
if
(
"dept"
==
t
)
for
(
var
o
=
this
.
deptOptions
,
r
=
0
;
r
<
o
.
length
;
r
++
)
this
.
$refs
.
dept
.
store
.
nodesMap
[
o
[
r
].
id
].
expanded
=
e
},
handleCheckedTreeNodeAll
:
function
(
e
,
t
){
"menu"
==
t
?
this
.
$refs
.
menu
.
setCheckedNodes
(
e
?
this
.
menuOptions
:[]):
"dept"
==
t
&&
this
.
$refs
.
dept
.
setCheckedNodes
(
e
?
this
.
deptOptions
:[])},
handleCheckedTreeConnect
:
function
(
e
,
t
){
"menu"
==
t
?
this
.
form
.
menuCheckStrictly
=!!
e
:
"dept"
==
t
&&
(
this
.
form
.
deptCheckStrictly
=!!
e
)},
handleAdd
:
function
(){
this
.
reset
(),
this
.
getMenuTreeselect
(),
this
.
open
=!
0
,
this
.
title
=
"添加角色"
},
handleUpdate
:
function
(
e
){
var
t
=
this
;
this
.
reset
();
var
n
=
e
.
roleId
||
this
.
ids
,
a
=
this
.
getRoleMenuTreeselect
(
n
);
getRole
(
n
).
then
((
function
(
e
){
t
.
form
=
e
.
data
,
t
.
open
=!
0
,
t
.
$nextTick
((
function
(){
a
.
then
((
function
(
e
){
var
n
=
e
.
checkedKeys
;
n
.
forEach
((
function
(
e
){
t
.
$nextTick
((
function
(){
t
.
$refs
.
menu
.
setChecked
(
e
,
!
0
,
!
1
)}))}))}))})),
t
.
title
=
"修改角色"
}))},
dataScopeSelectChange
:
function
(
e
){
"2"
!==
e
&&
this
.
$refs
.
dept
.
setCheckedKeys
([])},
handleDataScope
:
function
(
e
){
var
t
=
this
;
this
.
reset
();
var
n
=
this
.
getRoleDeptTreeselect
(
e
.
roleId
);
getRole
(
e
.
roleId
).
then
((
function
(
e
){
t
.
form
=
e
.
data
,
t
.
openDataScope
=!
0
,
t
.
$nextTick
((
function
(){
n
.
then
((
function
(
e
){
t
.
$refs
.
dept
.
setCheckedKeys
(
e
.
checkedKeys
)}))})),
t
.
title
=
"分配数据权限"
}))},
handleAuthUser
:
function
(
e
){
var
t
=
e
.
roleId
;
this
.
$router
.
push
(
"/system/role-auth/user/"
+
t
)},
submitForm
:
function
(){
var
e
=
this
;
this
.
$refs
[
"form"
].
validate
((
function
(
t
){
t
&&
(
void
0
!=
e
.
form
.
roleId
?(
e
.
form
.
menuIds
=
e
.
getMenuAllCheckedKeys
(),
updateRole
(
e
.
form
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"修改成功"
),
e
.
open
=!
1
,
e
.
getList
()}))):(
e
.
form
.
menuIds
=
e
.
getMenuAllCheckedKeys
(),
addRole
(
e
.
form
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"新增成功"
),
e
.
open
=!
1
,
e
.
getList
()}))))}))},
submitDataScope
:
function
(){
var
e
=
this
;
void
0
!=
this
.
form
.
roleId
&&
(
this
.
form
.
deptIds
=
this
.
getDeptAllCheckedKeys
(),
dataScope
(
this
.
form
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"修改成功"
),
e
.
openDataScope
=!
1
,
e
.
getList
()})))},
handleDelete
:
function
(
e
){
var
t
=
this
,
n
=
e
.
roleId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除角色编号为"'
+
n
+
'"的数据项?'
).
then
((
function
(){
return
delRole
(
n
)})).
then
((
function
(){
t
.
getList
(),
t
.
$modal
.
msgSuccess
(
"删除成功"
)})).
catch
((
function
(){}))},
handleExport
:
function
(){
var
e
=
this
,
t
=
this
.
queryParams
;
t
.
couponInfoId
=
this
.
$route
.
query
.
id
,
this
.
$modal
.
confirm
(
"是否确认导出所有数据项?"
).
then
((
function
(){
return
e
.
exportLoading
=!
0
,
Object
(
l
[
"d"
])(
t
)})).
then
((
function
(
t
){
console
.
log
(
t
),
e
.
$download
.
name
(
t
.
msg
),
e
.
exportLoading
=!
1
})).
catch
((
function
(){}))}}},
c
=
s
,
u
=
n
(
"2877"
),
d
=
Object
(
u
[
"a"
])(
c
,
a
,
o
,
!
1
,
null
,
null
,
null
);
t
[
"default"
]
=
d
.
exports
},
"974c"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
}));
var
a
=
n
(
"b775"
);
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/xh/coupon/coupon/xhlist"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/xh/coupon/coupon/editStatus"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/xh/coupon/coupon/xh/"
+
e
,
method
:
"get"
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/xh/coupon/coupon/edit"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/xh/coupon/coupon/export"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
dist/static/js/chunk-89639428.
bdaf4986
.js
→
dist/static/js/chunk-89639428.
a788e3dc
.js
浏览文件 @
721a043c
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-89639428"
],{
"686f"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
var
o
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-container"
},[
a
(
"el-form"
,{
ref
:
"formRef"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
size
:
"small"
,
"label-width"
:
"auto"
}},[
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"优惠券标题"
,
prop
:
"couponTitle"
,
required
:
""
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入优惠券标题"
,
disabled
:
""
},
model
:{
value
:
e
.
formData
.
couponTitle
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"couponTitle"
,
t
)},
expression
:
"formData.couponTitle"
}})],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"优惠券类型"
,
prop
:
"couponType"
,
required
:
""
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择优惠券类型"
,
disabled
:
""
},
model
:{
value
:
e
.
formData
.
couponType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"couponType"
,
t
)},
expression
:
"formData.couponType"
}},
e
.
_l
(
e
.
dict
.
type
.
coupon_type2
,(
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
1
)],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"优惠券分类"
,
prop
:
"categoryName"
,
required
:
""
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入优惠券分类"
,
disabled
:
""
},
model
:{
value
:
e
.
formData
.
categoryName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"categoryName"
,
t
)},
expression
:
"formData.categoryName"
}})],
1
),
a
(
"el-form-item"
,{
staticStyle
:{
"margin-bottom"
:
"0"
},
attrs
:{
label
:
"有效期"
}},[
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"validityType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
validityType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityType"
,
t
)},
expression
:
"formData.validityType"
}},[
e
.
_v
(
"固定日期"
)])],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"validityDate"
,
rules
:{
required
:
"1"
===
e
.
formData
.
validityType
,
message
:
"请选择日期"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-date-picker"
,{
staticStyle
:{
width
:
"400px"
},
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"value-format"
:
"yyyy-MM-dd"
,
disabled
:
"2"
===
e
.
formData
.
validityType
},
model
:{
value
:
e
.
formData
.
validityDate
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityDate"
,
t
)},
expression
:
"formData.validityDate"
}})],
1
)],
1
)],
1
),
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
5
}},[
a
(
"el-form-item"
,{
attrs
:{
props
:
"validityType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"2"
},
model
:{
value
:
e
.
formData
.
validityType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityType"
,
t
)},
expression
:
"formData.validityType"
}},[
e
.
_v
(
"领取后当天生效"
)])],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"validityNum"
,
rules
:{
required
:
"2"
===
e
.
formData
.
validityType
,
message
:
"请输入天数"
,
trigger
:[
"change"
,
"blur"
]}}},[
e
.
_v
(
" 有效期 "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入天数"
,
disabled
:
"1"
===
e
.
formData
.
validityType
},
model
:{
value
:
e
.
formData
.
validityNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityNum"
,
e
.
_n
(
t
))},
expression
:
"formData.validityNum"
}}),
e
.
_v
(
" 天 "
)],
1
)],
1
)],
1
)],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"库存"
,
prop
:
"issued"
,
rules
:{
required
:
!
0
,
message
:
"请输入库存数"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入库存数"
},
model
:{
value
:
e
.
formData
.
issued
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"issued"
,
e
.
_n
(
t
))},
expression
:
"formData.issued"
}})],
1
),
a
(
"el-form-item"
,{
staticStyle
:{
"margin-bottom"
:
"0"
},
attrs
:{
label
:
"领券限制"
}},[
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"receiveTotalNum"
,
rules
:{
required
:
!
e
.
receiveTotalChecked
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
e
.
_v
(
" 总共可领取 "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入"
,
disabled
:
e
.
receiveTotalChecked
},
model
:{
value
:
e
.
formData
.
receiveTotalNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"receiveTotalNum"
,
e
.
_n
(
t
))},
expression
:
"formData.receiveTotalNum"
}}),
e
.
_v
(
" 张 "
)],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
receiveTotalChecked
,
callback
:
function
(
t
){
e
.
receiveTotalChecked
=
t
},
expression
:
"receiveTotalChecked"
}},[
e
.
_v
(
"不限制"
)])],
1
)],
1
)],
1
),
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"receiveDayNum"
,
rules
:{
required
:
!
e
.
receiveDayChecked
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
e
.
_v
(
" 每日可领取 "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入"
,
disabled
:
e
.
receiveDayChecked
},
model
:{
value
:
e
.
formData
.
receiveDayNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"receiveDayNum"
,
e
.
_n
(
t
))},
expression
:
"formData.receiveDayNum"
}}),
e
.
_v
(
" 张 "
)],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
receiveDayChecked
,
callback
:
function
(
t
){
e
.
receiveDayChecked
=
t
},
expression
:
"receiveDayChecked"
}},[
e
.
_v
(
"不限制"
)])],
1
)],
1
)],
1
)],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"适用门店"
}},[
e
.
_v
(
" "
+
e
.
_s
(
e
.
formData
.
storeName
)
+
" "
)]),
a
(
"el-form-item"
,{
staticClass
:
"image-url"
,
attrs
:{
label
:
"优惠券图片"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
formData
.
url
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"url"
,
t
)},
expression
:
"formData.url"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-1.png"
}},[
a
(
"ImagePreview"
,{
attrs
:{
src
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-1.png"
,
"src-list"
:[
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-1.png"
]}})],
1
),
a
(
"el-radio"
,{
attrs
:{
label
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-2.png"
}},[
a
(
"ImagePreview"
,{
attrs
:{
src
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-2.png"
,
"src-list"
:[
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-2.png"
]}})],
1
),
a
(
"el-radio"
,{
attrs
:{
label
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-3.png"
}},[
a
(
"ImagePreview"
,{
attrs
:{
src
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-3.png"
,
"src-list"
:[
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-3.png"
]}})],
1
)],
1
)],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"使用须知"
,
prop
:
"remarks"
,
rules
:{
required
:
!
0
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
"6"
,
placeholder
:
"请输入"
},
model
:{
value
:
e
.
formData
.
remarks
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"remarks"
,
t
)},
expression
:
"formData.remarks"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"每日发放限制"
}},[
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
8
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"grantNum"
,
rules
:{
required
:
!
e
.
grantChecked
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入"
,
disabled
:
e
.
grantChecked
},
model
:{
value
:
e
.
formData
.
grantNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"grantNum"
,
e
.
_n
(
t
))},
expression
:
"formData.grantNum"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
11
}},[
a
(
"el-form-item"
,[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
grantChecked
,
callback
:
function
(
t
){
e
.
grantChecked
=
t
},
expression
:
"grantChecked"
}},[
e
.
_v
(
"不限制"
)])],
1
)],
1
)],
1
)],
1
),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"套餐名称"
,
prop
:
"mealTitle"
,
rules
:{
required
:
!
0
,
message
:
"请输入套餐名称"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入套餐名称"
},
model
:{
value
:
e
.
formData
.
mealTitle
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"mealTitle"
,
t
)},
expression
:
"formData.mealTitle"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"原价"
,
prop
:
"originalPrice"
,
rules
:{
required
:
!
0
,
message
:
"请输入原价"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入原价"
},
model
:{
value
:
e
.
formData
.
originalPrice
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"originalPrice"
,
e
.
_n
(
t
))},
expression
:
"formData.originalPrice"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"折扣价"
,
prop
:
"presentPrice"
,
rules
:{
required
:
!
0
,
message
:
"请输入折扣价"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入折扣价"
},
model
:{
value
:
e
.
formData
.
presentPrice
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"presentPrice"
,
e
.
_n
(
t
))},
expression
:
"formData.presentPrice"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"套餐备注"
,
prop
:
"mealRemarks"
}},[
a
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
"6"
,
placeholder
:
"请输入套餐备注"
},
model
:{
value
:
e
.
formData
.
mealRemarks
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"mealRemarks"
,
t
)},
expression
:
"formData.mealRemarks"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?[
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
handleAdd
}},[
e
.
_v
(
"新建分类"
)])],
1
),
e
.
_l
(
e
.
couponDetailList
,(
function
(
t
,
o
){
return
a
(
"el-form-item"
,{
key
:
o
,
staticClass
:
"form-common-input"
},[
a
(
"el-card"
,{
staticClass
:
"header-card"
,
attrs
:{
shadow
:
"never"
}},[
a
(
"div"
,{
staticClass
:
"clearfix"
,
attrs
:{
slot
:
"header"
},
slot
:
"header"
},[
a
(
"span"
,{
staticClass
:
"header-title"
},[
e
.
_v
(
e
.
_s
(
t
.
category
))]),
a
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"20px"
},
attrs
:{
size
:
"small"
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
return
e
.
handleEdit
(
o
)}}},[
e
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
size
:
"small"
,
type
:
"danger"
},
on
:{
click
:
function
(
t
){
return
e
.
handleDelete
(
o
)}}},[
e
.
_v
(
"删除"
)])],
1
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
list
,
size
:
"small"
,
border
:
""
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"菜品"
,
prop
:
"foodName"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"份数"
,
prop
:
"foodNum"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"价格"
,
prop
:
"foodPrice"
}})],
1
)],
1
)],
1
)}))]:
e
.
_e
(),
a
(
"el-form-item"
,{
attrs
:{
label
:
"状态"
,
prop
:
"couponStatus"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
formData
.
couponStatus
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"couponStatus"
,
t
)},
expression
:
"formData.couponStatus"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
}},[
e
.
_v
(
"正常"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
}},[
e
.
_v
(
"禁用"
)])],
1
)],
1
),
a
(
"el-form-item"
,{
attrs
:{
size
:
"medium"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"确认"
)]),
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)])],
1
)],
2
),
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogTitle
,
visible
:
e
.
dialogVisible
,
width
:
"780px"
,
"append-to-body"
:
""
,
"destroy-on-close"
:
""
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"el-form"
,{
ref
:
"dialogFormRef"
,
attrs
:{
model
:
e
.
chooseCouponDetail
,
"label-width"
:
"110px"
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"分类:"
,
prop
:
"category"
,
rules
:{
required
:
!
0
,
message
:
"请输入分类"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入分类"
},
model
:{
value
:
e
.
chooseCouponDetail
.
category
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseCouponDetail
,
"category"
,
t
)},
expression
:
"chooseCouponDetail.category"
}})],
1
)],
1
)],
1
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"序号:"
,
prop
:
"sort"
,
rules
:{
required
:
!
0
,
message
:
"请输入序号"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入序号"
},
model
:{
value
:
e
.
chooseCouponDetail
.
sort
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseCouponDetail
,
"sort"
,
e
.
_n
(
t
))},
expression
:
"chooseCouponDetail.sort"
}})],
1
)],
1
)],
1
),
a
(
"el-row"
,{
staticStyle
:{
"margin-bottom"
:
"20px"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addFood
}},[
e
.
_v
(
"新增菜品"
)])],
1
),
e
.
_l
(
e
.
chooseCouponDetail
.
list
,(
function
(
t
,
o
){
return
a
(
"el-row"
,{
key
:
o
},[
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"菜名:"
,
prop
:
"list."
+
o
+
".foodName"
,
rules
:{
required
:
!
0
,
message
:
"请输入菜品"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入菜品"
},
model
:{
value
:
t
.
foodName
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"foodName"
,
a
)},
expression
:
"item.foodName"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"份数:"
,
prop
:
"list."
+
o
+
".foodNum"
,
rules
:{
required
:
!
0
,
message
:
"请输入份数"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入份数"
},
model
:{
value
:
t
.
foodNum
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"foodNum"
,
e
.
_n
(
a
))},
expression
:
"item.foodNum"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"价格:"
,
prop
:
"list."
+
o
+
".foodPrice"
,
rules
:{
required
:
!
0
,
message
:
"请输入价格"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入价格"
},
model
:{
value
:
t
.
foodPrice
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"foodPrice"
,
e
.
_n
(
a
))},
expression
:
"item.foodPrice"
}})],
1
)],
1
)],
1
)}))],
2
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitDialog
}},[
e
.
_v
(
"确 定"
)]),
a
(
"el-button"
,{
on
:{
click
:
e
.
cleanDialog
}},[
e
.
_v
(
"取 消"
)])],
1
)],
1
)],
1
)},
l
=
[],
r
=
(
a
(
"a434"
),
a
(
"159b"
),
a
(
"974c"
)),
i
=
a
(
"ed08"
),
s
=
{
name
:
"CouponEdit"
,
dicts
:[
"coupon_type2"
],
data
:
function
(){
return
{
receiveTotalChecked
:
!
1
,
receiveDayChecked
:
!
1
,
grantChecked
:
!
1
,
formData
:{},
rules
:{},
couponDetailList
:[],
chooseCouponDetail
:{},
dialogTitle
:
""
,
dialogVisible
:
!
1
,
editIndex
:
0
}},
mounted
:
function
(){
this
.
getDetail
()},
watch
:{
"formData.validityType"
:{
handler
:
function
(
e
,
t
){}}},
methods
:{
getDetail
:
function
(){
var
e
=
this
;
Object
(
r
[
"a"
])(
this
.
$route
.
query
.
id
).
then
((
function
(
t
){
var
a
=
Object
.
assign
({},
t
.
data
);
"1"
===
a
.
validityType
?
a
.
validityDate
=
[
a
.
validityStartDate
,
a
.
validityEndDate
]:
a
.
validityDate
=
[],
-
1
===
a
.
receiveTotal
?
e
.
receiveTotalChecked
=!
0
:(
e
.
receiveTotalChecked
=!
1
,
a
.
receiveTotalNum
=
a
.
receiveTotal
),
-
1
===
a
.
receiveDay
?
e
.
receiveDayChecked
=!
0
:(
e
.
receiveDayChecked
=!
1
,
a
.
receiveDayNum
=
a
.
receiveDay
),
-
1
===
a
.
grant
?
e
.
grantChecked
=!
0
:(
e
.
grantChecked
=!
1
,
a
.
grantNum
=
a
.
grant
),
e
.
formData
=
a
,
e
.
couponDetailList
=
Object
(
i
[
"d"
])(
a
.
couponDetailList
)}))},
handleAdd
:
function
(){
this
.
dialogTitle
=
"新增分类"
,
this
.
chooseCouponDetail
=
{
category
:
void
0
,
sort
:
void
0
,
list
:[]},
this
.
dialogVisible
=!
0
},
handleEdit
:
function
(
e
){
this
.
editIndex
=
e
,
this
.
dialogTitle
=
"编辑分类"
;
var
t
=
Object
(
i
[
"d"
])(
this
.
couponDetailList
[
e
]);
this
.
chooseCouponDetail
=
t
,
this
.
dialogVisible
=!
0
},
handleDelete
:
function
(
e
){
this
.
couponDetailList
.
splice
(
e
,
1
)},
onSubmit
:
function
(){
var
e
=
this
;
this
.
$refs
.
formRef
.
validate
((
function
(
t
){
if
(
t
){
var
a
=
Object
(
i
[
"d"
])(
e
.
formData
);
"1"
===
a
.
validityType
&&
(
a
.
validityStartDate
=
a
.
validityDate
[
0
],
a
.
validityEndDate
=
a
.
validityDate
[
1
]),
e
.
receiveTotalChecked
?
a
.
receiveTotal
=-
1
:
a
.
receiveTotal
=
a
.
receiveTotalNum
,
e
.
receiveDayChecked
?
a
.
receiveDay
=-
1
:
a
.
receiveDay
=
a
.
receiveDayNum
,
e
.
grantChecked
?
a
.
grant
=-
1
:
a
.
grant
=
a
.
grantNum
,
"team"
===
a
.
couponType
&&
(
a
.
couponDetailList
=
Object
(
i
[
"d"
])(
e
.
couponDetailList
),
a
.
couponDetailList
.
forEach
((
function
(
e
){
e
.
goodsJson
=
JSON
.
stringify
(
e
.
list
)}))),
Object
(
r
[
"b"
])(
a
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"优惠券编辑成功"
),
e
.
$tab
.
closeOpenPage
(),
e
.
$router
.
push
({
name
:
"CouponList"
,
params
:{
refreshTable
:
!
0
}})}))}}))},
cancel
:
function
(){
this
.
$tab
.
closeOpenPage
(),
this
.
$router
.
push
({
name
:
"CouponList"
})},
addFood
:
function
(){
this
.
chooseCouponDetail
.
list
.
push
({
foodName
:
void
0
,
foodNum
:
void
0
,
foodPrice
:
void
0
})},
submitDialog
:
function
(){
var
e
=
this
;
this
.
$refs
.
dialogFormRef
.
validate
((
function
(
t
){
if
(
t
){
var
a
=
Object
(
i
[
"d"
])(
e
.
chooseCouponDetail
);
"编辑分类"
===
e
.
dialogTitle
?
e
.
couponDetailList
.
splice
(
e
.
editIndex
,
1
,
a
):
e
.
couponDetailList
.
push
(
a
),
e
.
dialogVisible
=!
1
}}))},
cleanDialog
:
function
(){
this
.
dialogVisible
=!
1
}}},
n
=
s
,
c
=
(
a
(
"b81a"
),
a
(
"2877"
)),
u
=
Object
(
c
[
"a"
])(
n
,
o
,
l
,
!
1
,
null
,
"d354f5bc"
,
null
);
t
[
"default"
]
=
u
.
exports
},
9561
:
function
(
e
,
t
,
a
){},
"974c"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
d
(
t
,
"d"
,(
function
(){
return
l
})),
a
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
a
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
a
.
d
(
t
,
"b"
,(
function
(){
return
s
}));
var
o
=
a
(
"b775"
);
function
l
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/xhlist"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/editStatus"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/xh/"
+
e
,
method
:
"get"
})}
function
s
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/edit"
,
method
:
"post"
,
data
:
e
})}},
b81a
:
function
(
e
,
t
,
a
){
"use strict"
;
a
(
"9561"
)}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-89639428"
],{
"686f"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
var
o
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"app-container"
},[
a
(
"el-form"
,{
ref
:
"formRef"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
size
:
"small"
,
"label-width"
:
"auto"
}},[
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"优惠券标题"
,
prop
:
"couponTitle"
,
required
:
""
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入优惠券标题"
,
disabled
:
""
},
model
:{
value
:
e
.
formData
.
couponTitle
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"couponTitle"
,
t
)},
expression
:
"formData.couponTitle"
}})],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"优惠券类型"
,
prop
:
"couponType"
,
required
:
""
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择优惠券类型"
,
disabled
:
""
},
model
:{
value
:
e
.
formData
.
couponType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"couponType"
,
t
)},
expression
:
"formData.couponType"
}},
e
.
_l
(
e
.
dict
.
type
.
coupon_type2
,(
function
(
e
,
t
){
return
a
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
1
)],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"优惠券分类"
,
prop
:
"categoryName"
,
required
:
""
}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入优惠券分类"
,
disabled
:
""
},
model
:{
value
:
e
.
formData
.
categoryName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"categoryName"
,
t
)},
expression
:
"formData.categoryName"
}})],
1
),
a
(
"el-form-item"
,{
staticStyle
:{
"margin-bottom"
:
"0"
},
attrs
:{
label
:
"有效期"
}},[
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
4
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"validityType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
validityType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityType"
,
t
)},
expression
:
"formData.validityType"
}},[
e
.
_v
(
"固定日期"
)])],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"validityDate"
,
rules
:{
required
:
"1"
===
e
.
formData
.
validityType
,
message
:
"请选择日期"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-date-picker"
,{
staticStyle
:{
width
:
"400px"
},
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"value-format"
:
"yyyy-MM-dd"
,
disabled
:
"2"
===
e
.
formData
.
validityType
},
model
:{
value
:
e
.
formData
.
validityDate
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityDate"
,
t
)},
expression
:
"formData.validityDate"
}})],
1
)],
1
)],
1
),
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
5
}},[
a
(
"el-form-item"
,{
attrs
:{
props
:
"validityType"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"2"
},
model
:{
value
:
e
.
formData
.
validityType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityType"
,
t
)},
expression
:
"formData.validityType"
}},[
e
.
_v
(
"领取后当天生效"
)])],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"validityNum"
,
rules
:{
required
:
"2"
===
e
.
formData
.
validityType
,
message
:
"请输入天数"
,
trigger
:[
"change"
,
"blur"
]}}},[
e
.
_v
(
" 有效期 "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入天数"
,
disabled
:
"1"
===
e
.
formData
.
validityType
},
model
:{
value
:
e
.
formData
.
validityNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validityNum"
,
e
.
_n
(
t
))},
expression
:
"formData.validityNum"
}}),
e
.
_v
(
" 天 "
)],
1
)],
1
)],
1
)],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"库存"
,
prop
:
"issued"
,
rules
:{
required
:
!
0
,
message
:
"请输入库存数"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入库存数"
},
model
:{
value
:
e
.
formData
.
issued
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"issued"
,
e
.
_n
(
t
))},
expression
:
"formData.issued"
}})],
1
),
a
(
"el-form-item"
,{
staticStyle
:{
"margin-bottom"
:
"0"
},
attrs
:{
label
:
"领券限制"
}},[
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"receiveTotalNum"
,
rules
:{
required
:
!
e
.
receiveTotalChecked
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
e
.
_v
(
" 总共可领取 "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入"
,
disabled
:
e
.
receiveTotalChecked
},
model
:{
value
:
e
.
formData
.
receiveTotalNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"receiveTotalNum"
,
e
.
_n
(
t
))},
expression
:
"formData.receiveTotalNum"
}}),
e
.
_v
(
" 张 "
)],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
receiveTotalChecked
,
callback
:
function
(
t
){
e
.
receiveTotalChecked
=
t
},
expression
:
"receiveTotalChecked"
}},[
e
.
_v
(
"不限制"
)])],
1
)],
1
)],
1
),
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"receiveDayNum"
,
rules
:{
required
:
!
e
.
receiveDayChecked
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
e
.
_v
(
" 每日可领取 "
),
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入"
,
disabled
:
e
.
receiveDayChecked
},
model
:{
value
:
e
.
formData
.
receiveDayNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"receiveDayNum"
,
e
.
_n
(
t
))},
expression
:
"formData.receiveDayNum"
}}),
e
.
_v
(
" 张 "
)],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
receiveDayChecked
,
callback
:
function
(
t
){
e
.
receiveDayChecked
=
t
},
expression
:
"receiveDayChecked"
}},[
e
.
_v
(
"不限制"
)])],
1
)],
1
)],
1
)],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"适用门店"
}},[
e
.
_v
(
" "
+
e
.
_s
(
e
.
formData
.
storeName
)
+
" "
)]),
a
(
"el-form-item"
,{
staticClass
:
"image-url"
,
attrs
:{
label
:
"优惠券图片"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
formData
.
url
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"url"
,
t
)},
expression
:
"formData.url"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-1.png"
}},[
a
(
"ImagePreview"
,{
attrs
:{
src
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-1.png"
,
"src-list"
:[
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-1.png"
]}})],
1
),
a
(
"el-radio"
,{
attrs
:{
label
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-2.png"
}},[
a
(
"ImagePreview"
,{
attrs
:{
src
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-2.png"
,
"src-list"
:[
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-2.png"
]}})],
1
),
a
(
"el-radio"
,{
attrs
:{
label
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-3.png"
}},[
a
(
"ImagePreview"
,{
attrs
:{
src
:
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-3.png"
,
"src-list"
:[
"https://scrm-kp-event.crb.cn/links-software-web-file/integralMall/snow-guizhou/1_couponStyle-3.png"
]}})],
1
)],
1
)],
1
),
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"使用须知"
,
prop
:
"remarks"
,
rules
:{
required
:
!
0
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
"6"
,
placeholder
:
"请输入"
},
model
:{
value
:
e
.
formData
.
remarks
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"remarks"
,
t
)},
expression
:
"formData.remarks"
}})],
1
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"每日发放限制"
}},[
a
(
"el-row"
,{
staticStyle
:{
width
:
"688px"
}},[
a
(
"el-col"
,{
attrs
:{
span
:
8
}},[
a
(
"el-form-item"
,{
attrs
:{
prop
:
"grantNum"
,
rules
:{
required
:
!
e
.
grantChecked
,
message
:
"请输入"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"200px"
},
attrs
:{
type
:
"number"
,
placeholder
:
"请输入"
,
disabled
:
e
.
grantChecked
},
model
:{
value
:
e
.
formData
.
grantNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"grantNum"
,
e
.
_n
(
t
))},
expression
:
"formData.grantNum"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
11
}},[
a
(
"el-form-item"
,[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
grantChecked
,
callback
:
function
(
t
){
e
.
grantChecked
=
t
},
expression
:
"grantChecked"
}},[
e
.
_v
(
"不限制"
)])],
1
)],
1
)],
1
)],
1
),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"套餐名称"
,
prop
:
"mealTitle"
,
rules
:{
required
:
!
0
,
message
:
"请输入套餐名称"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入套餐名称"
},
model
:{
value
:
e
.
formData
.
mealTitle
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"mealTitle"
,
t
)},
expression
:
"formData.mealTitle"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"原价"
,
prop
:
"originalPrice"
,
rules
:{
required
:
!
0
,
message
:
"请输入原价"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入原价"
},
model
:{
value
:
e
.
formData
.
originalPrice
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"originalPrice"
,
e
.
_n
(
t
))},
expression
:
"formData.originalPrice"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"折扣价"
,
prop
:
"presentPrice"
,
rules
:{
required
:
!
0
,
message
:
"请输入折扣价"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入折扣价"
},
model
:{
value
:
e
.
formData
.
presentPrice
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"presentPrice"
,
e
.
_n
(
t
))},
expression
:
"formData.presentPrice"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?
a
(
"el-form-item"
,{
staticClass
:
"form-common-input"
,
attrs
:{
label
:
"套餐备注"
,
prop
:
"mealRemarks"
}},[
a
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
rows
:
"6"
,
placeholder
:
"请输入套餐备注"
},
model
:{
value
:
e
.
formData
.
mealRemarks
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"mealRemarks"
,
t
)},
expression
:
"formData.mealRemarks"
}})],
1
):
e
.
_e
(),
"team"
===
e
.
formData
.
couponType
?[
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
handleAdd
}},[
e
.
_v
(
"新建分类"
)])],
1
),
e
.
_l
(
e
.
couponDetailList
,(
function
(
t
,
o
){
return
a
(
"el-form-item"
,{
key
:
o
,
staticClass
:
"form-common-input"
},[
a
(
"el-card"
,{
staticClass
:
"header-card"
,
attrs
:{
shadow
:
"never"
}},[
a
(
"div"
,{
staticClass
:
"clearfix"
,
attrs
:{
slot
:
"header"
},
slot
:
"header"
},[
a
(
"span"
,{
staticClass
:
"header-title"
},[
e
.
_v
(
e
.
_s
(
t
.
category
))]),
a
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"20px"
},
attrs
:{
size
:
"small"
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
return
e
.
handleEdit
(
o
)}}},[
e
.
_v
(
"编辑"
)]),
a
(
"el-button"
,{
attrs
:{
size
:
"small"
,
type
:
"danger"
},
on
:{
click
:
function
(
t
){
return
e
.
handleDelete
(
o
)}}},[
e
.
_v
(
"删除"
)])],
1
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
list
,
size
:
"small"
,
border
:
""
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"菜品"
,
prop
:
"foodName"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"份数"
,
prop
:
"foodNum"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"价格"
,
prop
:
"foodPrice"
}})],
1
)],
1
)],
1
)}))]:
e
.
_e
(),
a
(
"el-form-item"
,{
attrs
:{
label
:
"状态"
,
prop
:
"couponStatus"
}},[
a
(
"el-radio-group"
,{
model
:{
value
:
e
.
formData
.
couponStatus
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"couponStatus"
,
t
)},
expression
:
"formData.couponStatus"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
}},[
e
.
_v
(
"正常"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
}},[
e
.
_v
(
"禁用"
)])],
1
)],
1
),
a
(
"el-form-item"
,{
attrs
:{
size
:
"medium"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"确认"
)]),
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)])],
1
)],
2
),
a
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogTitle
,
visible
:
e
.
dialogVisible
,
width
:
"780px"
,
"append-to-body"
:
""
,
"destroy-on-close"
:
""
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
a
(
"el-form"
,{
ref
:
"dialogFormRef"
,
attrs
:{
model
:
e
.
chooseCouponDetail
,
"label-width"
:
"110px"
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"分类:"
,
prop
:
"category"
,
rules
:{
required
:
!
0
,
message
:
"请输入分类"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入分类"
},
model
:{
value
:
e
.
chooseCouponDetail
.
category
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseCouponDetail
,
"category"
,
t
)},
expression
:
"chooseCouponDetail.category"
}})],
1
)],
1
)],
1
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
12
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"序号:"
,
prop
:
"sort"
,
rules
:{
required
:
!
0
,
message
:
"请输入序号"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入序号"
},
model
:{
value
:
e
.
chooseCouponDetail
.
sort
,
callback
:
function
(
t
){
e
.
$set
(
e
.
chooseCouponDetail
,
"sort"
,
e
.
_n
(
t
))},
expression
:
"chooseCouponDetail.sort"
}})],
1
)],
1
)],
1
),
a
(
"el-row"
,{
staticStyle
:{
"margin-bottom"
:
"20px"
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
addFood
}},[
e
.
_v
(
"新增菜品"
)])],
1
),
e
.
_l
(
e
.
chooseCouponDetail
.
list
,(
function
(
t
,
o
){
return
a
(
"el-row"
,{
key
:
o
},[
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"菜名:"
,
prop
:
"list."
+
o
+
".foodName"
,
rules
:{
required
:
!
0
,
message
:
"请输入菜品"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入菜品"
},
model
:{
value
:
t
.
foodName
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"foodName"
,
a
)},
expression
:
"item.foodName"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"份数:"
,
prop
:
"list."
+
o
+
".foodNum"
,
rules
:{
required
:
!
0
,
message
:
"请输入份数"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入份数"
},
model
:{
value
:
t
.
foodNum
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"foodNum"
,
e
.
_n
(
a
))},
expression
:
"item.foodNum"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"价格:"
,
prop
:
"list."
+
o
+
".foodPrice"
,
rules
:{
required
:
!
0
,
message
:
"请输入价格"
,
trigger
:[
"change"
,
"blur"
]}}},[
a
(
"el-input"
,{
attrs
:{
type
:
"number"
,
placeholder
:
"请输入价格"
},
model
:{
value
:
t
.
foodPrice
,
callback
:
function
(
a
){
e
.
$set
(
t
,
"foodPrice"
,
e
.
_n
(
a
))},
expression
:
"item.foodPrice"
}})],
1
)],
1
)],
1
)}))],
2
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitDialog
}},[
e
.
_v
(
"确 定"
)]),
a
(
"el-button"
,{
on
:{
click
:
e
.
cleanDialog
}},[
e
.
_v
(
"取 消"
)])],
1
)],
1
)],
1
)},
l
=
[],
r
=
(
a
(
"a434"
),
a
(
"159b"
),
a
(
"974c"
)),
i
=
a
(
"ed08"
),
s
=
{
name
:
"CouponEdit"
,
dicts
:[
"coupon_type2"
],
data
:
function
(){
return
{
receiveTotalChecked
:
!
1
,
receiveDayChecked
:
!
1
,
grantChecked
:
!
1
,
formData
:{},
rules
:{},
couponDetailList
:[],
chooseCouponDetail
:{},
dialogTitle
:
""
,
dialogVisible
:
!
1
,
editIndex
:
0
}},
mounted
:
function
(){
this
.
getDetail
()},
watch
:{
"formData.validityType"
:{
handler
:
function
(
e
,
t
){}}},
methods
:{
getDetail
:
function
(){
var
e
=
this
;
Object
(
r
[
"a"
])(
this
.
$route
.
query
.
id
).
then
((
function
(
t
){
var
a
=
Object
.
assign
({},
t
.
data
);
"1"
===
a
.
validityType
?
a
.
validityDate
=
[
a
.
validityStartDate
,
a
.
validityEndDate
]:
a
.
validityDate
=
[],
-
1
===
a
.
receiveTotal
?
e
.
receiveTotalChecked
=!
0
:(
e
.
receiveTotalChecked
=!
1
,
a
.
receiveTotalNum
=
a
.
receiveTotal
),
-
1
===
a
.
receiveDay
?
e
.
receiveDayChecked
=!
0
:(
e
.
receiveDayChecked
=!
1
,
a
.
receiveDayNum
=
a
.
receiveDay
),
-
1
===
a
.
grant
?
e
.
grantChecked
=!
0
:(
e
.
grantChecked
=!
1
,
a
.
grantNum
=
a
.
grant
),
e
.
formData
=
a
,
e
.
couponDetailList
=
Object
(
i
[
"d"
])(
a
.
couponDetailList
)}))},
handleAdd
:
function
(){
this
.
dialogTitle
=
"新增分类"
,
this
.
chooseCouponDetail
=
{
category
:
void
0
,
sort
:
void
0
,
list
:[]},
this
.
dialogVisible
=!
0
},
handleEdit
:
function
(
e
){
this
.
editIndex
=
e
,
this
.
dialogTitle
=
"编辑分类"
;
var
t
=
Object
(
i
[
"d"
])(
this
.
couponDetailList
[
e
]);
this
.
chooseCouponDetail
=
t
,
this
.
dialogVisible
=!
0
},
handleDelete
:
function
(
e
){
this
.
couponDetailList
.
splice
(
e
,
1
)},
onSubmit
:
function
(){
var
e
=
this
;
this
.
$refs
.
formRef
.
validate
((
function
(
t
){
if
(
t
){
var
a
=
Object
(
i
[
"d"
])(
e
.
formData
);
"1"
===
a
.
validityType
&&
(
a
.
validityStartDate
=
a
.
validityDate
[
0
],
a
.
validityEndDate
=
a
.
validityDate
[
1
]),
e
.
receiveTotalChecked
?
a
.
receiveTotal
=-
1
:
a
.
receiveTotal
=
a
.
receiveTotalNum
,
e
.
receiveDayChecked
?
a
.
receiveDay
=-
1
:
a
.
receiveDay
=
a
.
receiveDayNum
,
e
.
grantChecked
?
a
.
grant
=-
1
:
a
.
grant
=
a
.
grantNum
,
"team"
===
a
.
couponType
&&
(
a
.
couponDetailList
=
Object
(
i
[
"d"
])(
e
.
couponDetailList
),
a
.
couponDetailList
.
forEach
((
function
(
e
){
e
.
goodsJson
=
JSON
.
stringify
(
e
.
list
)}))),
Object
(
r
[
"b"
])(
a
).
then
((
function
(
t
){
e
.
$modal
.
msgSuccess
(
"优惠券编辑成功"
),
e
.
$tab
.
closeOpenPage
(),
e
.
$router
.
push
({
name
:
"CouponList"
,
params
:{
refreshTable
:
!
0
}})}))}}))},
cancel
:
function
(){
this
.
$tab
.
closeOpenPage
(),
this
.
$router
.
push
({
name
:
"CouponList"
})},
addFood
:
function
(){
this
.
chooseCouponDetail
.
list
.
push
({
foodName
:
void
0
,
foodNum
:
void
0
,
foodPrice
:
void
0
})},
submitDialog
:
function
(){
var
e
=
this
;
this
.
$refs
.
dialogFormRef
.
validate
((
function
(
t
){
if
(
t
){
var
a
=
Object
(
i
[
"d"
])(
e
.
chooseCouponDetail
);
"编辑分类"
===
e
.
dialogTitle
?
e
.
couponDetailList
.
splice
(
e
.
editIndex
,
1
,
a
):
e
.
couponDetailList
.
push
(
a
),
e
.
dialogVisible
=!
1
}}))},
cleanDialog
:
function
(){
this
.
dialogVisible
=!
1
}}},
n
=
s
,
c
=
(
a
(
"b81a"
),
a
(
"2877"
)),
u
=
Object
(
c
[
"a"
])(
n
,
o
,
l
,
!
1
,
null
,
"d354f5bc"
,
null
);
t
[
"default"
]
=
u
.
exports
},
9561
:
function
(
e
,
t
,
a
){},
"974c"
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
d
(
t
,
"e"
,(
function
(){
return
l
})),
a
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
a
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
a
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
a
.
d
(
t
,
"d"
,(
function
(){
return
n
}));
var
o
=
a
(
"b775"
);
function
l
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/xhlist"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/editStatus"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/xh/"
+
e
,
method
:
"get"
})}
function
s
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/edit"
,
method
:
"post"
,
data
:
e
})}
function
n
(
e
){
return
Object
(
o
[
"a"
])({
url
:
"/xh/coupon/coupon/export"
,
method
:
"post"
,
data
:
e
})}},
b81a
:
function
(
e
,
t
,
a
){
"use strict"
;
a
(
"9561"
)}}]);
\ No newline at end of file
dist/static/js/chunk-df3ce45a.
ec0f7fe5
.js
→
dist/static/js/chunk-df3ce45a.
f657fdf9
.js
浏览文件 @
721a043c
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-df3ce45a"
],{
4843
:
function
(
t
,
e
,
o
){
"use strict"
;
o
.
r
(
e
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,{
staticClass
:
"app-container"
},[
o
(
"xy-table"
,{
ref
:
"tableRef"
,
attrs
:{
table
:
t
.
table
,
columns
:
t
.
columns
},
scopedSlots
:
t
.
_u
([{
key
:
"couponType"
,
fn
:
function
(
e
){
var
n
=
e
.
scope
;
return
[
o
(
"dict-tag"
,{
attrs
:{
options
:
t
.
dict
.
type
.
coupon_type2
,
value
:
n
.
row
.
couponType
}})]}},{
key
:
"expiryType"
,
fn
:
function
(
e
){
var
o
=
e
.
scope
;
return
[
t
.
_v
(
" "
+
t
.
_s
(
"1"
===
o
.
row
.
expiryType
?
o
.
row
.
fixedEffectiveTime
+
" ~ "
+
o
.
row
.
fixedExpiryTime
:
"领取后"
+
o
.
row
.
expiryDayNum
+
"天内"
)
+
" "
)]}},{
key
:
"left"
,
fn
:
function
(
e
){
var
o
=
e
.
scope
;
return
[
t
.
_v
(
" "
+
t
.
_s
(
o
.
row
.
total
-
o
.
row
.
used
)
+
" "
)]}},{
key
:
"state"
,
fn
:
function
(
e
){
var
o
=
e
.
scope
;
return
[
t
.
_v
(
" "
+
t
.
_s
(
"A"
===
o
.
row
.
state
?
"启用"
:
"P"
===
o
.
row
.
state
?
"禁用"
:
""
)
+
" "
)]}}])}),
o
(
"el-dialog"
,{
attrs
:{
title
:
t
.
title
,
visible
:
t
.
open
,
width
:
"500px"
,
"append-to-body"
:
""
},
on
:{
"update:visible"
:
function
(
e
){
t
.
open
=
e
}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分类名称"
,
prop
:
"categoryName"
}},[
o
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入分类名称"
},
model
:{
value
:
t
.
form
.
categoryName
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"categoryName"
,
e
)},
expression
:
"form.categoryName"
}})],
1
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否前端展示"
,
prop
:
"isShow"
}},[
o
(
"el-radio-group"
,{
model
:{
value
:
t
.
form
.
isShow
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"isShow"
,
e
)},
expression
:
"form.isShow"
}},
t
.
_l
(
t
.
dict
.
type
.
classify_isshow
,(
function
(
e
){
return
o
(
"el-radio"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
)],
1
),
o
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
submitForm
}},[
t
.
_v
(
"确 定"
)]),
o
(
"el-button"
,{
on
:{
click
:
t
.
cancel
}},[
t
.
_v
(
"取 消"
)])],
1
)],
1
)],
1
)},
a
=
[],
i
=
o
(
"1da1"
),
r
=
(
o
(
"96cf"
),
o
(
"974c"
)),
s
=
{
name
:
"CouponList"
,
dicts
:[
"coupon_type2"
],
data
:
function
(){
var
t
=
this
;
return
{
open
:
!
1
,
title
:
void
0
,
form
:{
id
:
void
0
,
categoryName
:
void
0
,
isShow
:
"0"
},
rules
:{
categoryName
:[{
required
:
!
0
,
message
:
"分类名称不能为空"
,
trigger
:
"blur"
}]},
table
:{
rowKey
:
"couponInfoId"
,
data
:[],
firstColumn
:{
type
:
"index"
},
operator
:[{
text
:
"编辑"
,
icon
:
"el-icon-edit"
,
fun
:
function
(
e
){
return
t
.
handleEdit
(
e
)}},{
text
:
"启用"
,
icon
:
"el-icon-check"
,
show
:{
key
:
"state"
,
val
:[
"P"
]},
fun
:
function
(
e
){
return
t
.
handleStatusChange
(
e
)}},{
text
:
"禁用"
,
icon
:
"el-icon-close"
,
show
:{
key
:
"state"
,
val
:[
"A"
]},
fun
:
function
(
e
){
return
t
.
handleStatusChange
(
e
)}},{
text
:
"数据"
,
icon
:
"el-icon-help"
,
fun
:
function
(
e
){
return
t
.
handleMoreData
(
e
)}}],
operatorConfig
:{
width
:
180
},
toolbar
:[],
page
:{
total
:
0
,
pageNum
:
1
,
pageSize
:
10
},
searchForm
:{
formLabelWidth
:
"90px"
,
formData
:{
couponName
:
void
0
,
state
:
void
0
,
couponType
:
void
0
},
fieldList
:[{
prop
:
"couponName"
,
label
:
"优惠券标题"
,
type
:
"input"
},{
prop
:
"state"
,
label
:
"状态"
,
type
:
"select"
,
options
:
"stateOptions"
},{
prop
:
"couponType"
,
label
:
"优惠券类型"
,
type
:
"select"
,
options
:
"couponTypeOptions"
}],
listOptions
:{
stateOptions
:[{
value
:
"A"
,
label
:
"启用"
},{
value
:
"P"
,
label
:
"禁用"
}],
couponTypeOptions
:[]}},
request
:
r
[
"d"
]},
columns
:[{
prop
:
"couponName"
,
label
:
"优惠券标题"
},{
prop
:
"couponType"
,
label
:
"优惠券类型"
,
slotName
:
"couponType"
},{
prop
:
"categoryNames"
,
label
:
"优惠券分类"
},{
prop
:
"expiryType"
,
label
:
"有效期"
,
slotName
:
"expiryType"
,
minWidth
:
200
},{
prop
:
"total"
,
label
:
"总库存"
},{
label
:
"剩余库存"
,
slotName
:
"left"
},{
prop
:
"used"
,
label
:
"已发放"
},{
prop
:
"state"
,
label
:
"状态"
,
slotName
:
"state"
}]}},
mounted
:
function
(){
this
.
initOptions
()},
activated
:
function
(){
this
.
$route
.
params
&&
this
.
$route
.
params
.
refreshTable
&&
this
.
getList
()},
methods
:{
initOptions
:
function
(){
this
.
table
.
searchForm
.
listOptions
.
couponTypeOptions
=
this
.
dict
.
type
.
coupon_type2
},
getList
:
function
(){
this
.
$refs
.
tableRef
.
getData
()},
handleAdd
:
function
(){},
handleEdit
:
function
(
t
){
var
e
=
this
;
this
.
$tab
.
closePage
({
name
:
"CouponEdit"
}),
this
.
$nextTick
((
function
(){
e
.
$router
.
push
({
name
:
"CouponEdit"
,
query
:{
id
:
t
.
couponInfoId
}})}))},
handleDelete
:
function
(
t
){
return
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
t
(){
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
case
"end"
:
return
t
.
stop
()}}),
t
)})))()},
handleStatusChange
:
function
(
t
){
var
e
=
this
,
o
=
"P"
===
t
.
state
?
"启用"
:
"禁用"
;
this
.
$modal
.
confirm
(
'确认要"'
+
o
+
'""'
+
t
.
couponName
+
'"优惠券吗?'
).
then
((
function
(){
return
Object
(
r
[
"c"
])({
id
:
t
.
couponInfoId
,
status
:
"P"
===
t
.
state
?
"A"
:
"P"
})})).
then
((
function
(){
e
.
$modal
.
msgSuccess
(
o
+
"成功"
),
e
.
getList
()})).
catch
((
function
(){}))},
handleMoreData
:
function
(
t
){
var
e
=
this
;
this
.
$tab
.
closePage
({
name
:
"CouponVerificationList"
}),
this
.
$nextTick
((
function
(){
e
.
$router
.
push
({
name
:
"CouponVerificationList"
,
query
:{
id
:
t
.
couponInfoId
}})}))},
submitForm
:
function
(){
var
t
=
this
;
this
.
$refs
[
"form"
].
validate
((
function
(
e
){
e
&&
(
void
0
!=
t
.
form
.
id
?
updateClassify
(
t
.
form
).
then
((
function
(
e
){
t
.
$modal
.
msgSuccess
(
"修改成功"
),
t
.
open
=!
1
,
t
.
getList
()})):
addClassify
(
t
.
form
).
then
((
function
(
e
){
t
.
$modal
.
msgSuccess
(
"新增成功"
),
t
.
open
=!
1
,
t
.
getList
()})))}))},
reset
:
function
(){
this
.
form
=
{
id
:
void
0
,
categoryName
:
void
0
,
isShow
:
"0"
},
this
.
resetForm
(
"form"
)},
cancel
:
function
(){
this
.
open
=!
1
,
this
.
reset
()}}},
u
=
s
,
c
=
o
(
"2877"
),
l
=
Object
(
c
[
"a"
])(
u
,
n
,
a
,
!
1
,
null
,
null
,
null
);
e
[
"default"
]
=
l
.
exports
},
"974c"
:
function
(
t
,
e
,
o
){
"use strict"
;
o
.
d
(
e
,
"d"
,(
function
(){
return
a
})),
o
.
d
(
e
,
"c"
,(
function
(){
return
i
})),
o
.
d
(
e
,
"a"
,(
function
(){
return
r
})),
o
.
d
(
e
,
"b"
,(
function
(){
return
s
}));
var
n
=
o
(
"b775"
);
function
a
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/xhlist"
,
method
:
"post"
,
data
:
t
})}
function
i
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/editStatus"
,
method
:
"post"
,
data
:
t
})}
function
r
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/xh/"
+
t
,
method
:
"get"
})}
function
s
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/edit"
,
method
:
"post"
,
data
:
t
})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-df3ce45a"
],{
4843
:
function
(
t
,
e
,
o
){
"use strict"
;
o
.
r
(
e
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,{
staticClass
:
"app-container"
},[
o
(
"xy-table"
,{
ref
:
"tableRef"
,
attrs
:{
table
:
t
.
table
,
columns
:
t
.
columns
},
scopedSlots
:
t
.
_u
([{
key
:
"couponType"
,
fn
:
function
(
e
){
var
n
=
e
.
scope
;
return
[
o
(
"dict-tag"
,{
attrs
:{
options
:
t
.
dict
.
type
.
coupon_type2
,
value
:
n
.
row
.
couponType
}})]}},{
key
:
"expiryType"
,
fn
:
function
(
e
){
var
o
=
e
.
scope
;
return
[
t
.
_v
(
" "
+
t
.
_s
(
"1"
===
o
.
row
.
expiryType
?
o
.
row
.
fixedEffectiveTime
+
" ~ "
+
o
.
row
.
fixedExpiryTime
:
"领取后"
+
o
.
row
.
expiryDayNum
+
"天内"
)
+
" "
)]}},{
key
:
"left"
,
fn
:
function
(
e
){
var
o
=
e
.
scope
;
return
[
t
.
_v
(
" "
+
t
.
_s
(
o
.
row
.
total
-
o
.
row
.
used
)
+
" "
)]}},{
key
:
"state"
,
fn
:
function
(
e
){
var
o
=
e
.
scope
;
return
[
t
.
_v
(
" "
+
t
.
_s
(
"A"
===
o
.
row
.
state
?
"启用"
:
"P"
===
o
.
row
.
state
?
"禁用"
:
""
)
+
" "
)]}}])}),
o
(
"el-dialog"
,{
attrs
:{
title
:
t
.
title
,
visible
:
t
.
open
,
width
:
"500px"
,
"append-to-body"
:
""
},
on
:{
"update:visible"
:
function
(
e
){
t
.
open
=
e
}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
rules
:
t
.
rules
,
"label-width"
:
"120px"
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"分类名称"
,
prop
:
"categoryName"
}},[
o
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入分类名称"
},
model
:{
value
:
t
.
form
.
categoryName
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"categoryName"
,
e
)},
expression
:
"form.categoryName"
}})],
1
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"是否前端展示"
,
prop
:
"isShow"
}},[
o
(
"el-radio-group"
,{
model
:{
value
:
t
.
form
.
isShow
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"isShow"
,
e
)},
expression
:
"form.isShow"
}},
t
.
_l
(
t
.
dict
.
type
.
classify_isshow
,(
function
(
e
){
return
o
(
"el-radio"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
)],
1
),
o
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
submitForm
}},[
t
.
_v
(
"确 定"
)]),
o
(
"el-button"
,{
on
:{
click
:
t
.
cancel
}},[
t
.
_v
(
"取 消"
)])],
1
)],
1
)],
1
)},
a
=
[],
i
=
o
(
"1da1"
),
r
=
(
o
(
"96cf"
),
o
(
"974c"
)),
s
=
{
name
:
"CouponList"
,
dicts
:[
"coupon_type2"
],
data
:
function
(){
var
t
=
this
;
return
{
open
:
!
1
,
title
:
void
0
,
form
:{
id
:
void
0
,
categoryName
:
void
0
,
isShow
:
"0"
},
rules
:{
categoryName
:[{
required
:
!
0
,
message
:
"分类名称不能为空"
,
trigger
:
"blur"
}]},
table
:{
rowKey
:
"couponInfoId"
,
data
:[],
firstColumn
:{
type
:
"index"
},
operator
:[{
text
:
"编辑"
,
icon
:
"el-icon-edit"
,
fun
:
function
(
e
){
return
t
.
handleEdit
(
e
)}},{
text
:
"启用"
,
icon
:
"el-icon-check"
,
show
:{
key
:
"state"
,
val
:[
"P"
]},
fun
:
function
(
e
){
return
t
.
handleStatusChange
(
e
)}},{
text
:
"禁用"
,
icon
:
"el-icon-close"
,
show
:{
key
:
"state"
,
val
:[
"A"
]},
fun
:
function
(
e
){
return
t
.
handleStatusChange
(
e
)}},{
text
:
"数据"
,
icon
:
"el-icon-help"
,
fun
:
function
(
e
){
return
t
.
handleMoreData
(
e
)}}],
operatorConfig
:{
width
:
180
},
toolbar
:[],
page
:{
total
:
0
,
pageNum
:
1
,
pageSize
:
10
},
searchForm
:{
formLabelWidth
:
"90px"
,
formData
:{
couponName
:
void
0
,
state
:
void
0
,
couponType
:
void
0
},
fieldList
:[{
prop
:
"couponName"
,
label
:
"优惠券标题"
,
type
:
"input"
},{
prop
:
"state"
,
label
:
"状态"
,
type
:
"select"
,
options
:
"stateOptions"
},{
prop
:
"couponType"
,
label
:
"优惠券类型"
,
type
:
"select"
,
options
:
"couponTypeOptions"
}],
listOptions
:{
stateOptions
:[{
value
:
"A"
,
label
:
"启用"
},{
value
:
"P"
,
label
:
"禁用"
}],
couponTypeOptions
:[]}},
request
:
r
[
"e"
]},
columns
:[{
prop
:
"couponName"
,
label
:
"优惠券标题"
},{
prop
:
"couponType"
,
label
:
"优惠券类型"
,
slotName
:
"couponType"
},{
prop
:
"categoryNames"
,
label
:
"优惠券分类"
},{
prop
:
"expiryType"
,
label
:
"有效期"
,
slotName
:
"expiryType"
,
minWidth
:
200
},{
prop
:
"total"
,
label
:
"总库存"
},{
label
:
"剩余库存"
,
slotName
:
"left"
},{
prop
:
"used"
,
label
:
"已发放"
},{
prop
:
"state"
,
label
:
"状态"
,
slotName
:
"state"
}]}},
mounted
:
function
(){
this
.
initOptions
()},
activated
:
function
(){
this
.
$route
.
params
&&
this
.
$route
.
params
.
refreshTable
&&
this
.
getList
()},
methods
:{
initOptions
:
function
(){
this
.
table
.
searchForm
.
listOptions
.
couponTypeOptions
=
this
.
dict
.
type
.
coupon_type2
},
getList
:
function
(){
this
.
$refs
.
tableRef
.
getData
()},
handleAdd
:
function
(){},
handleEdit
:
function
(
t
){
var
e
=
this
;
this
.
$tab
.
closePage
({
name
:
"CouponEdit"
}),
this
.
$nextTick
((
function
(){
e
.
$router
.
push
({
name
:
"CouponEdit"
,
query
:{
id
:
t
.
couponInfoId
}})}))},
handleDelete
:
function
(
t
){
return
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
t
(){
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
case
"end"
:
return
t
.
stop
()}}),
t
)})))()},
handleStatusChange
:
function
(
t
){
var
e
=
this
,
o
=
"P"
===
t
.
state
?
"启用"
:
"禁用"
;
this
.
$modal
.
confirm
(
'确认要"'
+
o
+
'""'
+
t
.
couponName
+
'"优惠券吗?'
).
then
((
function
(){
return
Object
(
r
[
"c"
])({
id
:
t
.
couponInfoId
,
status
:
"P"
===
t
.
state
?
"A"
:
"P"
})})).
then
((
function
(){
e
.
$modal
.
msgSuccess
(
o
+
"成功"
),
e
.
getList
()})).
catch
((
function
(){}))},
handleMoreData
:
function
(
t
){
var
e
=
this
;
this
.
$tab
.
closePage
({
name
:
"CouponVerificationList"
}),
this
.
$nextTick
((
function
(){
e
.
$router
.
push
({
name
:
"CouponVerificationList"
,
query
:{
id
:
t
.
couponInfoId
}})}))},
submitForm
:
function
(){
var
t
=
this
;
this
.
$refs
[
"form"
].
validate
((
function
(
e
){
e
&&
(
void
0
!=
t
.
form
.
id
?
updateClassify
(
t
.
form
).
then
((
function
(
e
){
t
.
$modal
.
msgSuccess
(
"修改成功"
),
t
.
open
=!
1
,
t
.
getList
()})):
addClassify
(
t
.
form
).
then
((
function
(
e
){
t
.
$modal
.
msgSuccess
(
"新增成功"
),
t
.
open
=!
1
,
t
.
getList
()})))}))},
reset
:
function
(){
this
.
form
=
{
id
:
void
0
,
categoryName
:
void
0
,
isShow
:
"0"
},
this
.
resetForm
(
"form"
)},
cancel
:
function
(){
this
.
open
=!
1
,
this
.
reset
()}}},
u
=
s
,
c
=
o
(
"2877"
),
l
=
Object
(
c
[
"a"
])(
u
,
n
,
a
,
!
1
,
null
,
null
,
null
);
e
[
"default"
]
=
l
.
exports
},
"974c"
:
function
(
t
,
e
,
o
){
"use strict"
;
o
.
d
(
e
,
"e"
,(
function
(){
return
a
})),
o
.
d
(
e
,
"c"
,(
function
(){
return
i
})),
o
.
d
(
e
,
"a"
,(
function
(){
return
r
})),
o
.
d
(
e
,
"b"
,(
function
(){
return
s
})),
o
.
d
(
e
,
"d"
,(
function
(){
return
u
}));
var
n
=
o
(
"b775"
);
function
a
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/xhlist"
,
method
:
"post"
,
data
:
t
})}
function
i
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/editStatus"
,
method
:
"post"
,
data
:
t
})}
function
r
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/xh/"
+
t
,
method
:
"get"
})}
function
s
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/edit"
,
method
:
"post"
,
data
:
t
})}
function
u
(
t
){
return
Object
(
n
[
"a"
])({
url
:
"/xh/coupon/coupon/export"
,
method
:
"post"
,
data
:
t
})}}}]);
\ No newline at end of file
src/api/coupon/list.js
浏览文件 @
721a043c
...
...
@@ -34,3 +34,12 @@ export function editCoupon(data) {
data
:
data
})
}
// 导出
export
function
exportCoupon
(
data
)
{
return
request
({
url
:
'/xh/coupon/coupon/export'
,
method
:
'post'
,
data
:
data
})
}
src/views/coupon/couponData/verificationList.vue
浏览文件 @
721a043c
...
...
@@ -44,7 +44,7 @@
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handle
Add
"
>
下载报表
</el-button>
<el-button
type=
"primary"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handle
Export
"
>
下载报表
</el-button>
</el-col>
</el-row>
...
...
@@ -92,6 +92,7 @@
<
script
>
import
{
verificationList
}
from
"@/api/coupon/couponData"
;
import
{
exportCoupon
}
from
'@/api/coupon/list'
export
default
{
...
...
@@ -357,10 +358,13 @@ export default {
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$modal
.
confirm
(
'是否确认导出所有用户数据项?'
).
then
(()
=>
{
queryParams
.
couponInfoId
=
this
.
$route
.
query
.
id
this
.
$modal
.
confirm
(
'是否确认导出所有数据项?'
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
export
Role
(
queryParams
);
return
export
Coupon
(
queryParams
);
}).
then
(
response
=>
{
console
.
log
(
response
)
this
.
$download
.
name
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论