Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 a8a26ace
authored
Jan 09, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新again
1 parent
603b7991
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
660 additions
and
176 deletions
package-lock.json
src/views/redEnvelope/components/ActiveTemplateManagement/add.vue
src/views/redEnvelope/components/ActiveTemplateManagement/dataImportMixin.js
src/views/redEnvelope/components/ActiveTemplateManagement/index.vue
src/views/redEnvelope/components/DisplayRecord/index.vue
src/views/redEnvelope/components/DrawRecord/index.vue
src/views/redEnvelope/components/PhysicalPrizeWriteOff/cpns/CancelAfterVerification.vue
src/views/redEnvelope/components/PhysicalPrizeWriteOff/cpns/DeliverGoods.vue
src/views/redEnvelope/components/PhysicalPrizeWriteOff/dataImportMixin.js
src/views/redEnvelope/components/PhysicalPrizeWriteOff/index.vue
src/views/redEnvelope/components/WinningRecord/index.vue
src/views/redEnvelope/components/common/style.scss
src/views/redEnvelope/index.vue
package-lock.json
View file @
a8a26ac
...
...
@@ -1135,7 +1135,7 @@
},
"@babel/runtime-corejs3"
:
{
"version"
:
"7.23.7"
,
"resolved"
:
"https://registry.npm
js.org
/@babel/runtime-corejs3/-/runtime-corejs3-7.23.7.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/@babel/runtime-corejs3/-/runtime-corejs3-7.23.7.tgz"
,
"integrity"
:
"sha512-ER55qzLREVA5YxeyQ3Qu48tgsF2ZrFjFjUS6V6wF0cikSw+goBJgB9PBRM1T6+Ah4iiM+sxmfS/Sy/jdzFfhiQ=="
,
"requires"
:
{
"core-js-pure"
:
"^3.30.2"
,
...
...
@@ -1144,7 +1144,7 @@
"dependencies"
:
{
"regenerator-runtime"
:
{
"version"
:
"0.14.1"
,
"resolved"
:
"https://registry.npm
js.org
/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz"
,
"integrity"
:
"sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
}
}
...
...
@@ -4095,7 +4095,7 @@
},
"core-js-pure"
:
{
"version"
:
"3.35.0"
,
"resolved"
:
"https://registry.npm
js.org
/core-js-pure/-/core-js-pure-3.35.0.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/core-js-pure/-/core-js-pure-3.35.0.tgz"
,
"integrity"
:
"sha512-f+eRYmkou59uh7BPcyJ8MC76DiGhspj1KMxVIcF24tzP8NA9HVa1uC7BTW2tgx7E1QVCzDzsgp7kArrzhlz8Ew=="
},
"core-util-is"
:
{
...
...
@@ -12841,7 +12841,7 @@
},
"wangeditor"
:
{
"version"
:
"4.7.15"
,
"resolved"
:
"https://registry.npm
js.org
/wangeditor/-/wangeditor-4.7.15.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/wangeditor/-/wangeditor-4.7.15.tgz"
,
"integrity"
:
"sha512-aPTdREd8BxXVyJ5MI+LU83FQ7u1EPd341iXIorRNYSOvoimNoZ4nPg+yn3FGbB93/owEa6buLw8wdhYnMCJQLg=="
,
"requires"
:
{
"@babel/runtime"
:
"^7.11.2"
,
...
...
@@ -12851,7 +12851,7 @@
"dependencies"
:
{
"tslib"
:
{
"version"
:
"2.6.2"
,
"resolved"
:
"https://registry.npm
js.org
/tslib/-/tslib-2.6.2.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/tslib/-/tslib-2.6.2.tgz"
,
"integrity"
:
"sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
}
}
...
...
src/views/redEnvelope/components/ActiveTemplateManagement/add.vue
0 → 100644
View file @
a8a26ac
<
template
>
<div
class=
"activity-content"
>
<glsx-combi-form
ref=
"formRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"configForm"
:formData=
"formData"
:formRules=
"rule"
>
<template
#
merchantId
>
<el-select
v-model=
"configForm.merchantId"
placeholder=
"请选择"
filterable
remote
:remote-method=
"remoteMethod"
v-reachbottom=
"onReachBottom"
@
focus=
"selectFocus"
:loading=
"loading"
:disabled=
"disabled"
@
change=
"change"
>
<el-option
v-for=
"item in merchantObj.data"
:key=
"item.confId"
:label=
"item.confName"
:value=
"item.confId"
></el-option>
<template
v-if=
"merchantObj.nothing"
>
<div
class=
"select-nothing"
>
到底了!
</div>
</
template
>
</el-select>
</template>
</glsx-combi-form>
</div>
</template>
<
script
type=
"text/ecmascript-6"
>
import
{
getMerchantListMixin
}
from
'@/mixins'
export
default
{
name
:
'StepOne'
,
mixins
:
[
getMerchantListMixin
],
props
:
{
disabled
:
Boolean
},
data
()
{
return
{
configForm
:
{
name
:
''
,
merchantId
:
''
,
cardTitle
:
''
,
cardCover
:
''
,
activityId
:
''
,
merchantName
:
''
},
rule
:
{
name
:
[{
required
:
true
,
message
:
'请输入问卷名称'
,
trigger
:
'change'
}],
merchantId
:
[{
required
:
true
,
message
:
'请选择所属渠道'
,
trigger
:
'change'
}],
cardTitle
:
[{
required
:
true
,
message
:
'请输入卡片标题'
,
trigger
:
'change'
}],
cardCover
:
[{
required
:
true
,
message
:
'请上传卡片封面'
,
trigger
:
'change'
}],
},
formData
:
[
{
label
:
'模板名称'
,
name
:
'name'
,
type
:
'input'
,
maxlength
:
50
,
},
{
label
:
'所属渠道'
,
type
:
'select'
,
name
:
'merchantId'
,
addHtml
:
'merchantId'
},
{
label
:
'卡片标题'
,
name
:
'cardTitle'
,
type
:
'input'
,
maxlength
:
20
,
},
{
label
:
'卡片封面'
,
name
:
'cardCover'
,
type
:
'upload'
,
width
:
'320px'
,
limitSize
:
10
,
maxPhotoNum
:
1
,
suffixSlot
:
'cardCover'
,
handleUpload
:
async
(
e
,
file
,
targetItem
)
=>
{
let
loading
=
this
.
$loading
({
target
:
document
.
querySelector
(
'.activity-img'
),
})
try
{
const
imgFile
=
e
.
target
.
result
,
arrBase64
=
imgFile
.
split
(
','
)[
1
],
str
=
file
.
name
.
split
(
'.'
),
base64
=
str
.
at
(
-
1
)
+
'@'
+
arrBase64
,
res
=
await
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
,
fileType
:
'image'
})
if
(
res
)
{
this
.
configForm
[
targetItem
.
name
]
=
res
this
.
formRef
().
validateField
(
targetItem
.
name
)
loading
.
close
()
}
else
throw
'上传失败'
}
catch
(
error
)
{
loading
.
close
()
this
.
$message
(
error
)
}
}
},
{
label
:
'关联活动'
,
addHtml
:
'activity'
}
],
}
},
watch
:
{
},
mounted
()
{
},
methods
:
{
change
(
id
)
{
this
.
clearActivity
()
this
.
configForm
.
merchantName
=
''
this
.
activityObj
=
this
.
$options
.
data
.
call
(
this
).
activityObj
if
(
id
)
{
this
.
configForm
.
merchantName
=
this
.
merchantObj
.
data
.
find
(
e
=>
e
.
confId
==
id
).
confName
this
.
getActivityList
()
}
else
this
.
activityObj
.
flag
=
true
},
formRef
()
{
return
this
.
$refs
.
formRef
.
$refs
.
formRef
},
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.activity-content
{
background
:
#fff
;
padding
:
20px
;
}
</
style
>
src/views/redEnvelope/components/ActiveTemplateManagement/dataImportMixin.js
0 → 100644
View file @
a8a26ac
// dataImportMixin.js
import
*
as
dayjs
from
'dayjs'
;
import
url
from
'@/assets/empty.png'
export
default
{
data
()
{
return
{
url
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
searchForm
:
{
selectedArea
:[]
},
searchFormData
:
[
{
label
:
'模板名称'
,
name
:
'wechatName'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'所属渠道'
,
name
:
'userPhone'
,
type
:
'input'
,
maxlength
:
100
}
],
getListApi
:
this
.
$apis
.
redenvelope
.
drawListApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'模板名称'
,
prop
:
'userPhone'
,
minWidth
:
100
},
{
label
:
'所属渠道'
,
prop
:
'wechatName'
,
minWidth
:
100
},
{
label
:
'活动形式'
,
prop
:
'link'
,
minWidth
:
100
},
{
label
:
'创建时间'
,
minWidth
:
100
,
prop
:
'activityName'
}
]
},
tableSearchForm
:
{}
}
},
methods
:
{
},
};
src/views/redEnvelope/components/ActiveTemplateManagement/index.vue
View file @
a8a26ac
<
template
>
<div>
ActiveTemplateManagement
</div>
<div
class=
"container"
>
<div
class=
"sticky"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
</GLCombiForm>
<div
class=
"sticky-btns"
>
<div
class=
"btns"
>
<el-button
type=
"default"
plain
@
click=
"AddActivityTpl"
>
新建
</el-button>
</div>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"table-title"
>
活动模板
</div>
<GLTable
ref=
"listRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:noDataImg=
"url"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
:beforeSearchFn=
"beforeSearchFn"
></GLTableButton>
</span>
</GLTable>
</div>
</div>
</
template
>
<
script
>
<
script
type=
'text/ecmascript-6'
>
import
dataImportMixin
from
"./dataImportMixin"
;
import
repeatMethods
from
"../common/repeatMethods"
;
export
default
{
name
:
"ActiveTemplateManagement"
name
:
'DisplayRecord'
,
mixins
:
[
dataImportMixin
,
repeatMethods
],
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
AddActivityTpl
(){
this
.
$router
.
push
({
path
:
'/redEnvelope/components/ActiveTemplateManagement/add'
,
})
}
}
}
</
script
>
<
style
scoped
>
<
style
scoped
lang=
'scss'
>
@import
"../common/style.scss"
;
</
style
>
src/views/redEnvelope/components/DisplayRecord/index.vue
View file @
a8a26ac
...
...
@@ -78,43 +78,5 @@ export default {
</
script
>
<
style
scoped
lang=
'scss'
>
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
}
//
@import
"../common/style.scss"
;
</
style
>
src/views/redEnvelope/components/DrawRecord/index.vue
View file @
a8a26ac
...
...
@@ -76,43 +76,5 @@ export default {
</
script
>
<
style
scoped
lang=
'scss'
>
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
}
@import
"../common/style.scss"
;
</
style
>
src/views/redEnvelope/components/PhysicalPrizeWriteOff/cpns/CancelAfterVerification.vue
0 → 100644
View file @
a8a26ac
<
template
>
<GLDialog
mode=
"mid"
class=
"muti"
:title=
"cancelObj.title"
:before-close=
"handleClose"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
:visible
.
sync=
"cancelObj.show"
append-to-body
>
<el-form
:model=
"form"
ref=
"form"
label-width=
"120px"
>
<!-- 基本信息 -->
<div
v-for=
"(section, index) in cancelObj.infoSections"
:key=
"index"
class=
"form-section"
>
<h3
class=
"section-title"
>
{{
section
.
title
}}
</h3>
<el-row
:gutter=
"20"
>
<el-col
v-for=
"(item, index) in section.items"
:key=
"index"
:span=
"12"
>
<div
class=
"info-field"
>
<span
class=
"label"
>
{{
item
.
label
}}
:
</span>
<span
class=
"value"
>
{{
item
.
value
}}
</span>
</div>
</el-col>
</el-row>
</div>
<!-- 快递信息 -->
<div
class=
"form-section"
>
<h3
class=
"section-title"
>
核销信息
</h3>
<el-form-item
label=
"核销码"
prop=
"logisticsNumber"
:rules=
"[
{ required: true, message: '核销码不能为空', trigger: 'blur' }]">
<el-input
v-model=
"form.logisticsNumber"
></el-input>
</el-form-item>
</div>
</el-form>
</GLDialog>
</
template
>
<
script
>
import
{
afterRangePickerOptions
}
from
"../../RedEnvelopeConfig/edit"
;
export
default
{
name
:
"CancelAfterVerification"
,
props
:
{
cancelObj
:
{
type
:
Object
,
default
:
()
=>
{
}
},
},
data
()
{
return
{
afterRangePickerOptions
,
formItemWidth
:
'width: 284px;'
,
size
:
'small'
,
disabled
:
false
,
form
:
{
logisticsCompany
:
''
,
logisticsNumber
:
''
,
}
}
},
methods
:{
handleConfirm
(){
this
.
validateForm
().
then
(()
=>
{
this
.
$emit
(
'submit'
,
this
.
form
);
this
.
handleClose
();
}).
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
validateForm
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
resolve
();
}
else
{
reject
(
new
Error
(
'请填写核销码'
));
}
});
});
},
handleClose
(){
this
.
$emit
(
'update:cancelObj'
,
{
show
:
false
});
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.info-field
{
margin-bottom
:
10px
;
line-height
:
16px
;
font-size
:
14px
;
padding
:
10px
40px
;
border-radius
:
4px
;
.label
{
color
:
#666666
;
}
.value
{
//
margin-left
:
8px
;
}
}
</
style
>
src/views/redEnvelope/components/PhysicalPrizeWriteOff/cpns/DeliverGoods.vue
0 → 100644
View file @
a8a26ac
<
template
>
<el-drawer
:title=
"title"
:visible
.
sync=
"visible"
:size=
"drawerSize"
direction=
"rtl"
class=
"drawer-form"
@
close=
"closeDrawer"
>
<el-form
:model=
"form"
ref=
"form"
label-width=
"120px"
>
<!-- 基本信息 -->
<div
v-for=
"(section, index) in infoSections"
:key=
"index"
class=
"form-section"
>
<h3
class=
"section-title"
>
{{
section
.
title
}}
</h3>
<el-row
:gutter=
"20"
>
<el-col
v-for=
"(item, index) in section.items"
:key=
"index"
:span=
"12"
>
<div
class=
"info-field"
>
<span
class=
"label"
>
{{
item
.
label
}}
:
</span>
<span
class=
"value"
>
{{
item
.
value
}}
</span>
</div>
</el-col>
</el-row>
</div>
<!-- 快递信息 -->
<div
class=
"form-section"
>
<h3
class=
"section-title"
>
快递信息
</h3>
<el-form-item
label=
"物流公司"
prop=
"logisticsCompany"
:rules=
"[
{ required: true, message: '物流公司不能为空', trigger: 'blur' }]">
<el-input
v-model=
"form.logisticsCompany"
></el-input>
</el-form-item>
<el-form-item
label=
"物流单号"
prop=
"logisticsNumber"
:rules=
"[
{ required: true, message: '物流单号不能为空', trigger: 'blur' }]">
<el-input
v-model=
"form.logisticsNumber"
></el-input>
</el-form-item>
</div>
</el-form>
<!-- 底部按钮 -->
<div
class=
"drawer-footer"
>
<el-button
size=
"small"
@
click=
"closeDrawer"
>
取消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submitForm"
>
发货
</el-button>
</div>
</el-drawer>
</
template
>
<
script
>
export
default
{
props
:
{
title
:
{
type
:
String
,
default
:
'详细信息'
},
visible
:
{
type
:
Boolean
,
required
:
true
},
drawerSize
:
{
type
:
String
,
default
:
'50%'
},
infoSections
:
Array
// 传入的数据结构数组
},
data
()
{
return
{
form
:
{
logisticsCompany
:
''
,
logisticsNumber
:
''
,
}
};
},
methods
:
{
closeDrawer
()
{
this
.
$emit
(
'update:visible'
,
false
);
},
validateForm
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
resolve
();
}
else
{
reject
(
new
Error
(
'请填写完整的快递信息'
));
}
});
});
},
submitForm
()
{
this
.
validateForm
().
then
(()
=>
{
this
.
$emit
(
'submit'
,
this
.
form
);
this
.
closeDrawer
();
}).
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
);
});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.drawer-form
{
/deep/.el-drawer__body{
padding
:
16px
;
}
.form-section
{
margin-bottom
:
20px
;
.section-title
{
margin-bottom
:
10px
;
color
:
#333
;
font-size
:
16px
;
font-weight
:
bold
;
}
.info-field
{
margin-bottom
:
10px
;
line-height
:
16px
;
font-size
:
14px
;
padding
:
10px
40px
;
border-radius
:
4px
;
.label
{
color
:
#666666
;
}
.value
{
//
margin-left
:
8px
;
}
}
}
.drawer-footer
{
position
:
fixed
;
bottom
:
8px
;
right
:
8px
;
.el-button
{
margin-left
:
8px
;
}
}
}
</
style
>
src/views/redEnvelope/components/PhysicalPrizeWriteOff/dataImportMixin.js
View file @
a8a26ac
...
...
@@ -46,7 +46,7 @@ export default {
type
:
'select'
,
optionList
:
[
{
text
:
'全部'
,
id
:
''
},
{
text
:
'
代
发货'
,
id
:
'0'
},
{
text
:
'
待
发货'
,
id
:
'0'
},
{
text
:
'已发货'
,
id
:
'1'
},
{
text
:
'待核销'
,
id
:
'2'
},
{
text
:
'已核销'
,
id
:
'3'
}
...
...
@@ -80,7 +80,7 @@ export default {
getListApi
:
this
.
$apis
.
redenvelope
.
winningGoodsApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
fals
e
,
tableOption
:
tru
e
,
tableColumns
:
[
{
label
:
'手机号'
,
...
...
@@ -126,11 +126,62 @@ export default {
},
]
},
// 表格按钮
tableButtonList
:
[
{
type
:
'el-button'
,
name
:
'发货'
,
attrs
:
{
type
:
'text'
,
},
condition
:
row
=>
row
.
statusStr
==
'待发货'
,
listeners
:
{
click
:
row
=>
this
.
handleDeliverGoods
(
row
)
}
},
{
type
:
'el-button'
,
name
:
'核销'
,
attrs
:
{
type
:
'text'
,
},
condition
:
row
=>
row
.
statusStr
==
'待核销'
,
listeners
:
{
click
:
row
=>
this
.
cancelAfterVerification
(
row
)
}
}
],
tableSearchForm
:
{}
}
},
methods
:
{
// 更新发货/核销展示的数据
updateInfoSections
(
row
,
title
)
{
let
sectionIndex
=
this
.
infoSections
.
findIndex
(
item
=>
item
.
title
===
title
);
if
(
sectionIndex
!==
-
1
)
{
this
.
infoSections
[
sectionIndex
].
items
=
this
.
infoSections
[
sectionIndex
].
items
.
map
(
item
=>
({
...
item
,
value
:
item
.
key
&&
row
.
hasOwnProperty
(
item
.
key
)
?
row
[
item
.
key
]
:
'-'
}));
}
return
sectionIndex
},
// 列表发货处理
handleDeliverGoods
(
row
)
{
this
.
updateInfoSections
(
row
,
'基本信息'
);
this
.
isDrawerVisible
=
true
;
},
// 列表核销处理
cancelAfterVerification
(
row
){
let
basicInfoIndex
=
this
.
updateInfoSections
(
row
,
'基本信息'
);
this
.
cancelObj
=
{
show
:
true
,
title
:
'核销'
,
id
:
row
.
id
||
''
,
infoSections
:[
this
.
infoSections
[
basicInfoIndex
]]
}
}
},
};
src/views/redEnvelope/components/PhysicalPrizeWriteOff/index.vue
View file @
a8a26ac
...
...
@@ -41,24 +41,71 @@
</span>
</GLTable>
</div>
<DeliverGoods
:title=
"'发货'"
:visible
.
sync=
"isDrawerVisible"
:infoSections=
"infoSections"
@
submit=
"handleShipping"
></DeliverGoods>
<CancelAfterVerification
:cancelObj
.
sync=
"cancelObj"
@
submit=
"handleCancel"
></CancelAfterVerification>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
import
dataImportMixin
from
"./dataImportMixin"
;
import
repeatMethods
from
"../common/repeatMethods"
;
import
DeliverGoods
from
"./cpns/DeliverGoods"
;
import
CancelAfterVerification
from
"./cpns/CancelAfterVerification"
;
export
default
{
name
:
'DisplayRecord'
,
mixins
:
[
dataImportMixin
,
repeatMethods
],
components
:{
DeliverGoods
,
CancelAfterVerification
},
data
()
{
return
{
isDrawerVisible
:
false
,
infoSections
:
[
{
title
:
'基本信息'
,
items
:
[
{
label
:
'活动名称'
,
value
:
''
,
key
:
'activityName'
},
{
label
:
'客户手机号'
,
value
:
''
,
key
:
'userPhone'
},
{
label
:
'微信昵称'
,
value
:
''
,
key
:
'wechatName'
},
{
label
:
'奖品名称'
,
value
:
''
,
key
:
'prizeName'
},
]
},
{
title
:
'收货信息'
,
items
:
[
{
label
:
'收件人'
,
value
:
'张三'
},
{
label
:
'联系电话'
,
value
:
'0987654321'
},
{
label
:
'身份证'
,
value
:
'张三'
},
{
label
:
'收货地址'
,
value
:
'0987654321'
},
{
label
:
'小区名称'
,
value
:
'张三'
},
{
label
:
'楼栋'
,
value
:
'0987654321'
},
{
label
:
'房号'
,
value
:
'0987654321'
}
]
},
],
cancelObj
:{}
}
},
mounted
()
{
},
methods
:
{
handleShipping
(
form
)
{
// 处理发货逻辑
console
.
log
(
form
)
console
.
log
(
'发起请求'
)
},
handleCancel
(
form
){
console
.
log
(
form
)
console
.
log
(
'核销'
)
},
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
updateParams
(
params
,
'exchangeTime'
,
'exchangeTime'
,
'startExchangeTime'
,
'endExchangeTime'
);
...
...
@@ -69,43 +116,5 @@ export default {
</
script
>
<
style
scoped
lang=
'scss'
>
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
}
@import
"../common/style.scss"
;
</
style
>
src/views/redEnvelope/components/WinningRecord/index.vue
View file @
a8a26ac
...
...
@@ -76,43 +76,5 @@ export default {
</
script
>
<
style
scoped
lang=
'scss'
>
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
}
@import
"../common/style.scss"
;
</
style
>
src/views/redEnvelope/components/common/style.scss
0 → 100644
View file @
a8a26ac
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&
-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0
.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
}
src/views/redEnvelope/index.vue
View file @
a8a26ac
...
...
@@ -18,14 +18,6 @@
<
script
type=
'text/ecmascript-6'
>
// import RedEnvelopeConfig from './components/RedEnvelopeConfig/index.vue'
// import RedEnvelopeRecord from './components/RedEnvelopeRecord/index.vue'
// import RedEnvelopeWithdraw from "./components/RedEnvelopeWithdraw/index.vue";
// import DisplayRecord from "./components/DisplayRecord/index.vue";
// import DrawRecord from "./components/DrawRecord/index.vue";
// import WinningRecord from "./components/WinningRecord/index.vue";
// import PhysicalPrizeWriteOff from "./components/PhysicalPrizeWriteOff/index.vue";
// import ActiveTemplateManagement from "./components/ActiveTemplateManagement/index.vue";
export
default
{
// 按需加载子组件
components
:
{
...
...
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