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
fcacb0e7
Commit
fcacb0e7
authored
Mar 15, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 替换新建卡券的门店选择器
parent
7897dab9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
form.js
src/views/card/form.js
+5
-5
form.vue
src/views/card/form.vue
+2
-1
No files found.
src/views/card/form.js
View file @
fcacb0e7
...
...
@@ -1160,13 +1160,13 @@ export default {
card
.
storeWidgetKey
=
this
.
uuid
;
// 这里判断部分门店是否为空
if
(
card
.
storeMode
)
{
let
data
=
await
this
.
$refs
.
storeCard
.
getRightList
();
//
let data = await this.$refs.storeCard.getRightList();
// console.log(this.$refs.storeCard.newUuid);
// console.log(this.uuid);
if
(
!
data
.
length
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'部分门店不能为空'
});
return
;
}
//
if (!data.length) {
//
this.$tips({ type: 'warning', message: '部分门店不能为空' });
//
return;
//
}
}
params
.
card
=
JSON
.
stringify
(
card
);
...
...
src/views/card/form.vue
View file @
fcacb0e7
...
...
@@ -373,7 +373,8 @@
<
/div
>
<
div
class
=
"fz12 gray "
v
-
else
>*
仅支持选择账号管辖门店范围内的门店;
<
/div
>
<!--
:
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"
><
/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
>
<
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
>
...
...
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