Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
a6391a4c
Commit
a6391a4c
authored
Feb 08, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠设置支持0.0.1
parent
ab31343d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
edit.vue
src/views/ecw/coupon/edit.vue
+11
-10
No files found.
src/views/ecw/coupon/edit.vue
View file @
a6391a4c
...
...
@@ -57,7 +57,7 @@
<div
class=
"fee-item"
v-for=
"(item, index) in fee[1]"
:key=
"index"
>
<template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
{{
$t
(
'
满
'
)
}}
<el-input
v-model=
"item.fullAmount"
@
keyup.native
=
"checkPositive(item, 'fullAmount')"
style=
"width:100px"
/>
<el-input
v-model=
"item.fullAmount"
@
blur
=
"checkPositive(item, 'fullAmount')"
style=
"width:100px"
/>
<!--
<el-select
v-model=
"item.fullCurrencyId"
style=
"width:100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
-->
...
...
@@ -69,14 +69,14 @@
<span
v-if=
"[5].indexOf(form.type) > -1"
>
{{
$t
(
'
收
'
)
}}
</span>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
v-model=
"item.reduceAmount"
@
keyup.native
=
"checkPositive(item, 'reduceAmount')"
style=
"width:100px"
/>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
v-model=
"item.reduceAmount"
@
blur
=
"checkPositive(item, 'reduceAmount')"
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:disabled=
"!!item.reduceCurrencyDisabled"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
%
</span>
</
template
>
<
template
v-if=
"form.type==7"
>
>
<el-input
v-model=
"item.startAmount"
@
keyup.native
=
"checkPositive(item, 'startAmount')"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
@
keyup.native
=
"checkPositive(item, 'endAmount')"
style=
"width:100px"
/>
>
<el-input
v-model=
"item.startAmount"
@
blur
=
"checkPositive(item, 'startAmount')"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
@
blur
=
"checkPositive(item, 'endAmount')"
style=
"width:100px"
/>
<!--
<selector
v-model=
"item.startAndEndCurrencyId"
@
input=
"checkReduceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
-->
...
...
@@ -85,7 +85,7 @@
{{
$t
(
'
价格
'
)
}}
</
template
>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
@
keyup.native
=
"checkPositive(item, 'netReceiptsAmount')"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
@
blur
=
"checkPositive(item, 'netReceiptsAmount')"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<selector
v-if=
"[5,6,7].indexOf(form.type) > -1"
v-model=
"item.netReceiptsCurrencyId"
:disabled=
"!!item.reduceCurrencyDisabled"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<
template
v-if=
"form.type == 6"
>
...
...
@@ -108,7 +108,7 @@
<div
class=
"fee-item"
v-for=
"(item, index) in fee[2]"
:key=
"index"
>
<
template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
{{
$t
(
'
满
'
)
}}
<el-input
v-model=
"item.fullAmount"
@
keyup.native
=
"checkPositive(item, 'fullAmount')"
style=
"width:100px"
/>
<el-input
v-model=
"item.fullAmount"
@
blur
=
"checkPositive(item, 'fullAmount')"
style=
"width:100px"
/>
<!--
<selector
v-if=
"[2,4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
@
input=
"checkReduceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
-->
<selector
v-if=
"[2,4,5].indexOf(form.type) > -1"
v-model=
"item.combUnit"
@
input=
"checkReduceCurrency(item)"
:options=
"combUnitList"
label-field=
"label"
value-field=
"value"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 3"
v-model=
"item.prodUnit"
:options=
"unitList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
...
...
@@ -118,20 +118,20 @@
<span
v-if=
"[5].indexOf(form.type) > -1"
>
{{
$t
(
'
收
'
)
}}
</span>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
@
keyup.native
=
"checkPositive(item, 'reduceAmount')"
v-model=
"item.reduceAmount"
style=
"width:100px"
/>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
@
blur
=
"checkPositive(item, 'reduceAmount')"
v-model=
"item.reduceAmount"
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:disabled=
"!!item.reduceCurrencyDisabled"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
%
</span>
</
template
>
<
template
v-if=
"form.type==7"
>
>
<el-input
v-model=
"item.startAmount"
@
keyup.native
=
"checkPositive(item, 'startAmount')"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
@
keyup.native
=
"checkPositive(item, 'endAmount')"
style=
"width:100px"
/>
>
<el-input
v-model=
"item.startAmount"
@
blur
=
"checkPositive(item, 'startAmount')"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
@
blur
=
"checkPositive(item, 'endAmount')"
style=
"width:100px"
/>
<!--
<Selector
v-model=
"item.startAndEndCurrencyId"
@
input=
"checkReduceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
-->
<selector
v-model=
"item.combUnit"
@
input=
"checkReduceCurrency(item)"
:options=
"combUnitList"
label-field=
"label"
value-field=
"value"
defaultable
style=
"width:100px"
/>
{{
$t
(
'
价格
'
)
}}
</
template
>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
@
keyup.native
=
"checkPositive(item, 'netReceiptsAmount')"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
@
blur
=
"checkPositive(item, 'netReceiptsAmount')"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<selector
v-if=
"[5,6,7].indexOf(form.type) > -1"
v-model=
"item.netReceiptsCurrencyId"
:disabled=
"!!item.reduceCurrencyDisabled"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<
template
v-if=
"form.type == 6"
>
...
...
@@ -617,6 +617,7 @@ export default {
// 检查正数
checkPositive
(
object
,
field
){
console
.
log
(
'
checkPositive
'
,
object
,
field
)
const
lastChar
=
object
[
field
].
split
(
''
).
pop
()
object
[
field
]
=
parseFloat
(
object
[
field
])
if
(
isNaN
(
object
[
field
])
||
object
[
field
]
<
0
)
object
[
field
]
=
''
...
...
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