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
c2658055
Commit
c2658055
authored
Sep 14, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 奥莱抵金券
parent
47b58111
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
form.js
src/views/card/form.js
+11
-4
form.vue
src/views/card/form.vue
+1
-1
No files found.
src/views/card/form.js
View file @
c2658055
...
...
@@ -51,7 +51,7 @@ const initForm = {
useDescript
:
'不可与其他卡券叠加使用,详询门店'
,
// shelfIds: [],
verificationType
:
0
,
cardDenomination
:
0
,
cardDenomination
:
undefined
,
proNoList
:
[],
discount_amount_upper_limit
:
0
,
goods_discounts_number_upper_limit
:
0
,
...
...
@@ -463,7 +463,7 @@ export default {
this
.
selectedStoreList
=
[];
this
.
originStoreList
=
[...
this
.
form
.
costStoreList
];
}
if
(
this
.
isEdit
||
this
.
isCopy
)
{
if
(
this
.
isEdit
)
{
this
.
storeUuid
=
this
.
storeUuidCache
;
}
},
...
...
@@ -537,7 +537,6 @@ export default {
.
then
(
res
=>
{
const
{
importId
,
importCount
,
importSuccessCount
,
importDuplicateCount
,
costStoreList
}
=
res
.
result
;
if
(
res
.
errorCode
!=
0
)
return
;
this
.
storeUuid
=
''
;
this
.
importCost
.
costStoreList
=
costStoreList
;
if
(
importCount
==
importSuccessCount
)
{
this
.
$message
.
success
(
`
${
importSuccessCount
}
条数据上传成功`
);
...
...
@@ -562,7 +561,15 @@ export default {
onSaveImportCost
()
{
if
(
this
.
isAdd
||
this
.
isCopy
)
{
// 新建卡券导入的数据覆盖之前的数据
this
.
originStoreList
=
this
.
importCost
.
costStoreList
;
if
(
this
.
storeMode
==
1
)
{
this
.
storeUuid
=
''
;
setTimeout
(()
=>
{
this
.
$refs
.
storeSelector
.
resetSelector
(
5
);
this
.
originStoreList
=
this
.
importCost
.
costStoreList
;
},
20
);
}
else
{
this
.
originStoreList
=
this
.
importCost
.
costStoreList
;
}
}
this
.
importCost
.
visible
=
false
;
},
...
...
src/views/card/form.vue
View file @
c2658055
...
...
@@ -97,7 +97,7 @@
<i
class=
"iconfont icon-QuestionCircleOutlined"
></i>
</el-tooltip>
</
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>
<dm-store-selector
class=
"card-store-selector"
ref=
"storeSelector"
: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>
...
...
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