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
3bbed33e
Commit
3bbed33e
authored
Aug 04, 2022
by
crushh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/act-code' of
http://git.gicdev.com/office/haoban-3
into feature/act-code
parents
9c965af2
fc41e598
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
setActCode.vue
...alesleads/actCodeManage/staffActCode/views/setActCode.vue
+10
-4
act-code-set.vue
src/views/salesleads/components/act-code-set.vue
+11
-9
No files found.
src/views/salesleads/actCodeManage/staffActCode/views/setActCode.vue
View file @
3bbed33e
...
...
@@ -33,13 +33,13 @@ export default {
data
()
{
return
{
loading
:
false
,
welcomeType
:
1
,
form
:
{
passFlag
:
true
,
welcomeId
:
'
1
'
,
passFlag
:
1
,
welcomeId
:
''
,
hmType
:
1
,
name
:
''
,
clerkIdList
:
[],
welcomeType
:
1
,
hmUserNum
:
null
//多人活码人数
},
multiple
:
false
,
...
...
@@ -58,7 +58,7 @@ export default {
this
.
data
=
[];
this
.
dataArr
=
[];
if
(
e
==
2
)
{
this
.
multiple
=
true
;
this
.
multiple
=
1
;
this
.
clerkDisabled
=
false
;
}
else
if
(
e
==
1
)
{
this
.
multiple
=
false
;
...
...
@@ -86,6 +86,12 @@ export default {
if
(
this
.
$route
.
query
.
hmId
)
{
await
getRequest
(
'/haoban-manage3-web/hm/qrcode/detail'
,
{
hmId
:
this
.
$route
.
query
.
hmId
}).
then
(
res
=>
{
this
.
form
=
res
.
data
.
result
;
if
(
this
.
form
.
welcomeId
)
{
this
.
form
.
welcomeType
=
1
;
}
else
{
this
.
form
.
welcomeType
=
2
;
}
this
.
form
.
passFlag
=
this
.
form
.
passFlag
==
1
?
true
:
false
;
this
.
form
.
clerkIdList
=
this
.
form
.
clerkList
.
map
(
i
=>
i
.
clerkId
);
this
.
form
.
hmUserNum
=
this
.
form
.
clerkIdList
.
length
;
this
.
data
=
res
.
data
.
result
.
clerkList
;
...
...
src/views/salesleads/components/act-code-set.vue
View file @
3bbed33e
...
...
@@ -23,7 +23,7 @@
<dm-memberTag-group
isHb
:visiable
.
sync=
"tagsDialogVisible"
projectName=
"haobao-3"
@
save=
"saveTagPop"
></dm-memberTag-group>
</el-form-item>
<dm-sub-title
text=
"欢迎语设置"
type=
"line"
class=
"mt40b20"
/>
<welcomeItem
@
getWelcomeId=
"getWelcomeId"
:welcomeId
.
sync=
"form.welcomeId"
ref=
"welcomeItem"
:welcomeType
.
sync=
"welcomeType"
welcomeName=
"code"
></welcomeItem>
<welcomeItem
@
getWelcomeId=
"getWelcomeId"
:welcomeId
.
sync=
"form.welcomeId"
ref=
"welcomeItem"
:welcomeType
.
sync=
"
form.
welcomeType"
welcomeName=
"code"
></welcomeItem>
</el-form>
</div>
<div
class=
"saveBtn"
>
...
...
@@ -61,7 +61,6 @@ export default {
return
{
btnLoading
:
false
,
saveLoading
:
false
,
welcomeType
:
1
,
form
:
{
// hmType: 1, //1单人 2多人
// name: '', // 名称
...
...
@@ -73,7 +72,8 @@ export default {
// clerkIdList: '', // 选择导购id
// storeId: '' //门店id
// hmUserNum: null //多人活码人数
memberLabelStatus
:
-
1
memberLabelStatus
:
-
1
,
welcomeType
:
1
},
rules
:
{
hmGroupId
:
[{
required
:
true
,
message
:
'请选择活码分组'
,
trigger
:
'blur'
}]
...
...
@@ -177,6 +177,7 @@ export default {
// this.form.passFlag = this.form.passFlag ? 1 : 0;
this
.
btnLoading
=
true
;
this
.
saveLoading
=
true
;
delete
this
.
form
.
welcomeType
;
this
.
$emit
(
'sumbit'
,
this
.
form
);
}
});
...
...
@@ -189,15 +190,16 @@ export default {
if
(
val
)
{
this
.
form
=
val
;
// this.form.hmGroupId = val.hmGroupId;
this
.
form
.
passFlag
=
val
.
passFlag
==
1
?
true
:
false
;
//
this.form.passFlag = val.passFlag == 1 ? true : false;
this
.
form
.
memberLabelId
=
val
.
memberLabelId
?
val
.
memberLabelId
:
''
;
this
.
form
.
memberLabelName
=
val
.
memberLabelName
?
val
.
memberLabelName
:
''
;
// this.welcomeType = this.form.welcomeType;
// this.form.welcomeId = val.welcomeId;
if
(
this
.
form
.
welcomeId
)
{
this
.
welcomeType
=
1
;
}
else
{
this
.
welcomeType
=
2
;
}
//
if (this.form.welcomeId) {
//
this.welcomeType = 1;
//
} else {
//
this.welcomeType = 2;
//
}
}
}
}
...
...
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