Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 984e8efe
authored
Feb 20, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
编辑礼包
1 parent
cf910902
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
src/views/giftBag/editGift.vue
src/views/giftBag/selectGiftDialog.vue
src/views/giftBag/editGift.vue
View file @
984e8ef
...
@@ -273,6 +273,7 @@ export default {
...
@@ -273,6 +273,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
res
.
data
.
couponList
.
forEach
(
item
=>
{
res
.
data
.
couponList
.
forEach
(
item
=>
{
item
.
id
=
item
.
couponId
item
.
id
=
item
.
couponId
item
.
anticipatedCost
=
item
.
couponAnticipatedCost
})
})
this
.
editForm
=
res
.
data
this
.
editForm
=
res
.
data
this
.
editForm
.
receiveWay
=
this
.
editForm
.
receiveWay
+
''
this
.
editForm
.
receiveWay
=
this
.
editForm
.
receiveWay
+
''
...
...
src/views/giftBag/selectGiftDialog.vue
View file @
984e8ef
...
@@ -19,7 +19,10 @@
...
@@ -19,7 +19,10 @@
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
<GLTable
v-loading=
"loading"
ref=
"giftRef"
:tableData=
"giftList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
></GLTable>
<GLTable
v-loading=
"loading"
v-show=
"activeName == 'service'"
ref=
"serviceRef"
:tableData=
"giftList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
></GLTable>
<GLTable
v-loading=
"loading"
v-show=
"activeName == 'cash'"
ref=
"cashRef"
:tableData=
"giftList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
></GLTable>
<GLTable
v-loading=
"loading"
v-show=
"activeName == 'discount'"
ref=
"discountRef"
:tableData=
"giftList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
></GLTable>
<GLTable
v-loading=
"loading"
v-show=
"activeName == 'exchange'"
ref=
"exchangeRef"
:tableData=
"giftList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
></GLTable>
</div>
</div>
</div>
</div>
<div
class=
"selected-list"
>
<div
class=
"selected-list"
>
...
@@ -173,19 +176,22 @@ export default {
...
@@ -173,19 +176,22 @@ export default {
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
discountType
:
this
.
selectedGiftList
[
this
.
activeName
].
discountType
,
discountType
:
this
.
selectedGiftList
[
this
.
activeName
].
discountType
,
pageNum
:
isReset
?
1
:
this
.
$refs
.
giftRef
.
page
.
pageNum
,
pageNum
:
isReset
?
1
:
this
.
$refs
[
this
.
activeName
+
'Ref'
]
.
page
.
pageNum
,
pageSize
:
isReset
?
10
:
this
.
$refs
.
giftRef
.
page
.
pageSize
pageSize
:
isReset
?
10
:
this
.
$refs
[
this
.
activeName
+
'Ref'
]
.
page
.
pageSize
}
}
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
giftBag
this
.
$apis
.
giftBag
.
getDirectionalGiftListApi
(
params
)
.
getDirectionalGiftListApi
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
giftList
=
res
.
list
this
.
giftList
=
res
.
list
this
.
giftList
.
forEach
(
item
=>
{
item
.
couponAnticipatedCost
=
item
.
anticipatedCost
})
this
.
fnCallBack
=
true
this
.
fnCallBack
=
true
this
.
$refs
.
giftRef
.
tableTotal
=
res
.
total
this
.
$refs
[
this
.
activeName
+
'Ref'
]
.
tableTotal
=
res
.
total
this
.
recoverySelected
()
this
.
recoverySelected
()
this
.
recoveryTotal
()
this
.
recoveryTotal
()
this
.
$refs
.
giftRef
.
tableHeightValues
=
'50vh'
this
.
$refs
[
this
.
activeName
+
'Ref'
]
.
tableHeightValues
=
'50vh'
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -204,7 +210,7 @@ export default {
...
@@ -204,7 +210,7 @@ export default {
if
(
this
.
selectedGiftList
[
this
.
activeName
].
list
&&
this
.
selectedGiftList
[
this
.
activeName
].
list
.
length
)
{
if
(
this
.
selectedGiftList
[
this
.
activeName
].
list
&&
this
.
selectedGiftList
[
this
.
activeName
].
list
.
length
)
{
this
.
selectedGiftList
[
this
.
activeName
].
list
.
forEach
(
row
=>
{
this
.
selectedGiftList
[
this
.
activeName
].
list
.
forEach
(
row
=>
{
if
(
row
.
status
!=
'3'
)
{
if
(
row
.
status
!=
'3'
)
{
this
.
$refs
.
giftRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
row
)
this
.
$refs
[
this
.
activeName
+
'Ref'
]
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
row
)
}
}
})
})
}
}
...
@@ -238,7 +244,7 @@ export default {
...
@@ -238,7 +244,7 @@ export default {
discountType
:
item
.
discountType
,
discountType
:
item
.
discountType
,
couponName
:
item
.
couponName
,
couponName
:
item
.
couponName
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
'1'
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
'1'
,
couponAnticipatedCost
:
item
.
a
nticipatedCost
,
couponAnticipatedCost
:
item
.
couponA
nticipatedCost
,
status
:
'2'
status
:
'2'
})
})
}
}
...
@@ -248,6 +254,7 @@ export default {
...
@@ -248,6 +254,7 @@ export default {
this
.
selectedGiftList
[
this
.
activeName
].
list
.
push
(
item
)
this
.
selectedGiftList
[
this
.
activeName
].
list
.
push
(
item
)
}
}
})
})
this
.
recoveryTotal
()
},
},
handleGiftConfirm
()
{
handleGiftConfirm
()
{
...
@@ -263,7 +270,7 @@ export default {
...
@@ -263,7 +270,7 @@ export default {
// })
// })
// return true
// return true
// }
// }
// var selectedData = this.$refs
.giftRef
.mutiSelectArr[this.tableParams.mutiSelectName]
// var selectedData = this.$refs
[this.activeName + 'Ref']
.mutiSelectArr[this.tableParams.mutiSelectName]
var
selectedData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
selectedGiftList
))
var
selectedData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
selectedGiftList
))
this
.
$emit
(
'handleGiftConfirm'
,
selectedData
)
this
.
$emit
(
'handleGiftConfirm'
,
selectedData
)
},
},
...
@@ -363,6 +370,9 @@ export default {
...
@@ -363,6 +370,9 @@ export default {
margin-right
:
7px
;
margin-right
:
7px
;
}
}
}
}
.gift-item
:last-child
{
margin-bottom
:
0
;
}
}
}
.gift-content
:last-child
{
.gift-content
:last-child
{
border-bottom
:
0px
;
border-bottom
:
0px
;
...
...
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