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
42850222
Commit
42850222
authored
Jul 29, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 优化逻辑
parent
968e0735
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
form.js
src/views/card/form.js
+7
-0
form.vue
src/views/card/form.vue
+1
-1
No files found.
src/views/card/form.js
View file @
42850222
...
...
@@ -390,6 +390,13 @@ export default {
}
},
methods
:
{
onChangeNumber
(
val
)
{
if
(
!
val
)
{
this
.
$nextTick
(()
=>
{
this
.
form
.
cardCodeCount
=
0
;
});
}
},
changeOnly
(
val
)
{
this
.
form
.
useDescript
=
val
?
'不可与其他卡券叠加使用,详询门店'
:
'可与部分卡券叠加使用,详询门店'
;
},
...
...
src/views/card/form.vue
View file @
42850222
...
...
@@ -236,7 +236,7 @@
</el-form-item>
<el-form-item
prop=
"cardCodeCount"
:label=
"form.useCustomCode ? '默认数量' : '新建数量'"
>
<div
v-show=
"!form.useCustomCode"
><el-input-number
controls-position=
"right"
:min=
"0"
:max=
"10000000"
:disabled=
"isEdit || isInfo"
class=
"w200"
v-model=
"form.cardCodeCount"
@
blur=
"val => !val && (form.cardCodeCount = 0)
"
></el-input-number>
张
<span
class=
"fz13 gray"
>
优惠券创建数量默认为100,000张
</span></div>
<div
v-show=
"!form.useCustomCode"
><el-input-number
controls-position=
"right"
:min=
"0"
:max=
"10000000"
:disabled=
"isEdit || isInfo"
class=
"w200"
v-model=
"form.cardCodeCount"
@
change=
"onChangeNumber
"
></el-input-number>
张
<span
class=
"fz13 gray"
>
优惠券创建数量默认为100,000张
</span></div>
<div
v-show=
"form.useCustomCode"
><el-input-number
controls-position=
"right"
:min=
"0"
:max=
"100000"
disabled
class=
"w200"
:value=
"form.customCodeEnd - form.customCodeBegin + 1"
></el-input-number>
张
<span
class=
"fz13 gray"
>
优惠券创建数量默认为100,000张
</span></div>
</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