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 6b2b9b3b
authored
Dec 11, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
11
1 parent
2ba565fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
72 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editCashCoupon.vue
View file @
6b2b9b3
...
@@ -2,27 +2,6 @@
...
@@ -2,27 +2,6 @@
<
template
>
<
template
>
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"container edit-container"
style=
"position: relative;"
>
<div
class=
"container edit-container"
style=
"position: relative;"
>
<!--
<div
class=
"right_show"
>
<div
class=
"card-top"
></div>
<div
class=
"card-middle"
>
<div>
<span
class=
"cname"
>
{{
editForm
.
couponName
}}
</span>
<span
class=
"ctype"
><span
class=
"ctypeName"
>
代金券
</span></span>
</div>
<div
class=
"ctime"
>
<span
class=
"ctime_name"
>
有效期:
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 3"
>
无限制
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 1"
>
{{
editForm
.
effectiveDays
}}
天
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 2"
>
{{
couponTime
}}
</span>
</div>
<div
class=
"ctime"
>
<span
class=
"ctime_name"
>
使用限制:
</span>
<span
class=
"ctime_content"
>
{{
editForm
.
useBarriers
==
1
?
'无限制'
:
'满'
+
editForm
.
full
+
'可用'
}}
</span>
</div>
<div
class=
"cremarks"
>
使用说明:
</div>
<div
class=
"cremarks_content"
>
{{
editForm
.
useDescription
}}
</div>
</div>
</div>
-->
<div
class=
"right_show"
>
<div
class=
"right_show"
>
<div
class=
"card-top"
></div>
<div
class=
"card-top"
></div>
<div
class=
"card_one"
>
<div
class=
"card_one"
>
...
@@ -93,9 +72,9 @@
...
@@ -93,9 +72,9 @@
</el-radio>
</el-radio>
</
template
>
</
template
>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"apear != 'couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)"
style=
"margin-left:10px"
>
<div
slot=
"proTable"
class=
"select-pro"
>
<div
style=
"height:
11
0px"
v-if=
"editForm.goodsRefList.length"
></div>
<div
style=
"height:
7
0px"
v-if=
"editForm.goodsRefList.length"
></div>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;padding-right:10px"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</
template
>
</
template
>
...
@@ -239,7 +218,8 @@ export default {
...
@@ -239,7 +218,8 @@ export default {
{
{
// label: '门店',
// label: '门店',
name
:
''
,
name
:
''
,
addHtml
:
'proTable'
addHtml
:
'proTable'
,
isHide
:
true
},
},
{
{
label
:
'使用说明'
,
label
:
'使用说明'
,
...
@@ -303,46 +283,41 @@ export default {
...
@@ -303,46 +283,41 @@ export default {
'editForm.useChannel'
(
newValue
,
oldValue
)
{
'editForm.useChannel'
(
newValue
,
oldValue
)
{
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
this
.
editFormData
[
6
].
isHide
=
false
this
.
editFormData
[
6
].
isHide
=
false
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
}
}
else
{
}
else
{
this
.
editForm
.
useBarriers
=
'1'
this
.
editForm
.
useBarriers
=
'1'
this
.
editForm
.
full
=
''
this
.
editForm
.
full
=
''
this
.
editFormData
[
6
].
isHide
=
true
this
.
editFormData
[
6
].
isHide
=
true
this
.
editFormData
[
7
].
isHide
=
true
}
}
},
},
'editForm.goods'
(
newValue
,
oldValue
)
{
'editForm.goods'
(
newValue
,
oldValue
)
{
if
(
newValue
==
1
)
{
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
this
.
minPirce
=
this
.
minPirceForAll
this
.
editFormData
[
7
].
isHide
=
true
}
else
{
}
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
this
.
minPirce
=
this
.
minPirceForPart
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
}
}
}
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
)
{
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
)
{
this
.
priceFlag
=
true
this
.
priceFlag
=
true
}
else
{
}
else
{
this
.
priceFlag
=
false
this
.
priceFlag
=
false
}
}
},
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
if
(
newValue
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
}
else
{
this
.
editFormData
[
7
].
isHide
=
true
}
}
}
},
},
...
@@ -369,12 +344,6 @@ export default {
...
@@ -369,12 +344,6 @@ export default {
const
goods
=
this
.
$common
.
utils
.
deepClone
(
res
.
list
)
const
goods
=
this
.
$common
.
utils
.
deepClone
(
res
.
list
)
this
.
selectedAllProList
=
goods
this
.
selectedAllProList
=
goods
if
(
goods
&&
goods
.
length
>
0
)
{
if
(
goods
&&
goods
.
length
>
0
)
{
// this.minPirce = goods[0].retailPrice
// goods.forEach((item, index) => {
// if(item.retailPrice < this.minPirce){
// this.minPirce = item.retailPrice
// }
// })
this
.
minPirceForAll
=
goods
[
0
].
retailPrice
this
.
minPirceForAll
=
goods
[
0
].
retailPrice
goods
.
forEach
((
item
,
index
)
=>
{
goods
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
retailPrice
<
this
.
minPirceForAll
)
{
if
(
item
.
retailPrice
<
this
.
minPirceForAll
)
{
...
@@ -393,31 +362,11 @@ export default {
...
@@ -393,31 +362,11 @@ export default {
this
.
handleMutiSelectClose
()
this
.
handleMutiSelectClose
()
},
},
// handleConfigSearch(){
// this.getAllGoods(this.searchProForm.name)
// },
// handleConfigReset(){
// this.getAllGoods()
// },
handleMutiSelectConfirm
(
selectedData
)
{
handleMutiSelectConfirm
(
selectedData
)
{
this
.
editForm
.
goodsRefList
=
selectedData
this
.
editForm
.
goodsRefList
=
selectedData
/** 选择指定商品时,面值最小值的判断区域应该在已选商品内 start*/
/** 选择指定商品时,面值最小值的判断区域应该在已选商品内 start*/
var
goods
=
this
.
editForm
.
goodsRefList
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
this
.
minPirceForPart
=
goods
[
0
].
retailPrice
*
100
goods
.
forEach
((
item
,
index
)
=>
{
goods
.
forEach
((
item
,
index
)
=>
{
var
retailPrice
=
item
.
retailPrice
*
100
var
retailPrice
=
item
.
retailPrice
*
100
...
...
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