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 31a0bbf7
authored
Jun 20, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ui改版-优惠券列表,领取详情,新车管理,评价管理,秒杀活动;Sop
1 parent
47bb8f2e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
277 additions
and
96 deletions
src/views/couponManage/index.vue
src/views/couponManage/recordList.vue
src/views/newCarManage/index.vue
src/views/orderComment/index.vue
src/views/seckillActivity/index.vue
src/views/sop/editSop/components/selectCustomer.vue
src/views/sop/sopList.vue
src/views/couponManage/index.vue
View file @
31a0bbf
...
@@ -8,14 +8,7 @@
...
@@ -8,14 +8,7 @@
<GLButton
:size=
"size"
type=
"default"
class=
"el-icon-plus default-blue-btn color-transparent"
@
click=
"addExchangeCoupon()"
fn=
"新建兑换券"
display=
"disabled"
mode=
"el-button"
>
新建兑换券
</GLButton>
<GLButton
:size=
"size"
type=
"default"
class=
"el-icon-plus default-blue-btn color-transparent"
@
click=
"addExchangeCoupon()"
fn=
"新建兑换券"
display=
"disabled"
mode=
"el-button"
>
新建兑换券
</GLButton>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</glsx-combi-form>
</div>
<div
class=
"flex m-b-10 w-100-percent"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
>
优惠券列表
</span>
<span
class=
"table-title"
>
优惠券列表
</span>
...
@@ -32,11 +25,12 @@
...
@@ -32,11 +25,12 @@
<span>
{{ baseData.statusList.find(item => item.confId == scope.scope.status).confName }}
</span>
<span>
{{ baseData.statusList.find(item => item.confId == scope.scope.status).confName }}
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLButton
v-if=
"scope.scope.status == '1'"
type=
"text"
@
click=
"start(scope.scope)"
fn=
"生效"
display=
"disabled"
mode=
"el-button"
>
生效
</GLButton>
<
!-- <
GLButton v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)" fn="生效" display="disabled" mode="el-button">生效</GLButton>
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
<GLButton v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)" :fn="scope.scope.discountType == 3 ? '查看代金券' : scope.scope.discountType == 7 ? '查看会员服务' : scope.scope.discountType == 2 ? '查看折扣券' : '查看兑换券'" mode="el-button">查看</GLButton>
<GLButton v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)" :fn="scope.scope.discountType == 3 ? '查看代金券' : scope.scope.discountType == 7 ? '查看会员服务' : scope.scope.discountType == 2 ? '查看折扣券' : '查看兑换券'" mode="el-button">查看</GLButton>
<GLButton v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)" fn="删除" mode="el-button" display="disabled">删除</GLButton>
<GLButton v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)" fn="删除" mode="el-button" display="disabled">删除</GLButton>
<GLButton
type=
"text"
@
click=
"receiveDetail(scope.scope)"
fn=
"领取详情"
mode=
"el-button"
>
领取详情
</GLButton>
<GLButton type="text" @click="receiveDetail(scope.scope)" fn="领取详情" mode="el-button">领取详情</GLButton> -->
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -67,6 +61,77 @@ export default {
...
@@ -67,6 +61,77 @@ export default {
// 分享
// 分享
isShareVisible
:
false
,
isShareVisible
:
false
,
shareForm
:
{},
shareForm
:
{},
// 表格按钮
tableButtonList
:
[
{
type
:
'GLButton'
,
name
:
'生效'
,
attrs
:
{
type
:
'text'
,
fn
:
'生效'
},
condition
:
row
=>
{
return
row
.
status
==
'1'
},
listeners
:
{
click
:
this
.
start
}
},
{
type
:
'el-button'
,
name
:
'失效'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
status
==
'2'
},
listeners
:
{
click
:
this
.
end
}
},
{
type
:
'GLButton'
,
name
:
'查看'
,
attrs
:
{
type
:
'text'
,
fn
:
row
=>
{
return
row
.
discountType
==
3
?
'查看代金券'
:
row
.
discountType
==
7
?
'查看会员服务'
:
row
.
discountType
==
2
?
'查看折扣券'
:
'查看兑换券'
}
},
condition
:
row
=>
{
return
row
.
status
==
'2'
||
row
.
status
==
'3'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
3
,
row
)
}
},
{
type
:
'GLButton'
,
name
:
'删除'
,
attrs
:
{
type
:
'text'
,
fn
:
'删除'
},
condition
:
row
=>
{
return
row
.
status
==
'1'
||
row
.
status
==
'3'
},
listeners
:
{
click
:
this
.
del
}
},
{
type
:
'GLButton'
,
name
:
'领取详情'
,
attrs
:
{
type
:
'text'
,
fn
:
'领取详情'
},
listeners
:
{
click
:
this
.
receiveDetail
}
}
],
// 表格
// 表格
searchForm
:
{
searchForm
:
{
couponName
:
''
,
couponName
:
''
,
...
...
src/views/couponManage/recordList.vue
View file @
31a0bbf
...
@@ -4,19 +4,7 @@
...
@@ -4,19 +4,7 @@
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn color-transparent"
@
click=
"openDialog"
>
核销优惠券
</el-button>
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn color-transparent"
@
click=
"openDialog"
>
核销优惠券
</el-button>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
></glsx-combi-form>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormDataTwo"
>
<span
v-if=
"!$isGroupUp"
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</glsx-combi-form>
<glsx-combi-form
v-if=
"$isGroupUp"
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormDataThree"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</glsx-combi-form>
<div
class=
"flex m-b-10 w-100-percent"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<span
class=
"table-title"
></span>
...
@@ -41,7 +29,6 @@
...
@@ -41,7 +29,6 @@
<glsx-dialog
title=
"优惠券核销(请确保用户到店后核销,避免引起不必要问题)"
:hasScroll=
"false"
width=
"580px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<glsx-dialog
title=
"优惠券核销(请确保用户到店后核销,避免引起不必要问题)"
:hasScroll=
"false"
width=
"580px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<el-form
:rules=
"rules"
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"80px"
>
<el-form
:rules=
"rules"
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"80px"
>
<!-- style="width: 440px" -->
<el-form-item
size=
"small"
label=
"核销码"
prop=
"verficationCode"
style=
"width: 380px"
>
<el-form-item
size=
"small"
label=
"核销码"
prop=
"verficationCode"
style=
"width: 380px"
>
<el-input
size=
"small"
v-model
.
trim=
"ruleForm.verficationCode"
maxlength=
"50"
placeholder=
"请输入核销码"
></el-input>
<el-input
size=
"small"
v-model
.
trim=
"ruleForm.verficationCode"
maxlength=
"50"
placeholder=
"请输入核销码"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -112,9 +99,7 @@ export default {
...
@@ -112,9 +99,7 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'discountTypeList'
optionsName
:
'discountTypeList'
}
},
],
searchFormDataTwo
:
[
{
{
label
:
'核销门店'
,
label
:
'核销门店'
,
name
:
'verificationMerchantName'
,
name
:
'verificationMerchantName'
,
...
@@ -144,9 +129,7 @@ export default {
...
@@ -144,9 +129,7 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
}
},
],
searchFormDataThree
:
[
{
{
label
:
'券来源'
,
label
:
'券来源'
,
name
:
'packageId'
,
name
:
'packageId'
,
...
@@ -266,8 +249,8 @@ export default {
...
@@ -266,8 +249,8 @@ export default {
if
(
this
.
$isGroupUp
)
{
if
(
this
.
$isGroupUp
)
{
this
.
getPackageList
()
this
.
getPackageList
()
}
}
this
.
showOrHideAttr
(
'searchFormData
Two
'
,
this
.
$isGroupUp
?
'核销人'
:
'核销门店'
,
true
)
this
.
showOrHideAttr
(
'searchFormData'
,
this
.
$isGroupUp
?
'核销人'
:
'核销门店'
,
true
)
!
this
.
$isGroupUp
&&
this
.
showOrHideAttr
(
'searchFormData
Three
'
,
'券来源'
,
true
)
!
this
.
$isGroupUp
&&
this
.
showOrHideAttr
(
'searchFormData'
,
'券来源'
,
true
)
this
.
deleteAttr
(
this
.
$isGroupUp
?
[
'核销人'
]
:
[
'核销门店'
])
this
.
deleteAttr
(
this
.
$isGroupUp
?
[
'核销人'
]
:
[
'核销门店'
])
},
},
...
@@ -289,7 +272,7 @@ export default {
...
@@ -289,7 +272,7 @@ export default {
getPackageList
()
{
getPackageList
()
{
this
.
$apis
.
couponManage
.
getPackageListApi
({
pageNum
:
1
,
pageSize
:
9999
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getPackageListApi
({
pageNum
:
1
,
pageSize
:
9999
}).
then
(
res
=>
{
this
.
baseData
.
packageList
=
res
.
list
this
.
baseData
.
packageList
=
res
.
list
this
.
getOptionsList
(
'searchFormData
Three
'
,
true
,
'packageId'
)
this
.
getOptionsList
(
'searchFormData'
,
true
,
'packageId'
)
})
})
},
},
// 跳转到礼包领取详情页
// 跳转到礼包领取详情页
...
@@ -446,36 +429,4 @@ export default {
...
@@ -446,36 +429,4 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.el-dialog__header
{
padding-top
:
20px
;
padding-bottom
:
20px
;
}
/
deep
/
.el-dialog__body
{
//
border-bottom
:
1px
solid
#e6e6e6
;
//
border-top
:
1px
solid
#e6e6e6
;
padding
:
30px
20px
;
.content-body
{
.el-input--small
.el-input__inner
{
width
:
300px
;
}
}
}
/
deep
/
.el-dialog__footer
{
//
text-align
:
center
;
padding-top
:
12px
;
padding-bottom
:
12px
;
}
</
style
>
</
style
>
src/views/newCarManage/index.vue
View file @
31a0bbf
...
@@ -5,14 +5,7 @@
...
@@ -5,14 +5,7 @@
<!--
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增新车"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增新车
</GLButton>
-->
<!--
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增新车"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增新车
</GLButton>
-->
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</glsx-combi-form>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"newCarRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"newCarRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
...
...
src/views/orderComment/index.vue
View file @
31a0bbf
...
@@ -2,23 +2,22 @@
...
@@ -2,23 +2,22 @@
<
template
>
<
template
>
<div
class=
"marketing p-t-20"
>
<div
class=
"marketing p-t-20"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<!--
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<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>
-->
<
/div
>
<
GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm
>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"commentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"commentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"scope.scope.commentStatus == '0'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
发布
</el-button>
<
!--
<
el-button
v-if=
"scope.scope.commentStatus == '0'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
发布
</el-button>
<el-button
v-if=
"scope.scope.commentStatus == '1'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
撤回
</el-button>
<el-button
v-if=
"scope.scope.commentStatus == '1'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
撤回
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
-->
<GLButton
type=
"text"
fn=
"评价详情"
@
click=
"handleDetail(scope.scope)"
>
查看
</GLButton>
-->
<GLButton
type=
"text"
fn=
"评价详情"
@
click=
"handleDetail(scope.scope)"
>
查看
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -67,6 +66,32 @@ export default {
...
@@ -67,6 +66,32 @@ export default {
isClear
:
true
isClear
:
true
}
}
],
],
// 表格按钮
tableButtonList
:
[
{
type
:
'el-button'
,
name
:
row
=>
{
return
row
.
commentStatus
==
'0'
?
'发布'
:
'撤回'
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
this
.
handleRevoke
}
},
{
type
:
'GLButton'
,
name
:
'查看'
,
attrs
:
{
type
:
'text'
,
fn
:
'评价详情'
},
listeners
:
{
click
:
this
.
handleDetail
}
}
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
orderComment
.
getListApi
,
getListApi
:
this
.
$apis
.
orderComment
.
getListApi
,
tableParams
:
{
tableParams
:
{
...
...
src/views/seckillActivity/index.vue
View file @
31a0bbf
...
@@ -3,17 +3,17 @@
...
@@ -3,17 +3,17 @@
<div
class=
"marketing pro-group p-t-20"
>
<div
class=
"marketing pro-group p-t-20"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<GLButton
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"addActivity()"
fn=
"新增秒杀活动"
mode=
"el-button"
>
新增秒杀活动
</GLButton>
<GLButton
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"addActivity()"
fn=
"新增秒杀活动"
mode=
"el-button"
>
新增秒杀活动
</GLButton>
<!--
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"addActivity()"
>
新增秒杀活动
</el-button>
-->
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<
!--
<
div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<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>
</div>
</div>
-->
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
...
@@ -21,15 +21,14 @@
...
@@ -21,15 +21,14 @@
<img
class=
"img-60"
:src=
"scope.scope.activityImg"
/>
<img
class=
"img-60"
:src=
"scope.scope.activityImg"
/>
</
template
>
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"scope.scope.activityStatus == '1'"
type=
"text"
@
click=
"start(scope.scope)"
>
开始
</el-button>
<
!-- <
el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="start(scope.scope)">开始</el-button>
<el-button v-if="scope.scope.activityStatus == '2'" type="text" @click="end(scope.scope)">结束</el-button>
<el-button v-if="scope.scope.activityStatus == '2'" type="text" @click="end(scope.scope)">结束</el-button>
<GLButton v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)" fn="编辑秒杀活动" mode="el-button">编辑</GLButton>
<GLButton v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)" fn="编辑秒杀活动" mode="el-button">编辑</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)" fn="编辑秒杀活动" mode="el-button">查看</GLButton>
<GLButton v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)" fn="编辑秒杀活动" mode="el-button">查看</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<el-button v-if="scope.scope.activityStatus == '3'" type="text" @click="del(scope.scope)">删除</el-button>
<el-button v-if="scope.scope.activityStatus == '3'" type="text" @click="del(scope.scope)">删除</el-button>
<el-button type="text" @click="topping(scope.scope)">置顶</el-button>
<el-button type="text" @click="topping(scope.scope)">置顶</el-button>
<el-button
v-if=
"scope.scope.activityStatus == '1' || scope.scope.activityStatus == '2'"
type=
"text"
@
click=
"handleShare(scope.scope)"
>
分享
</el-button>
<el-button v-if="scope.scope.activityStatus == '1' || scope.scope.activityStatus == '2'" type="text" @click="handleShare(scope.scope)">分享</el-button> -->
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -57,7 +56,6 @@ export default {
...
@@ -57,7 +56,6 @@ export default {
// 分享
// 分享
isShareVisible
:
false
,
isShareVisible
:
false
,
shareForm
:
{},
shareForm
:
{},
// 表格
searchForm
:
{
searchForm
:
{
activityName
:
''
,
activityName
:
''
,
activityStatus
:
''
activityStatus
:
''
...
@@ -83,6 +81,94 @@ export default {
...
@@ -83,6 +81,94 @@ export default {
optionsName
:
'statusList'
optionsName
:
'statusList'
}
}
],
],
// 表格按钮
tableButtonList
:
[
{
type
:
'el-button'
,
name
:
'开始'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
},
listeners
:
{
click
:
this
.
start
}
},
{
type
:
'el-button'
,
name
:
'结束'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'2'
},
listeners
:
{
click
:
this
.
end
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
row
.
activityStatus
==
'1'
?
'编辑'
:
'查看'
},
attrs
:
{
type
:
'text'
,
fn
:
'编辑秒杀活动'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
||
row
.
activityStatus
==
'2'
||
row
.
activityStatus
==
'3'
},
listeners
:
{
click
:
row
=>
{
var
editOrDetail
=
{
1
:
2
,
2
:
3
,
3
:
3
}[
row
.
activityStatus
]
return
this
.
handleEdit
(
editOrDetail
,
row
)
}
}
},
{
type
:
'el-button'
,
name
:
'删除'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'3'
},
listeners
:
{
click
:
this
.
del
}
},
{
type
:
'el-button'
,
name
:
'置顶'
,
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
this
.
topping
}
},
{
type
:
'el-button'
,
name
:
'分享'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
||
row
.
activityStatus
==
'2'
},
listeners
:
{
click
:
this
.
handleShare
}
},
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
seckillActivity
.
getActivityPageApi
,
getListApi
:
this
.
$apis
.
seckillActivity
.
getActivityPageApi
,
tableParams
:
{
tableParams
:
{
...
...
src/views/sop/editSop/components/selectCustomer.vue
View file @
31a0bbf
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
{
{
label
:
'客户手机号'
,
label
:
'客户手机号'
,
prop
:
'customerPhone'
,
prop
:
'customerPhone'
,
width
:
'1
1
0px'
,
width
:
'1
3
0px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
return
cellValue
.
customerPhone
||
'-'
}
}
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
mounted
()
{
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
425
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
370
this
.
selectedCustomerList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
parentSelectedCustomerList
))
this
.
selectedCustomerList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
parentSelectedCustomerList
))
},
},
...
@@ -165,7 +165,8 @@ export default {
...
@@ -165,7 +165,8 @@ export default {
this
.
tableList
=
this
.
$refs
.
customerRef
.
data
this
.
tableList
=
this
.
$refs
.
customerRef
.
data
this
.
recoverySelected
()
this
.
recoverySelected
()
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
customerRef
.
tableHeightValues
=
this
.
$refs
.
customerRef
.
data
.
length
?
''
:
'400px'
// this.$refs.customerRef.tableHeightValues = this.$refs.customerRef.data.length ? '' : '400px'
this
.
$refs
.
customerRef
.
tableHeightValues
=
'400px'
},
},
recoverySelected
()
{
recoverySelected
()
{
...
@@ -220,8 +221,11 @@ export default {
...
@@ -220,8 +221,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
>
.select-cutomer
{
.select-cutomer
{
.el-table
.el-table__row
td
{
height
:
auto
!important
;
}
.title
{
.title
{
margin-bottom
:
12px
;
margin-bottom
:
12px
;
}
}
...
...
src/views/sop/sopList.vue
View file @
31a0bbf
...
@@ -6,22 +6,24 @@
...
@@ -6,22 +6,24 @@
<el-button
class=
"sop-back-btn"
:size=
"size"
type=
"primary"
@
click=
"handleBack"
>
返回
</el-button>
<el-button
class=
"sop-back-btn"
:size=
"size"
type=
"primary"
@
click=
"handleBack"
>
返回
</el-button>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<
!--
<
div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
-->
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"sopListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"sopListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"scope.scope.sopStatus != 1"
type=
"text"
@
click=
"handleJump('sopAnalysisList', scope.scope)"
>
SOP分析
</el-button>
<
!--
<
el-button
v-if=
"scope.scope.sopStatus != 1"
type=
"text"
@
click=
"handleJump('sopAnalysisList', scope.scope)"
>
SOP分析
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 2"
type=
"text"
@
click=
"handleEnd(scope.scope)"
>
结束
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 2"
type=
"text"
@
click=
"handleEnd(scope.scope)"
>
结束
</el-button>
<el-button
v-if=
"scope.scope.sopStatus != 3"
type=
"text"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"scope.scope.sopStatus != 3"
type=
"text"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 1"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 1"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -61,6 +63,61 @@ export default {
...
@@ -61,6 +63,61 @@ export default {
optionsName
:
'sopStatusList'
optionsName
:
'sopStatusList'
}
}
],
],
// 表格按钮
tableButtonList
:
[
{
type
:
'el-button'
,
name
:
'SOP分析'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
sopStatus
!=
1
},
listeners
:
{
click
:
row
=>
this
.
handleJump
(
'sopAnalysisList'
,
row
)
}
},
{
type
:
'el-button'
,
name
:
'结束'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
sopStatus
==
2
},
listeners
:
{
click
:
this
.
handleEnd
}
},
{
type
:
'el-button'
,
name
:
'编辑'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
sopStatus
!=
3
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
'edit'
,
row
)
}
},
{
type
:
'el-button'
,
name
:
'删除'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
sopStatus
==
1
},
listeners
:
{
click
:
this
.
handleDelete
}
}
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
sop
.
getSopInfoListApi
,
getListApi
:
this
.
$apis
.
sop
.
getSopInfoListApi
,
tableParams
:
{
tableParams
:
{
...
...
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