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
45999212
Commit
45999212
authored
Jul 27, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:导出,列表商品信息显示问题
parent
372f8a8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
36 deletions
+72
-36
index.vue
src/pages/Groupmeal/orderManagement/index.vue
+72
-36
No files found.
src/pages/Groupmeal/orderManagement/index.vue
View file @
45999212
...
@@ -81,6 +81,7 @@
...
@@ -81,6 +81,7 @@
<el-col
:span=
"12"
style=
"text-align: right"
>
<el-col
:span=
"12"
style=
"text-align: right"
>
<el-button
@
click=
"exportOrder"
>
导出
</el-button>
<el-button
@
click=
"exportOrder"
>
导出
</el-button>
<el-button
@
click=
"printOrder"
>
打印
</el-button>
<el-button
@
click=
"printOrder"
>
打印
</el-button>
<!--
<a
href=
"bp-dev.ini.yidian-inc.com/order/background/order_export?marketing_id=1NJF2J&type=1"
>
导出文件
</a>
-->
</el-col>
</el-col>
</el-row>
</el-row>
<el-tab-pane
label=
"全部"
name=
"all"
>
<el-tab-pane
label=
"全部"
name=
"all"
>
...
@@ -100,9 +101,11 @@
...
@@ -100,9 +101,11 @@
label=
"订单状态"
label=
"订单状态"
></el-table-column>
></el-table-column>
<el-table-column
prop=
"order_item"
label=
"商品信息"
>
<el-table-column
prop=
"order_item"
label=
"商品信息"
>
<!--
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
{{
scope
}}
<div
v-for=
"(item, index) in scope.row.order_item"
:key=
"index"
>
</
template
>
-->
{{
item
.
goods_name
}}
</div>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"user_name"
label=
"收货人"
></el-table-column>
<el-table-column
prop=
"user_name"
label=
"收货人"
></el-table-column>
<el-table-column
<el-table-column
...
@@ -157,10 +160,13 @@
...
@@ -157,10 +160,13 @@
prop=
"order_status_text"
prop=
"order_status_text"
label=
"订单状态"
label=
"订单状态"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"order_item"
label=
"商品信息"
>
prop=
"order_item"
<
template
#
default=
"scope"
>
label=
"商品信息"
<div
v-for=
"(item, index) in scope.row.order_item"
:key=
"index"
>
></el-table-column>
{{
item
.
goods_name
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"user_name"
label=
"收货人"
></el-table-column>
<el-table-column
prop=
"user_name"
label=
"收货人"
></el-table-column>
<el-table-column
<el-table-column
prop=
"sub_shop_name"
prop=
"sub_shop_name"
...
@@ -175,12 +181,16 @@
...
@@ -175,12 +181,16 @@
></el-table-column>
></el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"100"
>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"100"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<!-- v-if="scope.row.order_status_text == '已支付'" -->
<el-button
<el-button
type=
"text"
size=
"small"
@
click=
"refund(scope.row)"
type=
"text"
size=
"small"
@
click=
"refund(scope.row)"
v-show=
"scope.row.order_status_text == '已支付'"
>
退款
</el-button
>
退款
</el-button
>
>
<!-- v-else -->
<el-button-group
<el-button-group>
v-show=
"scope.row.order_status_text == '待退款'"
>
<el-button
type=
"text"
size=
"small"
@
click=
"agree(scope.row)"
<el-button
type=
"text"
size=
"small"
@
click=
"agree(scope.row)"
>
同意
</el-button
>
同意
</el-button
>
>
...
@@ -199,10 +209,13 @@
...
@@ -199,10 +209,13 @@
<el-dialog
title=
"导出订单"
width=
"25%"
top=
"10%"
v-model=
"exportShow"
>
<el-dialog
title=
"导出订单"
width=
"25%"
top=
"10%"
v-model=
"exportShow"
>
<el-form-item
class=
"exportForm"
label
>
<el-form-item
class=
"exportForm"
label
>
<div>
请选择导出活动{{ exportType }}的表格类型
</div>
<div>
请选择导出活动{{ exportType }}的表格类型
</div>
<el-checkbox-group
v-model=
"exportSel.type"
>
<el-checkbox-group
v-model=
"exportSel"
>
<el-checkbox
label=
"总表"
name=
"type"
></el-checkbox>
<el-checkbox
<el-checkbox
label=
"商品表"
name=
"type"
></el-checkbox>
v-for=
"i in exportSelOpt"
<el-checkbox
label=
"配送表"
name=
"type"
></el-checkbox>
:label=
"i.type"
:key=
"i.type"
>
{{ i.name }}
</el-checkbox
>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
class=
"exportBtn"
>
<el-form-item
class=
"exportBtn"
>
...
@@ -346,9 +359,12 @@ export default {
...
@@ -346,9 +359,12 @@ export default {
// 导出
// 导出
exportShow
:
false
,
exportShow
:
false
,
exportType
:
"xxxxx"
,
exportType
:
"xxxxx"
,
exportSel
:
{
exportSel
:
[],
type
:
[],
exportSelOpt
:
[
},
{
type
:
"1"
,
name
:
"总表"
},
{
type
:
"2"
,
name
:
"商品表"
},
{
type
:
"3"
,
name
:
"配送表"
},
],
// 表格数据
// 表格数据
orderTableData
:
[],
orderTableData
:
[],
...
@@ -431,8 +447,8 @@ export default {
...
@@ -431,8 +447,8 @@ export default {
handleClick
(
targetName
)
{
handleClick
(
targetName
)
{
if
(
targetName
.
props
.
name
==
"all"
)
{
if
(
targetName
.
props
.
name
==
"all"
)
{
this
.
orderQueryObj
.
order_status
=
"0"
;
this
.
orderQueryObj
.
order_status
=
"0"
;
this
.
orderStatusArr
[
1
].
disabled
=
tru
e
;
this
.
orderStatusArr
[
1
].
disabled
=
fals
e
;
this
.
orderStatusArr
[
2
].
disabled
=
tru
e
;
this
.
orderStatusArr
[
2
].
disabled
=
fals
e
;
}
else
{
}
else
{
this
.
orderQueryObj
.
order_status
=
"7"
;
this
.
orderQueryObj
.
order_status
=
"7"
;
this
.
orderStatusArr
[
1
].
disabled
=
true
;
this
.
orderStatusArr
[
1
].
disabled
=
true
;
...
@@ -448,20 +464,40 @@ export default {
...
@@ -448,20 +464,40 @@ export default {
// 确认导出
// 确认导出
async
confirmExport
()
{
async
confirmExport
()
{
console
.
log
(
this
.
exportSel
.
type
);
if
(
this
.
orderQueryObj
.
marketing_id
!=
""
)
{
const
params
=
{
const
params
=
{
type
:
this
.
exportSel
.
type
,
marketing_id
:
this
.
orderQueryObj
.
marketing_id
,
type
:
this
.
exportSel
,
};
};
const
res
=
await
orderExport
(
params
);
const
res
=
await
orderExport
(
params
);
console
.
log
(
res
);
if
(
res
)
{
const
xlsx
=
"application/vnd.ms-excel"
;
const
blob
=
new
Blob
([
res
],
{
type
:
xlsx
});
const
a
=
document
.
createElement
(
"a"
);
a
.
download
=
"fileName.xls"
;
a
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
a
.
click
();
a
.
remove
();
this
.
exportShow
=
false
;
}
else
{
this
.
$message
.
error
(
"导出失败"
);
}
}
else
{
this
.
$message
.
error
(
"请选择活动名称"
);
}
},
},
// 打印
// 打印
async
printOrder
()
{
async
printOrder
()
{
if
(
this
.
orderQueryObj
.
marketing_id
!=
""
)
{
const
params
=
{
const
params
=
{
marketing_id
:
this
.
orderQueryObj
.
marketing_id
,
marketing_id
:
this
.
orderQueryObj
.
marketing_id
,
};
};
const
res
=
await
orderPrint
(
params
);
const
res
=
await
orderPrint
(
params
);
console
.
log
(
res
);
console
.
log
(
res
);
}
else
{
this
.
$message
.
error
(
"请选择活动名称"
);
}
},
},
// 获取订单列表
// 获取订单列表
...
@@ -499,14 +535,14 @@ export default {
...
@@ -499,14 +535,14 @@ export default {
console
.
log
(
res
);
console
.
log
(
res
);
this
.
$message
({
this
.
$message
({
type
:
"success"
,
type
:
"success"
,
message
:
"
退款成功
!"
,
message
:
"
已拒绝
!"
,
});
});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$message
({
//
this.$message({
type
:
"info"
,
//
type: "info",
message
:
"已取消"
,
//
message: "已取消",
});
//
});
});
});
},
},
...
...
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