Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 4315b62f
authored
Dec 28, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
into v1.0.1
2 parents
b447e831
5e02edce
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
192 additions
and
49 deletions
src/assets/css/public.scss
src/common/constant.js
src/components/selectMutiProDialog/index.vue
src/components/selectMutiProDialog/indexForCoupon.vue
src/components/selectSingleProDialog/index.vue
src/views/classifyList/editClassify.vue
src/views/couponManage/index.vue
src/views/couponManage/writeOffDetail.vue
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/record.vue
src/views/memberCenter/service.vue
src/views/orderManage/index.vue
src/assets/css/public.scss
View file @
4315b62
...
@@ -31,6 +31,11 @@ html {
...
@@ -31,6 +31,11 @@ html {
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
}
}
.fr-mr0
{
float
:
right
;
margin-right
:
0
!
important
;
}
//输入框后置文字(如 “元”)
//输入框后置文字(如 “元”)
.suffix-label
{
.suffix-label
{
font-size
:
14px
;
font-size
:
14px
;
...
...
src/common/constant.js
View file @
4315b62
...
@@ -31,6 +31,52 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
...
@@ -31,6 +31,52 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
}
}
}
}
function
getExplorer
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
()
var
browserType
=
null
if
(
ua
.
match
(
/msie/
)
!=
null
||
ua
.
match
(
/trident/
)
!=
null
)
{
browserType
=
'IE'
}
else
if
(
ua
.
match
(
/firefox/
)
!=
null
)
{
browserType
=
'火狐'
}
else
if
(
ua
.
match
(
/ubrowser/
)
!=
null
)
{
browserType
=
'UC'
}
else
if
(
ua
.
match
(
/opera/
)
!=
null
)
{
browserType
=
'欧朋'
}
else
if
(
ua
.
match
(
/bidubrowser/
)
!=
null
)
{
browserType
=
'百度'
}
else
if
(
ua
.
match
(
/metasr/
)
!=
null
)
{
browserType
=
'搜狗'
}
else
if
(
ua
.
match
(
/tencenttraveler/
)
!=
null
||
ua
.
match
(
/qqbrowse/
)
!=
null
)
{
browserType
=
'QQ'
}
else
if
(
ua
.
match
(
/maxthon/
)
!=
null
)
{
browserType
=
'遨游'
}
else
{
browserType
=
'谷歌'
}
return
browserType
}
function
exportFn
(
url
)
{
let
browserType
=
getExplorer
()
if
(
browserType
==
'QQ'
)
{
window
.
open
(
url
)
return
}
let
iframe
=
document
.
createElement
(
'iframe'
)
iframe
.
style
.
display
=
'none'
iframe
.
src
=
url
document
.
body
.
appendChild
(
iframe
)
}
// function aToExport(url) {
// var a = document.createElement('a')
// a.setAttribute('id', 'exportToExport')
// a.setAttribute('href', url)
// a.setAttribute('target', '_blank')
// document.body.appendChild(a)
// a.click()
// }
const
orderManageStatusList
=
[
const
orderManageStatusList
=
[
{
confId
:
'1'
,
confName
:
'未支付'
},
{
confId
:
'1'
,
confName
:
'未支付'
},
{
confId
:
'2'
,
confName
:
'已支付'
},
{
confId
:
'2'
,
confName
:
'已支付'
},
...
@@ -151,6 +197,9 @@ const stateList = [{
...
@@ -151,6 +197,9 @@ const stateList = [{
export
{
export
{
limitPrice
,
limitPrice
,
getExplorer
,
exportFn
,
// aToExport,
orderManageStatusList
,
orderManageStatusList
,
orderSourceList
,
orderSourceList
,
deliveryTypeList
,
deliveryTypeList
,
...
...
src/components/selectMutiProDialog/index.vue
View file @
4315b62
<!-- 选择商品弹窗 -->
<!-- 选择商品弹窗 -->
<
template
>
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<glsx-dialog
<GLTable
v-loading=
"loading"
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
:btnOkLabel=
"productList.length ? '确定' : '创建商品'"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
v-loading=
"loading"
>
<div
class=
"noproDiv"
v-show=
"!productList.length && fnCallBack"
>
<img
src=
"@/assets/noPro.png"
/>
<p
class=
"noproP"
>
系统暂无已创建的商品
</p>
</div>
<div
v-show=
"productList.length"
>
<slot
name=
"search"
></slot>
<GLTable
v-loading=
"loading"
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</span>
</GLTable>
</GLTable>
</div>
</glsx-dialog>
</glsx-dialog>
</
template
>
</
template
>
<
script
>
<
script
>
// import { getGoodsList } from '@/api/modules/common'
// 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
{
name
:
'selectMutiProDialog'
,
name
:
'selectMutiProDialog'
,
...
@@ -19,7 +43,9 @@ export default {
...
@@ -19,7 +43,9 @@ export default {
return
{
return
{
// 表格组件
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
// getListApi: this.$apis.common.getGoodsListApi,
userInfo
:
{},
productList
:
[],
productList
:
[],
fnCallBack
:
false
,
url
:
url
,
url
:
url
,
loading
:
true
,
loading
:
true
,
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
...
@@ -58,6 +84,10 @@ export default {
...
@@ -58,6 +84,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
searchForm
:
{
type
:
Object
,
default
:
()
=>
{}
},
selectedProList
:
{
selectedProList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
...
@@ -68,23 +98,26 @@ export default {
...
@@ -68,23 +98,26 @@ export default {
glsxDialog
glsxDialog
},
},
created
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
getList
(
true
)
this
.
getList
(
true
)
},
},
methods
:
{
methods
:
{
getList
(
is
Mounted
=
false
)
{
getList
(
is
Reset
=
false
)
{
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
goodsStatus
:
1
,
goodsStatus
:
1
,
goodsSource
:
1
,
goodsSource
:
1
,
pageNum
:
is
Mounted
?
1
:
this
.
$refs
.
mutiProRef
.
page
.
pageNum
,
pageNum
:
is
Reset
?
1
:
this
.
$refs
.
mutiProRef
.
page
.
pageNum
,
pageSize
:
is
Mounted
?
10
:
this
.
$refs
.
mutiProRef
.
page
.
pageSize
pageSize
:
is
Reset
?
10
:
this
.
$refs
.
mutiProRef
.
page
.
pageSize
}
}
var
that
=
this
var
that
=
this
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
common
.
getGoodsListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
common
.
getGoodsListApi
(
params
).
then
(
res
=>
{
this
.
productList
=
res
this
.
productList
=
res
this
.
loading
=
false
this
.
loading
=
false
this
.
fnCallBack
=
true
// this.$refs.mutiProRef.tableTotal = res.total
// this.$refs.mutiProRef.tableTotal = res.total
this
.
productList
.
forEach
(
function
(
item
)
{
this
.
productList
.
forEach
(
function
(
item
)
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
...
@@ -123,8 +156,19 @@ export default {
...
@@ -123,8 +156,19 @@ export default {
}
}
},
},
handleMutiSelectConfirm
()
{
handleMutiSelectConfirm
()
{
if
(
!
this
.
productList
.
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
]
// console.log(selectedData)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
},
},
handleMutiSelectClose
()
{
handleMutiSelectClose
()
{
...
@@ -137,4 +181,14 @@ export default {
...
@@ -137,4 +181,14 @@ export default {
.muti-pro
.m-t-10
{
.muti-pro
.m-t-10
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.muti-pro
.noproP
{
width
:
100%
;
height
:
20px
;
font-family
:
PingFangSC-Medium
;
font-size
:
16px
;
color
:
#666666
;
line-height
:
20px
;
font-weight
:
500
;
text-align
:
center
;
}
</
style
>
</
style
>
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
4315b62
<!-- 选择商品弹窗 -->
<!-- 选择商品弹窗 -->
<
template
>
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
:noClose=
"false"
:noCancel=
"true"
:showClose=
"true"
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
:btnOkLabel=
"productList.length ? '确定' : '创建商品'"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
:noClose=
"false"
:noCancel=
"true"
:showClose=
"true"
>
<div
style=
"max-height:60vh"
>
<div
style=
"max-height:60vh"
>
<div
class=
"noproDiv"
v-if=
"!productList.length && fnCallBack"
>
<div
class=
"noproDiv"
v-if=
"!productList.length && fnCallBack"
>
<img
src=
"@/assets/noPro.png"
/>
<img
src=
"@/assets/noPro.png"
/>
...
@@ -9,14 +20,26 @@
...
@@ -9,14 +20,26 @@
<div
v-if=
"productList.length"
>
<div
v-if=
"productList.length"
>
<el-form
:inline=
"true"
:model=
"searchProForm"
>
<el-form
:inline=
"true"
:model=
"searchProForm"
>
<el-form-item
label=
"商品名称:"
>
<el-form-item
label=
"商品名称:"
>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleConfigSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleConfigSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleConfigReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleConfigReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<GLTable
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<GLTable
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</span>
...
@@ -36,6 +59,7 @@ export default {
...
@@ -36,6 +59,7 @@ export default {
// 表格组件
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
// getListApi: this.$apis.common.getGoodsListApi,
productList
:
[],
productList
:
[],
userInfo
:
{},
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
searchProForm
:
{
searchProForm
:
{
name
:
''
name
:
''
...
@@ -87,6 +111,7 @@ export default {
...
@@ -87,6 +111,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
getList
(
true
)
this
.
getList
(
true
)
},
},
...
@@ -147,12 +172,24 @@ export default {
...
@@ -147,12 +172,24 @@ export default {
}
}
},
},
handleMutiSelectConfirm
()
{
handleMutiSelectConfirm
()
{
if
(
!
this
.
productList
.
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
]
console
.
log
(
selectedData
)
if
(
!
selectedData
)
{
if
(
!
selectedData
)
{
this
.
$message
({
this
.
$message
({
message
:
'未选择商品'
,
message
:
'未选择商品'
,
type
:
'error'
type
:
'error'
,
customClass
:
'message-Z-zinde'
})
})
return
return
}
}
...
...
src/components/selectSingleProDialog/index.vue
View file @
4315b62
...
@@ -102,7 +102,15 @@ export default {
...
@@ -102,7 +102,15 @@ export default {
},
},
handleSingleSelectConfirm
()
{
handleSingleSelectConfirm
()
{
if
(
!
this
.
productList
.
length
)
{
if
(
!
this
.
productList
.
length
)
{
this
.
$history
.
push
(
this
.
userInfo
.
accountLevel
==
4
?
'/marketing/productGroup/editProduct/1/2'
:
'/marketing/productGroup/editProduct/1/1'
)
var
params
=
{
addOrEdit
:
1
,
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
$title
:
'新建商品'
}
this
.
$router
.
push
({
path
:
'/productGroup/editProduct'
,
query
:
params
})
return
true
return
true
}
}
if
(
!
this
.
infoId
)
{
if
(
!
this
.
infoId
)
{
...
...
src/views/classifyList/editClassify.vue
View file @
4315b62
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
<select-muti-pro-dialog
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchProForm"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
>
<select-muti-pro-dialog
ref=
"classMutiProRef"
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchProForm"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
>
<!-- <template slot="search">
<!-- <template slot="search">
<div class="flex">
<div class="flex">
<el-form :inline="true" :model="searchProForm">
<el-form :inline="true" :model="searchProForm">
...
@@ -150,8 +150,16 @@ export default {
...
@@ -150,8 +150,16 @@ export default {
})
})
})
})
},
},
handleConfigSearch
()
{
this
.
$refs
.
classMutiProRef
.
getList
()
},
handleConfigReset
()
{
this
.
searchProForm
=
{
name
:
''
}
this
.
handleConfigSearch
()
},
handleMutiProClose
(
targetItem
)
{
handleMutiProClose
(
targetItem
)
{
// console.log(targetItem)
this
.
selectedProList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
goodsRefList
)
this
.
selectedProList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
goodsRefList
)
this
.
handleMutiSelectClose
()
this
.
handleMutiSelectClose
()
},
},
...
...
src/views/couponManage/index.vue
View file @
4315b62
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<
script
>
<
script
>
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'coupon'
,
name
:
'coupon'
,
data
()
{
data
()
{
...
@@ -349,11 +350,7 @@ export default {
...
@@ -349,11 +350,7 @@ export default {
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
couponManage
.
couponExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
couponExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
exportFn
(
res
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
})
},
},
...
...
src/views/couponManage/writeOffDetail.vue
View file @
4315b62
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'writeOffDetail'
,
name
:
'writeOffDetail'
,
data
()
{
data
()
{
...
@@ -258,11 +259,7 @@ export default {
...
@@ -258,11 +259,7 @@ export default {
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
couponManage
.
verificationExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
verificationExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
exportFn
(
res
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
})
},
},
...
...
src/views/memberCenter/center.vue
View file @
4315b62
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions || {}"
></el-date-picker>
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions || {}"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right
"
>
<el-form-item
size=
"small"
class=
"fr-mr0
"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
...
...
src/views/memberCenter/order.vue
View file @
4315b62
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right
"
>
<el-form-item
size=
"small"
class=
"fr-mr0
"
>
<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=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
orderTypesList
,
orderStatusList
}
from
'@/common/constant'
import
{
orderTypesList
,
orderStatusList
,
exportFn
}
from
'@/common/constant'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
getOrderListApi
,
orderExportApi
}
from
'@/api/modules/order'
import
{
getOrderListApi
,
orderExportApi
}
from
'@/api/modules/order'
export
default
{
export
default
{
...
@@ -215,11 +215,7 @@ export default {
...
@@ -215,11 +215,7 @@ export default {
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
orderExportApi
(
params
).
then
(
res
=>
{
orderExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
exportFn
(
res
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
})
},
},
...
...
src/views/memberCenter/record.vue
View file @
4315b62
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right
"
>
<el-form-item
size=
"small"
class=
"fr-mr0
"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"openDialog"
>
核销
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"openDialog"
>
核销
</el-button>
<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=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
...
@@ -63,6 +63,7 @@ import glsxDialog from '@/components/glsx-dialog'
...
@@ -63,6 +63,7 @@ import glsxDialog from '@/components/glsx-dialog'
import
{
getRecordListApi
,
getVerificationCode
,
verificationExportApi
}
from
'@/api/modules/record'
import
{
getRecordListApi
,
getVerificationCode
,
verificationExportApi
}
from
'@/api/modules/record'
import
url
from
"@/assets/empty.png"
import
url
from
"@/assets/empty.png"
import
{
dateFormat
}
from
'@/utils/index.js'
import
{
dateFormat
}
from
'@/utils/index.js'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'record'
,
name
:
'record'
,
components
:
{
components
:
{
...
@@ -241,11 +242,7 @@ export default {
...
@@ -241,11 +242,7 @@ export default {
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
verificationExportApi
(
params
).
then
(
res
=>
{
verificationExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
exportFn
(
res
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
})
},
},
...
...
src/views/memberCenter/service.vue
View file @
4315b62
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row>
<el-row>
<!--
<el-form-item
size=
"small"
>
-->
<!--
<el-form-item
size=
"small"
>
-->
<!--
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
-->
<!--
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
display="disabled"
-->
<GLButton
type=
"primary"
@
click=
"handleCreate"
style=
"margin-right:30px"
size=
"small"
icon=
"el-icon-plus"
fn=
"创建服务"
mode=
"el-button"
>
创建服务
</GLButton>
<GLButton
type=
"primary"
@
click=
"handleCreate"
style=
"margin-right:30px"
size=
"small"
icon=
"el-icon-plus"
fn=
"创建服务"
mode=
"el-button"
>
创建服务
</GLButton>
<!--
</el-form-item>
-->
<!--
</el-form-item>
-->
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float:right
"
>
<el-form-item
size=
"small"
class=
"fr-mr0
"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
...
...
src/views/orderManage/index.vue
View file @
4315b62
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
"@/assets/empty.png"
import
url
from
"@/assets/empty.png"
import
{
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
}
from
'@/common/constant'
import
{
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'orderManage'
,
name
:
'orderManage'
,
data
()
{
data
()
{
...
@@ -654,12 +654,7 @@ export default {
...
@@ -654,12 +654,7 @@ export default {
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
orderManage
.
orderExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
orderExportApi
(
params
).
then
(
res
=>
{
// window.open(res)
exportFn
(
res
)
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
})
},
},
...
...
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