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 cdd7bd09
authored
Dec 13, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增代金券适用商品项调整到面值之上
1 parent
10d3920c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editCashCoupon.vue
View file @
cdd7bd0
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
</
template
>
</
template
>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
>
<div
slot=
"proTable"
class=
"select-pro"
>
<
div
style=
"height:70px"
v-if=
"editForm.goodsRefList.length"
></div
>
<
!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> --
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;
padding-right:10px
"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;
width:70vw;max-height:350px;overflow: auto;
"
>
<
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
>
...
@@ -199,17 +199,6 @@ export default {
...
@@ -199,17 +199,6 @@ export default {
addHtml
:
'useBarriersHtml'
addHtml
:
'useBarriersHtml'
},
},
{
{
label
:
'面值'
,
name
:
'denomination'
,
addHtml
:
'denominationHtml'
},
{
label
:
'库存'
,
name
:
'stock'
,
width
:
'150px'
,
type
:
'input'
},
{
label
:
'适用商品'
,
label
:
'适用商品'
,
name
:
'goods'
,
name
:
'goods'
,
addHtml
:
'goodsHtml'
,
addHtml
:
'goodsHtml'
,
...
@@ -222,6 +211,17 @@ export default {
...
@@ -222,6 +211,17 @@ export default {
isHide
:
true
isHide
:
true
},
},
{
{
label
:
'面值'
,
name
:
'denomination'
,
addHtml
:
'denominationHtml'
},
{
label
:
'库存'
,
name
:
'stock'
,
width
:
'150px'
,
type
:
'input'
},
{
label
:
'使用说明'
,
label
:
'使用说明'
,
name
:
'useDescription'
,
name
:
'useDescription'
,
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
...
@@ -282,27 +282,27 @@ export default {
...
@@ -282,27 +282,27 @@ export default {
},
},
'editForm.useChannel'
(
newValue
,
oldValue
)
{
'editForm.useChannel'
(
newValue
,
oldValue
)
{
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
this
.
editFormData
[
6
].
isHide
=
false
this
.
editFormData
[
4
].
isHide
=
false
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
this
.
editFormData
[
5
].
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
[
4
].
isHide
=
true
this
.
editFormData
[
7
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
}
}
},
},
'editForm.goods'
(
newValue
,
oldValue
)
{
'editForm.goods'
(
newValue
,
oldValue
)
{
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
//全部商品
//全部商品
this
.
minPirce
=
this
.
minPirceForAll
this
.
minPirce
=
this
.
minPirceForAll
this
.
editFormData
[
7
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
}
else
{
}
else
{
//指定商品
//指定商品
this
.
minPirce
=
this
.
minPirceForPart
this
.
minPirce
=
this
.
minPirceForPart
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
this
.
editFormData
[
5
].
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
)
{
...
@@ -314,9 +314,9 @@ export default {
...
@@ -314,9 +314,9 @@ export default {
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
if
(
newValue
.
length
)
{
if
(
newValue
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
this
.
editFormData
[
5
].
isHide
=
false
}
else
{
}
else
{
this
.
editFormData
[
7
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
}
}
},
},
...
...
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