Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
ca501c86
Commit
ca501c86
authored
Aug 30, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into lwh/head-distribution
parents
b12fe7bd
fd55430f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
209 additions
and
141 deletions
+209
-141
config.js
server/config.js
+2
-2
index.vue
src/pages/Activity/ActivityDetail/index.vue
+17
-14
myMap.vue
src/pages/Activity/releaseProduc/components/myMap.vue
+35
-26
spellOrderSet.vue
...pages/Activity/releaseProduc/components/spellOrderSet.vue
+9
-8
index.vue
src/pages/Groupmeal/newOrderManagement/index.vue
+146
-91
No files found.
server/config.js
View file @
ca501c86
...
@@ -10,8 +10,8 @@ const PANDORA_URI = {
...
@@ -10,8 +10,8 @@ const PANDORA_URI = {
};
};
const
API_INTERNAL_URI
=
{
const
API_INTERNAL_URI
=
{
developmen
t
:
"http://bp-dev.ini.yidian-inc.com"
,
tes
t
:
"http://bp-dev.ini.yidian-inc.com"
,
tes
t
:
"http://bp-test.ini.yidian-inc.com"
,
developmen
t
:
"http://bp-test.ini.yidian-inc.com"
,
production
:
"http://bp.int.yidian-inc.com"
production
:
"http://bp.int.yidian-inc.com"
};
};
...
...
src/pages/Activity/ActivityDetail/index.vue
View file @
ca501c86
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
</p>
</p>
<p
class=
"endTime"
>
{{
showTimer
}}
</p>
<p
class=
"endTime"
>
{{
showTimer
}}
</p>
</div>
</div>
<
p
class=
"title"
>
拼单商品
</p
>
<
!--
<p
class=
"title"
>
拼单商品
</p>
--
>
<div
class=
"images-wrapper"
>
<
!--
<
div
class=
"images-wrapper"
>
<div
<div
class=
"image-block"
class=
"image-block"
v-for=
"picItem in goodsList"
v-for=
"picItem in goodsList"
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
></el-image>
></el-image>
<span
class=
"goodsPrice"
>
{{
`¥${picItem.price
}
`
}}
<
/span
>
<span
class=
"goodsPrice"
>
{{
`¥${picItem.price
}
`
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div>
--
>
<
/el-card
>
<
/el-card
>
<!--
商品描述
-->
<!--
商品描述
-->
<
el
-
card
class
=
"activityIntroduce box-card"
>
<
el
-
card
class
=
"activityIntroduce box-card"
>
...
@@ -100,8 +100,11 @@
...
@@ -100,8 +100,11 @@
<
span
class
=
"originPrice"
>
{{
<
span
class
=
"originPrice"
>
{{
`¥${goodsItem.original_price
}
`
`¥${goodsItem.original_price
}
`
}}
<
/span
>
}}
<
/span
>
<
span
class
=
"sold"
v
-
if
=
"goodsItem.inventory_rest==0"
>
抢光了
<
/span
>
<
span
class
=
"sold"
v
-
if
=
"goodsItem.inventory_rest == 0"
<
span
class
=
"sold"
v
-
else
>
已售
{{
goodsItem
.
all_have_buy_goods_count
}}
<
/spa
n
>
抢光了
<
/spa
n
>
<
span
class
=
"sold"
v
-
else
>
已售
{{
goodsItem
.
all_have_buy_goods_count
}}
<
/spa
n
>
>
<
/p
>
<
/p
>
<
/div
>
<
/div
>
...
@@ -135,7 +138,7 @@ export default {
...
@@ -135,7 +138,7 @@ export default {
marketingInfo
:
{
}
,
marketingInfo
:
{
}
,
endTime
:
""
,
endTime
:
""
,
showTimer
:
""
,
showTimer
:
""
,
detailInfo
:
{
}
,
detailInfo
:
{
}
}
;
}
;
}
,
}
,
watch
:
{
}
,
watch
:
{
}
,
...
@@ -147,11 +150,11 @@ export default {
...
@@ -147,11 +150,11 @@ export default {
let
dataArr
=
await
Promise
.
all
([
let
dataArr
=
await
Promise
.
all
([
ActivityService
.
checkActivityDetail
({
ActivityService
.
checkActivityDetail
({
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
marketing_type
:
this
.
$route
.
query
.
marketing_type
,
marketing_type
:
this
.
$route
.
query
.
marketing_type
}
),
}
),
ActivityService
.
checkActivityDetailInfo
({
ActivityService
.
checkActivityDetailInfo
({
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
marketing_id
:
this
.
$route
.
query
.
marketing_id
}
)
,
}
)
]);
]);
this
.
pageLoading
=
false
;
this
.
pageLoading
=
false
;
this
.
goodsList
=
dataArr
[
0
].
result
.
goods_list
;
this
.
goodsList
=
dataArr
[
0
].
result
.
goods_list
;
...
@@ -203,7 +206,7 @@ export default {
...
@@ -203,7 +206,7 @@ export default {
closePage
()
{
closePage
()
{
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
}
,
}
}
,
}
,
async
created
()
{
async
created
()
{
await
this
.
checkActivityDetail
();
await
this
.
checkActivityDetail
();
...
@@ -211,7 +214,7 @@ export default {
...
@@ -211,7 +214,7 @@ export default {
}
,
}
,
beforeUnmount
()
{
beforeUnmount
()
{
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
}
,
}
}
;
}
;
<
/script
>
<
/script
>
<
style
lang
=
"less"
scoped
>
<
style
lang
=
"less"
scoped
>
...
@@ -306,9 +309,9 @@ export default {
...
@@ -306,9 +309,9 @@ export default {
}
}
}
}
.
sold
{
.
sold
{
position
:
absolute
;
position
:
absolute
;
right
:
20
px
;
;
right
:
20
px
;
color
:
#
d44549
;
color
:
#
d44549
;
font
-
weight
:
500
;
font
-
weight
:
500
;
}
}
}
}
...
...
src/pages/Activity/releaseProduc/components/myMap.vue
View file @
ca501c86
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
id=
"map"
class=
"mapContainer"
>
<div
id=
"map"
class=
"mapContainer"
>
<div
class=
"mapWrapper"
>
<div
class=
"mapWrapper"
>
<div
class=
"search"
>
<div
class=
"search"
>
<el-form
ref=
"form"
label-width=
"80px"
@
submit
.
prevent
>
<el-form
ref=
"form"
@
submit
.
prevent
>
<el-form-item
label-position=
"left"
>
<el-form-item
label-position=
"left"
>
<el-button
@
click=
"handleSearch"
>
搜索
</el-button>
<el-button
@
click=
"handleSearch"
>
搜索
</el-button>
<el-input
<el-input
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
</div>
</div>
<div
class=
"mapInfo"
>
<div
class=
"mapInfo"
>
<div
class=
"infoAll"
>
<h3
class=
"title"
>
拖拽选址
</h3>
<h3
class=
"title"
>
拖拽选址
</h3>
<ul
class=
"info"
>
<ul
class=
"info"
>
<li><span>
经度:
</span>
{{ dragData.lng }}
</li>
<li><span>
经度:
</span>
{{ dragData.lng }}
</li>
...
@@ -36,9 +37,16 @@
...
@@ -36,9 +37,16 @@
</ul>
</ul>
</div>
</div>
<div
class=
"confirmButton"
>
<div
class=
"confirmButton"
>
<el-button
class=
"button_pre"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
class=
"button_next"
type=
"primary"
@
click=
"confirm"
>
确 定
</el-button
>
</div>
</div>
<!-- <div class="confirmButton">
<el-button @click="cancel">取 消</el-button>
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确 定</el-button>
<el-button type="primary" @click="confirm">确 定</el-button>
</div>
</div>
-->
</div>
</div>
</template>
</template>
...
@@ -193,15 +201,6 @@ export default {
...
@@ -193,15 +201,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
// .mapDialog {
// margin-top: 11vh !important;
// display: flex !important;
// flex-direction: column !important;
// background: red !important;
// /deep/ .el-dialog__body {
// height: 90%;
// }
// }
.mapContainer {
.mapContainer {
height: 100%;
height: 100%;
width: 100%;
width: 100%;
...
@@ -229,6 +228,10 @@ export default {
...
@@ -229,6 +228,10 @@ export default {
width: 20%;
width: 20%;
padding-left: 20px;
padding-left: 20px;
display: flex;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
.infoAll {
flex-direction: column;
flex-direction: column;
justify-content: start;
justify-content: start;
align-items: flex-start;
align-items: flex-start;
...
@@ -237,9 +240,15 @@ export default {
...
@@ -237,9 +240,15 @@ export default {
}
}
}
}
.confirmButton {
.confirmButton {
position: absolute;
display: flex;
bottom: 100px;
flex-wrap: wrap;
right: 100px;
.button_pre {
margin-right: 15px;
}
.button_next {
margin-left: 0;
}
}
}
}
}
}
.m-map .search {
.m-map .search {
...
...
src/pages/Activity/releaseProduc/components/spellOrderSet.vue
View file @
ca501c86
...
@@ -627,15 +627,16 @@ export default {
...
@@ -627,15 +627,16 @@ export default {
justify
-
content
:
center
;
justify
-
content
:
center
;
align
-
items
:
center
;
align
-
items
:
center
;
}
}
.
mapDialog
{
height
:
80
%
;
margin
-
top
:
10
vh
!
important
;
.
my
-
map
{
height
:
100
%
;
}
}
/deep/
.
el
-
dialog__body
{
/deep/
.
el
-
dialog__body
{
height
:
85
%
!
important
;
height
:
85
%
!
important
;
}
}
/deep/
.
mapDialog
{
margin
-
top
:
10
vh
!
important
;
height
:
80
%
;
display
:
flex
!
important
;
flex
-
direction
:
column
!
important
;
/deep/
.
el
-
dialog__body
{
height
:
90
%
;
}
}
<
/style
>
<
/style
>
src/pages/Groupmeal/newOrderManagement/index.vue
View file @
ca501c86
...
@@ -41,12 +41,13 @@
...
@@ -41,12 +41,13 @@
v-model=
"orderQueryObj.goods_id"
v-model=
"orderQueryObj.goods_id"
placeholder=
"请选择"
placeholder=
"请选择"
filterable
filterable
@
change=
"changeGoodsName"
>
>
<el-option
<el-option
v-for=
"item in tradeNameArr"
v-for=
"item in tradeNameArr"
:key=
"item.goods_id"
:key=
"item.goods_
sku_
id"
:label=
"item.goods_name"
:label=
"item.goods_name"
:value=
"item.goods_id"
:value=
"item.goods_
sku_
id"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -390,7 +391,7 @@ import {
...
@@ -390,7 +391,7 @@ import {
newOrderItemList
,
newOrderItemList
,
newOrderRefundReject
,
newOrderRefundReject
,
newRefundOrder
,
newRefundOrder
,
newGetOrderExportURL
,
newGetOrderExportURL
}
from
"@/service/Groupmeal/groupmeal"
;
}
from
"@/service/Groupmeal/groupmeal"
;
import
page
from
"../components/Pagination/index.vue"
;
import
page
from
"../components/Pagination/index.vue"
;
import
dayJs
from
"dayjs"
;
import
dayJs
from
"dayjs"
;
...
@@ -398,7 +399,7 @@ export default {
...
@@ -398,7 +399,7 @@ export default {
name
:
"orderManagement"
,
name
:
"orderManagement"
,
components
:
{
components
:
{
Layout
,
Layout
,
page
,
page
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -406,7 +407,7 @@ export default {
...
@@ -406,7 +407,7 @@ export default {
orderQueryObj
:
{
orderQueryObj
:
{
page
:
1
,
page
:
1
,
page_size
:
10
,
page_size
:
10
,
marketing_id
:
"
0
"
,
// 活动名称
marketing_id
:
""
,
// 活动名称
order_status
:
"0"
,
// 订单状态
order_status
:
"0"
,
// 订单状态
goods_id
:
""
,
// 商品名称
goods_id
:
""
,
// 商品名称
cust_user
:
""
,
// 收货人
cust_user
:
""
,
// 收货人
...
@@ -414,7 +415,7 @@ export default {
...
@@ -414,7 +415,7 @@ export default {
sub_shop_id
:
""
,
// 自提点
sub_shop_id
:
""
,
// 自提点
take_place_address
:
""
,
//详细地址
take_place_address
:
""
,
//详细地址
create_time_start
:
""
,
// 开始时间
create_time_start
:
""
,
// 开始时间
create_time_end
:
""
,
// 结束时间
create_time_end
:
""
// 结束时间
}
,
}
,
order_time
:
[],
// 下单时间
order_time
:
[],
// 下单时间
// 下拉框数据
// 下拉框数据
...
@@ -424,36 +425,36 @@ export default {
...
@@ -424,36 +425,36 @@ export default {
orderStatusArr
:
[
orderStatusArr
:
[
{
{
value
:
"0"
,
value
:
"0"
,
label
:
"全部"
,
label
:
"全部"
}
,
}
,
{
{
value
:
"1"
,
value
:
"1"
,
label
:
"未支付"
,
label
:
"未支付"
}
,
}
,
{
{
value
:
"2"
,
value
:
"2"
,
label
:
"已支付"
,
label
:
"已支付"
}
,
}
,
{
{
value
:
"3"
,
value
:
"3"
,
label
:
"待退款"
,
label
:
"待退款"
}
,
}
,
{
{
value
:
"4"
,
value
:
"4"
,
label
:
"已退款"
,
label
:
"已退款"
}
,
}
,
{
{
value
:
"5"
,
value
:
"5"
,
label
:
"退款中"
,
label
:
"退款中"
}
,
}
,
{
{
value
:
"6"
,
value
:
"6"
,
label
:
"已拒绝"
,
label
:
"已拒绝"
}
,
}
,
{
{
value
:
"7"
,
value
:
"7"
,
label
:
"售后"
,
label
:
"售后"
}
,
}
],
],
// 商品名称
// 商品名称
tradeNameArr
:
[],
tradeNameArr
:
[],
...
@@ -482,10 +483,11 @@ export default {
...
@@ -482,10 +483,11 @@ export default {
refundedGoodsSel
:
false
,
refundedGoodsSel
:
false
,
payment
:
""
,
payment
:
""
,
// restoreInventory: false,
// restoreInventory: false,
goods_name
:
""
,
goods_name
:
""
}
,
}
],
],
flag
:
[]
flag
:
[],
currentTakePlaceAddressList
:
{
}
// 存储接口每次返回的自提点和详细地址
}
;
}
;
}
,
}
,
...
@@ -498,7 +500,7 @@ export default {
...
@@ -498,7 +500,7 @@ export default {
}
,
}
,
exportURL3
()
{
exportURL3
()
{
return
newGetOrderExportURL
(
this
.
orderQueryObj
.
marketing_id
,
"3"
);
return
newGetOrderExportURL
(
this
.
orderQueryObj
.
marketing_id
,
"3"
);
}
,
}
}
,
}
,
methods
:
{
methods
:
{
...
@@ -510,7 +512,7 @@ export default {
...
@@ -510,7 +512,7 @@ export default {
async
getMarketingListMet
()
{
async
getMarketingListMet
()
{
try
{
try
{
const
res
=
await
newGetMarketingList
();
const
res
=
await
newGetMarketingList
();
let
allArr
=
[{
marketing_id
:
"
0
"
,
marketing_name
:
"全部活动"
}
];
let
allArr
=
[{
marketing_id
:
""
,
marketing_name
:
"全部活动"
}
];
let
arr
=
allArr
.
concat
(
res
.
result
);
let
arr
=
allArr
.
concat
(
res
.
result
);
this
.
activityNameArr
=
arr
;
this
.
activityNameArr
=
arr
;
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -525,72 +527,97 @@ export default {
...
@@ -525,72 +527,97 @@ export default {
this
.
orderQueryObj
.
sub_shop_id
=
""
;
this
.
orderQueryObj
.
sub_shop_id
=
""
;
this
.
orderQueryObj
.
take_place_address
=
""
;
this
.
orderQueryObj
.
take_place_address
=
""
;
const
params
=
{
const
params
=
{
marketing_id
:
val
,
marketing_id
:
val
}
;
}
;
const
res
=
await
newGetGoodsList
(
params
);
// 商品名称
const
res
=
await
newGetGoodsList
(
params
);
// 商品名称
this
.
getSubShopListMet
(
val
);
//自提点
await
this
.
getSubShopListMet
(
val
);
//自提点
// const res = await getSubShopList(params);
let
allallTemplateArr
=
[{
goods_sku_id
:
""
,
goods_name
:
"全部"
}
];
this
.
tradeNameArr
=
res
.
result
;
this
.
tradeNameArr
=
allallTemplateArr
.
concat
(
res
.
result
);
// 商品名称选项列表
// this.selLiftPoinArr = res.result;
}
,
// 改变商品名称
changeGoodsName
()
{
this
.
getSubShopListMet
();
}
,
}
,
// 获取自提点
// 获取自提点
async
getSubShopListMet
(
params
)
{
async
getSubShopListMet
()
{
try
{
try
{
let
marketing_id
=
""
;
// 获取自提点和详细地址类标
if
(
params
)
{
const
res
=
await
newGetSubShopList
({
marketing_id
=
params
;
marketing_id
:
this
.
orderQueryObj
.
marketing_id
,
}
goods_id
:
this
.
orderQueryObj
.
goods_id
const
res
=
await
newGetSubShopList
({
marketing_id
:
marketing_id
}
);
}
);
this
.
selLiftPoinArr
=
res
.
result
.
take_place_list
;
let
firstTakePlaceSelectOption
=
[
{
take_place_id
:
""
,
take_place_name
:
"全部"
}
];
// 自提点
this
.
selLiftPoinArr
=
firstTakePlaceSelectOption
.
concat
(
res
.
result
.
take_place_list
);
// 分界线
this
.
flag
=
res
.
result
.
take_place_list
;
this
.
flag
=
res
.
result
.
take_place_list
;
this
.
detailedAddressArr
=
res
.
result
.
address_list
;
let
firstAddressDetailSelectOption
=
[
"全部"
];
// 详细地址
this
.
detailedAddressArr
=
firstAddressDetailSelectOption
.
concat
(
res
.
result
.
address_list
);
// 暂存
this
.
currentTakePlaceAddressList
=
res
.
result
;
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
console
.
error
(
error
);
console
.
error
(
error
);
}
}
}
,
}
,
// 自提点获取详细地址
// 自提点 详细地址 互选操作 数据转换
subShopSel
(
val
)
{
formatTakePlaceAddress
(
type
)
{
let
addressVal
,
if
(
type
===
1
)
{
arr
=
[];
// 自提点改变
this
.
orderQueryObj
.
take_place_address
=
""
;
// 获取自提点名称
this
.
orderQueryObj
.
sub_shop_list
=
""
;
if
(
this
.
orderQueryObj
.
sub_shop_id
===
""
)
{
for
(
var
i
in
this
.
selLiftPoinArr
)
{
this
.
detailedAddressArr
=
[
"全部"
].
concat
(
if
(
this
.
selLiftPoinArr
[
i
].
take_place_id
==
val
)
{
this
.
currentTakePlaceAddressList
.
address_list
addressVal
=
this
.
selLiftPoinArr
[
i
].
address
;
);
}
else
{
let
takePlaceNameList
=
this
.
selLiftPoinArr
.
filter
(
item
=>
{
return
item
.
take_place_id
===
this
.
orderQueryObj
.
sub_shop_id
;
}
);
let
takePlaceName
=
takePlaceNameList
[
0
].
address
;
// 详细地址
let
filterDataList
=
this
.
currentTakePlaceAddressList
.
address_list
.
filter
(
item
=>
{
return
item
===
takePlaceName
;
}
}
);
this
.
detailedAddressArr
=
[
"全部"
].
concat
(
filterDataList
);
}
}
}
else
{
for
(
var
n
in
this
.
detailedAddressArr
)
{
// 详细地址改变
if
(
this
.
detailedAddressArr
[
n
]
==
addressVal
)
{
if
(
this
.
orderQueryObj
.
take_place_address
===
"全部"
)
{
arr
.
push
(
this
.
detailedAddressArr
[
n
]);
this
.
selLiftPoinArr
=
[
{
take_place_id
:
""
,
take_place_name
:
"全部"
}
].
concat
(
this
.
currentTakePlaceAddressList
.
take_place_list
);
}
else
{
let
takePlaceNameList
=
this
.
currentTakePlaceAddressList
.
take_place_list
.
filter
(
item
=>
{
return
item
.
address
===
this
.
orderQueryObj
.
take_place_address
;
}
);
this
.
selLiftPoinArr
=
[
{
take_place_id
:
""
,
take_place_name
:
"全部"
}
].
concat
(
takePlaceNameList
);
}
}
}
}
this
.
orderQueryObj
.
take_place_address
=
arr
[
0
];
this
.
detailedAddressArr
=
arr
;
}
,
}
,
// 详细地址获取自提点
// 改变自提点--获取详细地址
takePlaceAddressSel
(
val
)
{
subShopSel
()
{
let
arr
=
[],
this
.
formatTakePlaceAddress
(
1
);
arrID
=
[];
}
,
this
.
orderQueryObj
.
sub_shop_id
=
""
;
this
.
orderQueryObj
.
sub_shop_list
=
""
;
this
.
selLiftPoinArr
=
this
.
flag
;
for
(
var
i
in
this
.
selLiftPoinArr
)
{
if
(
val
==
this
.
selLiftPoinArr
[
i
].
address
)
{
arr
.
push
(
this
.
selLiftPoinArr
[
i
]);
arrID
.
push
(
this
.
selLiftPoinArr
[
i
].
take_place_id
);
}
}
this
.
selLiftPoinArr
=
arr
;
// 详细地址获取自提点
if
(
this
.
orderQueryObj
.
sub_shop_id
==
""
)
{
takePlaceAddressSel
()
{
this
.
orderQueryObj
.
sub_shop_list
=
arrID
.
join
(
","
);
this
.
formatTakePlaceAddress
(
2
);
}
}
,
}
,
// 获取今天日期
// 获取今天日期
...
@@ -625,7 +652,7 @@ export default {
...
@@ -625,7 +652,7 @@ export default {
resetOrder
(
formName
)
{
resetOrder
(
formName
)
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/op/groupmeal/newOrderManagement"
,
path
:
"/op/groupmeal/newOrderManagement"
}
);
}
);
this
.
$route
.
query
.
marketing_type
=
""
;
this
.
$route
.
query
.
marketing_type
=
""
;
}
}
...
@@ -645,23 +672,24 @@ export default {
...
@@ -645,23 +672,24 @@ export default {
searchOrder
()
{
searchOrder
()
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/op/groupmeal/newOrderManagement"
,
path
:
"/op/groupmeal/newOrderManagement"
}
);
}
);
this
.
$route
.
query
.
marketing_type
=
""
;
this
.
$route
.
query
.
marketing_type
=
""
;
}
}
this
.
orderQueryObj
.
page
=
1
;
this
.
orderQueryObj
.
page
=
1
;
this
.
orderQueryObj
.
page_size
=
10
;
this
.
orderQueryObj
.
page_size
=
10
;
if
(
Array
.
isArray
(
this
.
order_time
))
{
this
.
orderQueryObj
.
create_time_start
=
this
.
order_time
[
0
];
this
.
orderQueryObj
.
create_time_start
=
this
.
order_time
[
0
];
this
.
orderQueryObj
.
create_time_end
=
this
.
order_time
[
1
];
this
.
orderQueryObj
.
create_time_end
=
this
.
order_time
[
1
];
}
else
{
this
.
orderQueryObj
.
create_time_start
=
""
;
this
.
orderQueryObj
.
create_time_end
=
""
;
}
if
(
this
.
orderQueryObj
.
order_status
===
"0"
)
{
if
(
this
.
orderQueryObj
.
order_status
===
"0"
)
{
this
.
activeName
=
"all"
;
this
.
activeName
=
"all"
;
this
.
orderStatusArr
[
1
].
disabled
=
false
;
this
.
orderStatusArr
[
1
].
disabled
=
false
;
this
.
orderStatusArr
[
2
].
disabled
=
false
;
this
.
orderStatusArr
[
2
].
disabled
=
false
;
}
}
// this.orderQueryObj.order_status = "0";
// this.orderStatusArr[1].disabled = false;
// this.orderStatusArr[2].disabled = false;
this
.
getOrderListMet
(
this
.
orderQueryObj
);
this
.
getOrderListMet
(
this
.
orderQueryObj
);
}
,
}
,
...
@@ -695,7 +723,7 @@ export default {
...
@@ -695,7 +723,7 @@ export default {
async
printOrderMet
(
forcePrint
)
{
async
printOrderMet
(
forcePrint
)
{
const
params
=
{
const
params
=
{
marketing_id
:
this
.
orderQueryObj
.
marketing_id
,
marketing_id
:
this
.
orderQueryObj
.
marketing_id
,
force_print
:
forcePrint
?
"1"
:
""
,
force_print
:
forcePrint
?
"1"
:
""
}
;
}
;
const
res
=
await
newOrderPrint
(
params
);
const
res
=
await
newOrderPrint
(
params
);
return
res
;
return
res
;
...
@@ -715,7 +743,7 @@ export default {
...
@@ -715,7 +743,7 @@ export default {
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
this
.
$message
({
type
:
"success"
,
type
:
"success"
,
message
:
"打印成功"
,
message
:
"打印成功"
}
);
}
);
return
;
return
;
}
}
...
@@ -733,7 +761,7 @@ export default {
...
@@ -733,7 +761,7 @@ export default {
try
{
try
{
await
this
.
$confirm
(
res
.
reason
,
"打印"
,
{
await
this
.
$confirm
(
res
.
reason
,
"打印"
,
{
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
}
);
}
);
}
catch
(
e
)
{
}
catch
(
e
)
{
// 取消
// 取消
...
@@ -759,10 +787,37 @@ export default {
...
@@ -759,10 +787,37 @@ export default {
goods_id
:
""
,
goods_id
:
""
,
cust_user
:
""
,
cust_user
:
""
,
order_id
:
""
,
order_id
:
""
,
sub_shop_id
:
""
,
sub_shop_id
:
""
}
);
}
else
{
// 详细地址进行了选择 一个详细地址对应多个自提点
let
params
=
{
}
;
let
takePlaceListParams
=
""
;
if
(
this
.
orderQueryObj
.
take_place_address
!==
"全部"
&&
this
.
orderQueryObj
.
take_place_address
!==
""
&&
(
this
.
orderQueryObj
.
sub_shop_id
===
""
||
this
.
orderQueryObj
.
sub_shop_id
===
"全部"
)
)
{
// 自提点传列表字符串
let
takePlaceNameList
=
this
.
currentTakePlaceAddressList
.
take_place_list
.
filter
(
item
=>
{
return
item
.
address
===
this
.
orderQueryObj
.
take_place_address
;
}
);
takePlaceListParams
=
takePlaceNameList
.
map
(
item
=>
{
return
item
.
take_place_id
;
}
)
.
join
(
","
);
let
currentParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
orderQueryObj
));
params
=
Object
.
assign
(
currentParams
,
{
sub_shop_id
:
takePlaceListParams
}
);
}
);
}
else
{
}
else
{
res
=
await
newGetOrderList
(
this
.
orderQueryObj
);
params
=
this
.
orderQueryObj
;
}
res
=
await
newGetOrderList
(
params
);
}
}
this
.
goodsNum
=
res
.
goods_num
;
// 商品共计
this
.
goodsNum
=
res
.
goods_num
;
// 商品共计
this
.
totalNum
=
res
.
count
;
// 商品总数
this
.
totalNum
=
res
.
count
;
// 商品总数
...
@@ -784,21 +839,21 @@ export default {
...
@@ -784,21 +839,21 @@ export default {
try
{
try
{
await
this
.
$confirm
(
"确定要拒绝退款么?"
,
"拒绝"
,
{
await
this
.
$confirm
(
"确定要拒绝退款么?"
,
"拒绝"
,
{
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
}
);
}
);
}
catch
(
e
)
{
}
catch
(
e
)
{
// 取消
// 取消
return
;
return
;
}
}
const
params
=
{
const
params
=
{
order_id
:
val
.
order_id
,
order_id
:
val
.
order_id
}
;
}
;
const
res
=
await
newOrderRefundReject
(
params
);
const
res
=
await
newOrderRefundReject
(
params
);
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
this
.
$message
({
type
:
"success"
,
type
:
"success"
,
message
:
"订单已驳回"
,
message
:
"订单已驳回"
}
);
}
);
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
reason
);
this
.
$message
.
error
(
res
.
reason
);
...
@@ -824,7 +879,7 @@ export default {
...
@@ -824,7 +879,7 @@ export default {
this
.
checkAll
=
false
;
this
.
checkAll
=
false
;
this
.
refundGoods
=
[];
this
.
refundGoods
=
[];
const
params
=
{
const
params
=
{
order_id
:
val
.
order_id
,
order_id
:
val
.
order_id
}
;
}
;
const
res
=
await
newOrderItemList
(
params
);
const
res
=
await
newOrderItemList
(
params
);
this
.
refundGoods
=
res
.
result
;
this
.
refundGoods
=
res
.
result
;
...
@@ -853,15 +908,15 @@ export default {
...
@@ -853,15 +908,15 @@ export default {
//
}
//
}
//
}
//
}
const
convertToNumber
=
(
str
)
=>
{
const
convertToNumber
=
str
=>
{
return
!
Number
.
isNaN
(
parseFloat
(
str
))
?
parseFloat
(
str
)
:
0
;
return
!
Number
.
isNaN
(
parseFloat
(
str
))
?
parseFloat
(
str
)
:
0
;
}
;
}
;
const
processRefundItem
=
(
item
)
=>
{
const
processRefundItem
=
item
=>
{
return
{
return
{
order_item_id
:
item
.
order_item_id
,
order_item_id
:
item
.
order_item_id
,
refund_num
:
item
.
refundableQuantity
||
0
,
refund_num
:
item
.
refundableQuantity
||
0
,
refund_amount
:
convertToNumber
(
item
.
amountToRefund
)
,
refund_amount
:
convertToNumber
(
item
.
amountToRefund
)
// refund_type: item.refund_type
// refund_type: item.refund_type
}
;
}
;
}
;
}
;
...
@@ -884,13 +939,13 @@ export default {
...
@@ -884,13 +939,13 @@ export default {
return
;
return
;
}
}
this
.
$message
.
error
(
res
.
reason
);
this
.
$message
.
error
(
res
.
reason
);
}
,
}
}
,
}
,
created
()
{
created
()
{
this
.
getMarketingListMet
();
// 活动名称
this
.
getMarketingListMet
();
// 活动名称
this
.
getSubShopListMet
();
// 自提点
this
.
getSubShopListMet
();
// 自提点
this
.
getOrderListMet
();
// table列表
this
.
getOrderListMet
();
// table列表
}
,
}
}
;
}
;
<
/script
>
<
/script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment