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
448cd999
Commit
448cd999
authored
Aug 11, 2021
by
v-yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:查看订单后重置搜索修改
parent
736807a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
9 deletions
+32
-9
index.vue
src/pages/Groupmeal/newOrderManagement/index.vue
+32
-9
No files found.
src/pages/Groupmeal/newOrderManagement/index.vue
View file @
448cd999
...
...
@@ -426,7 +426,7 @@ export default {
totalNum
:
null
,
//总条数
// 退款
refundShow
:
false
,
// 退款状态
refundShow
:
false
,
// 退款状态
checkAll
:
false
,
// 全选
isIndeterminate
:
false
,
refundGoods
:
[
...
...
@@ -499,15 +499,27 @@ export default {
// 重置
resetOrder
(
formName
)
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
$router
.
push
({
path
:
"/op/groupmeal/newOrderManagement"
,
});
this
.
$route
.
query
.
marketing_type
=
""
;
}
this
.
$refs
[
formName
].
resetFields
();
this
.
orderQueryObj
.
page
=
1
;
this
.
orderQueryObj
.
page_size
=
10
;
this
.
getOrderListMet
(
this
.
orderQueryObj
);
this
.
getSubShopListMet
();
this
.
getSubShopListMet
();
},
// 搜索
searchOrder
()
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
$router
.
push
({
path
:
"/op/groupmeal/newOrderManagement"
,
});
this
.
$route
.
query
.
marketing_type
=
""
;
}
this
.
orderQueryObj
.
page
=
1
;
this
.
orderQueryObj
.
page_size
=
10
;
this
.
getOrderListMet
(
this
.
orderQueryObj
);
...
...
@@ -526,6 +538,7 @@ export default {
}
this
.
getOrderListMet
(
this
.
orderQueryObj
);
},
// 导出
exportOrder
()
{
if
(
this
.
orderQueryObj
.
marketing_id
===
""
)
{
...
...
@@ -589,11 +602,21 @@ export default {
// 获取订单列表
async
getOrderListMet
()
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
orderQueryObj
.
marketing_id
=
this
.
$route
.
query
.
marketing_id
;
}
try
{
const
res
=
await
newGetOrderList
(
this
.
orderQueryObj
);
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
var
res
=
await
newGetOrderList
({
page
:
1
,
page_size
:
10
,
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
order_status
:
"0"
,
goods_id
:
""
,
cust_user
:
""
,
order_id
:
""
,
sub_shop_id
:
""
,
});
}
else
{
var
res
=
await
newGetOrderList
(
this
.
orderQueryObj
);
}
this
.
goodsNum
=
res
.
goods_num
;
// 商品共计
this
.
totalNum
=
res
.
count
;
// 商品总数
this
.
orderTableData
=
res
.
result
;
...
...
@@ -602,8 +625,8 @@ export default {
console
.
error
(
error
);
}
},
//列表分页
// 页码变化
//
列表分页
页码变化
handleCurrentChange
(
e
)
{
this
.
orderQueryObj
.
page
=
e
;
this
.
getOrderListMet
();
...
...
@@ -646,7 +669,6 @@ export default {
for
(
var
i
in
this
.
refundGoods
)
{
this
.
refundGoods
[
i
].
refundedGoodsSel
=
val
;
}
// this.isIndeterminate = false;
},
// 退款
...
...
@@ -710,6 +732,7 @@ export default {
const
res
=
await
newRefundOrder
(
orderId
,
itemsToRefund
);
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
"退款成功"
);
this
.
getOrderListMet
();
this
.
refundShow
=
false
;
return
;
}
...
...
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