Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
ae80a52d
Commit
ae80a52d
authored
Sep 27, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 新建卡券-卡券门店选择器
parent
b5d7aad8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
form.js
src/views/card/form.js
+4
-0
form.vue
src/views/card/form.vue
+2
-2
No files found.
src/views/card/form.js
View file @
ae80a52d
...
@@ -1169,6 +1169,10 @@ export default {
...
@@ -1169,6 +1169,10 @@ export default {
return
;
return
;
}
}
}
}
if
(
this
.
storeMode
==
1
&&
!
this
.
uuid
)
{
this
.
$message
.
warning
(
'请选择适用门店'
);
return
;
}
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
saveUpdateCard
();
this
.
saveUpdateCard
();
...
...
src/views/card/form.vue
View file @
ae80a52d
...
@@ -438,7 +438,7 @@
...
@@ -438,7 +438,7 @@
<
/div
>
<
/div
>
<
div
class
=
"fz12 gray "
v
-
else
>*
仅支持选择账号管辖门店范围内的门店;
<
/div
>
<
div
class
=
"fz12 gray "
v
-
else
>*
仅支持选择账号管辖门店范围内的门店;
<
/div
>
<!--
:
readonly
=
"isEdit"
-->
<!--
:
readonly
=
"isEdit"
-->
<
vue
-
gic
-
store
-
card
class
=
"pt10"
:
readonly
=
"isInfo"
v
-
bind
=
"storeParams"
v
-
show
=
"storeMode"
ref
=
"storeCard"
:
uuid
.
sync
=
"uuid"
><
/vue-gic-store-card
>
<
vue
-
gic
-
store
-
card
class
=
"pt10"
:
readonly
=
"isInfo"
v
-
bind
=
"storeParams"
v
-
show
=
"storeMode"
ref
=
"storeCard"
:
uuid
.
sync
=
"uuid"
@
save
=
"flag => (submitLoading = flag)"
><
/vue-gic-store-card
>
<!--
<
dm
-
store
-
selector
v
-
if
=
"isAdd ? storeMode : storeMode && !isAdd && uuid"
:
readonly
=
"isInfo"
v
-
bind
=
"storeParams"
ref
=
"storeCard"
:
uuid
.
sync
=
"uuid"
><
/dm-store-selector> --
>
<!--
<
dm
-
store
-
selector
v
-
if
=
"isAdd ? storeMode : storeMode && !isAdd && uuid"
:
readonly
=
"isInfo"
v
-
bind
=
"storeParams"
ref
=
"storeCard"
:
uuid
.
sync
=
"uuid"
><
/dm-store-selector> --
>
<
el
-
alert
v
-
show
=
"storeMode && form.cardApplyChannel.indexOf('WMmicroMall') !== -1"
title
=
"选择的门店必须保持与微盟侧门店一致,请确认选择无误"
type
=
"warning"
show
-
icon
:
closable
=
"false"
class
=
"mt20 width80"
><
/el-alert
>
<
el
-
alert
v
-
show
=
"storeMode && form.cardApplyChannel.indexOf('WMmicroMall') !== -1"
title
=
"选择的门店必须保持与微盟侧门店一致,请确认选择无误"
type
=
"warning"
show
-
icon
:
closable
=
"false"
class
=
"mt20 width80"
><
/el-alert
>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -462,7 +462,7 @@
...
@@ -462,7 +462,7 @@
<
dm
-
form
-
bottom
>
<
dm
-
form
-
bottom
>
<
el
-
button
v
-
if
=
"form.useCustomCode === 0 && form.giveFlag"
:
disabled
=
"!preview.disabled"
@
click
=
"preview.visible = true"
>
转赠预览
<
/el-button
>
<
el
-
button
v
-
if
=
"form.useCustomCode === 0 && form.giveFlag"
:
disabled
=
"!preview.disabled"
@
click
=
"preview.visible = true"
>
转赠预览
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm('form')"
v
-
loading
=
"submitLoading"
v
-
show
=
"!isInfo && canEdit && $store.state.marketing.appletEnable"
>
保存
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm('form')"
v
-
loading
=
"submitLoading"
:
disabled
=
"submitLoading"
v
-
show
=
"!isInfo && canEdit && $store.state.marketing.appletEnable"
>
保存
<
/el-button
>
<
el
-
button
@
click
=
"$router.push('/card/list')"
>
返
回
<
/el-button
>
<
el
-
button
@
click
=
"$router.push('/card/list')"
>
返
回
<
/el-button
>
<
/dm-form-bottom
>
<
/dm-form-bottom
>
<
/el-form
>
<
/el-form
>
...
...
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