Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
af062f3a
Commit
af062f3a
authored
Sep 17, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理折扣
parent
702868c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
index.js
src/router/index.js
+7
-0
discount.vue
src/views/ecw/order/special/discount.vue
+6
-2
index.vue
src/views/ecw/order/special/index.vue
+1
-1
No files found.
src/router/index.js
View file @
af062f3a
...
@@ -303,6 +303,13 @@ export const constantRoutes = [
...
@@ -303,6 +303,13 @@ export const constantRoutes = [
name
:
'
discount
'
,
name
:
'
discount
'
,
meta
:
{
title
:
'
订单优惠申请
'
,
icon
:
''
,
activeMenu
:
'
/order/index
'
}
meta
:
{
title
:
'
订单优惠申请
'
,
icon
:
''
,
activeMenu
:
'
/order/index
'
}
},
},
{
path
:
'
discount1/:orderItemId(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/order/special/discount
'
),
props
:
true
,
name
:
'
discount1
'
,
meta
:
{
title
:
'
订单折扣申请
'
,
icon
:
''
,
activeMenu
:
'
/order/index
'
}
},
{
{
path
:
'
speciallight/:orderId(
\\
d+)
'
,
path
:
'
speciallight/:orderId(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/order/special/light
'
),
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/order/special/light
'
),
...
...
src/views/ecw/order/special/discount.vue
View file @
af062f3a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"20"
:xl=
"16"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"20"
:xl=
"16"
>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
v-if=
"!readonly"
>
<div
slot=
"header"
class=
"clearfix"
v-if=
"!readonly"
>
<span
>
优惠申请
</span>
<span
style=
"font-size: 18px;font-weight: bold"
>
{{
isDiscount
?
'
折扣管理
'
:
'
优惠申请
'
}}
</span>
</div>
</div>
<el-form
v-if=
"!readonly"
ref=
"form"
:model=
"form"
label-width=
"80px"
>
<el-form
v-if=
"!readonly"
ref=
"form"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"商品类型"
>
<el-form-item
label=
"商品类型"
>
...
@@ -216,7 +216,7 @@ export default {
...
@@ -216,7 +216,7 @@ export default {
methods
:
{
methods
:
{
handleSubmit
(){
handleSubmit
(){
createOrderSpecial
({
createOrderSpecial
({
"
applyType
"
:
'
1
'
,
"
applyType
"
:
this
.
isDiscount
?
'
2
'
:
'
1
'
,
clearanceFreight
:
this
.
form
.
clearanceFreight
,
clearanceFreight
:
this
.
form
.
clearanceFreight
,
clearanceFreightCurrency
:
this
.
form
.
clearanceFreightCurrency
,
clearanceFreightCurrency
:
this
.
form
.
clearanceFreightCurrency
,
clearanceFreightVolume
:
this
.
form
.
clearanceFreightVolume
,
clearanceFreightVolume
:
this
.
form
.
clearanceFreightVolume
,
...
@@ -244,6 +244,10 @@ export default {
...
@@ -244,6 +244,10 @@ export default {
}
}
}
,
}
,
computed
:
{
computed
:
{
// 折扣管理页面
isDiscount
(){
return
this
.
$route
.
query
.
discount
}
,
// 根据渠道id显示渠道名
// 根据渠道id显示渠道名
getChannelNameById
(){
getChannelNameById
(){
return
channelId
=>
{
return
channelId
=>
{
...
...
src/views/ecw/order/special/index.vue
View file @
af062f3a
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"$router.push(`/order/discount/$
{row.orderItemId}?orderId=${row.orderId}`)">优惠申请
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"$router.push(`/order/discount/$
{row.orderItemId}?orderId=${row.orderId}`)">优惠申请
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"$router.push(`/order/specialCommission/$
{row.orderItemId}`)">佣金规则
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"$router.push(`/order/specialCommission/$
{row.orderItemId}`)">佣金规则
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
>
管理折扣
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"$router.push(`/order/discount1/$
{row.orderItemId}?orderId=${row.orderId}
&
discount=1`)"
>管理折扣
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
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