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 c0db4b20
authored
Dec 09, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改BUG及样式
1 parent
6aca036e
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
220 additions
and
189 deletions
package-lock.json
package.json
src/components/selectMutiProDialog/indexForCoupon.vue
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/index.vue
src/views/couponManage/receiveDetail.vue
src/views/couponManage/writeOffDetail.vue
src/views/orderManage/index.vue
src/views/seckillActivity/editActivity.vue
package-lock.json
0 → 100644
View file @
c0db4b2
This diff could not be displayed because it is too large.
package.json
View file @
c0db4b2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.2.
2
"
,
"glsx-components"
:
"^1.2.
4
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
c0db4b2
...
@@ -87,14 +87,14 @@ export default {
...
@@ -87,14 +87,14 @@ export default {
getList
(
isMounted
=
false
)
{
getList
(
isMounted
=
false
)
{
var
params
=
{
var
params
=
{
goodsStatus
:
1
,
goodsStatus
:
1
,
//
goodsSource: 1,
goodsSource
:
1
,
// pageNum: isMounted ? 1 : this.$refs.mutiProRef.page.pageNum,
// pageNum: isMounted ? 1 : this.$refs.mutiProRef.page.pageNum,
// pageSize: isMounted ? 10 : this.$refs.mutiProRef.page.pageSize
// pageSize: isMounted ? 10 : this.$refs.mutiProRef.page.pageSize
currentPage
:
1
,
currentPage
:
1
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
100000
,
pageSize
:
100000
,
pageStart
:
0
,
pageStart
:
0
,
goodsName
:
this
.
searchProForm
.
name
goodsName
:
this
.
searchProForm
.
name
}
}
var
that
=
this
var
that
=
this
this
.
$apis
.
couponManage
.
getAllGoodsApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getAllGoodsApi
(
params
).
then
(
res
=>
{
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
handleMutiSelectConfirm
()
{
handleMutiSelectConfirm
()
{
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
console
.
log
(
selectedData
)
console
.
log
(
selectedData
)
if
(
!
selectedData
)
{
if
(
!
selectedData
)
{
this
.
$message
({
this
.
$message
({
message
:
'未选择商品'
,
message
:
'未选择商品'
,
type
:
'error'
type
:
'error'
...
@@ -153,13 +153,13 @@ export default {
...
@@ -153,13 +153,13 @@ export default {
handleMutiSelectClose
()
{
handleMutiSelectClose
()
{
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
)
}
,
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/couponManage/editCashCoupon.vue
View file @
c0db4b2
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<el-input
v-model=
"editForm.denomination"
style=
"width: 150px"
:disabled=
"apear != 'couponAdd'"
@
blur
.
native
.
capture=
"editForm.useChannel == 1 && denominationBlur($event)"
>
<el-input
v-model=
"editForm.denomination"
style=
"width: 150px"
:disabled=
"apear != 'couponAdd'"
@
blur
.
native
.
capture=
"editForm.useChannel == 1 && denominationBlur($event)"
>
<span
slot=
"append"
>
元
</span>
<span
slot=
"append"
>
元
</span>
</el-input>
</el-input>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag"
>
存在零售价低于代金券的商品
</span>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag"
>
{{
selectedAllProList
.
length
?
'存在零售价低于代金券的商品'
:
'系统暂无已创建的商品,请先创建好商品后再配置代金券'
}}
</span>
</
template
>
</
template
>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<
template
slot=
"goodsHtml"
>
<
template
slot=
"goodsHtml"
>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</el-radio>
</el-radio>
</
template
>
</
template
>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"apear != 'couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)"
>
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"apear != 'couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)"
style=
"margin-left:10px"
>
<div
style=
"height:110px"
v-if=
"editForm.goodsRefList.length"
></div>
<div
style=
"height:110px"
v-if=
"editForm.goodsRefList.length"
></div>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
...
@@ -196,21 +196,6 @@ export default {
...
@@ -196,21 +196,6 @@ export default {
name
:
'useBarriers'
,
name
:
'useBarriers'
,
addHtml
:
'useBarriersHtml'
addHtml
:
'useBarriersHtml'
},
},
// {
// label: '面值',
// name: 'denomination',
// width: '150px',
// type: 'input',
// append: '元',
// suffixSlot: 'denomination',
// inputBlur: val => {
// if(val.target.value*100 > this.minPirce){
// this.priceFlag = true
// }else{
// this.priceFlag = false
// }
// }
// },
{
{
label
:
'面值'
,
label
:
'面值'
,
name
:
'denomination'
,
name
:
'denomination'
,
...
@@ -351,6 +336,7 @@ export default {
...
@@ -351,6 +336,7 @@ export default {
pageSize
:
100000
,
pageSize
:
100000
,
pageStart
:
0
,
pageStart
:
0
,
goodsStatus
:
1
,
goodsStatus
:
1
,
goodsSource
:
1
,
goodsName
:
''
goodsName
:
''
}
}
if
(
goodsName
)
{
if
(
goodsName
)
{
...
...
src/views/couponManage/index.vue
View file @
c0db4b2
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
<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.status == '1'"
type=
"text"
@
click=
"start(scope.scope)"
>
生效
</el-button>
<el-button
v-if=
"scope.scope.status == '1'"
type=
"text"
@
click=
"start(scope.scope)"
>
生效
</el-button>
<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>
<el-button
v-if=
"scope.scope.status == '1'"
type=
"text"
@
click=
"handleEdit(2,scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"scope.scope.status == '1'"
type=
"text"
@
click=
"handleEdit(2,
scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"scope.scope.status == '2' || scope.scope.status == '3'"
type=
"text"
@
click=
"handleEdit(3,scope.scope)"
>
查看
</el-button>
<el-button
v-if=
"scope.scope.status == '2' || scope.scope.status == '3'"
type=
"text"
@
click=
"handleEdit(3,
scope.scope)"
>
查看
</el-button>
<el-button
v-if=
"scope.scope.status == '1' || scope.scope.status == '3'"
type=
"text"
@
click=
"del(scope.scope)"
>
删除
</el-button>
<el-button
v-if=
"scope.scope.status == '1' || scope.scope.status == '3'"
type=
"text"
@
click=
"del(scope.scope)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"writeOffDetail(scope.scope)"
>
核销详情
</el-button>
<el-button
type=
"text"
@
click=
"writeOffDetail(scope.scope)"
>
核销详情
</el-button>
<el-button
type=
"text"
@
click=
"receiveDetail(scope.scope)"
>
领取详情
</el-button>
<el-button
type=
"text"
@
click=
"receiveDetail(scope.scope)"
>
领取详情
</el-button>
...
@@ -125,7 +125,7 @@ export default {
...
@@ -125,7 +125,7 @@ export default {
name
:
'useChannel'
,
name
:
'useChannel'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
var
useChannel
=
''
var
useChannel
=
''
if
(
cellValue
.
useChannel
)
{
if
(
cellValue
.
useChannel
)
{
useChannel
=
this
.
baseData
.
useChannelList
.
find
(
item
=>
item
.
confId
==
cellValue
.
useChannel
).
confName
useChannel
=
this
.
baseData
.
useChannelList
.
find
(
item
=>
item
.
confId
==
cellValue
.
useChannel
).
confName
}
}
return
useChannel
return
useChannel
...
@@ -142,43 +142,53 @@ export default {
...
@@ -142,43 +142,53 @@ export default {
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{
discountTypeList
:
[{
discountTypeList
:
[
{
confId
:
'2'
,
confId
:
'2'
,
confName
:
'折扣卷'
confName
:
'折扣劵'
},{
},
{
confId
:
'3'
,
confId
:
'3'
,
confName
:
'代金券'
confName
:
'代金券'
},
{
},
{
confId
:
'4'
,
confId
:
'4'
,
confName
:
'兑换券'
confName
:
'兑换券'
},
{
},
{
confId
:
'7'
,
confId
:
'7'
,
confName
:
'会员服务'
confName
:
'会员服务'
}],
}
statusList
:
[{
],
statusList
:
[
{
confId
:
'1'
,
confId
:
'1'
,
confName
:
'未生效'
confName
:
'未生效'
},
{
},
{
confId
:
'2'
,
confId
:
'2'
,
confName
:
'生效中'
confName
:
'生效中'
},
{
},
{
confId
:
'3'
,
confId
:
'3'
,
confName
:
'已失效'
confName
:
'已失效'
}],
}
useChannelList
:
[{
],
useChannelList
:
[
{
confId
:
'1'
,
confId
:
'1'
,
confName
:
'线上商品'
confName
:
'线上商品'
},
{
},
{
confId
:
'2'
,
confId
:
'2'
,
confName
:
'到店核销'
confName
:
'到店核销'
}],
}
]
}
}
}
}
},
},
components
:
{
components
:
{},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
...
@@ -220,39 +230,39 @@ export default {
...
@@ -220,39 +230,39 @@ export default {
},
},
//生效
//生效
start
(
item
){
start
(
item
)
{
this
.
startOrEndConfirm
(
'生效'
,
item
)
this
.
startOrEndConfirm
(
'生效'
,
item
)
},
},
//失效
//失效
end
(
item
){
end
(
item
)
{
this
.
startOrEndConfirm
(
'失效'
,
item
)
this
.
startOrEndConfirm
(
'失效'
,
item
)
},
},
startOrEndConfirm
(
txt
,
row
)
{
startOrEndConfirm
(
txt
,
row
)
{
var
title
=
txt
var
title
=
txt
var
params
=
{}
var
params
=
{}
params
.
couponId
=
row
.
id
params
.
couponId
=
row
.
id
if
(
txt
==
'生效'
)
{
if
(
txt
==
'生效'
)
{
params
.
status
=
'2'
//优惠券状态(2:生效,3:失效)
params
.
status
=
'2'
//优惠券状态(2:生效,3:失效)
}
else
if
(
txt
==
'失效'
)
{
}
else
if
(
txt
==
'失效'
)
{
params
.
status
=
'3'
//优惠券状态(2:生效,3:失效)
params
.
status
=
'3'
//优惠券状态(2:生效,3:失效)
}
}
this
.
secondConfirm
(
title
,
'确定要'
+
txt
+
'该优惠券?'
,
'couponManage'
,
'effectiveCouponApi'
,
params
)
this
.
secondConfirm
(
title
,
'确定要'
+
txt
+
'该优惠券?'
,
'couponManage'
,
'effectiveCouponApi'
,
params
)
},
},
//核销记录
//核销记录
writeOffDetail
(
row
){
writeOffDetail
(
row
)
{
this
.
$router
.
push
(
'/couponManage/writeOffDetail/'
+
row
.
id
)
this
.
$router
.
push
(
'/couponManage/writeOffDetail/'
+
row
.
id
)
},
},
//领取记录
//领取记录
receiveDetail
(
row
){
receiveDetail
(
row
)
{
this
.
$router
.
push
(
'/couponManage/receiveDetail/'
+
row
.
id
)
this
.
$router
.
push
(
'/couponManage/receiveDetail/'
+
row
.
id
)
},
},
//删除
//删除
del
(
row
){
del
(
row
)
{
var
params
=
{}
var
params
=
{}
params
.
couponId
=
row
.
id
params
.
couponId
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定删除此优惠券?'
,
'couponManage'
,
'deleteCouponApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定删除此优惠券?'
,
'couponManage'
,
'deleteCouponApi'
,
params
)
...
@@ -268,15 +278,13 @@ export default {
...
@@ -268,15 +278,13 @@ export default {
this
.
$router
.
push
(
'/couponManage/editMemberService/1'
)
this
.
$router
.
push
(
'/couponManage/editMemberService/1'
)
},
},
//新增折扣
卷
//新增折扣
劵
addDiscountCoupon
()
{
addDiscountCoupon
()
{
console
.
log
(
'新增折扣卷'
);
this
.
$router
.
push
(
'/couponManage/editDiscountCoupon/1'
)
this
.
$router
.
push
(
'/couponManage/editDiscountCoupon/1'
)
},
},
//新增兑换
卷
//新增兑换
劵
addExchangeCoupon
()
{
addExchangeCoupon
()
{
console
.
log
(
'新增兑换卷'
);
this
.
$router
.
push
(
'/couponManage/editExchangeCoupon/1'
)
this
.
$router
.
push
(
'/couponManage/editExchangeCoupon/1'
)
},
},
...
@@ -284,13 +292,17 @@ export default {
...
@@ -284,13 +292,17 @@ export default {
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
var
goto
=
''
var
goto
=
''
//优惠券类型 1:满减券,2:折扣券,3:代金券,4:实物券 5:购车代金券 6:商品折扣券,7:会员服务
//优惠券类型 1:满减券,2:折扣券,3:代金券,4:实物券 5:购车代金券 6:商品折扣券,7:会员服务
if
(
row
.
discountType
==
'3'
){
//代金券
if
(
row
.
discountType
==
'3'
)
{
//代金券
goto
=
'/couponManage/editCashCoupon/'
goto
=
'/couponManage/editCashCoupon/'
}
else
if
(
row
.
discountType
==
'7'
){
//会员服务
}
else
if
(
row
.
discountType
==
'7'
)
{
//会员服务
goto
=
'/couponManage/editMemberService/'
goto
=
'/couponManage/editMemberService/'
}
else
if
(
row
.
discountType
==
'2'
){
//折扣卷
}
else
if
(
row
.
discountType
==
'2'
)
{
//折扣劵
goto
=
'/couponManage/editDiscountCoupon/'
goto
=
'/couponManage/editDiscountCoupon/'
}
else
if
(
row
.
discountType
==
'4'
){
//兑换券
}
else
if
(
row
.
discountType
==
'4'
)
{
//兑换券
goto
=
'/couponManage/editExchangeCoupon/'
goto
=
'/couponManage/editExchangeCoupon/'
}
}
this
.
$router
.
push
(
goto
+
addOrEdit
+
'/'
+
row
.
id
)
this
.
$router
.
push
(
goto
+
addOrEdit
+
'/'
+
row
.
id
)
...
...
src/views/couponManage/receiveDetail.vue
View file @
c0db4b2
...
@@ -13,18 +13,39 @@
...
@@ -13,18 +13,39 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"icon-tips icon-green"
style=
"width: 98%;display: inline-block; margin-bottom: 20px;"
>
<
!--
<
div
class=
"icon-tips icon-green"
style=
"width: 98%;display: inline-block; margin-bottom: 20px;"
>
<img
src=
"../../images/comment.png"
/>
<img
src=
"../../images/comment.png"
/>
<span>
优惠券名称:
<i>
{{
coupon
.
couponName
}}
</i></span>
<span>
优惠券名称:
<i>
{{
coupon
.
couponName
}}
</i></span>
<span>
发行总量:
<i>
{{
coupon
.
stock
}}
</i></span>
<span>
发行总量:
<i>
{{
coupon
.
stock
}}
</i></span>
<span>
领取量:
<i>
{{
coupon
.
getAmount
}}
</i></span>
<span>
领取量:
<i>
{{
coupon
.
getAmount
}}
</i></span>
<span>
有效期:
<i>
{{
effective
}}
</i></span>
<span>
有效期:
<i>
{{
effective
}}
</i></span>
<span>
使用限制:
<i>
{{
useB
}}
</i></span>
<span>
使用限制:
<i>
{{
useB
}}
</i></span>
</div>
-->
<div
class=
"list-tips"
>
<img
class=
"tips-img"
src=
"@/assets/icon-info.png"
/>
<span>
优惠券名称:
<span
class=
"red-txt"
>
{{
coupon
.
couponName
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
发行总量:
<span
class=
"red-txt"
>
{{
coupon
.
stock
||
0
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
领取量:
<span
class=
"red-txt"
>
{{
coupon
.
getAmount
||
0
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
有效期:
<span
class=
"red-txt"
>
{{
effective
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
使用限制:
<span
class=
"red-txt"
>
{{
useB
}}
</span>
</span>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"receiveList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"receiveList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
...
@@ -78,16 +99,12 @@ export default {
...
@@ -78,16 +99,12 @@ export default {
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{},
},
exportLoading
:
false
exportLoading
:
false
}
}
},
},
components
:
{
components
:
{},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
...
@@ -116,41 +133,51 @@ export default {
...
@@ -116,41 +133,51 @@ export default {
var
coupon
=
res
var
coupon
=
res
//有效期
//有效期
if
(
coupon
.
effectiveType
==
1
){
//固定天数,领取后计算
if
(
coupon
.
effectiveType
==
1
)
{
//固定天数,领取后计算
this
.
effective
=
coupon
.
effectiveDays
+
'天'
this
.
effective
=
coupon
.
effectiveDays
+
'天'
}
else
if
(
coupon
.
effectiveType
==
2
){
//时间段
}
else
if
(
coupon
.
effectiveType
==
2
)
{
//时间段
this
.
effective
=
coupon
.
effectiveStartTime
+
' - '
+
coupon
.
effectiveEndTime
this
.
effective
=
coupon
.
effectiveStartTime
+
' - '
+
coupon
.
effectiveEndTime
}
else
if
(
coupon
.
effectiveType
==
3
){
//无有效期
}
else
if
(
coupon
.
effectiveType
==
3
)
{
//无有效期
this
.
effective
=
'无有效期'
this
.
effective
=
'无有效期'
}
}
if
(
coupon
.
discountType
==
3
){
//代金券
if
(
coupon
.
discountType
==
3
)
{
//代金券
//使用限制
//使用限制
if
(
coupon
.
useBarriers
==
1
){
//无限制
if
(
coupon
.
useBarriers
==
1
)
{
//无限制
this
.
useB
=
'无限制'
this
.
useB
=
'无限制'
}
else
if
(
coupon
.
useBarriers
==
2
){
//满减
}
else
if
(
coupon
.
useBarriers
==
2
)
{
//满减
this
.
useB
=
'满'
+
coupon
.
full
+
'元可用'
this
.
useB
=
'满'
+
coupon
.
full
+
'元可用'
}
}
}
}
if
(
coupon
.
discountType
==
7
){
//会员服务
if
(
coupon
.
discountType
==
7
)
{
//会员服务
//使用限制
//使用限制
if
(
coupon
.
useType
==
0
){
//无限制
if
(
coupon
.
useType
==
0
)
{
//无限制
this
.
useB
=
'无限制'
this
.
useB
=
'无限制'
}
else
if
(
coupon
.
useType
==
1
){
//有效期内可使用次数
}
else
if
(
coupon
.
useType
==
1
)
{
//有效期内可使用次数
this
.
useB
=
'有效期内可使用'
+
coupon
.
useAmount
+
'次'
this
.
useB
=
'有效期内可使用'
+
coupon
.
useAmount
+
'次'
}
else
if
(
coupon
.
useType
==
2
){
//有效期内多少天内可使用次数
}
else
if
(
coupon
.
useType
==
2
)
{
//有效期内多少天内可使用次数
this
.
useB
=
'有效期内'
+
coupon
.
useLimitDays
+
'天可使用'
+
coupon
.
usedAmount
+
'次'
this
.
useB
=
'有效期内'
+
coupon
.
useLimitDays
+
'天可使用'
+
coupon
.
usedAmount
+
'次'
}
}
}
}
})
})
},
},
writeOff
(){
writeOff
()
{
this
.
writeOffVisible
=
!
this
.
writeOffVisible
this
.
writeOffVisible
=
!
this
.
writeOffVisible
},
},
/**导出excel */
/**导出excel */
exportExcel
(){
exportExcel
()
{
this
.
exportLoading
=
true
this
.
exportLoading
=
true
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
couponManage
.
exportReceiveRecordApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
exportReceiveRecordApi
(
params
).
then
(
res
=>
{
...
@@ -159,9 +186,8 @@ export default {
...
@@ -159,9 +186,8 @@ export default {
})
})
},
},
//返回
//返回
goback
(){
goback
()
{
this
.
$router
.
push
(
'/couponManage/index'
)
this
.
$router
.
push
(
'/couponManage/index'
)
},
},
...
@@ -206,33 +232,33 @@ export default {
...
@@ -206,33 +232,33 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.modal-title
span
{
.modal-title
span
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
}
}
.icon-green
{
.icon-green
{
background-color
:
rgba
(
3
,
153
,
69
,
.2
);
background-color
:
rgba
(
3
,
153
,
69
,
0
.2
);
border
:
1px
solid
rgba
(
3
,
153
,
69
,
.2
);
border
:
1px
solid
rgba
(
3
,
153
,
69
,
0
.2
);
}
}
.icon-tips
{
.icon-tips
{
border-radius
:
2px
;
border-radius
:
2px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#333
;
color
:
#333
;
line-height
:
30px
;
line-height
:
30px
;
padding
:
0
10px
0
30px
;
padding
:
0
10px
0
30px
;
position
:
relative
;
position
:
relative
;
}
}
.icon-tips
span
{
.icon-tips
span
{
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.icon-tips
i
{
.icon-tips
i
{
font-style
:
normal
;
font-style
:
normal
;
color
:
#ff3f3f
;
color
:
#ff3f3f
;
margin
:
0
3px
;
margin
:
0
3px
;
}
}
.icon-tips
img
{
.icon-tips
img
{
position
:
absolute
;
position
:
absolute
;
top
:
8px
;
top
:
8px
;
left
:
10px
;
left
:
10px
;
}
}
</
style
>
</
style
>
src/views/couponManage/writeOffDetail.vue
View file @
c0db4b2
...
@@ -13,18 +13,31 @@
...
@@ -13,18 +13,31 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"icon-tips icon-green"
style=
"width: 98%;display: inline-block; margin-bottom: 20px;"
>
<div
class=
"list-tips"
>
<img
src=
"../../images/comment.png"
/>
<img
class=
"tips-img"
src=
"@/assets/icon-info.png"
/>
<span>
优惠券名称:
<i>
{{
coupon
.
couponName
}}
</i></span>
<span>
<span>
发行总量:
<i>
{{
coupon
.
stock
}}
</i></span>
优惠券名称:
<span>
核销总量:
<i>
{{
coupon
.
usedAmount
}}
</i></span>
<span
class=
"red-txt"
>
{{
coupon
.
couponName
}}
</span>
<span>
有效期:
<i>
{{
effective
}}
</i></span>
</span>
<span>
使用限制:
<i>
{{
useB
}}
</i></span>
<span
style=
"margin-left:10px"
>
发行总量:
<span
class=
"red-txt"
>
{{
coupon
.
stock
||
0
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
核销总量:
<span
class=
"red-txt"
>
{{
coupon
.
usedAmount
||
0
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
有效期:
<span
class=
"red-txt"
>
{{
effective
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
使用限制:
<span
class=
"red-txt"
>
{{
useB
}}
</span>
</span>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"writeOffList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"writeOffList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 优惠券核销 -->
<!-- 优惠券核销 -->
...
@@ -102,19 +115,15 @@ export default {
...
@@ -102,19 +115,15 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
verificationTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
verificationTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
}
,
}
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{}
},
}
}
},
},
components
:
{
components
:
{},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
...
@@ -143,41 +152,51 @@ export default {
...
@@ -143,41 +152,51 @@ export default {
var
coupon
=
res
var
coupon
=
res
//有效期
//有效期
if
(
coupon
.
effectiveType
==
1
){
//固定天数,领取后计算
if
(
coupon
.
effectiveType
==
1
)
{
//固定天数,领取后计算
this
.
effective
=
coupon
.
effectiveDays
+
'天'
this
.
effective
=
coupon
.
effectiveDays
+
'天'
}
else
if
(
coupon
.
effectiveType
==
2
){
//时间段
}
else
if
(
coupon
.
effectiveType
==
2
)
{
this
.
effective
=
coupon
.
effectiveStartTime
+
' - '
+
coupon
.
effectiveEndTime
//时间段
}
else
if
(
coupon
.
effectiveType
==
3
){
//无有效期
this
.
effective
=
coupon
.
effectiveStartTime
+
' ~ '
+
coupon
.
effectiveEndTime
}
else
if
(
coupon
.
effectiveType
==
3
)
{
//无有效期
this
.
effective
=
'无有效期'
this
.
effective
=
'无有效期'
}
}
if
(
coupon
.
discountType
==
3
){
//代金券
if
(
coupon
.
discountType
==
3
)
{
//代金券
//使用限制
//使用限制
if
(
coupon
.
useBarriers
==
1
){
//无限制
if
(
coupon
.
useBarriers
==
1
)
{
//无限制
this
.
useB
=
'无限制'
this
.
useB
=
'无限制'
}
else
if
(
coupon
.
useBarriers
==
2
){
//满减
}
else
if
(
coupon
.
useBarriers
==
2
)
{
//满减
this
.
useB
=
'满'
+
coupon
.
full
+
'元可用'
this
.
useB
=
'满'
+
coupon
.
full
+
'元可用'
}
}
}
}
if
(
coupon
.
discountType
==
7
){
//会员服务
if
(
coupon
.
discountType
==
7
)
{
//会员服务
//使用限制
//使用限制
if
(
coupon
.
useType
==
0
){
//无限制
if
(
coupon
.
useType
==
0
)
{
//无限制
this
.
useB
=
'无限制'
this
.
useB
=
'无限制'
}
else
if
(
coupon
.
useType
==
1
){
//有效期内可使用次数
}
else
if
(
coupon
.
useType
==
1
)
{
//有效期内可使用次数
this
.
useB
=
'有效期内可使用'
+
coupon
.
useAmount
+
'次'
this
.
useB
=
'有效期内可使用'
+
coupon
.
useAmount
+
'次'
}
else
if
(
coupon
.
useType
==
2
){
//有效期内多少天内可使用次数
}
else
if
(
coupon
.
useType
==
2
)
{
//有效期内多少天内可使用次数
this
.
useB
=
'有效期内'
+
coupon
.
useLimitDays
+
'天可使用'
+
coupon
.
useAmount
+
'次'
this
.
useB
=
'有效期内'
+
coupon
.
useLimitDays
+
'天可使用'
+
coupon
.
useAmount
+
'次'
}
}
}
}
})
})
},
},
writeOff
(){
writeOff
()
{
this
.
writeOffVisible
=
!
this
.
writeOffVisible
this
.
writeOffVisible
=
!
this
.
writeOffVisible
},
},
//返回
//返回
goback
(){
goback
()
{
this
.
$router
.
push
(
'/couponManage/index'
)
this
.
$router
.
push
(
'/couponManage/index'
)
},
},
...
@@ -249,33 +268,33 @@ export default {
...
@@ -249,33 +268,33 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.modal-title
span
{
.modal-title
span
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
}
}
.icon-green
{
.icon-green
{
background-color
:
rgba
(
3
,
153
,
69
,
.2
);
background-color
:
rgba
(
3
,
153
,
69
,
0
.2
);
border
:
1px
solid
rgba
(
3
,
153
,
69
,
.2
);
border
:
1px
solid
rgba
(
3
,
153
,
69
,
0
.2
);
}
}
.icon-tips
{
.icon-tips
{
border-radius
:
2px
;
border-radius
:
2px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#333
;
color
:
#333
;
line-height
:
30px
;
line-height
:
30px
;
padding
:
0
10px
0
30px
;
padding
:
0
10px
0
30px
;
position
:
relative
;
position
:
relative
;
}
}
.icon-tips
span
{
.icon-tips
span
{
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.icon-tips
i
{
.icon-tips
i
{
font-style
:
normal
;
font-style
:
normal
;
color
:
#ff3f3f
;
color
:
#ff3f3f
;
margin
:
0
3px
;
margin
:
0
3px
;
}
}
.icon-tips
img
{
.icon-tips
img
{
position
:
absolute
;
position
:
absolute
;
top
:
8px
;
top
:
8px
;
left
:
10px
;
left
:
10px
;
}
}
</
style
>
</
style
>
src/views/orderManage/index.vue
View file @
c0db4b2
...
@@ -6,17 +6,14 @@
...
@@ -6,17 +6,14 @@
<img
class=
"tips-img"
src=
"@/assets/icon-info.png"
/>
<img
class=
"tips-img"
src=
"@/assets/icon-info.png"
/>
<span>
<span>
已生成有效订单
已生成有效订单
<span
class=
"red-txt"
>
{{
statisticsInfo
.
orderCount
||
0
}}
</span>
项 累计订单总额:
<span
class=
"red-txt"
>
{{
statisticsInfo
.
orderCount
||
0
}}
</span>
<span
class=
"red-txt"
>
{{
statisticsInfo
.
payPriceTotal
||
0
}}
</span>
元
项 累计订单总额:
<span
class=
"red-txt"
>
{{
statisticsInfo
.
payPriceTotal
||
0
}}
</span>
元
</span>
</span>
</div>
</div>
<div>
<div>
<glsx-combi-form
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<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=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleReset"
>
重置
</el-button>
...
@@ -31,14 +28,7 @@
...
@@ -31,14 +28,7 @@
</el-tabs>
</el-tabs>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable
<GLTable
ref=
"allOrderRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
ref=
"allOrderRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<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=
"handleDetail(scope.scope)"
>
查看订单
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看订单
</el-button>
<el-button
v-if=
"scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14"
type=
"text"
@
click=
"handleWriteOff(scope.scope)"
>
订单核销
</el-button>
<el-button
v-if=
"scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14"
type=
"text"
@
click=
"handleWriteOff(scope.scope)"
>
订单核销
</el-button>
...
@@ -51,31 +41,29 @@
...
@@ -51,31 +41,29 @@
</div>
</div>
<!-- 快递信息 -->
<!-- 快递信息 -->
<glsx-dialog
v-if=
"isExpressVisible"
title=
"输入快递信息"
:isVisible
.
sync=
"isExpressVisible"
@
confirmDialog=
"handleExpressConfirm"
@
closeDialog=
"handleExpressClose"
>
<glsx-dialog
v-if=
"isExpressVisible"
title=
"输入快递信息"
:isVisible
.
sync=
"isExpressVisible"
@
confirmDialog=
"handleExpressConfirm"
@
closeDialog=
"handleExpressClose"
>
<glsx-combi-form
ref=
"expressRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"expressForm"
:formData=
"expressFormData"
:formRules=
"expressRules"
>
<glsx-combi-form
ref=
"expressRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"expressForm"
:formData=
"expressFormData"
:formRules=
"expressRules"
></glsx-combi-form>
</glsx-combi-form>
</glsx-dialog>
</glsx-dialog>
<!-- 订单核销 -->
<!-- 订单核销 -->
<glsx-dialog
v-if=
"isWriteOffVisible"
title=
"订单核销(请确保用户到店后核销,避免引起不必要问题)"
:isVisible
.
sync=
"isWriteOffVisible"
@
confirmDialog=
"handleWriteOffConfirm"
@
closeDialog=
"handleWriteOffClose"
>
<glsx-dialog
v-if=
"isWriteOffVisible"
title=
"订单核销(请确保用户到店后核销,避免引起不必要问题)"
:isVisible
.
sync=
"isWriteOffVisible"
@
confirmDialog=
"handleWriteOffConfirm"
@
closeDialog=
"handleWriteOffClose"
>
<glsx-combi-form
ref=
"writeOffRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"writeOffForm"
:formData=
"writeOffFormData"
:formRules=
"writeOffRules"
>
<glsx-combi-form
ref=
"writeOffRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"writeOffForm"
:formData=
"writeOffFormData"
:formRules=
"writeOffRules"
></glsx-combi-form>
</glsx-combi-form>
</glsx-dialog>
</glsx-dialog>
<!-- 退款审核 -->
<!-- 退款审核 -->
<glsx-dialog
v-if=
"isExamineVisible"
title=
"退款审核"
width=
"50%"
:isVisible
.
sync=
"isExamineVisible"
@
confirmDialog=
"handleExamineConfirm"
@
closeDialog=
"handleExamineClose"
>
<glsx-dialog
v-if=
"isExamineVisible"
title=
"退款审核"
width=
"50%"
:isVisible
.
sync=
"isExamineVisible"
@
confirmDialog=
"handleExamineConfirm"
@
closeDialog=
"handleExamineClose"
>
<el-form
label-width=
"140px"
>
<el-form
label-width=
"140px"
>
<el-form-item
label=
"售后类型"
>
<el-form-item
label=
"售后类型"
>
<span>
{{
orderInfo
.
refundTypeName
}}
</span>
<span>
{{
orderInfo
.
refundTypeName
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请金额"
>
<el-form-item
label=
"申请金额"
>
<span>
{{
orderInfo
.
refundPrice
}}
</span>
<span>
{{
orderInfo
.
refundPrice
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请时间"
>
<el-form-item
label=
"申请时间"
>
<span>
{{
orderInfo
.
createdDateStr
}}
</span>
<span>
{{
orderInfo
.
createdDateStr
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请描述"
>
<el-form-item
label=
"申请描述"
>
<span>
{{
orderInfo
.
remark
||
'-'
}}
</span>
<span>
{{
orderInfo
.
remark
||
'-'
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"orderInfo.imgUrls"
>
<el-form-item
v-if=
"orderInfo.imgUrls"
>
<img
class=
"img-60"
v-for=
"(item, index) in orderInfo.imgUrls"
:key=
"index"
:src=
"item"
/>
<img
class=
"img-60"
v-for=
"(item, index) in orderInfo.imgUrls"
:key=
"index"
:src=
"item"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"审核是否通过"
>
<el-form-item
label=
"审核是否通过"
>
<el-radio-group
v-model=
"examineForm.isAllowed"
>
<el-radio-group
v-model=
"examineForm.isAllowed"
>
...
@@ -84,8 +72,7 @@
...
@@ -84,8 +72,7 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<template
v-if=
"orderInfo.refundType == 1 && examineForm.isAllowed == '1'"
>
<template
v-if=
"orderInfo.refundType == 1 && examineForm.isAllowed == '1'"
>
<glsx-combi-form
ref=
"examineRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"examineForm"
:formData=
"examineFormData"
:formRules=
"examineRules"
>
<glsx-combi-form
ref=
"examineRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"examineForm"
:formData=
"examineFormData"
:formRules=
"examineRules"
></glsx-combi-form>
</glsx-combi-form>
</
template
>
</
template
>
</el-form>
</el-form>
</glsx-dialog>
</glsx-dialog>
...
@@ -93,22 +80,22 @@
...
@@ -93,22 +80,22 @@
<glsx-dialog
v-if=
"isReceivingVisible"
title=
"确认收货"
width=
"50%"
:isVisible
.
sync=
"isReceivingVisible"
@
confirmDialog=
"handleReceivingConfirm"
@
closeDialog=
"handleReceivingClose"
>
<glsx-dialog
v-if=
"isReceivingVisible"
title=
"确认收货"
width=
"50%"
:isVisible
.
sync=
"isReceivingVisible"
@
confirmDialog=
"handleReceivingConfirm"
@
closeDialog=
"handleReceivingClose"
>
<el-form
label-width=
"140px"
>
<el-form
label-width=
"140px"
>
<el-form-item
label=
"售后类型"
>
<el-form-item
label=
"售后类型"
>
<span>
{{
orderInfo.refundTypeName
}}
</span>
<span>
{{
orderInfo.refundTypeName
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请金额"
>
<el-form-item
label=
"申请金额"
>
<span>
{{
orderInfo.refundPrice
}}
</span>
<span>
{{
orderInfo.refundPrice
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请时间"
>
<el-form-item
label=
"申请时间"
>
<span>
{{
orderInfo.createdDateStr
}}
</span>
<span>
{{
orderInfo.createdDateStr
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请描述"
>
<el-form-item
label=
"申请描述"
>
<span>
{{
orderInfo.remark || '-'
}}
</span>
<span>
{{
orderInfo.remark || '-'
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"快递公司"
>
<el-form-item
label=
"快递公司"
>
<span>
{{
orderInfo.deliveryCompany
}}
</span>
<span>
{{
orderInfo.deliveryCompany
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"快递单号"
>
<el-form-item
label=
"快递单号"
>
<span>
{{
orderInfo.deliveryNumber
}}
</span>
<span>
{{
orderInfo.deliveryNumber
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</glsx-dialog>
</glsx-dialog>
...
@@ -162,7 +149,7 @@ export default {
...
@@ -162,7 +149,7 @@ export default {
var
isAdd
=
value
.
length
>
this
.
oldVal
.
orderStatuses
.
length
var
isAdd
=
value
.
length
>
this
.
oldVal
.
orderStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
targetVal
=
value
[
value
.
length
-
1
]
if
(
!
isAdd
)
{
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
orderStatuses
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
orderStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
orderStatuses
[
i
]))
{
if
(
!
value
.
includes
(
this
.
oldVal
.
orderStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
orderStatuses
[
i
]
targetVal
=
this
.
oldVal
.
orderStatuses
[
i
]
break
break
...
@@ -174,7 +161,7 @@ export default {
...
@@ -174,7 +161,7 @@ export default {
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
<
this
.
searchFormData
[
1
].
optionList
.
length
)
{
if
(
idx
!=
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
<
this
.
searchFormData
[
1
].
optionList
.
length
)
{
this
.
searchForm
.
orderStatuses
.
splice
(
idx
,
1
)
this
.
searchForm
.
orderStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
==
(
this
.
searchFormData
[
1
].
optionList
.
length
-
1
)
)
{
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
==
this
.
searchFormData
[
1
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
orderStatuses
.
push
(
''
)
this
.
searchForm
.
orderStatuses
.
push
(
''
)
}
}
}
}
...
@@ -270,14 +257,16 @@ export default {
...
@@ -270,14 +257,16 @@ export default {
examineRules
:
{
examineRules
:
{
contactAddress
:
[{
required
:
true
,
message
:
'退货地址是必填项'
,
trigger
:
'change'
}],
contactAddress
:
[{
required
:
true
,
message
:
'退货地址是必填项'
,
trigger
:
'change'
}],
contactName
:
[{
required
:
true
,
message
:
'联系人是必填项'
,
trigger
:
'change'
}],
contactName
:
[{
required
:
true
,
message
:
'联系人是必填项'
,
trigger
:
'change'
}],
contactPhone
:
[{
required
:
true
,
message
:
'手机号是必填项'
,
trigger
:
'change'
},
contactPhone
:
[
{
required
:
true
,
message
:
'手机号是必填项'
,
trigger
:
'change'
},
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
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}
$/
;
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
(
'请输入正确的联系号码'
))
return
phoneReg
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的联系号码'
))
},
},
trigger
:
'blur'
trigger
:
'blur'
}]
}
]
},
},
examineFormData
:
[
examineFormData
:
[
{
{
...
@@ -359,7 +348,7 @@ export default {
...
@@ -359,7 +348,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
this
.
baseData
.
deliveryTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
deliveryType
+
''
)
?
this
.
baseData
.
deliveryTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
deliveryType
).
confName
:
'-'
return
this
.
baseData
.
deliveryTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
deliveryType
+
''
)
?
this
.
baseData
.
deliveryTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
deliveryType
).
confName
:
'-'
}
}
}
,
}
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
...
@@ -456,7 +445,7 @@ export default {
...
@@ -456,7 +445,7 @@ export default {
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
delete
params
.
createDate
delete
params
.
createDate
this
.
$apis
.
orderManage
.
getCountApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
getCountApi
(
params
).
then
(
res
=>
{
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
}
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
}
})
})
},
},
...
@@ -566,7 +555,7 @@ export default {
...
@@ -566,7 +555,7 @@ export default {
var
params
=
{
var
params
=
{
id
:
this
.
orderInfo
.
id
id
:
this
.
orderInfo
.
id
}
}
if
(
this
.
orderInfo
.
refundType
==
1
&&
this
.
examineForm
.
isAllowed
==
'1'
)
{
if
(
this
.
orderInfo
.
refundType
==
1
&&
this
.
examineForm
.
isAllowed
==
'1'
)
{
this
.
$refs
.
examineRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
examineRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
examineForm
)
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
examineForm
)
...
@@ -585,7 +574,7 @@ export default {
...
@@ -585,7 +574,7 @@ export default {
this
.
orderCode
=
row
.
orderCode
this
.
orderCode
=
row
.
orderCode
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
(
this
.
orderInfo
.
refundType
+
''
)
).
confName
:
'-'
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
this
.
orderInfo
.
refundType
+
''
).
confName
:
'-'
this
.
orderInfo
.
createdDateStr
=
this
.
orderInfo
.
createdDate
?
dayjs
(
this
.
orderInfo
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
this
.
orderInfo
.
createdDateStr
=
this
.
orderInfo
.
createdDate
?
dayjs
(
this
.
orderInfo
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
this
.
isExamineVisible
=
!
this
.
isExamineVisible
this
.
isExamineVisible
=
!
this
.
isExamineVisible
})
})
...
@@ -619,7 +608,7 @@ export default {
...
@@ -619,7 +608,7 @@ export default {
handleReceiving
(
row
)
{
handleReceiving
(
row
)
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
(
this
.
orderInfo
.
refundType
+
''
)
).
confName
:
'-'
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
this
.
orderInfo
.
refundType
+
''
).
confName
:
'-'
this
.
orderInfo
.
createdDateStr
=
this
.
orderInfo
.
createdDate
?
dayjs
(
this
.
orderInfo
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
this
.
orderInfo
.
createdDateStr
=
this
.
orderInfo
.
createdDate
?
dayjs
(
this
.
orderInfo
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
})
})
...
...
src/views/seckillActivity/editActivity.vue
View file @
c0db4b2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
秒杀活动
</p>
<p
class=
"edit-title"
>
{{
title
}}
秒杀活动
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:labelWidth=
"labelWidth
"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px
"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"activityTimeHtml"
>
<template
slot=
"activityTimeHtml"
>
<!--
<el-form-item>
-->
<!--
<el-form-item>
-->
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
clearable
></el-date-picker>
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table
class=
"table-spesc"
:style=
"{ 'max-height': '400px', 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }
"
>
<table
class=
"table-spesc"
style=
"max-height: 400px;
"
>
<tbody>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235);"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235);"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in item.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in item.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
...
@@ -93,7 +93,6 @@ export default {
...
@@ -93,7 +93,6 @@ export default {
footerLeft
:
'0'
,
footerLeft
:
'0'
,
footerWidth
:
'0'
,
footerWidth
:
'0'
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
labelWidth
:
'140px'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
v
)
{
disabledDate
(
v
)
{
//禁用当前之前的日期
//禁用当前之前的日期
...
...
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