Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
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
integralMall
integral-mall
Commits
ece1bb6a
Commit
ece1bb6a
authored
Feb 11, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 复制
parent
a438719a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
27 deletions
+46
-27
visible.vue
src/components/visible.vue
+1
-1
index.js
src/router/index.js
+19
-2
coupon.vue
src/views/goods/coupon/coupon.vue
+9
-6
detail.vue
src/views/goods/coupon/detail.vue
+11
-10
detail.vue
src/views/goods/gift/detail.vue
+1
-0
gift.vue
src/views/goods/gift/gift.vue
+5
-8
No files found.
src/components/visible.vue
View file @
ece1bb6a
...
...
@@ -95,7 +95,7 @@
兑换状态下显示
</el-radio>
</el-radio-group>
<div
v-if=
"giftForm.proShowStatus == 1"
style=
"margin-left:20px;"
>
<div
v-if=
"giftForm.proShowStatus == 1
&& !isNew
"
style=
"margin-left:20px;"
>
<el-checkbox
v-model=
"giftForm.isNewGuestVisible"
:true-label=
"1"
:false-label=
"0"
>
非会员可见
</el-checkbox>
...
...
src/router/index.js
View file @
ece1bb6a
...
...
@@ -87,16 +87,33 @@ const router = new Router({
path
:
'/couponAdd'
,
name
:
'couponAdd'
,
component
:
couponDetail
,
meta
:
{
type
:
'add'
,
},
},
{
path
:
'/couponInfo'
,
name
:
'couponInfo'
,
component
:
couponDetail
,
meta
:
{
type
:
'info'
,
},
},
{
path
:
'/coupon
Detail
'
,
name
:
'coupon
Detail
'
,
path
:
'/coupon
Edit
'
,
name
:
'coupon
Edit
'
,
component
:
couponDetail
,
meta
:
{
type
:
'edit'
,
},
},
{
path
:
'/couponCopy'
,
name
:
'couponCopy'
,
component
:
couponDetail
,
meta
:
{
type
:
'copy'
,
},
},
{
path
:
'/soldStatistics'
,
...
...
src/views/goods/coupon/coupon.vue
View file @
ece1bb6a
...
...
@@ -364,15 +364,18 @@
</el-button>
<el-button
type=
"text"
@
click=
"goAdd(scope.row)"
@
click=
"goAdd(scope.row,'couponCopy')"
>
复制
</el-button>
<el-button
type=
"text"
@
click=
"goAdd(scope.row,'couponEdit')"
v-if=
"$getButtonLimit($buttonCode.couponEdit)"
:limit-code=
"$buttonCode.couponEdit"
>
编辑
</el-button>
<!--
<dm-delete
@
confirm=
"deleteList(scope.row, 0, scope.$index)"
tips=
"确定删除该商品吗?"
>
<el-button
type=
"text"
v-if=
"scope.row.canEdit"
>
删除
</el-button>
</dm-delete>
-->
<el-dropdown
v-if=
"(scope.row.isDifferentialPricing || scope.row.canEdit)&& ($getButtonLimit($buttonCode.couponTieredPricing)|| $getButtonLimit($buttonCode.couponDelete) || $getButtonLimit($buttonCode.couponDetail) || $getButtonLimit($buttonCode.couponConversion))"
style=
"margin-left:20px;"
...
...
@@ -654,7 +657,7 @@ export default {
},
handleCommand
(
command
,
item
,
index
)
{
if
(
command
==
0
)
{
this
.
goAdd
(
item
,
'
detail
'
);
this
.
goAdd
(
item
,
'
couponInfo
'
);
}
else
if
(
command
==
1
)
{
this
.
goRecord
(
item
);
}
else
if
(
command
==
2
)
{
...
...
@@ -899,7 +902,7 @@ export default {
sortColumn
:
this
.
sortColumn
,
};
window
.
localStorage
.
setItem
(
'couponListObj'
,
JSON
.
stringify
(
this
.
couponListObj
));
this
.
$router
.
push
({
name
:
type
===
'detail'
?
'couponDetail'
:
'couponInfo'
,
query
:
{
giftId
:
item
.
integralMallProId
,
coupCardId
:
item
.
proReferId
,
canEdit
:
item
.
canEdit
,
isDetail
:
type
===
'detail'
?
1
:
0
}
});
this
.
$router
.
push
({
name
:
type
,
query
:
{
giftId
:
item
.
integralMallProId
,
coupCardId
:
item
.
proReferId
}
});
},
// 编辑序号
editNumber
(
item
)
{
...
...
src/views/goods/coupon/detail.vue
View file @
ece1bb6a
...
...
@@ -11,10 +11,10 @@
<el-breadcrumb-item
:to=
"
{ path: '/coupon' }">
优惠券
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
mallProId
===
'-1'
?
'新建'
:
'编辑'
}}
优惠券
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
typeVal
}}
优惠券
</el-breadcrumb-item>
</el-breadcrumb>
<h3>
<span>
{{
mallProId
===
'-1'
?
'新建'
:
'编辑'
}}
优惠券
</span>
<span>
{{
typeVal
}}
优惠券
</span>
</h3>
</div>
<div
class=
"section"
v-loading=
"submitLoading"
>
...
...
@@ -90,7 +90,7 @@
</
template
>
</el-table-column>
<el-table-column
label=
"库存"
prop=
"couponStock"
/>
<el-table-column
label=
"操作"
v-
if
=
"mallProId === '-1'"
>
<el-table-column
label=
"操作"
v-
show
=
"mallProId === '-1'"
>
<
template
slot-scope=
"scope"
>
<dm-delete
@
confirm=
"deleteCard(scope.$index)"
tips=
"确定删除该卡券吗?"
>
<el-button
type=
"text"
>
...
...
@@ -480,7 +480,7 @@
type=
"primary"
size=
"small"
@
click=
"submitForm('couponForm')"
:disabled=
"
!canEdit||isDetail==1
"
:disabled=
"
isInfo
"
>
保存
</el-button>
...
...
@@ -632,7 +632,6 @@ export default {
groupIdDisableList
:
[],
proNameLen
:
0
,
// 新版门店卡券选择器
isAdd
:
true
,
memberGrade
:
''
,
isEdit
:
false
,
isCorrect
:
true
,
// 校验阶梯价的验证是否可以保存阶梯价
...
...
@@ -643,7 +642,7 @@ export default {
return
time
.
getTime
()
<
Date
.
now
()
-
24
*
3600
*
1000
;
},
},
is
Detail
:
null
,
is
Info
:
this
.
$route
.
meta
.
type
==
'info'
,
visibleData
:
{
releaseType
:
1
,
// 上架时间
limitTimeBegin
:
[],
// 上架时间具体
...
...
@@ -663,6 +662,12 @@ export default {
isNew
:
true
,
// 编辑旧商品时,是否确认转换为新数据格式
};
},
computed
:
{
typeVal
()
{
const
obj
=
{
add
:
'新建'
,
copy
:
'复制'
,
edit
:
'编辑'
,
info
:
'查看'
};
return
obj
[
this
.
$route
.
meta
.
type
];
},
},
mounted
()
{
this
.
getOpenStatus
();
this
.
getUserId
();
...
...
@@ -671,13 +676,9 @@ export default {
};
this
.
mallProId
=
this
.
$route
.
query
.
giftId
;
this
.
canEdit
=
Boolean
(
this
.
$route
.
query
.
canEdit
);
this
.
isDetail
=
Number
(
this
.
$route
.
query
.
isDetail
);
this
.
coupCardId
=
this
.
$route
.
query
.
coupCardId
;
if
(
this
.
mallProId
!==
'-1'
)
{
this
.
getInfo
();
this
.
isAdd
=
false
;
this
.
isEdit
=
true
;
}
else
{
this
.
isNew
=
true
;
...
...
src/views/goods/gift/detail.vue
View file @
ece1bb6a
...
...
@@ -942,6 +942,7 @@ export default {
}
if
((
this
.
giftId
==
'-1'
||
this
.
isCopy
)
&&
this
.
giftType
===
0
)
{
this
.
getGiftId
();
this
.
editChangeTypeStatus
=
false
;
}
this
.
$nextTick
(
function
()
{
window
.
addEventListener
(
'scroll'
,
this
.
onScroll
,
true
);
...
...
src/views/goods/gift/gift.vue
View file @
ece1bb6a
...
...
@@ -356,14 +356,6 @@
<div>
<el-button
type=
"text"
@
click=
"getLink(scope.row)"
v-if=
"scope.row.canEdit && $getButtonLimit($buttonCode.giftPromote)"
:limit-code=
"$buttonCode.giftPromote"
>
推广
</el-button>
<el-button
type=
"text"
v-if=
"!scope.row.ruleTitle&& $getButtonLimit($buttonCode.giftRelating)"
@
click=
"relating(scope.row)"
:limit-code=
"$buttonCode.giftRelating"
...
...
@@ -408,6 +400,9 @@
>
<span
class=
"el-dropdown-link"
style=
"color:#1890ff;cursor: pointer;"
>
<i
class=
"el-icon-more"
/>
</span>
<el-dropdown-menu
slot=
"dropdown"
style=
"width:110px;"
>
<el-dropdown-item
command=
"5"
v-if=
"$getButtonLimit($buttonCode.giftPromote)"
:limit-code=
"$buttonCode.giftPromote"
>
推广
</el-dropdown-item>
<el-dropdown-item
command=
"0"
v-if=
"$getButtonLimit($buttonCode.giftDetail)"
:limit-code=
"$buttonCode.giftDetail"
>
查看详情
</el-dropdown-item>
...
...
@@ -685,6 +680,8 @@ export default {
.
catch
(()
=>
{
});
}
else
if
(
command
==
5
)
{
this
.
getLink
(
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