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 033f55bd
authored
Feb 24, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.2.0' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
into v1.2.0
2 parents
e7d12a4b
2406ceb9
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
142 additions
and
171 deletions
src/assets/css/public.scss
src/components/select-muti-pro/index.vue
src/components/selectMutiProDialog/index.vue
src/components/selectMutiProDialog/indexForCoupon.vue
src/config/env.development.js
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/giftBag/editGift.vue
src/views/giftBag/giftDetail.vue
src/views/giftBag/giftList.vue
src/views/giftBag/receivedGiftList.vue
src/views/giftBag/selectGiftDialog.vue
src/views/giftBag/selectStaffDialog.vue
src/assets/css/public.scss
View file @
033f55b
...
@@ -127,6 +127,11 @@ html {
...
@@ -127,6 +127,11 @@ html {
margin-bottom
:
18px
;
margin-bottom
:
18px
;
}
}
.marketing
.default-blue-btn
{
color
:
#5850ff
;
border-color
:
#5850ff
;
}
.el-scrollbar__bar.is-horizontal
{
.el-scrollbar__bar.is-horizontal
{
height
:
10px
!
important
;
height
:
10px
!
important
;
left
:
10px
;
left
:
10px
;
...
@@ -261,6 +266,11 @@ html {
...
@@ -261,6 +266,11 @@ html {
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.marketing
.flex-wrap
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.marketing
.flex-grow
{
.marketing
.flex-grow
{
flex
:
1
;
flex
:
1
;
}
}
...
...
src/components/select-muti-pro/index.vue
View file @
033f55b
...
@@ -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 @
033f55b
...
@@ -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 @
033f55b
...
@@ -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/config/env.development.js
View file @
033f55b
...
@@ -20,7 +20,7 @@ module.exports = {
...
@@ -20,7 +20,7 @@ module.exports = {
request
:
{
request
:
{
// baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://192.168.2.42:8064/',
baseURL
:
'http://scrm.dev.glsx.com.cn/'
,
//
baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/views/couponManage/editCashCoupon.vue
View file @
033f55b
...
@@ -661,7 +661,6 @@ export default {
...
@@ -661,7 +661,6 @@ export default {
}
else
{
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
method
=
'createCouponApi'
//后台创建优惠券
}
}
console
.
log
(
params
)
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
...
...
src/views/couponManage/editMemberService.vue
View file @
033f55b
...
@@ -7,15 +7,15 @@
...
@@ -7,15 +7,15 @@
<template
slot=
"effectiveHtml"
>
<template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<br
/>
<br
/>
<el-form-item
prop=
"effectiveTime"
style=
"margin-top: 12px;
display: block;
"
>
<el-form-item
prop=
"effectiveTime"
style=
"margin-top: 12px;
display: block
"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:
295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
领取后
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;
margin-left:5px;margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.effectiveType != 1"
/>
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;
margin-left: 5px; margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.effectiveType != 1"
/>
天内有效
天内有效
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
...
@@ -23,21 +23,21 @@
...
@@ -23,21 +23,21 @@
<
template
slot=
"useTypeHtml"
>
<
template
slot=
"useTypeHtml"
>
<el-radio
v-model=
"editForm.useType"
label=
"0"
:disabled=
"apear != 'couponAdd'"
>
无限制
</el-radio>
<el-radio
v-model=
"editForm.useType"
label=
"0"
:disabled=
"apear != 'couponAdd'"
>
无限制
</el-radio>
<br
/>
<br
/>
<el-form-item
prop=
"usageTimes"
style=
"margin-top: 12px;
display: block;
"
>
<el-form-item
prop=
"usageTimes"
style=
"margin-top: 12px;
display: block
"
>
<el-radio
v-model=
"editForm.useType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.useType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
有效期内可使用
有效期内可使用
<el-input
v-model=
"editForm.usageTimes"
style=
"width: 100px;
margin-left:5px;margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 1"
/>
<el-input
v-model=
"editForm.usageTimes"
style=
"width: 100px;
margin-left: 5px; margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 1"
/>
次
次
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-radio
v-model=
"editForm.useType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.useType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-form-item
prop=
"useLimitDays"
>
<el-form-item
prop=
"useLimitDays"
>
有效期内
有效期内
<el-input
v-model=
"editForm.useLimitDays"
style=
"width: 100px;
margin-left:5px;margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
<el-input
v-model=
"editForm.useLimitDays"
style=
"width: 100px;
margin-left: 5px; margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
天可使用
天可使用
</el-form-item>
</el-form-item>
<el-form-item
prop=
"usageTimes2"
>
<el-form-item
prop=
"usageTimes2"
>
<el-input
v-model=
"editForm.usageTimes2"
style=
"width: 100px;
margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
<el-input
v-model=
"editForm.usageTimes2"
style=
"width: 100px;
margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
次
次
</el-form-item>
</el-form-item>
</el-radio>
</el-radio>
...
...
src/views/giftBag/editGift.vue
View file @
033f55b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRef"
:isEdit=
"isEdit"
:labelWidth=
"labelWidth"
defaultWidth=
"415px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRef"
:isEdit=
"isEdit"
:labelWidth=
"labelWidth"
defaultWidth=
"415px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"remarkName"
class=
"edit-tips m-t-8"
>
可根据备注名称进行查找,仅作内部查看,不展示给客户
</div>
<div
slot=
"remarkName"
class=
"edit-tips m-t-8"
>
可根据备注名称进行查找,仅作内部查看,不展示给客户
</div>
<el-button
slot=
"selectGiftBtn"
@
click=
"handleGiftAdd"
>
选择礼包内容
</el-button>
<el-button
slot=
"selectGiftBtn"
class=
"default-blue-btn"
@
click=
"handleGiftAdd"
>
选择礼包内容
</el-button>
<div
slot=
"couponListBlock"
class=
"gift-block"
:style=
"
{ 'margin-left': labelWidth }" v-show="editForm.couponList
&&
editForm.couponList.length != 0">
<div
slot=
"couponListBlock"
class=
"gift-block"
:style=
"
{ 'margin-left': labelWidth }" v-show="editForm.couponList
&&
editForm.couponList.length != 0">
<div
class=
"gift-title"
>
<div
class=
"gift-title"
>
预估成本:
预估成本:
...
@@ -126,23 +126,26 @@ export default {
...
@@ -126,23 +126,26 @@ export default {
remarkName
:
[{
required
:
true
,
message
:
'请输入备注名称'
,
trigger
:
'change'
}],
remarkName
:
[{
required
:
true
,
message
:
'请输入备注名称'
,
trigger
:
'change'
}],
receiveWay
:
[{
required
:
true
,
message
:
'请选择领取条件'
,
trigger
:
'change'
}],
receiveWay
:
[{
required
:
true
,
message
:
'请选择领取条件'
,
trigger
:
'change'
}],
staffList
:
[{
required
:
true
,
message
:
'请选择发放员工'
,
trigger
:
'change'
}],
staffList
:
[{
required
:
true
,
message
:
'请选择发放员工'
,
trigger
:
'change'
}],
receiveDetails
:
[{
required
:
true
,
message
:
'请输入领取条件'
,
trigger
:
'change'
},
couponList
:
[{
required
:
true
,
message
:
'请选择礼包'
,
trigger
:
'change'
}],
{
receiveDetails
:
[
required
:
true
,
{
required
:
true
,
message
:
'请输入领取条件'
,
trigger
:
'change'
},
validator
:
(
rule
,
value
,
callback
)
=>
{
{
if
(
!
value
)
{
required
:
true
,
return
callback
()
validator
:
(
rule
,
value
,
callback
)
=>
{
}
if
(
!
value
)
{
if
(
this
.
editForm
.
receiveWay
==
'1'
)
{
return
callback
()
let
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
}
return
phoneReg
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的手机号'
))
if
(
this
.
editForm
.
receiveWay
==
'1'
)
{
}
else
{
let
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
let
cjhReg
=
/^
[
0-9a-zA-Z
]{6}
$/
return
phoneReg
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的手机号'
))
return
cjhReg
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的车架号后6位'
))
}
else
{
}
let
cjhReg
=
/^
[
0-9a-zA-Z
]{6}
$/
},
return
cjhReg
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的车架号后6位'
))
trigger
:
'change'
}
}]
},
trigger
:
'change'
}
]
},
},
isEdit
:
true
,
isEdit
:
true
,
editFormData
:
[
editFormData
:
[
...
@@ -167,7 +170,8 @@ export default {
...
@@ -167,7 +170,8 @@ export default {
},
},
{
{
label
:
''
,
label
:
''
,
name
:
''
,
name
:
'couponListBlock'
,
isHide
:
true
,
addHtml
:
'couponListBlock'
addHtml
:
'couponListBlock'
},
},
{
{
...
@@ -276,6 +280,7 @@ export default {
...
@@ -276,6 +280,7 @@ export default {
this
.
editForm
.
couponList
.
forEach
(
item
=>
{
this
.
editForm
.
couponList
.
forEach
(
item
=>
{
this
.
couponObj
[
this
.
numToCoupon
[
item
.
discountType
]].
list
.
push
(
item
)
this
.
couponObj
[
this
.
numToCoupon
[
item
.
discountType
]].
list
.
push
(
item
)
})
})
this
.
hasCouponBlock
(
false
)
},
},
receiveWayChange
(
val
)
{
receiveWayChange
(
val
)
{
...
@@ -298,6 +303,12 @@ export default {
...
@@ -298,6 +303,12 @@ export default {
this
.
totalEstimatedCost
=
(
this
.
totalEstimatedCost
/
100
).
toFixed
(
2
)
this
.
totalEstimatedCost
=
(
this
.
totalEstimatedCost
/
100
).
toFixed
(
2
)
},
},
hasCouponBlock
(
isValidate
=
true
)
{
var
idx
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'couponListBlock'
)
this
.
editFormData
[
idx
].
isHide
=
!
this
.
editForm
.
couponList
.
length
isValidate
&&
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'couponList'
)
},
// 礼包
// 礼包
recoveryGiftList
()
{
recoveryGiftList
()
{
this
.
editForm
.
couponList
=
[]
this
.
editForm
.
couponList
=
[]
...
@@ -306,6 +317,7 @@ export default {
...
@@ -306,6 +317,7 @@ export default {
this
.
editForm
.
couponList
.
push
(
k
)
this
.
editForm
.
couponList
.
push
(
k
)
})
})
})
})
this
.
hasCouponBlock
()
},
},
handleGiftAdd
()
{
handleGiftAdd
()
{
...
@@ -377,7 +389,6 @@ export default {
...
@@ -377,7 +389,6 @@ export default {
if
(
this
.
routeInfo
.
addOrEdit
==
'edit'
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
'edit'
)
{
params
.
id
=
this
.
routeInfo
.
id
params
.
id
=
this
.
routeInfo
.
id
}
}
console
.
log
(
params
)
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
giftBag
this
.
$apis
.
giftBag
.
insertGiftApi
(
params
)
.
insertGiftApi
(
params
)
...
@@ -421,7 +432,6 @@ export default {
...
@@ -421,7 +432,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.marketing.edit-gift
.select-merchant
{
.marketing.edit-gift
.select-merchant
{
/* width: calc(98% - 140px); */
width
:
98%
;
width
:
98%
;
}
}
.marketing.edit-gift
.staff-block
{
.marketing.edit-gift
.staff-block
{
...
@@ -433,11 +443,12 @@ export default {
...
@@ -433,11 +443,12 @@ export default {
.marketing.edit-gift
{
.marketing.edit-gift
{
//
礼包
//
礼包
.gift-block
{
.gift-block
{
width
:
567
px
;
width
:
878
px
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
.gift-title
{
.gift-title
{
padding
:
10px
;
padding
:
10px
;
background-color
:
#f4f6fc
;
border-bottom
:
1px
solid
#e5e5e5
;
border-bottom
:
1px
solid
#e5e5e5
;
.price
{
.price
{
font-size
:
18px
;
font-size
:
18px
;
...
@@ -514,7 +525,6 @@ export default {
...
@@ -514,7 +525,6 @@ export default {
height
:
26px
;
height
:
26px
;
line-height
:
24px
;
line-height
:
24px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
//
background
:
#fff
!important
;
}
}
.el-tag.el-tag--info
.el-tag__close
{
.el-tag.el-tag--info
.el-tag__close
{
color
:
#e8e8ea
;
color
:
#e8e8ea
;
...
...
src/views/giftBag/giftDetail.vue
View file @
033f55b
...
@@ -36,10 +36,6 @@
...
@@ -36,10 +36,6 @@
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
type=
"default"
@
click=
"handleCancel"
>
返回
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
返回
</el-button>
<!--
<span
v-show=
"editForm.receivedFlag == 1"
>
-->
<!--
<el-button
type=
"primary"
@
click=
"handleEdit"
>
编辑
</el-button>
-->
<!--
<GLButton
type=
"primary"
fn=
"编辑"
@
click=
"handleEdit"
>
编辑
</GLButton>
-->
<!--
</span>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -200,17 +196,6 @@ export default {
...
@@ -200,17 +196,6 @@ export default {
this
.
totalEstimatedCost
=
(
this
.
totalEstimatedCost
/
100
).
toFixed
(
2
)
this
.
totalEstimatedCost
=
(
this
.
totalEstimatedCost
/
100
).
toFixed
(
2
)
},
},
handleEdit
()
{
var
params
=
{
addOrEdit
:
'edit'
,
$title
:
encodeURI
(
'编辑礼包'
)
}
params
.
id
=
this
.
routeInfo
.
id
this
.
$router
.
push
({
path
:
'/giftBag/editGift'
,
query
:
params
})
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/giftBag/index'
path
:
'/giftBag/index'
...
@@ -233,11 +218,12 @@ export default {
...
@@ -233,11 +218,12 @@ export default {
.marketing.edit-gift
{
.marketing.edit-gift
{
//
礼包
//
礼包
.gift-block
{
.gift-block
{
width
:
567
px
;
width
:
878
px
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
.gift-title
{
.gift-title
{
padding
:
10px
;
padding
:
10px
;
background-color
:
#f4f6fc
;
border-bottom
:
1px
solid
#e5e5e5
;
border-bottom
:
1px
solid
#e5e5e5
;
.price
{
.price
{
font-size
:
18px
;
font-size
:
18px
;
...
...
src/views/giftBag/giftList.vue
View file @
033f55b
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<
template
>
<
template
>
<div
class=
"marketing p-t-20"
>
<div
class=
"marketing p-t-20"
>
<div
class=
"m-b-10"
>
<div
class=
"m-b-10"
>
<!--
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit('add')"
>
新增礼包
</el-button>
-->
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增礼包"
class=
"el-icon-plus"
@
click=
"handleEdit('add')"
>
新增礼包
</GLButton>
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增礼包"
class=
"el-icon-plus"
@
click=
"handleEdit('add')"
>
新增礼包
</GLButton>
</div>
</div>
<div
class=
"list-tips m-b-10"
>
<div
class=
"list-tips m-b-10"
>
...
@@ -21,8 +20,7 @@
...
@@ -21,8 +20,7 @@
</glsx-combi-form>
</glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
>
<glsx-combi-form
ref=
"showSearch"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<!--
<el-button
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
-->
<GLButton
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"导出"
@
click=
"handleExport"
>
导出
</GLButton>
<GLButton
:size=
"size"
type=
"default"
fn=
"导出"
@
click=
"handleExport"
>
导出
</GLButton>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
...
@@ -31,7 +29,7 @@
...
@@ -31,7 +29,7 @@
<GLTable
ref=
"giftListRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"giftListRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
class=
"p-b-12"
>
礼包明细
</div>
<div
class=
"p-b-12"
>
礼包明细
</div>
<div
class=
"gift-detail flex-
default
"
>
<div
class=
"gift-detail flex-
wrap
"
>
<div
class=
"gift-item"
v-for=
"(item, index) in scope.scope.couponList"
:key=
"index"
>
<div
class=
"gift-item"
v-for=
"(item, index) in scope.scope.couponList"
:key=
"index"
>
<p
:class=
"['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']"
>
{{
item
.
couponName
}}
×
{{
item
.
couponAmount
}}
</p>
<p
:class=
"['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']"
>
{{
item
.
couponName
}}
×
{{
item
.
couponAmount
}}
</p>
<p
v-show=
"item.status == '3'"
class=
"gift-tips"
>
已失效
</p>
<p
v-show=
"item.status == '3'"
class=
"gift-tips"
>
已失效
</p>
...
@@ -39,12 +37,9 @@
...
@@ -39,12 +37,9 @@
</div>
</div>
</div>
</div>
<div
slot=
"name"
slot-scope=
"scope"
>
<div
slot=
"name"
slot-scope=
"scope"
>
<!--
<el-button
:size=
"size"
type=
"text"
>
{{
scope
.
scope
.
name
}}
</el-button>
-->
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
name
}}
</p>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
name
}}
</p>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<!--
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</el-button>
-->
<GLButton
type=
"text"
fn=
"编辑"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</GLButton>
<GLButton
type=
"text"
fn=
"编辑"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</GLButton>
<GLButton
type=
"text"
fn=
"删除"
@
click=
"handleDelete(scope.scope)"
>
删除
</GLButton>
<GLButton
type=
"text"
fn=
"删除"
@
click=
"handleDelete(scope.scope)"
>
删除
</GLButton>
</div>
</div>
...
@@ -237,7 +232,6 @@ export default {
...
@@ -237,7 +232,6 @@ export default {
// add-新增;edit-编辑
// add-新增;edit-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
// addOrEdit == 1 ? this.$router.push('/zoneList/editZone/' + addOrEdit) : this.$router.push('/zoneList/editZone/' + addOrEdit + '/' + row.id)
var
params
=
{
var
params
=
{
addOrEdit
:
addOrEdit
,
addOrEdit
:
addOrEdit
,
$title
:
encodeURI
(
addOrEdit
==
'add'
?
'新增礼包'
:
'编辑礼包'
)
$title
:
encodeURI
(
addOrEdit
==
'add'
?
'新增礼包'
:
'编辑礼包'
)
...
...
src/views/giftBag/receivedGiftList.vue
View file @
033f55b
...
@@ -13,16 +13,13 @@
...
@@ -13,16 +13,13 @@
<glsx-combi-form
ref=
"showSearch"
>
<glsx-combi-form
ref=
"showSearch"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<!--
<el-button
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
-->
<!--
<el-button
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
-->
<GLButton
:size=
"size"
type=
"default"
fn=
"已领取导出"
@
click=
"handleExport"
>
导出
</GLButton>
<GLButton
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"已领取导出"
@
click=
"handleExport"
>
导出
</GLButton>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"receivedGiftListRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"receivedGiftListRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<span
slot=
"nickName"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"customerDetail(scope.scope)"
>
{{
scope
.
scope
.
nickName
}}
</el-button>
</span>
<span
slot=
"directionalGiftName"
slot-scope=
"scope"
>
<span
slot=
"directionalGiftName"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
directionalGiftName
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
directionalGiftName
}}
</el-button>
</span>
</span>
...
@@ -43,22 +40,19 @@ export default {
...
@@ -43,22 +40,19 @@ export default {
name
:
'giftList'
,
name
:
'giftList'
,
filters
:
{
filters
:
{
filterTable
(
list
)
{
filterTable
(
list
)
{
// console.log(params)
// return
let
arr1
=
list
.
couponList
let
arr1
=
list
.
couponList
let
arr2
=
list
.
verificationCouponList
let
arr2
=
list
.
verificationCouponList
let
reduceArr
=
arr1
.
map
(
item
=>
{
let
reduceArr
=
arr1
.
map
(
item
=>
{
// item.numBer = ''
arr2
.
map
(
ele
=>
{
arr2
.
map
(
ele
=>
{
if
(
item
.
couponId
==
ele
.
couponId
)
{
// if (item.couponId == ele.couponId) {
item
.
numBer
=
item
.
couponAmount
-
ele
.
couponAmount
// item.numBer = item.couponAmount - ele.couponAmount
item
.
delet
=
ele
.
couponAmount
// item.delet = ele.couponAmount
// item.couponAmount = ele.couponAmount
// }
}
item
.
delet
=
ele
.
couponAmount
item
.
residueCouponAmount
=
ele
.
residueCouponAmount
})
})
return
item
return
item
})
})
console
.
log
(
reduceArr
)
return
reduceArr
return
reduceArr
}
}
},
},
...
@@ -117,11 +111,11 @@ export default {
...
@@ -117,11 +111,11 @@ export default {
List
:
[
List
:
[
{
{
Id
:
'1'
,
Id
:
'1'
,
Name
:
'
是
'
Name
:
'
否
'
},
},
{
{
id
:
'2'
,
id
:
'2'
,
Name
:
'
否
'
Name
:
'
是
'
}
}
]
]
},
},
...
@@ -135,7 +129,7 @@ export default {
...
@@ -135,7 +129,7 @@ export default {
prop
:
'couponName'
prop
:
'couponName'
},
},
{
{
label
:
'
礼包
数量'
,
label
:
'数量'
,
name
:
'couponAmount'
,
name
:
'couponAmount'
,
width
:
'100px'
,
width
:
'100px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -143,7 +137,7 @@ export default {
...
@@ -143,7 +137,7 @@ export default {
}
}
},
},
{
{
label
:
'已核销'
,
label
:
'已核销
/次
'
,
prop
:
'anticipatedCost '
,
prop
:
'anticipatedCost '
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
delet
)
{
if
(
cellValue
.
delet
)
{
...
@@ -152,13 +146,13 @@ export default {
...
@@ -152,13 +146,13 @@ export default {
}
}
},
},
{
{
label
:
'可使用'
,
label
:
'可使用
/次
'
,
prop
:
'getAmount'
,
prop
:
'getAmount'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
numBer
)
{
if
(
cellValue
.
residueCouponAmount
==
-
1
)
{
return
'
X'
+
cellValue
.
numBer
return
'
不限次数'
}
else
{
}
else
{
return
'X'
+
cellValue
.
c
ouponAmount
return
'X'
+
cellValue
.
residueC
ouponAmount
}
}
}
}
}
}
...
@@ -185,7 +179,11 @@ export default {
...
@@ -185,7 +179,11 @@ export default {
},
},
{
{
label
:
'领取客户'
,
label
:
'领取客户'
,
addHtml
:
'nickName'
prop
:
'nickName'
},
{
label
:
'客户手机号'
,
prop
:
'phone'
},
},
{
{
label
:
'是否为企微客户'
,
label
:
'是否为企微客户'
,
...
@@ -210,22 +208,26 @@ export default {
...
@@ -210,22 +208,26 @@ export default {
prop
:
'directionalGiftRemarkName'
,
prop
:
'directionalGiftRemarkName'
,
width
:
'200'
width
:
'200'
},
},
// {
// label: '备注名称',
// prop: 'orderCode',
// width: '200'
// },
{
{
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
prop
:
'anticipatedCost'
prop
:
'anticipatedCost'
},
},
{
{
label
:
'已核销成本'
,
label
:
'已核销成本'
,
prop
:
'verificationAnticipatedCos'
formatter
:
cellValue
=>
{
var
i
=
0
var
sum
=
0
for
(
i
;
i
<
cellValue
.
couponList
.
length
;
i
++
)
{
sum
=
sum
+
cellValue
.
couponList
[
i
].
couponAnticipatedCost
}
return
sum
}
},
},
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
prop
:
'staffName'
formatter
:
cellValue
=>
{
return
cellValue
.
staffList
[
0
].
staffName
}
},
},
{
{
label
:
'领取时间'
,
label
:
'领取时间'
,
...
@@ -247,17 +249,17 @@ export default {
...
@@ -247,17 +249,17 @@ export default {
methods
:
{
methods
:
{
//客户
//客户
customerDetail
(
row
)
{
//
customerDetail(row) {
this
.
$router
.
push
({
//
this.$router.push({
path
:
'/custom/clientManage/clientDetail?id=
='
+
row
.
accountId
// path: '/custom/clientManage/clientDetail?id
=' + row.accountId
})
//
})
},
//
},
// 查看
// 查看
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/giftBag/giftDetail'
,
path
:
'/giftBag/giftDetail'
,
query
:
{
query
:
{
id
:
row
.
i
d
id
:
row
.
directionalGiftI
d
}
}
})
})
},
},
...
@@ -299,16 +301,6 @@ export default {
...
@@ -299,16 +301,6 @@ export default {
}
}
})
})
},
},
// 查看
// handleDetail(row) {
// this.$router.push({
// path: '/orderComment/commentDetail',
// query: {
// id: row.id
// }
// })
// },
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
giftBag
.
exportGiftInfoApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
giftBag
.
exportGiftInfoApi
(
params
).
then
(
res
=>
{
...
@@ -361,7 +353,6 @@ export default {
...
@@ -361,7 +353,6 @@ export default {
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
var
page
=
this
.
$refs
.
receivedGiftListRef
.
page
var
page
=
this
.
$refs
.
receivedGiftListRef
.
page
console
.
log
(
this
.
$refs
.
receivedGiftListRef
,
'1'
)
// 添加序号
// 添加序号
if
(
this
.
$refs
.
receivedGiftListRef
.
data
)
{
if
(
this
.
$refs
.
receivedGiftListRef
.
data
)
{
this
.
$refs
.
receivedGiftListRef
.
data
.
forEach
((
item
,
index
)
=>
{
this
.
$refs
.
receivedGiftListRef
.
data
.
forEach
((
item
,
index
)
=>
{
...
@@ -372,9 +363,7 @@ export default {
...
@@ -372,9 +363,7 @@ export default {
this
.
$refs
.
receivedGiftListRef
.
data
.
length
?
(
this
.
$refs
.
receivedGiftListRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
receivedGiftListRef
.
setTableHeightFun
()
this
.
$refs
.
receivedGiftListRef
.
data
.
length
?
(
this
.
$refs
.
receivedGiftListRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
receivedGiftListRef
.
setTableHeightFun
()
}
}
},
},
setGiftTableFinishFun
()
{
setGiftTableFinishFun
()
{},
console
.
log
(
this
.
$refs
.
giftListRef
,
'2'
)
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
receivedGiftListRef
.
refreshTable
()
this
.
$refs
.
receivedGiftListRef
.
refreshTable
()
},
},
...
...
src/views/giftBag/selectGiftDialog.vue
View file @
033f55b
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<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
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>
<el-tab-pane
label=
"折扣券"
name=
"discount"
></el-tab-pane>
<el-tab-pane
label=
"折扣券"
name=
"discount"
></el-tab-pane>
...
@@ -55,18 +55,19 @@
...
@@ -55,18 +55,19 @@
</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=
"999999"
size=
"mini"
label=
"描述文字"
></el-input-number>
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
</div>
</div>
</div>
<!--
<p
v-show=
"subItem.status == '3'"
class=
"gift-tips"
>
已失效
</p>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -77,7 +78,6 @@
...
@@ -77,7 +78,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
// import { getGoodsList } from '@/api/modules/common'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
export
default
{
export
default
{
...
@@ -85,7 +85,6 @@ export default {
...
@@ -85,7 +85,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
// 表格组件
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
activeName
:
'service'
,
activeName
:
'service'
,
userInfo
:
{},
userInfo
:
{},
giftList
:
[],
giftList
:
[],
...
@@ -198,11 +197,11 @@ export default {
...
@@ -198,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
,
...
@@ -229,11 +228,11 @@ export default {
...
@@ -229,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
)
{
...
@@ -293,7 +292,6 @@ export default {
...
@@ -293,7 +292,6 @@ export default {
// 选择/取消
// 选择/取消
handleSelectionTable
(
val
)
{
handleSelectionTable
(
val
)
{
console
.
log
(
val
)
var
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
selectedGiftList
[
this
.
activeName
].
list
))
var
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
selectedGiftList
[
this
.
activeName
].
list
))
this
.
selectedGiftList
[
this
.
activeName
].
list
=
[]
this
.
selectedGiftList
[
this
.
activeName
].
list
=
[]
val
.
forEach
(
item
=>
{
val
.
forEach
(
item
=>
{
...
@@ -330,7 +328,6 @@ export default {
...
@@ -330,7 +328,6 @@ export default {
// })
// })
// return true
// return true
// }
// }
// 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
)
},
},
...
@@ -341,8 +338,12 @@ export default {
...
@@ -341,8 +338,12 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.muti-gift
.el-tabs__nav-wrap
:after
{
.muti-gift
.el-tabs__active-bar
{
opacity
:
0
;
display
:
block
;
}
.muti-gift
.el-tabs__nav-scroll
{
display
:
block
;
border-bottom
:
1px
solid
#eeeeee
;
}
}
.muti-gift
.el-tabs__item
{
.muti-gift
.el-tabs__item
{
font-weight
:
400
;
font-weight
:
400
;
...
@@ -354,21 +355,14 @@ export default {
...
@@ -354,21 +355,14 @@ export default {
.muti-gift
.el-tabs__item
:hover
,
.muti-gift
.el-tabs__item
:hover
,
.muti-gift
.el-tabs__item.is-active
{
.muti-gift
.el-tabs__item.is-active
{
color
:
#5f5efb
;
color
:
#5f5efb
;
background
:
#fff
!important
;
border-width
:
0px
!important
;
}
}
.muti-gift
.m-t-10
{
.muti-gift
.m-t-10
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
/* .muti-gift .nogiftP {
width: 100%;
height: 20px;
font-family: PingFangSC-Medium;
font-size: 16px;
color: #666666;
line-height: 20px;
font-weight: 500;
text-align: center;
} */
.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
;
}
}
...
@@ -383,13 +377,14 @@ export default {
...
@@ -383,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
{
...
@@ -399,16 +394,19 @@ export default {
...
@@ -399,16 +394,19 @@ export default {
margin-bottom
:
20px
;
margin-bottom
:
20px
;
.gift-coupon-name
{
.gift-coupon-name
{
display
:
inline-block
;
display
:
inline-block
;
width
:
1
31
px
;
width
:
1
20
px
;
margin
:
0
5px
0
7px
;
margin
:
0
5px
0
7px
;
}
}
.gift-sum
{
.gift-sum
{
display
:
inline-block
;
display
:
inline-block
;
width
:
8
0
px
;
width
:
8
2
px
;
text-align
:
right
;
text-align
:
right
;
.el-input-number--mini
.el-input__inner
{
padding
:
0
10px
;
}
.sum-input
{
.sum-input
{
display
:
inline-block
;
display
:
inline-block
;
width
:
8
0
px
;
width
:
8
2
px
;
}
}
.el-input--mini
.el-input__inner
{
.el-input--mini
.el-input__inner
{
border
:
0px
;
border
:
0px
;
...
...
src/views/giftBag/selectStaffDialog.vue
View file @
033f55b
...
@@ -7,13 +7,12 @@
...
@@ -7,13 +7,12 @@
</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
>
<
script
>
<
script
>
// import { getGoodsList } from '@/api/modules/common'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
export
default
{
export
default
{
...
@@ -21,13 +20,12 @@ export default {
...
@@ -21,13 +20,12 @@ export default {
data
()
{
data
()
{
return
{
return
{
// 表格组件
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
userInfo
:
{},
userInfo
:
{},
staffList
:
[],
staffList
:
[],
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'
,
...
@@ -74,11 +72,11 @@ export default {
...
@@ -74,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
,
...
@@ -103,18 +101,6 @@ export default {
...
@@ -103,18 +101,6 @@ export default {
}
}
},
},
handleMutiSelectConfirm
()
{
handleMutiSelectConfirm
()
{
// if (!this.staffList.length) {
// var params = {
// addOrEdit: 1,
// groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
// $title: '新建员工'
// }
// this.$router.push({
// path: '/productGroup/editProduct',
// query: params
// })
// return true
// }
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
},
},
...
...
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