Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e71ac74f
authored
Dec 07, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
a4c4e6c1
7253dfcc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
24 deletions
src/components/glsx-dialog/index.vue
src/components/selectMutiProDialog/indexForCoupon.vue
src/views/couponManage/editCashCoupon.vue
src/views/memberCenter/center.vue
src/components/glsx-dialog/index.vue
View file @
e71ac74
...
...
@@ -2,7 +2,7 @@
<
template
>
<div>
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:show-close=
"showClose"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
:modal-append-to-body=
"false"
:width=
"width"
>
<div
style=
"height:60vh;overflow:auto
"
>
<div
:style=
"
{height:height,overflow:'auto'}
">
<el-scrollbar
v-if=
"hasScroll"
>
<span
slot=
"title"
>
<span
class=
"main-title"
>
{{
title
}}
</span>
...
...
@@ -22,7 +22,6 @@
<slot></slot>
</
template
>
</div>
<div
slot=
"footer"
>
<slot
name=
"btn-start"
></slot>
...
...
@@ -86,6 +85,10 @@ export default {
type
:
String
,
default
:
''
},
// modalAppendToBody:{
// type: Boolean,
// default: false
// },
width
:
{
type
:
String
,
default
:
'580px'
...
...
@@ -94,6 +97,10 @@ export default {
type
:
String
,
default
:
'mini'
},
height
:
{
type
:
String
,
default
:
''
},
},
methods
:
{
...
...
@@ -116,8 +123,9 @@ export default {
//
border-bottom
:
1px
solid
#e6e6e6
;
//
padding
:
20px
25px
;
//
}
.el-dialog-div
{
height
:
60vh
;
overflow
:
auto
;
}
//
.el-dialog-div
{
//
height
:
60vh
;
//
overflow
:
auto
;
//
}
</
style
>
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
e71ac74
<!-- 选择商品弹窗 -->
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
:height=
"height"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<el-form
:inline=
"true"
:model=
"searchProForm"
>
<el-form-item
label=
"商品名称:"
>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
...
...
@@ -70,7 +70,11 @@ export default {
selectedProList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
height
:
{
type
:
String
,
default
:
''
},
},
components
:
{
...
...
src/views/couponManage/editCashCoupon.vue
View file @
e71ac74
...
...
@@ -65,13 +65,15 @@
</el-input>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag"
>
存在零售价低于代金券的商品
</span>
</
template
>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<
template
slot=
"goodsHtml"
>
<el-radio
v-model=
"editForm.goods"
label=
"1"
v-if=
"apear=='couponAdd'"
>
全部商品可用
</el-radio>
<el-radio
v-model=
"editForm.goods"
label=
"2"
v-if=
"apear=='couponAdd'"
>
指定商品可用
<el-button
type=
"primary"
v-if=
"editForm.goods == 2"
@
click=
"chooseGoods"
>
选择商品
</el-button>
</el-radio>
</
template
>
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"editForm.useChannel == 1"
>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"apear!='couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)"
>
<div
style=
"height:110px"
v-if=
"editForm.goodsRefList.length"
></div>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
...
...
@@ -92,7 +94,7 @@
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear=='couponSee'"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
<select-muti-pro-forcoupon-dialog
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchProForm"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
>
<select-muti-pro-forcoupon-dialog
v-if=
"isMutiSelectVisible"
:
height=
"dialogHeight"
:
isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchProForm"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
>
</select-muti-pro-forcoupon-dialog>
</div>
</template>
...
...
@@ -119,6 +121,10 @@ export default {
},
apear
:
''
,
minPirce
:
''
,
//全部商品时最低价
minPirceForAll
:
''
,
//指定商品时最低价
minPirceForPart
:
''
,
couponTime
:
''
,
remarksView
:
[],
//存在零售价低于代金券的商品
...
...
@@ -236,7 +242,8 @@ export default {
name
:
'useDescription'
,
addHtml
:
'useDescriptionHtml'
}
]
],
dialogHeight
:
'60vh'
}
},
...
...
@@ -291,7 +298,6 @@ export default {
}
},
'editForm.useChannel'
(
newValue
,
oldValue
){
console
.
log
(
newValue
);
if
(
newValue
==
1
){
this
.
editFormData
[
6
].
isHide
=
false
}
else
{
...
...
@@ -300,6 +306,39 @@ export default {
this
.
editFormData
[
6
].
isHide
=
true
}
},
'editForm.goods'
(
newValue
,
oldValue
){
if
(
newValue
==
1
){
//全部商品
// var goods = this.selectedAllProList
// if(goods && goods.length > 0){
// this.minPirce = goods[0].retailPrice
// goods.forEach((item, index) => {
// if(item.retailPrice < this.minPirce){
// this.minPirce = item.retailPrice
// }
// })
// }else{
// this.priceFlag = true
// }
this
.
minPirce
=
this
.
minPirceForAll
}
else
{
//指定商品
// var goods2 = this.editForm.goodsRefList
// if(goods2 && goods2.length > 0){
// this.minPirce = goods2[0].retailPrice*100
// goods2.forEach((item, index) => {
// var retailPrice = item.retailPrice*100
// if(retailPrice < this.minPirce){
// this.minPirce = retailPrice
// }
// })
// }
this
.
minPirce
=
this
.
minPirceForPart
}
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
){
this
.
priceFlag
=
true
}
else
{
this
.
priceFlag
=
false
}
},
},
methods
:
{
...
...
@@ -325,10 +364,16 @@ export default {
const
goods
=
this
.
$common
.
utils
.
deepClone
(
res
.
list
)
this
.
selectedAllProList
=
goods
if
(
goods
&&
goods
.
length
>
0
){
this
.
minPirce
=
goods
[
0
].
retailPrice
// this.minPirce = goods[0].retailPrice
// goods.forEach((item, index) => {
// if(item.retailPrice < this.minPirce){
// this.minPirce = item.retailPrice
// }
// })
this
.
minPirceForAll
=
goods
[
0
].
retailPrice
goods
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
retailPrice
<
this
.
minPirce
){
this
.
minPirce
=
item
.
retailPrice
if
(
item
.
retailPrice
<
this
.
minPirce
ForAll
){
this
.
minPirce
ForAll
=
item
.
retailPrice
}
})
}
else
{
...
...
@@ -354,6 +399,35 @@ export default {
handleMutiSelectConfirm
(
selectedData
)
{
this
.
editForm
.
goodsRefList
=
selectedData
/** 选择指定商品时,面值最小值的判断区域应该在已选商品内 start*/
var
goods
=
this
.
editForm
.
goodsRefList
// this.minPirce = goods[0].retailPrice*100
// goods.forEach((item, index) => {
// var retailPrice = item.retailPrice*100
// if(retailPrice < this.minPirce){
// this.minPirce = retailPrice
// }
// })
// if(this.editForm.denomination && this.editForm.denomination*100 > this.minPirce){
// this.priceFlag = true
// }else{
// this.priceFlag = false
// }
this
.
minPirceForPart
=
goods
[
0
].
retailPrice
*
100
goods
.
forEach
((
item
,
index
)
=>
{
var
retailPrice
=
item
.
retailPrice
*
100
if
(
retailPrice
<
this
.
minPirceForPart
){
this
.
minPirceForPart
=
retailPrice
}
})
if
(
this
.
editForm
.
denomination
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirceForPart
){
this
.
priceFlag
=
true
}
else
{
this
.
priceFlag
=
false
}
/** 选择指定商品时,面值最小值的判断区域应该在已选商品内 end*/
this
.
handleMutiSelectClose
()
},
...
...
@@ -376,7 +450,11 @@ export default {
},
denominationBlur
(
event
){
console
.
log
(
'111'
);
if
(
this
.
editForm
.
goods
==
1
){
//全部商品
this
.
minPirce
=
this
.
minPirceForAll
}
else
{
//指定商品
this
.
minPirce
=
this
.
minPirceForPart
}
if
(
event
.
target
.
value
*
100
>
this
.
minPirce
){
this
.
priceFlag
=
true
}
else
{
...
...
@@ -409,12 +487,6 @@ export default {
})
},
//选择到店核销使用限制默认无使用门槛
clickUseChannel
(){
this
.
editForm
.
useBarriers
=
'1'
this
.
editFormData
[
6
].
isHide
=
true
},
validateRules
(){
var
form
=
this
.
editForm
if
(
form
.
effectiveType
==
'2'
){
//判断 有效期-日期选择是否验证
...
...
src/views/memberCenter/center.vue
View file @
e71ac74
...
...
@@ -422,7 +422,7 @@ export default {
.seeEquity
{
position
:
absolute
;
right
:
0
;
bottom
:
1
0
px
;
bottom
:
1
4
px
;
}
.cancelBtn
{
position
:
absolute
;
...
...
@@ -460,7 +460,8 @@ export default {
}
.address
{
display
:
inline-block
;
max-width
:
600px
;
vertical-align
:
bottom
;
max-width
:
calc
(
100%
-
220px
);
color
:
#989898
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment