Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
3bdd8c7c
Commit
3bdd8c7c
authored
Apr 28, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改内购券
parent
5fac8a3e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
dist/index.html
+2
-2
app.afd0a823e52a9dd5f3e1a8855fa5fe17.css
dist/static/css/app.afd0a823e52a9dd5f3e1a8855fa5fe17.css
+0
-0
7.fefa86a6f15c5af661a8.js
dist/static/js/7.fefa86a6f15c5af661a8.js
+2
-2
manifest.7a3a3c179136a7ccda6c.js
dist/static/js/manifest.7a3a3c179136a7ccda6c.js
+2
-2
newCardPut.vue
src/views/apps/protectCard/newCardPut.vue
+2
-2
No files found.
dist/index.html
View file @
3bdd8c7c
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.ed918e6573bf7c2aa5d90655b9f55481.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.25ab41299d485bed8168.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.5772d712922be28697f0.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.afd0a823e52a9dd5f3e1a8855fa5fe17.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.7a3a3c179136a7ccda6c.js
></script><script
type=
text/javascript
src=
./static/js/vendor.694f8850ed5112713591.js
></script><script
type=
text/javascript
src=
./static/js/app.5772d712922be28697f0.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
ed918e6573bf7c2aa5d90655b9f55481
.css
→
dist/static/css/app.
afd0a823e52a9dd5f3e1a8855fa5fe17
.css
View file @
3bdd8c7c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/7.
772ea4ba909badb2dc7d
.js
→
dist/static/js/7.
fefa86a6f15c5af661a8
.js
View file @
3bdd8c7c
webpackJsonp
([
7
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"Ch4/"
),
s
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
),
console
.
log
(
"handleClose:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
console
.
log
(
"returnData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
console
.
log
(
"initData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
a
(
"MkDK"
)},
"data-v-5bff7566"
,
null
);
t
.
a
=
c
.
exports
},
"/CEp"
:
function
(
e
,
t
){},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
i
=
a
(
"+kZ0"
),
s
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
i
.
a
,
selectWxDepart
:
s
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>=
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:(
this
.
formData
.
departmentJson
=
[],
this
.
departShow
=!
1
)},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
repairId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)}):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
1
e3
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
""
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
String
(
a
.
result
.
fixdTimes
)},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
width
:
"110"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
"no-position-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
staticClass
:
"m-l-10"
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
u
,
m
,
!
1
,
function
(
e
){
a
(
"hXlt"
)},
"data-v-347d02d0"
,
null
);
t
.
default
=
f
.
exports
},
MkDK
:
function
(
e
,
t
){},
hXlt
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
s
=
a
(
"exGp"
),
l
=
a
.
n
(
s
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
p
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
i
.
a
.
mark
(
function
r
(){
var
o
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
console
.
log
(
"load:"
,
e
,
t
),
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
6
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
6
:
return
r
.
next
=
8
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
8
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[];
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
console
.
log
(
r
.
groupData
));
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
e
.
length
?
this
.
selDepart
=
JSON
.
parse
(
o
()(
e
)):
this
.
selDepart
=
[]}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
?
this
.
selDepart
=
JSON
.
parse
(
o
()(
this
.
departArr
)):
this
.
selDepart
=
[]}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"/CEp"
)},
"data-v-10007ae3"
,
null
);
t
.
a
=
m
.
exports
}});
webpackJsonp
([
7
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"Ch4/"
),
s
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
),
console
.
log
(
"handleClose:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
console
.
log
(
"returnData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
console
.
log
(
"initData:"
,
e
.
selectTemp
,
e
.
multipleSelection
),
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
a
(
"MkDK"
)},
"data-v-5bff7566"
,
null
);
t
.
a
=
c
.
exports
},
"/CEp"
:
function
(
e
,
t
){},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
i
=
a
(
"+kZ0"
),
s
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
i
.
a
,
selectWxDepart
:
s
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
selectCoupCard
:{},
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
}},
methods
:{
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>=
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:(
this
.
formData
.
departmentJson
=
[],
this
.
departShow
=!
1
)},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
showCard
:
function
(){
this
.
cardSelectShow
=!
0
},
closeCard
:
function
(){
this
.
cardSelectShow
=!
1
},
returnId
:
function
(
e
,
t
){
this
.
formData
.
repairId
=
e
,
this
.
selectCoupCard
=
t
,
this
.
cardSelectShow
=!
1
},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
&&
a
.
postSaveCard
(
t
)}):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
1
e3
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
t
.
selectCoupCard
=
{}):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRange
:
function
(
e
){
this
.
formData
.
selectList
=
[]},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
String
(
a
.
result
.
fixdTimes
)},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
width
:
"110"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
"no-position-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
staticClass
:
"m-l-10"
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
u
,
m
,
!
1
,
function
(
e
){
a
(
"Tttp"
)},
"data-v-3219ca86"
,
null
);
t
.
default
=
f
.
exports
},
MkDK
:
function
(
e
,
t
){},
Tttp
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
s
=
a
(
"exGp"
),
l
=
a
.
n
(
s
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
p
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
i
.
a
.
mark
(
function
r
(){
var
o
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
console
.
log
(
"load:"
,
e
,
t
),
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
6
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
6
:
return
r
.
next
=
8
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
8
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[];
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
console
.
log
(
r
.
groupData
));
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
e
.
length
?
this
.
selDepart
=
JSON
.
parse
(
o
()(
e
)):
this
.
selDepart
=
[]}},
mounted
:
function
(){
this
.
departVisible
=
this
.
departShow
,
this
.
getGroup
(),
this
.
departArr
.
length
?
this
.
selDepart
=
JSON
.
parse
(
o
()(
this
.
departArr
)):
this
.
selDepart
=
[]}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
}}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"/CEp"
)},
"data-v-10007ae3"
,
null
);
t
.
a
=
m
.
exports
}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
25ab41299d485bed8168
.js
→
dist/static/js/manifest.
7a3a3c179136a7ccda6c
.js
View file @
3bdd8c7c
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
a
&&
a
(
c
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
72
:
0
};
function
b
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
b
){
a
=
f
[
e
]
=
[
c
,
b
]});
a
[
2
]
=
c
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"39934566a75c9d7742c4"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"2b6fcdbc6e5205bee47c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"37cfb936a1223684b5fb"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"8eb26935705e144eb957"
,
7
:
"772ea4ba909badb2dc7d"
,
8
:
"7e3d8a3e3032beafa647"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"0f96177cb5fd1bb77419"
,
21
:
"aac9a6076d21d77ee1e2"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"2eda35461eaa66a95420"
,
25
:
"7549e1d07154cb68ad21"
,
26
:
"30fc6d41a5f4b7b7b005"
,
27
:
"8c00b479947588ae7b2c"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"5a37b0bffabe56fe5af9"
,
32
:
"f7592089bbd49cf8ae9c"
,
33
:
"361b27c9eff0a7bea009"
,
34
:
"335593327f59f50ba24f"
,
35
:
"7dc15ac53ff6451b1ce4"
,
36
:
"a1133d8a899ff06b8031"
,
37
:
"f43da4e4e894a104b34e"
,
38
:
"5f4ce05b4c8050e7ac44"
,
39
:
"f67d3be4b19b3ee75fba"
,
40
:
"2a2b163b01a19222cb16"
,
41
:
"0a200f6a27af7dcb8907"
,
42
:
"9baf4946c3c38a84ce67"
,
43
:
"9c52586cacdafc0ecb35"
,
44
:
"8e39581128d0ad7da761"
,
45
:
"e8f51a76ae55e4471a7b"
,
46
:
"c8b730941f583a5d5182"
,
47
:
"91c11cb2ef2712238e41"
,
48
:
"f1e620853a55eb6d232e"
,
49
:
"09c754c672ba5540342a"
,
50
:
"82a4e2fa4e310d83b850"
,
51
:
"3fd34d332c39c50a3a23"
,
52
:
"61afa1c3b438630f4851"
,
53
:
"e23426154a883644db3b"
,
54
:
"0357598ff47aaf886736"
,
55
:
"8a346e83243bd0555b4d"
,
56
:
"df8e2c9c0c60de417450"
,
57
:
"557afe6a35079d2e10c5"
,
58
:
"3f145f198ea2a6e8ed7e"
,
59
:
"069cc5b15c055fb63224"
,
60
:
"38d9b2e3096d6c26b466"
,
61
:
"cc4124d9f67d459ca481"
,
62
:
"69a2580e2fae2c6147a6"
,
63
:
"c1e6131d0c4cdd6ce5e5"
,
64
:
"58ef7243a7d48386f859"
,
65
:
"aef98a78c5a2a2872784"
,
66
:
"d83b81ba889c535b2569"
,
67
:
"5fb5009212972df8959b"
,
68
:
"83851f59efe48e8d85fd"
,
69
:
"a85af8948bfc87b0850f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
c
},
b
.
m
=
e
,
b
.
c
=
c
,
b
.
d
=
function
(
e
,
a
,
c
){
b
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
b
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
a
,
"a"
,
a
),
a
},
b
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
a
&&
a
(
c
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
72
:
0
};
function
b
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
b
){
a
=
f
[
e
]
=
[
c
,
b
]});
a
[
2
]
=
c
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"39934566a75c9d7742c4"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"2b6fcdbc6e5205bee47c"
,
3
:
"fec7a03a688935ae1aac"
,
4
:
"37cfb936a1223684b5fb"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"8eb26935705e144eb957"
,
7
:
"fefa86a6f15c5af661a8"
,
8
:
"7e3d8a3e3032beafa647"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"281523c91e7ee89296cb"
,
11
:
"59c87174f09911b8256b"
,
12
:
"e8cd784bf481f550c766"
,
13
:
"2b65cdb3d875eca1b6fd"
,
14
:
"2c29119d13dc5fff8f2b"
,
15
:
"b646de33eca64e94b02c"
,
16
:
"5e81daf3550937d71920"
,
17
:
"a315ec3bb42a1a5f0ab3"
,
18
:
"aac9552544b8aaf4d59f"
,
19
:
"5c01b5259828e3c1889f"
,
20
:
"0f96177cb5fd1bb77419"
,
21
:
"aac9a6076d21d77ee1e2"
,
22
:
"f8e0114834358a5de162"
,
23
:
"587c2e5a1989c5e482ea"
,
24
:
"2eda35461eaa66a95420"
,
25
:
"7549e1d07154cb68ad21"
,
26
:
"30fc6d41a5f4b7b7b005"
,
27
:
"8c00b479947588ae7b2c"
,
28
:
"110ab7e5f64abacf9778"
,
29
:
"cebf604cf1225f47e634"
,
30
:
"7c1e52b5c0d36e8632c1"
,
31
:
"5a37b0bffabe56fe5af9"
,
32
:
"f7592089bbd49cf8ae9c"
,
33
:
"361b27c9eff0a7bea009"
,
34
:
"335593327f59f50ba24f"
,
35
:
"7dc15ac53ff6451b1ce4"
,
36
:
"a1133d8a899ff06b8031"
,
37
:
"f43da4e4e894a104b34e"
,
38
:
"5f4ce05b4c8050e7ac44"
,
39
:
"f67d3be4b19b3ee75fba"
,
40
:
"2a2b163b01a19222cb16"
,
41
:
"0a200f6a27af7dcb8907"
,
42
:
"9baf4946c3c38a84ce67"
,
43
:
"9c52586cacdafc0ecb35"
,
44
:
"8e39581128d0ad7da761"
,
45
:
"e8f51a76ae55e4471a7b"
,
46
:
"c8b730941f583a5d5182"
,
47
:
"91c11cb2ef2712238e41"
,
48
:
"f1e620853a55eb6d232e"
,
49
:
"09c754c672ba5540342a"
,
50
:
"82a4e2fa4e310d83b850"
,
51
:
"3fd34d332c39c50a3a23"
,
52
:
"61afa1c3b438630f4851"
,
53
:
"e23426154a883644db3b"
,
54
:
"0357598ff47aaf886736"
,
55
:
"8a346e83243bd0555b4d"
,
56
:
"df8e2c9c0c60de417450"
,
57
:
"557afe6a35079d2e10c5"
,
58
:
"3f145f198ea2a6e8ed7e"
,
59
:
"069cc5b15c055fb63224"
,
60
:
"38d9b2e3096d6c26b466"
,
61
:
"cc4124d9f67d459ca481"
,
62
:
"69a2580e2fae2c6147a6"
,
63
:
"c1e6131d0c4cdd6ce5e5"
,
64
:
"58ef7243a7d48386f859"
,
65
:
"aef98a78c5a2a2872784"
,
66
:
"d83b81ba889c535b2569"
,
67
:
"5fb5009212972df8959b"
,
68
:
"83851f59efe48e8d85fd"
,
69
:
"a85af8948bfc87b0850f"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
c
},
b
.
m
=
e
,
b
.
c
=
c
,
b
.
d
=
function
(
e
,
a
,
c
){
b
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
b
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
a
,
"a"
,
a
),
a
},
b
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/views/apps/protectCard/newCardPut.vue
View file @
3bdd8c7c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-04-28 16:
27:07
* @LastEditTime: 2020-04-28 16:
50:39
-->
-->
<
template
>
<
template
>
...
@@ -475,7 +475,7 @@ export default {
...
@@ -475,7 +475,7 @@ export default {
positionNames
:
[],
positionNames
:
[],
departmentJson
:
[],
departmentJson
:
[],
fixdType
:
'0'
,
fixdType
:
'0'
,
fixdTimes
:
''
fixdTimes
:
'
15
'
};
};
that
.
selectCoupCard
=
{};
that
.
selectCoupCard
=
{};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment