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 66ef444e
authored
Feb 23, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
弹窗-分页;样式
1 parent
c7b89bcc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
31 deletions
src/components/select-muti-pro/index.vue
src/components/selectMutiProDialog/index.vue
src/components/selectMutiProDialog/indexForCoupon.vue
src/views/giftBag/selectGiftDialog.vue
src/views/giftBag/selectStaffDialog.vue
src/components/select-muti-pro/index.vue
View file @
66ef444
...
@@ -89,11 +89,11 @@ export default {
...
@@ -89,11 +89,11 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
methods
:
{
methods
:
{
getList
(
isMounted
=
false
)
{
getList
(
page
,
isMounted
=
false
)
{
var
params
=
{
var
params
=
{
// goodsStatus: 1,
// goodsStatus: 1,
// goodsSource: 1,
// goodsSource: 1,
...
@@ -103,7 +103,6 @@ export default {
...
@@ -103,7 +103,6 @@ export default {
}
}
var
that
=
this
var
that
=
this
this
.
getListApi
(
params
).
then
(
res
=>
{
this
.
getListApi
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
productList
=
res
.
list
this
.
productList
=
res
.
list
this
.
$refs
.
mutiProRef
.
tableTotal
=
res
.
total
this
.
$refs
.
mutiProRef
.
tableTotal
=
res
.
total
this
.
recoverySelected
()
this
.
recoverySelected
()
...
...
src/components/selectMutiProDialog/index.vue
View file @
66ef444
...
@@ -100,11 +100,11 @@ export default {
...
@@ -100,11 +100,11 @@ export default {
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
methods
:
{
methods
:
{
getList
(
isReset
=
false
)
{
getList
(
page
,
isReset
=
false
)
{
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
goodsStatus
:
1
,
goodsStatus
:
1
,
...
...
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
66ef444
...
@@ -112,11 +112,11 @@ export default {
...
@@ -112,11 +112,11 @@ export default {
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
methods
:
{
methods
:
{
getList
(
isMounted
=
false
)
{
getList
(
page
,
isMounted
=
false
)
{
var
params
=
{
var
params
=
{
goodsStatus
:
1
,
goodsStatus
:
1
,
goodsSource
:
1
,
goodsSource
:
1
,
...
@@ -199,11 +199,11 @@ export default {
...
@@ -199,11 +199,11 @@ export default {
this
.
$emit
(
'handleMutiSelectClose'
)
this
.
$emit
(
'handleMutiSelectClose'
)
},
},
handleConfigSearch
()
{
handleConfigSearch
()
{
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
handleConfigReset
()
{
handleConfigReset
()
{
this
.
searchProForm
.
name
=
''
this
.
searchProForm
.
name
=
''
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
}
}
}
}
}
}
...
...
src/views/giftBag/selectGiftDialog.vue
View file @
66ef444
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<p
class=
"nogiftP"
>
系统暂无已创建的礼包
</p>
<p
class=
"nogiftP"
>
系统暂无已创建的礼包
</p>
</div>
-->
</div>
-->
<div
class=
"flex-default"
>
<div
class=
"flex-default"
>
<div
class=
"gift-table
flex-grow
"
>
<div
class=
"gift-table"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
label=
"门店服务"
name=
"service"
></el-tab-pane>
<el-tab-pane
label=
"门店服务"
name=
"service"
></el-tab-pane>
<el-tab-pane
label=
"代金券"
name=
"cash"
></el-tab-pane>
<el-tab-pane
label=
"代金券"
name=
"cash"
></el-tab-pane>
...
@@ -55,16 +55,18 @@
...
@@ -55,16 +55,18 @@
</div>
</div>
<div
class=
"selected-list"
>
<div
class=
"selected-list"
>
<p
class=
"list-title p-16"
>
已选(
{{
selectedSum
}}
)
</p>
<p
class=
"list-title p-16"
>
已选(
{{
selectedSum
}}
)
</p>
<div
v-for=
"(item, index) in orderShow"
:key=
"index"
>
<div
class=
"list-gifts"
>
<div
class=
"gift-box"
v-show=
"selectedGiftList[item].list.length"
>
<div
v-for=
"(item, index) in orderShow"
:key=
"index"
>
<div
class=
"gift-label"
>
{{
selectedGiftList
[
item
].
label
}}
</div>
<div
class=
"gift-box"
v-show=
"selectedGiftList[item].list.length"
>
<div
class=
"gift-content"
>
<div
class=
"gift-label"
>
{{
selectedGiftList
[
item
].
label
}}
</div>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in selectedGiftList[item].list"
:key=
"subIndex"
>
<div
class=
"gift-content"
>
<i
class=
"el-icon-delete"
@
click=
"handleGiftDelete(item, subIndex)"
></i>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in selectedGiftList[item].list"
:key=
"subIndex"
>
<p
:class=
"['gift-coupon-name', 'ellipsis-1', subItem.status == '3' ? ' txt-grey' : '']"
>
{{
subItem
.
couponName
}}
</p>
<i
class=
"el-icon-delete"
@
click=
"handleGiftDelete(item, subIndex)"
></i>
<div
class=
"gift-sum"
>
<p
:class=
"['gift-coupon-name', 'ellipsis-1', subItem.status == '3' ? ' txt-grey' : '']"
>
{{
subItem
.
couponName
}}
</p>
<el-input-number
v-if=
"subItem.discountType == 7"
:disabled=
"subItem.status == '3'"
class=
"sum-input"
v-model=
"subItem.couponAmount"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
size=
"mini"
label=
"描述文字"
></el-input-number>
<div
class=
"gift-sum"
>
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
<el-input-number
v-if=
"subItem.discountType == 7"
:disabled=
"subItem.status == '3'"
class=
"sum-input"
v-model=
"subItem.couponAmount"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
size=
"mini"
label=
"描述文字"
></el-input-number>
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -195,11 +197,11 @@ export default {
...
@@ -195,11 +197,11 @@ export default {
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
methods
:
{
methods
:
{
getList
(
isReset
=
false
)
{
getList
(
page
,
isReset
=
false
)
{
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
discountType
:
this
.
selectedGiftList
[
this
.
activeName
].
discountType
,
discountType
:
this
.
selectedGiftList
[
this
.
activeName
].
discountType
,
...
@@ -226,11 +228,11 @@ export default {
...
@@ -226,11 +228,11 @@ export default {
},
},
handleTabClick
()
{
handleTabClick
()
{
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
handleSearch
()
{
handleSearch
()
{
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
toLabelText
(
row
)
{
toLabelText
(
row
)
{
...
@@ -360,6 +362,7 @@ export default {
...
@@ -360,6 +362,7 @@ export default {
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.muti-gift
.gift-table
{
.muti-gift
.gift-table
{
width
:
calc
(
100%
-
280px
);
border
:
1px
solid
#eeeeee
;
border
:
1px
solid
#eeeeee
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
...
@@ -374,13 +377,14 @@ export default {
...
@@ -374,13 +377,14 @@ export default {
font-size
:
16px
;
font-size
:
16px
;
border-bottom
:
1px
solid
#f1f1f1
;
border-bottom
:
1px
solid
#f1f1f1
;
}
}
.list-gifts
{
height
:
61vh
;
overflow-y
:
scroll
;
}
.gift-box
{
.gift-box
{
//
display
:
flex
;
padding
:
16px
;
padding
:
16px
;
.gift-label
{
.gift-label
{
//
width
:
70px
;
color
:
#999999
;
color
:
#999999
;
//
text-align
:
right
;
margin-bottom
:
14px
;
margin-bottom
:
14px
;
}
}
.gift-content
{
.gift-content
{
...
...
src/views/giftBag/selectStaffDialog.vue
View file @
66ef444
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</div>
</div>
<div
v-show=
"staffList.length"
>
<div
v-show=
"staffList.length"
>
<slot
name=
"search"
></slot>
<slot
name=
"search"
></slot>
<GLTable
v-loading=
"loading"
ref=
"mutiProRef"
:tableData=
"staffList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
></GLTable>
<GLTable
v-loading=
"loading"
ref=
"mutiProRef"
:tableData=
"staffList"
:
pageConf=
"pageConf"
:
noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
></GLTable>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
</
template
>
</
template
>
...
@@ -25,7 +25,7 @@ export default {
...
@@ -25,7 +25,7 @@ export default {
fnCallBack
:
false
,
fnCallBack
:
false
,
url
:
url
,
url
:
url
,
loading
:
true
,
loading
:
true
,
//
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
...
@@ -72,11 +72,11 @@ export default {
...
@@ -72,11 +72,11 @@ export default {
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
this
.
getList
(
true
)
this
.
getList
(
{},
true
)
},
},
methods
:
{
methods
:
{
getList
(
isReset
=
false
)
{
getList
(
page
,
isReset
=
false
)
{
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
pageNum
:
isReset
?
1
:
this
.
$refs
.
mutiProRef
.
page
.
pageNum
,
pageNum
:
isReset
?
1
:
this
.
$refs
.
mutiProRef
.
page
.
pageNum
,
...
...
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