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
faecd9ec
Commit
faecd9ec
authored
Sep 14, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 奥莱抵金券
parent
0ee11de8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
form.js
src/views/card/form.js
+1
-1
form.vue
src/views/card/form.vue
+21
-7
card-profit.vue
src/views/ecm/touch-components/card/card-profit.vue
+1
-1
No files found.
src/views/card/form.js
View file @
faecd9ec
...
...
@@ -1080,7 +1080,7 @@ export default {
if
(
this
.
form
.
cardType
==
3
)
{
if
(
this
.
form
.
costValueProportionFlag
==
1
)
{
if
(
!
(
this
.
isEdit
&&
this
.
storeMode
==
0
)
&&
(
!
Array
.
isArray
(
this
.
originStoreList
)
||
this
.
originStoreList
.
length
==
0
))
{
if
(
!
this
.
storeUuid
||
(
!
(
this
.
isEdit
&&
this
.
storeMode
==
0
)
&&
(
!
Array
.
isArray
(
this
.
originStoreList
)
||
this
.
originStoreList
.
length
==
0
)
))
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请选择卡券适用门店'
});
const
body
=
document
.
getElementsByClassName
(
'dm-layout-page'
)[
0
];
toTop
(
body
,
this
.
$refs
.
useStore
.
$el
.
offsetTop
-
body
.
offsetTop
);
...
...
src/views/card/form.vue
View file @
faecd9ec
...
...
@@ -22,11 +22,11 @@
</el-popover>
</el-form-item>
<el-form-item
prop=
"cardName"
label=
"卡券名称"
>
<dm-input
v-model=
"form.cardName"
class=
"w400"
placeholder=
"请输入卡券名称"
:disabled=
"isEdit || isInfo"
:byteType=
"0"
:maxlength=
"30"
></dm-input>
<dm-input
v-model=
"form.cardName"
class=
"w400
card-name-input
"
placeholder=
"请输入卡券名称"
:disabled=
"isEdit || isInfo"
:byteType=
"0"
:maxlength=
"30"
></dm-input>
</el-form-item>
<el-form-item
prop=
"subName"
label=
"备注名"
key=
"subName"
>
<dm-input
v-model=
"form.subName"
class=
"w400"
placeholder=
"请输入备注名称"
:disabled=
"isEdit || isInfo"
:byteType=
"0"
:maxlength=
"15"
></dm-input>
<dm-input
v-model=
"form.subName"
class=
"w400
card-name-input
"
placeholder=
"请输入备注名称"
:disabled=
"isEdit || isInfo"
:byteType=
"0"
:maxlength=
"15"
></dm-input>
</el-form-item>
<el-form-item
v-if=
"form.cardType != 3"
prop=
"subTitle"
label=
"卡券副标题"
>
...
...
@@ -76,7 +76,7 @@
</el-form-item>
<!-- 抵金券 -->
<el-form-item
prop=
"cardDenomination"
label=
"减免金额"
v-if=
"form.cardType === 0 || form.cardType == 3"
>
<el-input-number
controls-position=
"right"
:disabled=
"isEdit || isInfo"
v-model=
"form.cardDenomination"
class=
"200"
:precison=
"0"
:min=
"0"
:max=
"10000000"
></el-input-number>
元
<span
class=
"fz12 gray"
>
请输入大于0的整数
</span>
</el-form-item>
<el-form-item
prop=
"cardDenomination"
label=
"减免金额"
key=
"cardDenomination"
v-if=
"form.cardType === 0 || form.cardType == 3"
>
<el-input-number
controls-position=
"right"
:disabled=
"isEdit || isInfo"
v-model=
"form.cardDenomination"
class=
"200"
:precison=
"0"
:min=
"0"
:max=
"10000000"
></el-input-number>
元
<span
class=
"fz12 gray"
>
请输入大于0的整数
</span>
</el-form-item>
<el-form-item
v-if=
"form.cardType == 3"
label=
"卡券成本比例"
>
<el-switch
v-model=
"form.costValueProportionFlag"
:active-value=
"1"
:inactive-value=
"0"
:disabled=
"isEdit || isInfo"
></el-switch>
...
...
@@ -90,14 +90,14 @@
</div>
</div>
</el-form-item>
<el-form-item
v-if=
"form.cardType == 3"
label=
"适用门店"
ref=
"useStore"
>
<
div
slot=
"label"
>
<el-form-item
v-if=
"form.cardType == 3"
label=
"适用门店"
ref=
"useStore"
prop=
"storeUuid"
:rules=
"[{ required: true, validator: (rules, value, callback) => callback(), trigger: 'change' }]"
>
<
template
slot=
"label"
>
适用门店
<el-tooltip
placement=
"top"
content=
"仅支持选择账号管辖门店范围内的门店"
>
<i
class=
"iconfont icon-QuestionCircleOutlined"
></i>
</el-tooltip>
</
div
>
<dm-store-selector
:uuid
.
sync=
"storeUuid"
:default-all=
"false"
:options=
"[5]"
:store-type-disabled=
"isEdit && form.costValueType == 0"
@
optionsChange=
"onOptionsChange"
@
store-change=
"onStoreChange"
></dm-store-selector>
</
template
>
<dm-store-selector
class=
"card-store-selector"
:uuid
.
sync=
"storeUuid"
:default-all=
"false"
:options=
"[5]"
:store-type-disabled=
"isEdit && form.costValueType == 0"
@
optionsChange=
"onOptionsChange"
@
store-change=
"onStoreChange"
></dm-store-selector>
<div
v-if=
"form.costValueProportionFlag == 1"
class=
"cost-box"
>
<div
v-if=
"form.costValueType == 0"
class=
"fixed-cost"
>
<el-form-item
label=
"成本比例"
prop=
"costValueProportion"
label-width=
"85px"
><el-input-number
v-model=
"form.costValueProportion"
:disabled=
"isEdit || isInfo"
:min=
"0"
:max=
"100"
:precision=
"0"
:controls=
"false"
style=
"margin-right: 10px; width: 130px"
placeholder=
"请输入成本比例"
></el-input-number>
%
</el-form-item>
...
...
@@ -500,6 +500,20 @@ export default cardForm;
display
:
none
;
}
}
.
card
-
name
-
input
{
/
deep
/
.
el
-
input__inner
{
padding
-
right
:
40
px
;
}
}
.
card
-
store
-
selector
{
/
deep
/
.
el
-
select
.
el
-
input
{
display
:
inline
-
block
;
}
/deep/
.
el
-
popover__reference
.
el
-
input__inner
{
height
:
30
px
;
line
-
height
:
30
px
;
}
}
.
cost
-
box
{
margin
-
top
:
10
px
;
width
:
701
px
;
...
...
src/views/ecm/touch-components/card/card-profit.vue
View file @
faecd9ec
...
...
@@ -19,7 +19,7 @@
<el-tooltip
open-delay=
"100"
placement=
"top-start"
:content=
"scope.row.cardName"
v-else
>
<span
:class=
"['card_name', scope.row.status == 0 ? 'del_card' : 'pointer']"
@
click=
"toCardDetail(scope.row)"
>
{{
scope
.
row
.
cardName
}}
</span>
</el-tooltip>
<span
class=
"type"
v-if=
"scope.row.status != 0 && 'status' in scope.row"
>
{{
scope
.
row
.
cardType
==
0
?
'抵金券'
:
scope
.
row
.
cardType
==
1
?
'折扣券'
:
scope
.
row
.
cardType
==
2
?
'兑换券'
:
'--'
}}
</span>
<span
class=
"type"
v-if=
"scope.row.status != 0 && 'status' in scope.row"
>
{{
scope
.
row
.
cardType
==
0
?
'抵金券'
:
scope
.
row
.
cardType
==
1
?
'折扣券'
:
scope
.
row
.
cardType
==
2
?
'兑换券'
:
scope
.
row
.
cardType
==
3
?
'商场抵金券'
:
'--'
}}
</span>
<img
:src=
"require('@/assets/img/Icon-yishanchu.svg')"
alt=
""
v-else-if=
"'status' in scope.row"
style=
"width: 46px;height: 21px;margin-left: 6px"
/>
</div>
<p>
{{
scope
.
row
.
subTitle
}}
</p>
...
...
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