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
7afc4d0e
Commit
7afc4d0e
authored
Aug 11, 2021
by
lihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug-more
parent
ce336c8d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
40 deletions
+41
-40
index.vue
src/pages/Activity/ActivityDetail/index.vue
+1
-1
index.vue
src/pages/Groupmeal/newOrderManagement/index.vue
+40
-39
No files found.
src/pages/Activity/ActivityDetail/index.vue
View file @
7afc4d0e
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
fit
=
"fit"
fit
=
"fit"
><
/el-image
>
><
/el-image
>
<
div
class
=
"itemIntroduce"
>
<
div
class
=
"itemIntroduce"
>
<
p
>
{{
goodsItem
.
desc
}}
<
/p
>
<
p
>
{{
goodsItem
.
goods_name
}}
<
/p
>
<
p
class
=
"price"
>
<
p
class
=
"price"
>
<
span
class
=
"nowPrice"
>
{{
`¥${goodsItem.price
}
`
}}
<
/span
>
<
span
class
=
"nowPrice"
>
{{
`¥${goodsItem.price
}
`
}}
<
/span
>
<
span
class
=
"originPrice"
>
{{
<
span
class
=
"originPrice"
>
{{
...
...
src/pages/Groupmeal/newOrderManagement/index.vue
View file @
7afc4d0e
...
@@ -348,7 +348,7 @@ import {
...
@@ -348,7 +348,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"
;
...
@@ -356,7 +356,7 @@ export default {
...
@@ -356,7 +356,7 @@ export default {
name
:
"orderManagement"
,
name
:
"orderManagement"
,
components
:
{
components
:
{
Layout
,
Layout
,
page
,
page
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -369,7 +369,7 @@ export default {
...
@@ -369,7 +369,7 @@ export default {
goods_id
:
""
,
// 商品名称
goods_id
:
""
,
// 商品名称
cust_user
:
""
,
// 收货人
cust_user
:
""
,
// 收货人
order_id
:
""
,
// 订单编号
order_id
:
""
,
// 订单编号
sub_shop_id
:
""
,
// 自提点
sub_shop_id
:
""
// 自提点
},
},
// 下拉框数据
// 下拉框数据
// 活动名称
// 活动名称
...
@@ -378,36 +378,36 @@ export default {
...
@@ -378,36 +378,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
:
[],
...
@@ -426,7 +426,7 @@ export default {
...
@@ -426,7 +426,7 @@ export default {
totalNum
:
null
,
//总条数
totalNum
:
null
,
//总条数
// 退款
// 退款
refundShow
:
false
,
// 退款状态
refundShow
:
false
,
// 退款状态
checkAll
:
false
,
// 全选
checkAll
:
false
,
// 全选
isIndeterminate
:
false
,
isIndeterminate
:
false
,
refundGoods
:
[
refundGoods
:
[
...
@@ -434,9 +434,9 @@ export default {
...
@@ -434,9 +434,9 @@ export default {
refundedGoodsSel
:
false
,
refundedGoodsSel
:
false
,
payment
:
""
,
payment
:
""
,
restoreInventory
:
false
,
restoreInventory
:
false
,
goods_name
:
""
,
goods_name
:
""
}
,
}
]
,
]
};
};
},
},
...
@@ -449,7 +449,7 @@ export default {
...
@@ -449,7 +449,7 @@ export default {
},
},
exportURL3
()
{
exportURL3
()
{
return
newGetOrderExportURL
(
this
.
orderQueryObj
.
marketing_id
,
"3"
);
return
newGetOrderExportURL
(
this
.
orderQueryObj
.
marketing_id
,
"3"
);
}
,
}
},
},
methods
:
{
methods
:
{
...
@@ -473,7 +473,7 @@ export default {
...
@@ -473,7 +473,7 @@ export default {
this
.
orderQueryObj
.
goods_id
=
""
;
this
.
orderQueryObj
.
goods_id
=
""
;
this
.
orderQueryObj
.
sub_shop_id
=
""
;
this
.
orderQueryObj
.
sub_shop_id
=
""
;
const
params
=
{
const
params
=
{
marketing_id
:
val
,
marketing_id
:
val
};
};
const
res
=
await
newGetGoodsList
(
params
);
// 商品名称
const
res
=
await
newGetGoodsList
(
params
);
// 商品名称
this
.
getSubShopListMet
(
val
);
//自提点
this
.
getSubShopListMet
(
val
);
//自提点
...
@@ -501,7 +501,7 @@ export default {
...
@@ -501,7 +501,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
=
""
;
}
}
...
@@ -516,7 +516,7 @@ export default {
...
@@ -516,7 +516,7 @@ 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
=
""
;
}
}
...
@@ -552,7 +552,7 @@ export default {
...
@@ -552,7 +552,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
;
...
@@ -569,7 +569,7 @@ export default {
...
@@ -569,7 +569,7 @@ export default {
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
this
.
$message
({
type
:
"success"
,
type
:
"success"
,
message
:
"打印成功"
,
message
:
"打印成功"
});
});
return
;
return
;
}
}
...
@@ -587,7 +587,7 @@ export default {
...
@@ -587,7 +587,7 @@ export default {
try
{
try
{
await
this
.
$confirm
(
res
.
reason
,
"打印"
,
{
await
this
.
$confirm
(
res
.
reason
,
"打印"
,
{
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
});
});
}
catch
(
e
)
{
}
catch
(
e
)
{
// 取消
// 取消
...
@@ -603,8 +603,9 @@ export default {
...
@@ -603,8 +603,9 @@ export default {
// 获取订单列表
// 获取订单列表
async
getOrderListMet
()
{
async
getOrderListMet
()
{
try
{
try
{
let
res
=
null
;
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
var
res
=
await
newGetOrderList
({
res
=
await
newGetOrderList
({
page
:
1
,
page
:
1
,
page_size
:
10
,
page_size
:
10
,
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
...
@@ -612,10 +613,10 @@ export default {
...
@@ -612,10 +613,10 @@ export default {
goods_id
:
""
,
goods_id
:
""
,
cust_user
:
""
,
cust_user
:
""
,
order_id
:
""
,
order_id
:
""
,
sub_shop_id
:
""
,
sub_shop_id
:
""
});
});
}
else
{
}
else
{
var
res
=
await
newGetOrderList
(
this
.
orderQueryObj
);
res
=
await
newGetOrderList
(
this
.
orderQueryObj
);
}
}
this
.
goodsNum
=
res
.
goods_num
;
// 商品共计
this
.
goodsNum
=
res
.
goods_num
;
// 商品共计
this
.
totalNum
=
res
.
count
;
// 商品总数
this
.
totalNum
=
res
.
count
;
// 商品总数
...
@@ -637,21 +638,21 @@ export default {
...
@@ -637,21 +638,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
);
...
@@ -677,7 +678,7 @@ export default {
...
@@ -677,7 +678,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
;
...
@@ -706,16 +707,16 @@ export default {
...
@@ -706,16 +707,16 @@ 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
};
};
};
};
...
@@ -737,13 +738,13 @@ export default {
...
@@ -737,13 +738,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